--系统的Insert语句集合--



--系统的组织架构Insert语句集合--




--Dcx_Account

     SET IDENTITY_INSERT [Dcx_Account] ON 
      if (select count(1) from [Dcx_Account] where  [AccountId]=1  )<1 
      begin 
           Insert into [Dcx_Account] ([AccountId],[AccountUId],[AccountName],[CompanyName],[AccountImgUrl],[GroupId],[Email],[MainUserId],[VersionId],[AppCount],[MenuCount],[DbTableCount],[TreeCount],[MonthCount],[TotalMoney],[PayedMoney],[BankAccount],[Trade],[CompanyUrl],[Telephone],[QQ],[Province],[Address],[Linkman],[Phone],[IconPath],[RegistedDate],[PassDate],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark])values(1,'1bff83a6-e475-4b2f-a8c3-d475f406c35b','dcx_zsu@qq.com','',null,3,'dcx_zsu@qq.com',3,1,0,0,0,0,0,116110.0000,45750.0000,'4222578800087765443',null,'sadsd','sss','d','中国-广东省-湛江','sdasdasddrererer','as','df',null,'2012-1-5 22:25:02',null,3,'admin','2012-1-5 22:25:02',3,'admin','2013-9-11 14:00:41','')
      end
      else 
      begin 
           update [Dcx_Account] set [AccountUId]='1bff83a6-e475-4b2f-a8c3-d475f406c35b',[AccountName]='dcx_zsu@qq.com',[CompanyName]='',[AccountImgUrl]=null,[GroupId]=3,[Email]='dcx_zsu@qq.com',[MainUserId]=3,[VersionId]=1,[AppCount]=0,[MenuCount]=0,[DbTableCount]=0,[TreeCount]=0,[MonthCount]=0,[TotalMoney]=116110.0000,[PayedMoney]=45750.0000,[BankAccount]='4222578800087765443',[Trade]=null,[CompanyUrl]='sadsd',[Telephone]='sss',[QQ]='d',[Province]='中国-广东省-湛江',[Address]='sdasdasddrererer',[Linkman]='as',[Phone]='df',[IconPath]=null,[RegistedDate]='2012-1-5 22:25:02',[PassDate]=null,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-1-5 22:25:02',[EditorId]=3,[Editor]='admin',[EditTime]='2013-9-11 14:00:41',[Remark]='' where  [AccountId]=1 
      end
      if (select count(1) from [Dcx_Account] where  [AccountId]=14  )<1 
      begin 
           Insert into [Dcx_Account] ([AccountId],[AccountUId],[AccountName],[CompanyName],[AccountImgUrl],[GroupId],[Email],[MainUserId],[VersionId],[AppCount],[MenuCount],[DbTableCount],[TreeCount],[MonthCount],[TotalMoney],[PayedMoney],[BankAccount],[Trade],[CompanyUrl],[Telephone],[QQ],[Province],[Address],[Linkman],[Phone],[IconPath],[RegistedDate],[PassDate],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark])values(14,'f3fe0e44-98de-46a7-9da8-82497fff41a7','dcx123dfdfdf','',null,4,'dcx_zsuss2@qq.com',291,1,0,0,0,0,0,56.2343,3.0000,null,null,null,null,null,null,'',null,null,null,'2012-8-13 4:35:15','2012-8-13 4:35:15',291,'dcx123','2012-8-13 4:35:15',291,'dcx123','2012-8-13 4:35:15',null)
      end
      else 
      begin 
           update [Dcx_Account] set [AccountUId]='f3fe0e44-98de-46a7-9da8-82497fff41a7',[AccountName]='dcx123dfdfdf',[CompanyName]='',[AccountImgUrl]=null,[GroupId]=4,[Email]='dcx_zsuss2@qq.com',[MainUserId]=291,[VersionId]=1,[AppCount]=0,[MenuCount]=0,[DbTableCount]=0,[TreeCount]=0,[MonthCount]=0,[TotalMoney]=56.2343,[PayedMoney]=3.0000,[BankAccount]=null,[Trade]=null,[CompanyUrl]=null,[Telephone]=null,[QQ]=null,[Province]=null,[Address]='',[Linkman]=null,[Phone]=null,[IconPath]=null,[RegistedDate]='2012-8-13 4:35:15',[PassDate]='2012-8-13 4:35:15',[CreatorId]=291,[Creator]='dcx123',[CreateTime]='2012-8-13 4:35:15',[EditorId]=291,[Editor]='dcx123',[EditTime]='2012-8-13 4:35:15',[Remark]=null where  [AccountId]=14 
      end
      if (select count(1) from [Dcx_Account] where  [AccountId]=15  )<1 
      begin 
           Insert into [Dcx_Account] ([AccountId],[AccountUId],[AccountName],[CompanyName],[AccountImgUrl],[GroupId],[Email],[MainUserId],[VersionId],[AppCount],[MenuCount],[DbTableCount],[TreeCount],[MonthCount],[TotalMoney],[PayedMoney],[BankAccount],[Trade],[CompanyUrl],[Telephone],[QQ],[Province],[Address],[Linkman],[Phone],[IconPath],[RegistedDate],[PassDate],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark])values(15,'e9d94f6c-e990-4380-856d-dc518dde3d2c','asdasd',null,null,4,'dcx_zsu3@163.com',292,1,0,0,0,0,0,456.0000,0.0000,null,null,null,null,null,null,null,null,null,null,'2012-8-13 5:34:40','2012-8-13 5:34:40',292,'asdasd','2012-8-13 5:34:40',292,'asdasd','2012-8-13 5:34:40',null)
      end
      else 
      begin 
           update [Dcx_Account] set [AccountUId]='e9d94f6c-e990-4380-856d-dc518dde3d2c',[AccountName]='asdasd',[CompanyName]=null,[AccountImgUrl]=null,[GroupId]=4,[Email]='dcx_zsu3@163.com',[MainUserId]=292,[VersionId]=1,[AppCount]=0,[MenuCount]=0,[DbTableCount]=0,[TreeCount]=0,[MonthCount]=0,[TotalMoney]=456.0000,[PayedMoney]=0.0000,[BankAccount]=null,[Trade]=null,[CompanyUrl]=null,[Telephone]=null,[QQ]=null,[Province]=null,[Address]=null,[Linkman]=null,[Phone]=null,[IconPath]=null,[RegistedDate]='2012-8-13 5:34:40',[PassDate]='2012-8-13 5:34:40',[CreatorId]=292,[Creator]='asdasd',[CreateTime]='2012-8-13 5:34:40',[EditorId]=292,[Editor]='asdasd',[EditTime]='2012-8-13 5:34:40',[Remark]=null where  [AccountId]=15 
      end
      if (select count(1) from [Dcx_Account] where  [AccountId]=20  )<1 
      begin 
           Insert into [Dcx_Account] ([AccountId],[AccountUId],[AccountName],[CompanyName],[AccountImgUrl],[GroupId],[Email],[MainUserId],[VersionId],[AppCount],[MenuCount],[DbTableCount],[TreeCount],[MonthCount],[TotalMoney],[PayedMoney],[BankAccount],[Trade],[CompanyUrl],[Telephone],[QQ],[Province],[Address],[Linkman],[Phone],[IconPath],[RegistedDate],[PassDate],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark])values(20,'7610719e-111a-4b49-a32b-cd7a6162fc75','mreds',null,null,3,'dcx_zsu@q3q.com',326,1,0,0,0,0,0,0.0000,0.0000,null,null,null,null,null,null,null,null,null,null,'2013-9-25 15:44:51','2013-9-25 15:44:51',326,'mreds','2013-9-25 15:44:51',326,'mreds','2013-9-25 15:44:51',null)
      end
      else 
      begin 
           update [Dcx_Account] set [AccountUId]='7610719e-111a-4b49-a32b-cd7a6162fc75',[AccountName]='mreds',[CompanyName]=null,[AccountImgUrl]=null,[GroupId]=3,[Email]='dcx_zsu@q3q.com',[MainUserId]=326,[VersionId]=1,[AppCount]=0,[MenuCount]=0,[DbTableCount]=0,[TreeCount]=0,[MonthCount]=0,[TotalMoney]=0.0000,[PayedMoney]=0.0000,[BankAccount]=null,[Trade]=null,[CompanyUrl]=null,[Telephone]=null,[QQ]=null,[Province]=null,[Address]=null,[Linkman]=null,[Phone]=null,[IconPath]=null,[RegistedDate]='2013-9-25 15:44:51',[PassDate]='2013-9-25 15:44:51',[CreatorId]=326,[Creator]='mreds',[CreateTime]='2013-9-25 15:44:51',[EditorId]=326,[Editor]='mreds',[EditTime]='2013-9-25 15:44:51',[Remark]=null where  [AccountId]=20 
      end
      if (select count(1) from [Dcx_Account] where  [AccountId]=21  )<1 
      begin 
           Insert into [Dcx_Account] ([AccountId],[AccountUId],[AccountName],[CompanyName],[AccountImgUrl],[GroupId],[Email],[MainUserId],[VersionId],[AppCount],[MenuCount],[DbTableCount],[TreeCount],[MonthCount],[TotalMoney],[PayedMoney],[BankAccount],[Trade],[CompanyUrl],[Telephone],[QQ],[Province],[Address],[Linkman],[Phone],[IconPath],[RegistedDate],[PassDate],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark])values(21,'3f3a7528-34d9-4700-a2c8-8e8773820fa9','dcx_zsu',null,null,4,'dcx_zsu3@qq.com',327,1,0,0,0,0,0,0.0000,0.0000,null,null,null,null,null,null,null,null,null,null,'2013-9-25 15:48:28','2013-9-25 15:48:28',327,'dcx_zsu','2013-9-25 15:48:28',327,'dcx_zsu','2013-9-25 15:48:28',null)
      end
      else 
      begin 
           update [Dcx_Account] set [AccountUId]='3f3a7528-34d9-4700-a2c8-8e8773820fa9',[AccountName]='dcx_zsu',[CompanyName]=null,[AccountImgUrl]=null,[GroupId]=4,[Email]='dcx_zsu3@qq.com',[MainUserId]=327,[VersionId]=1,[AppCount]=0,[MenuCount]=0,[DbTableCount]=0,[TreeCount]=0,[MonthCount]=0,[TotalMoney]=0.0000,[PayedMoney]=0.0000,[BankAccount]=null,[Trade]=null,[CompanyUrl]=null,[Telephone]=null,[QQ]=null,[Province]=null,[Address]=null,[Linkman]=null,[Phone]=null,[IconPath]=null,[RegistedDate]='2013-9-25 15:48:28',[PassDate]='2013-9-25 15:48:28',[CreatorId]=327,[Creator]='dcx_zsu',[CreateTime]='2013-9-25 15:48:28',[EditorId]=327,[Editor]='dcx_zsu',[EditTime]='2013-9-25 15:48:28',[Remark]=null where  [AccountId]=21 
      end
      if (select count(1) from [Dcx_Account] where  [AccountId]=32  )<1 
      begin 
           Insert into [Dcx_Account] ([AccountId],[AccountUId],[AccountName],[CompanyName],[AccountImgUrl],[GroupId],[Email],[MainUserId],[VersionId],[AppCount],[MenuCount],[DbTableCount],[TreeCount],[MonthCount],[TotalMoney],[PayedMoney],[BankAccount],[Trade],[CompanyUrl],[Telephone],[QQ],[Province],[Address],[Linkman],[Phone],[IconPath],[RegistedDate],[PassDate],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark])values(32,'acb2230d-75e5-48fc-9a61-ab467373dda0','力天集团','力天集团','',1,'dcx_zsu@qq.com53',532,1,0,0,0,0,0,0.0000,0.0000,'','','http://a.dcxCreator.com','134653346765','497615600','中国-河南-驻马店','中国-河南-驻马店','邓存星','134653346765','','2013-11-26 15:05:58','2013-11-26 15:05:58',532,'邓存星','2013-11-26 15:05:58',532,'邓存星','2013-11-26 15:05:58','')
      end
      else 
      begin 
           update [Dcx_Account] set [AccountUId]='acb2230d-75e5-48fc-9a61-ab467373dda0',[AccountName]='力天集团',[CompanyName]='力天集团',[AccountImgUrl]='',[GroupId]=1,[Email]='dcx_zsu@qq.com53',[MainUserId]=532,[VersionId]=1,[AppCount]=0,[MenuCount]=0,[DbTableCount]=0,[TreeCount]=0,[MonthCount]=0,[TotalMoney]=0.0000,[PayedMoney]=0.0000,[BankAccount]='',[Trade]='',[CompanyUrl]='http://a.dcxCreator.com',[Telephone]='134653346765',[QQ]='497615600',[Province]='中国-河南-驻马店',[Address]='中国-河南-驻马店',[Linkman]='邓存星',[Phone]='134653346765',[IconPath]='',[RegistedDate]='2013-11-26 15:05:58',[PassDate]='2013-11-26 15:05:58',[CreatorId]=532,[Creator]='邓存星',[CreateTime]='2013-11-26 15:05:58',[EditorId]=532,[Editor]='邓存星',[EditTime]='2013-11-26 15:05:58',[Remark]='' where  [AccountId]=32 
      end
      if (select count(1) from [Dcx_Account] where  [AccountId]=33  )<1 
      begin 
           Insert into [Dcx_Account] ([AccountId],[AccountUId],[AccountName],[CompanyName],[AccountImgUrl],[GroupId],[Email],[MainUserId],[VersionId],[AppCount],[MenuCount],[DbTableCount],[TreeCount],[MonthCount],[TotalMoney],[PayedMoney],[BankAccount],[Trade],[CompanyUrl],[Telephone],[QQ],[Province],[Address],[Linkman],[Phone],[IconPath],[RegistedDate],[PassDate],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark])values(33,'f01e7542-2ae3-41d8-92e4-5f2560c90979','dsfdsf','dsfdsf','',1,'sdfsdf@sf.dsf',533,1,0,0,0,0,0,0.0000,0.0000,'','','http://a.dcxCreator.com','ddsfsf','sdf','中国-河南-驻马店','中国-河南-驻马店','asdas','ddsfsf','','2013-11-26 15:47:30','2013-11-26 15:47:30',533,'asdas','2013-11-26 15:47:30',533,'asdas','2013-11-26 15:47:30','')
      end
      else 
      begin 
           update [Dcx_Account] set [AccountUId]='f01e7542-2ae3-41d8-92e4-5f2560c90979',[AccountName]='dsfdsf',[CompanyName]='dsfdsf',[AccountImgUrl]='',[GroupId]=1,[Email]='sdfsdf@sf.dsf',[MainUserId]=533,[VersionId]=1,[AppCount]=0,[MenuCount]=0,[DbTableCount]=0,[TreeCount]=0,[MonthCount]=0,[TotalMoney]=0.0000,[PayedMoney]=0.0000,[BankAccount]='',[Trade]='',[CompanyUrl]='http://a.dcxCreator.com',[Telephone]='ddsfsf',[QQ]='sdf',[Province]='中国-河南-驻马店',[Address]='中国-河南-驻马店',[Linkman]='asdas',[Phone]='ddsfsf',[IconPath]='',[RegistedDate]='2013-11-26 15:47:30',[PassDate]='2013-11-26 15:47:30',[CreatorId]=533,[Creator]='asdas',[CreateTime]='2013-11-26 15:47:30',[EditorId]=533,[Editor]='asdas',[EditTime]='2013-11-26 15:47:30',[Remark]='' where  [AccountId]=33 
      end
      if (select count(1) from [Dcx_Account] where  [AccountId]=34  )<1 
      begin 
           Insert into [Dcx_Account] ([AccountId],[AccountUId],[AccountName],[CompanyName],[AccountImgUrl],[GroupId],[Email],[MainUserId],[VersionId],[AppCount],[MenuCount],[DbTableCount],[TreeCount],[MonthCount],[TotalMoney],[PayedMoney],[BankAccount],[Trade],[CompanyUrl],[Telephone],[QQ],[Province],[Address],[Linkman],[Phone],[IconPath],[RegistedDate],[PassDate],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark])values(34,'673aba56-6492-45ee-af4d-93e2f840741e','sf@qq.com','sf@qq.com','',1,'sf@qq.com',534,1,0,0,0,0,0,0.0000,0.0000,'','','http://a.dcxCreator.com','12232323','','中国-河南','中国-河南','sdfsdf','12232323','','2013-11-26 15:48:24','2013-11-26 15:48:24',534,'sdfsdf','2013-11-26 15:48:24',534,'sdfsdf','2013-11-26 15:48:24','')
      end
      else 
      begin 
           update [Dcx_Account] set [AccountUId]='673aba56-6492-45ee-af4d-93e2f840741e',[AccountName]='sf@qq.com',[CompanyName]='sf@qq.com',[AccountImgUrl]='',[GroupId]=1,[Email]='sf@qq.com',[MainUserId]=534,[VersionId]=1,[AppCount]=0,[MenuCount]=0,[DbTableCount]=0,[TreeCount]=0,[MonthCount]=0,[TotalMoney]=0.0000,[PayedMoney]=0.0000,[BankAccount]='',[Trade]='',[CompanyUrl]='http://a.dcxCreator.com',[Telephone]='12232323',[QQ]='',[Province]='中国-河南',[Address]='中国-河南',[Linkman]='sdfsdf',[Phone]='12232323',[IconPath]='',[RegistedDate]='2013-11-26 15:48:24',[PassDate]='2013-11-26 15:48:24',[CreatorId]=534,[Creator]='sdfsdf',[CreateTime]='2013-11-26 15:48:24',[EditorId]=534,[Editor]='sdfsdf',[EditTime]='2013-11-26 15:48:24',[Remark]='' where  [AccountId]=34 
      end
      if (select count(1) from [Dcx_Account] where  [AccountId]=35  )<1 
      begin 
           Insert into [Dcx_Account] ([AccountId],[AccountUId],[AccountName],[CompanyName],[AccountImgUrl],[GroupId],[Email],[MainUserId],[VersionId],[AppCount],[MenuCount],[DbTableCount],[TreeCount],[MonthCount],[TotalMoney],[PayedMoney],[BankAccount],[Trade],[CompanyUrl],[Telephone],[QQ],[Province],[Address],[Linkman],[Phone],[IconPath],[RegistedDate],[PassDate],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark])values(35,'9f3c3eeb-63af-46a9-afb6-e5a91abfcdbd','红星集团222','红星集团222','',1,'dcx_z3su@qq.com',535,1,0,0,0,0,0,0.0000,0.0000,'','','http://a.dcxCreator.com','0758-1232334','','广州','广州','ffff','0758-1232334','','2013-11-26 15:50:37','2013-11-26 15:50:37',535,'中国2','2013-11-26 15:50:37',535,'中国2','2013-11-26 15:50:37','')
      end
      else 
      begin 
           update [Dcx_Account] set [AccountUId]='9f3c3eeb-63af-46a9-afb6-e5a91abfcdbd',[AccountName]='红星集团222',[CompanyName]='红星集团222',[AccountImgUrl]='',[GroupId]=1,[Email]='dcx_z3su@qq.com',[MainUserId]=535,[VersionId]=1,[AppCount]=0,[MenuCount]=0,[DbTableCount]=0,[TreeCount]=0,[MonthCount]=0,[TotalMoney]=0.0000,[PayedMoney]=0.0000,[BankAccount]='',[Trade]='',[CompanyUrl]='http://a.dcxCreator.com',[Telephone]='0758-1232334',[QQ]='',[Province]='广州',[Address]='广州',[Linkman]='ffff',[Phone]='0758-1232334',[IconPath]='',[RegistedDate]='2013-11-26 15:50:37',[PassDate]='2013-11-26 15:50:37',[CreatorId]=535,[Creator]='中国2',[CreateTime]='2013-11-26 15:50:37',[EditorId]=535,[Editor]='中国2',[EditTime]='2013-11-26 15:50:37',[Remark]='' where  [AccountId]=35 
      end
      if (select count(1) from [Dcx_Account] where  [AccountId]=36  )<1 
      begin 
           Insert into [Dcx_Account] ([AccountId],[AccountUId],[AccountName],[CompanyName],[AccountImgUrl],[GroupId],[Email],[MainUserId],[VersionId],[AppCount],[MenuCount],[DbTableCount],[TreeCount],[MonthCount],[TotalMoney],[PayedMoney],[BankAccount],[Trade],[CompanyUrl],[Telephone],[QQ],[Province],[Address],[Linkman],[Phone],[IconPath],[RegistedDate],[PassDate],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark])values(36,'46c534c5-0a6c-4d6c-b362-e93c4e729e6d','红星集团','红星集团','',1,'dcx_z4su@qq.com',536,1,0,0,0,0,0,0.0000,0.0000,'','','http://a.dcxCreator.com','0758-1232334','','广州','广州','ffff','0758-1232334','','2013-11-26 15:53:22','2013-11-26 15:53:22',536,'中国1','2013-11-26 15:53:22',536,'中国1','2013-11-26 15:53:22','')
      end
      else 
      begin 
           update [Dcx_Account] set [AccountUId]='46c534c5-0a6c-4d6c-b362-e93c4e729e6d',[AccountName]='红星集团',[CompanyName]='红星集团',[AccountImgUrl]='',[GroupId]=1,[Email]='dcx_z4su@qq.com',[MainUserId]=536,[VersionId]=1,[AppCount]=0,[MenuCount]=0,[DbTableCount]=0,[TreeCount]=0,[MonthCount]=0,[TotalMoney]=0.0000,[PayedMoney]=0.0000,[BankAccount]='',[Trade]='',[CompanyUrl]='http://a.dcxCreator.com',[Telephone]='0758-1232334',[QQ]='',[Province]='广州',[Address]='广州',[Linkman]='ffff',[Phone]='0758-1232334',[IconPath]='',[RegistedDate]='2013-11-26 15:53:22',[PassDate]='2013-11-26 15:53:22',[CreatorId]=536,[Creator]='中国1',[CreateTime]='2013-11-26 15:53:22',[EditorId]=536,[Editor]='中国1',[EditTime]='2013-11-26 15:53:22',[Remark]='' where  [AccountId]=36 
      end
      if (select count(1) from [Dcx_Account] where  [AccountId]=37  )<1 
      begin 
           Insert into [Dcx_Account] ([AccountId],[AccountUId],[AccountName],[CompanyName],[AccountImgUrl],[GroupId],[Email],[MainUserId],[VersionId],[AppCount],[MenuCount],[DbTableCount],[TreeCount],[MonthCount],[TotalMoney],[PayedMoney],[BankAccount],[Trade],[CompanyUrl],[Telephone],[QQ],[Province],[Address],[Linkman],[Phone],[IconPath],[RegistedDate],[PassDate],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark])values(37,'d018d2fa-ce85-4757-a92a-6dbc13944044','sd','sd','',1,'dcx_5zsu@qq.com',537,1,0,0,0,0,0,0.0000,0.0000,'','','','0758-1232334','','广州','广州','sdf','0758-1232334','','2013-11-26 16:00:46','2013-11-26 16:00:46',537,'ghg','2013-11-26 16:00:46',537,'ghg','2013-11-26 16:00:46','')
      end
      else 
      begin 
           update [Dcx_Account] set [AccountUId]='d018d2fa-ce85-4757-a92a-6dbc13944044',[AccountName]='sd',[CompanyName]='sd',[AccountImgUrl]='',[GroupId]=1,[Email]='dcx_5zsu@qq.com',[MainUserId]=537,[VersionId]=1,[AppCount]=0,[MenuCount]=0,[DbTableCount]=0,[TreeCount]=0,[MonthCount]=0,[TotalMoney]=0.0000,[PayedMoney]=0.0000,[BankAccount]='',[Trade]='',[CompanyUrl]='',[Telephone]='0758-1232334',[QQ]='',[Province]='广州',[Address]='广州',[Linkman]='sdf',[Phone]='0758-1232334',[IconPath]='',[RegistedDate]='2013-11-26 16:00:46',[PassDate]='2013-11-26 16:00:46',[CreatorId]=537,[Creator]='ghg',[CreateTime]='2013-11-26 16:00:46',[EditorId]=537,[Editor]='ghg',[EditTime]='2013-11-26 16:00:46',[Remark]='' where  [AccountId]=37 
      end

     SET IDENTITY_INSERT [Dcx_Account] OFF 




 GO--mygofuck 

--Dcx_Company

     SET IDENTITY_INSERT [Dcx_Company] ON 
      if (select count(1) from [Dcx_Company] where  [CompanyId]=1  )<1 
      begin 
           Insert into [Dcx_Company] ([CompanyId],[CompanyCode],[CompanyName],[Telephone],[Address],[PostalCode],[Email],[URL],[Accounts],[Principal],[ComOrder],[Remark],[AccountId])values(1,'001','星宇科技','','','','','','','中国',0,'',1)
      end
      else 
      begin 
           update [Dcx_Company] set [CompanyCode]='001',[CompanyName]='星宇科技',[Telephone]='',[Address]='',[PostalCode]='',[Email]='',[URL]='',[Accounts]='',[Principal]='中国',[ComOrder]=0,[Remark]='',[AccountId]=1 where  [CompanyId]=1 
      end

     SET IDENTITY_INSERT [Dcx_Company] OFF 




 GO--mygofuck 

--Dcx_Dept

     SET IDENTITY_INSERT [Dcx_Dept] ON 
      if (select count(1) from [Dcx_Dept] where  [DeptId]=61  )<1 
      begin 
           Insert into [Dcx_Dept] ([DeptId],[DeptCode],[DeptName],[CompanyId],[DeptOrder],[ParentId],[Telephone],[PostalCode],[Address],[Email],[URL],[Accounts],[Principal],[Remark],[AccountId])values(61,'001004','财务部',1,5,0,'','','12','12','12','12',null,'',1)
      end
      else 
      begin 
           update [Dcx_Dept] set [DeptCode]='001004',[DeptName]='财务部',[CompanyId]=1,[DeptOrder]=5,[ParentId]=0,[Telephone]='',[PostalCode]='',[Address]='12',[Email]='12',[URL]='12',[Accounts]='12',[Principal]=null,[Remark]='',[AccountId]=1 where  [DeptId]=61 
      end
      if (select count(1) from [Dcx_Dept] where  [DeptId]=62  )<1 
      begin 
           Insert into [Dcx_Dept] ([DeptId],[DeptCode],[DeptName],[CompanyId],[DeptOrder],[ParentId],[Telephone],[PostalCode],[Address],[Email],[URL],[Accounts],[Principal],[Remark],[AccountId])values(62,'001001','总经理室',1,4,0,'001001','','','',null,null,null,'',1)
      end
      else 
      begin 
           update [Dcx_Dept] set [DeptCode]='001001',[DeptName]='总经理室',[CompanyId]=1,[DeptOrder]=4,[ParentId]=0,[Telephone]='001001',[PostalCode]='',[Address]='',[Email]='',[URL]=null,[Accounts]=null,[Principal]=null,[Remark]='',[AccountId]=1 where  [DeptId]=62 
      end
      if (select count(1) from [Dcx_Dept] where  [DeptId]=63  )<1 
      begin 
           Insert into [Dcx_Dept] ([DeptId],[DeptCode],[DeptName],[CompanyId],[DeptOrder],[ParentId],[Telephone],[PostalCode],[Address],[Email],[URL],[Accounts],[Principal],[Remark],[AccountId])values(63,'001002','市场部',1,5,0,'','','','',null,null,null,'',1)
      end
      else 
      begin 
           update [Dcx_Dept] set [DeptCode]='001002',[DeptName]='市场部',[CompanyId]=1,[DeptOrder]=5,[ParentId]=0,[Telephone]='',[PostalCode]='',[Address]='',[Email]='',[URL]=null,[Accounts]=null,[Principal]=null,[Remark]='',[AccountId]=1 where  [DeptId]=63 
      end
      if (select count(1) from [Dcx_Dept] where  [DeptId]=64  )<1 
      begin 
           Insert into [Dcx_Dept] ([DeptId],[DeptCode],[DeptName],[CompanyId],[DeptOrder],[ParentId],[Telephone],[PostalCode],[Address],[Email],[URL],[Accounts],[Principal],[Remark],[AccountId])values(64,'001003','行政部',1,4,0,'','','','',null,null,null,'',1)
      end
      else 
      begin 
           update [Dcx_Dept] set [DeptCode]='001003',[DeptName]='行政部',[CompanyId]=1,[DeptOrder]=4,[ParentId]=0,[Telephone]='',[PostalCode]='',[Address]='',[Email]='',[URL]=null,[Accounts]=null,[Principal]=null,[Remark]='',[AccountId]=1 where  [DeptId]=64 
      end
      if (select count(1) from [Dcx_Dept] where  [DeptId]=65  )<1 
      begin 
           Insert into [Dcx_Dept] ([DeptId],[DeptCode],[DeptName],[CompanyId],[DeptOrder],[ParentId],[Telephone],[PostalCode],[Address],[Email],[URL],[Accounts],[Principal],[Remark],[AccountId])values(65,'001005','总裁室',1,1,0,'','','','',null,null,null,'',1)
      end
      else 
      begin 
           update [Dcx_Dept] set [DeptCode]='001005',[DeptName]='总裁室',[CompanyId]=1,[DeptOrder]=1,[ParentId]=0,[Telephone]='',[PostalCode]='',[Address]='',[Email]='',[URL]=null,[Accounts]=null,[Principal]=null,[Remark]='',[AccountId]=1 where  [DeptId]=65 
      end
      if (select count(1) from [Dcx_Dept] where  [DeptId]=66  )<1 
      begin 
           Insert into [Dcx_Dept] ([DeptId],[DeptCode],[DeptName],[CompanyId],[DeptOrder],[ParentId],[Telephone],[PostalCode],[Address],[Email],[URL],[Accounts],[Principal],[Remark],[AccountId])values(66,'001006','人力资源部',1,6,0,'',null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Dept] set [DeptCode]='001006',[DeptName]='人力资源部',[CompanyId]=1,[DeptOrder]=6,[ParentId]=0,[Telephone]='',[PostalCode]=null,[Address]=null,[Email]=null,[URL]=null,[Accounts]=null,[Principal]=null,[Remark]=null,[AccountId]=1 where  [DeptId]=66 
      end
      if (select count(1) from [Dcx_Dept] where  [DeptId]=67  )<1 
      begin 
           Insert into [Dcx_Dept] ([DeptId],[DeptCode],[DeptName],[CompanyId],[DeptOrder],[ParentId],[Telephone],[PostalCode],[Address],[Email],[URL],[Accounts],[Principal],[Remark],[AccountId])values(67,'001007','销售部',1,8,0,'','','','',null,null,null,'',1)
      end
      else 
      begin 
           update [Dcx_Dept] set [DeptCode]='001007',[DeptName]='销售部',[CompanyId]=1,[DeptOrder]=8,[ParentId]=0,[Telephone]='',[PostalCode]='',[Address]='',[Email]='',[URL]=null,[Accounts]=null,[Principal]=null,[Remark]='',[AccountId]=1 where  [DeptId]=67 
      end
      if (select count(1) from [Dcx_Dept] where  [DeptId]=68  )<1 
      begin 
           Insert into [Dcx_Dept] ([DeptId],[DeptCode],[DeptName],[CompanyId],[DeptOrder],[ParentId],[Telephone],[PostalCode],[Address],[Email],[URL],[Accounts],[Principal],[Remark],[AccountId])values(68,'001008','后勤部',1,8,0,'',null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Dept] set [DeptCode]='001008',[DeptName]='后勤部',[CompanyId]=1,[DeptOrder]=8,[ParentId]=0,[Telephone]='',[PostalCode]=null,[Address]=null,[Email]=null,[URL]=null,[Accounts]=null,[Principal]=null,[Remark]=null,[AccountId]=1 where  [DeptId]=68 
      end
      if (select count(1) from [Dcx_Dept] where  [DeptId]=69  )<1 
      begin 
           Insert into [Dcx_Dept] ([DeptId],[DeptCode],[DeptName],[CompanyId],[DeptOrder],[ParentId],[Telephone],[PostalCode],[Address],[Email],[URL],[Accounts],[Principal],[Remark],[AccountId])values(69,'001009','海外事业部',1,9,0,'',null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Dept] set [DeptCode]='001009',[DeptName]='海外事业部',[CompanyId]=1,[DeptOrder]=9,[ParentId]=0,[Telephone]='',[PostalCode]=null,[Address]=null,[Email]=null,[URL]=null,[Accounts]=null,[Principal]=null,[Remark]=null,[AccountId]=1 where  [DeptId]=69 
      end
      if (select count(1) from [Dcx_Dept] where  [DeptId]=70  )<1 
      begin 
           Insert into [Dcx_Dept] ([DeptId],[DeptCode],[DeptName],[CompanyId],[DeptOrder],[ParentId],[Telephone],[PostalCode],[Address],[Email],[URL],[Accounts],[Principal],[Remark],[AccountId])values(70,'001010','项目部',1,10,0,'',null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Dept] set [DeptCode]='001010',[DeptName]='项目部',[CompanyId]=1,[DeptOrder]=10,[ParentId]=0,[Telephone]='',[PostalCode]=null,[Address]=null,[Email]=null,[URL]=null,[Accounts]=null,[Principal]=null,[Remark]=null,[AccountId]=1 where  [DeptId]=70 
      end
      if (select count(1) from [Dcx_Dept] where  [DeptId]=71  )<1 
      begin 
           Insert into [Dcx_Dept] ([DeptId],[DeptCode],[DeptName],[CompanyId],[DeptOrder],[ParentId],[Telephone],[PostalCode],[Address],[Email],[URL],[Accounts],[Principal],[Remark],[AccountId])values(71,'001011','研发部',1,11,0,'','','','',null,null,null,'',1)
      end
      else 
      begin 
           update [Dcx_Dept] set [DeptCode]='001011',[DeptName]='研发部',[CompanyId]=1,[DeptOrder]=11,[ParentId]=0,[Telephone]='',[PostalCode]='',[Address]='',[Email]='',[URL]=null,[Accounts]=null,[Principal]=null,[Remark]='',[AccountId]=1 where  [DeptId]=71 
      end
      if (select count(1) from [Dcx_Dept] where  [DeptId]=72  )<1 
      begin 
           Insert into [Dcx_Dept] ([DeptId],[DeptCode],[DeptName],[CompanyId],[DeptOrder],[ParentId],[Telephone],[PostalCode],[Address],[Email],[URL],[Accounts],[Principal],[Remark],[AccountId])values(72,'001012','采购部',1,12,0,'',null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Dept] set [DeptCode]='001012',[DeptName]='采购部',[CompanyId]=1,[DeptOrder]=12,[ParentId]=0,[Telephone]='',[PostalCode]=null,[Address]=null,[Email]=null,[URL]=null,[Accounts]=null,[Principal]=null,[Remark]=null,[AccountId]=1 where  [DeptId]=72 
      end
      if (select count(1) from [Dcx_Dept] where  [DeptId]=73  )<1 
      begin 
           Insert into [Dcx_Dept] ([DeptId],[DeptCode],[DeptName],[CompanyId],[DeptOrder],[ParentId],[Telephone],[PostalCode],[Address],[Email],[URL],[Accounts],[Principal],[Remark],[AccountId])values(73,'001013','客服部',1,13,0,'',null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Dept] set [DeptCode]='001013',[DeptName]='客服部',[CompanyId]=1,[DeptOrder]=13,[ParentId]=0,[Telephone]='',[PostalCode]=null,[Address]=null,[Email]=null,[URL]=null,[Accounts]=null,[Principal]=null,[Remark]=null,[AccountId]=1 where  [DeptId]=73 
      end
      if (select count(1) from [Dcx_Dept] where  [DeptId]=74  )<1 
      begin 
           Insert into [Dcx_Dept] ([DeptId],[DeptCode],[DeptName],[CompanyId],[DeptOrder],[ParentId],[Telephone],[PostalCode],[Address],[Email],[URL],[Accounts],[Principal],[Remark],[AccountId])values(74,'001014','技术部',1,14,0,'',null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Dept] set [DeptCode]='001014',[DeptName]='技术部',[CompanyId]=1,[DeptOrder]=14,[ParentId]=0,[Telephone]='',[PostalCode]=null,[Address]=null,[Email]=null,[URL]=null,[Accounts]=null,[Principal]=null,[Remark]=null,[AccountId]=1 where  [DeptId]=74 
      end
      if (select count(1) from [Dcx_Dept] where  [DeptId]=75  )<1 
      begin 
           Insert into [Dcx_Dept] ([DeptId],[DeptCode],[DeptName],[CompanyId],[DeptOrder],[ParentId],[Telephone],[PostalCode],[Address],[Email],[URL],[Accounts],[Principal],[Remark],[AccountId])values(75,'001015','产品部',1,15,0,'',null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Dept] set [DeptCode]='001015',[DeptName]='产品部',[CompanyId]=1,[DeptOrder]=15,[ParentId]=0,[Telephone]='',[PostalCode]=null,[Address]=null,[Email]=null,[URL]=null,[Accounts]=null,[Principal]=null,[Remark]=null,[AccountId]=1 where  [DeptId]=75 
      end
      if (select count(1) from [Dcx_Dept] where  [DeptId]=76  )<1 
      begin 
           Insert into [Dcx_Dept] ([DeptId],[DeptCode],[DeptName],[CompanyId],[DeptOrder],[ParentId],[Telephone],[PostalCode],[Address],[Email],[URL],[Accounts],[Principal],[Remark],[AccountId])values(76,'001011001','广东项目部',1,1,71,'','','','',null,null,null,'',1)
      end
      else 
      begin 
           update [Dcx_Dept] set [DeptCode]='001011001',[DeptName]='广东项目部',[CompanyId]=1,[DeptOrder]=1,[ParentId]=71,[Telephone]='',[PostalCode]='',[Address]='',[Email]='',[URL]=null,[Accounts]=null,[Principal]=null,[Remark]='',[AccountId]=1 where  [DeptId]=76 
      end
      if (select count(1) from [Dcx_Dept] where  [DeptId]=78  )<1 
      begin 
           Insert into [Dcx_Dept] ([DeptId],[DeptCode],[DeptName],[CompanyId],[DeptOrder],[ParentId],[Telephone],[PostalCode],[Address],[Email],[URL],[Accounts],[Principal],[Remark],[AccountId])values(78,'001011002','江西项目部',1,1,71,'','','','',null,null,null,'',1)
      end
      else 
      begin 
           update [Dcx_Dept] set [DeptCode]='001011002',[DeptName]='江西项目部',[CompanyId]=1,[DeptOrder]=1,[ParentId]=71,[Telephone]='',[PostalCode]='',[Address]='',[Email]='',[URL]=null,[Accounts]=null,[Principal]=null,[Remark]='',[AccountId]=1 where  [DeptId]=78 
      end
      if (select count(1) from [Dcx_Dept] where  [DeptId]=80  )<1 
      begin 
           Insert into [Dcx_Dept] ([DeptId],[DeptCode],[DeptName],[CompanyId],[DeptOrder],[ParentId],[Telephone],[PostalCode],[Address],[Email],[URL],[Accounts],[Principal],[Remark],[AccountId])values(80,'001011003','湖南项目部',1,1,71,'',null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Dept] set [DeptCode]='001011003',[DeptName]='湖南项目部',[CompanyId]=1,[DeptOrder]=1,[ParentId]=71,[Telephone]='',[PostalCode]=null,[Address]=null,[Email]=null,[URL]=null,[Accounts]=null,[Principal]=null,[Remark]=null,[AccountId]=1 where  [DeptId]=80 
      end

     SET IDENTITY_INSERT [Dcx_Dept] OFF 




 GO--mygofuck 

--Dcx_Role

     SET IDENTITY_INSERT [Dcx_Role] ON 
      if (select count(1) from [Dcx_Role] where  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_Role] ([RoleId],[RoleName],[SystemRoleType],[ParentId],[RoleOrder],[IsDisplay],[RoleTypeId],[CreatorId],[Creator],[CreateTime],[Remark],[EditorId],[EditTime],[AccountId])values(1,'Public',4,0,1,0,1,3,'admin','2013-7-10 2:43:44',null,3,'2013-7-10 2:43:44',1)
      end
      else 
      begin 
           update [Dcx_Role] set [RoleName]='Public',[SystemRoleType]=4,[ParentId]=0,[RoleOrder]=1,[IsDisplay]=0,[RoleTypeId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-7-10 2:43:44',[Remark]=null,[EditorId]=3,[EditTime]='2013-7-10 2:43:44',[AccountId]=1 where  [RoleId]=1 
      end
      if (select count(1) from [Dcx_Role] where  [RoleId]=2  )<1 
      begin 
           Insert into [Dcx_Role] ([RoleId],[RoleName],[SystemRoleType],[ParentId],[RoleOrder],[IsDisplay],[RoleTypeId],[CreatorId],[Creator],[CreateTime],[Remark],[EditorId],[EditTime],[AccountId])values(2,'Guest',5,0,2,null,1,3,'admin','2013-7-10 2:43:44',null,3,'2013-7-10 2:43:44',1)
      end
      else 
      begin 
           update [Dcx_Role] set [RoleName]='Guest',[SystemRoleType]=5,[ParentId]=0,[RoleOrder]=2,[IsDisplay]=null,[RoleTypeId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-7-10 2:43:44',[Remark]=null,[EditorId]=3,[EditTime]='2013-7-10 2:43:44',[AccountId]=1 where  [RoleId]=2 
      end
      if (select count(1) from [Dcx_Role] where  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_Role] ([RoleId],[RoleName],[SystemRoleType],[ParentId],[RoleOrder],[IsDisplay],[RoleTypeId],[CreatorId],[Creator],[CreateTime],[Remark],[EditorId],[EditTime],[AccountId])values(3,'系统管理员',2,0,3,null,1,3,'admin','2013-7-10 2:43:44','sdsds',0,null,1)
      end
      else 
      begin 
           update [Dcx_Role] set [RoleName]='系统管理员',[SystemRoleType]=2,[ParentId]=0,[RoleOrder]=3,[IsDisplay]=null,[RoleTypeId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-7-10 2:43:44',[Remark]='sdsds',[EditorId]=0,[EditTime]=null,[AccountId]=1 where  [RoleId]=3 
      end
      if (select count(1) from [Dcx_Role] where  [RoleId]=4  )<1 
      begin 
           Insert into [Dcx_Role] ([RoleId],[RoleName],[SystemRoleType],[ParentId],[RoleOrder],[IsDisplay],[RoleTypeId],[CreatorId],[Creator],[CreateTime],[Remark],[EditorId],[EditTime],[AccountId])values(4,'普通员工',0,0,4,null,1,3,'admin','2013-7-10 2:43:44','',0,null,1)
      end
      else 
      begin 
           update [Dcx_Role] set [RoleName]='普通员工',[SystemRoleType]=0,[ParentId]=0,[RoleOrder]=4,[IsDisplay]=null,[RoleTypeId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-7-10 2:43:44',[Remark]='',[EditorId]=0,[EditTime]=null,[AccountId]=1 where  [RoleId]=4 
      end
      if (select count(1) from [Dcx_Role] where  [RoleId]=5  )<1 
      begin 
           Insert into [Dcx_Role] ([RoleId],[RoleName],[SystemRoleType],[ParentId],[RoleOrder],[IsDisplay],[RoleTypeId],[CreatorId],[Creator],[CreateTime],[Remark],[EditorId],[EditTime],[AccountId])values(5,'部门领导',0,0,5,null,1,3,'admin','2013-7-10 2:43:44','sds',0,null,1)
      end
      else 
      begin 
           update [Dcx_Role] set [RoleName]='部门领导',[SystemRoleType]=0,[ParentId]=0,[RoleOrder]=5,[IsDisplay]=null,[RoleTypeId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-7-10 2:43:44',[Remark]='sds',[EditorId]=0,[EditTime]=null,[AccountId]=1 where  [RoleId]=5 
      end
      if (select count(1) from [Dcx_Role] where  [RoleId]=6  )<1 
      begin 
           Insert into [Dcx_Role] ([RoleId],[RoleName],[SystemRoleType],[ParentId],[RoleOrder],[IsDisplay],[RoleTypeId],[CreatorId],[Creator],[CreateTime],[Remark],[EditorId],[EditTime],[AccountId])values(6,'总经理',0,0,6,null,1,3,'admin','2013-7-10 2:43:44',null,3,'2013-7-10 2:43:44',1)
      end
      else 
      begin 
           update [Dcx_Role] set [RoleName]='总经理',[SystemRoleType]=0,[ParentId]=0,[RoleOrder]=6,[IsDisplay]=null,[RoleTypeId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-7-10 2:43:44',[Remark]=null,[EditorId]=3,[EditTime]='2013-7-10 2:43:44',[AccountId]=1 where  [RoleId]=6 
      end
      if (select count(1) from [Dcx_Role] where  [RoleId]=7  )<1 
      begin 
           Insert into [Dcx_Role] ([RoleId],[RoleName],[SystemRoleType],[ParentId],[RoleOrder],[IsDisplay],[RoleTypeId],[CreatorId],[Creator],[CreateTime],[Remark],[EditorId],[EditTime],[AccountId])values(7,'董事长',0,0,7,null,1,3,'admin','2013-7-10 2:43:44','',3,'2013-7-10 2:43:44',1)
      end
      else 
      begin 
           update [Dcx_Role] set [RoleName]='董事长',[SystemRoleType]=0,[ParentId]=0,[RoleOrder]=7,[IsDisplay]=null,[RoleTypeId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-7-10 2:43:44',[Remark]='',[EditorId]=3,[EditTime]='2013-7-10 2:43:44',[AccountId]=1 where  [RoleId]=7 
      end
      if (select count(1) from [Dcx_Role] where  [RoleId]=8  )<1 
      begin 
           Insert into [Dcx_Role] ([RoleId],[RoleName],[SystemRoleType],[ParentId],[RoleOrder],[IsDisplay],[RoleTypeId],[CreatorId],[Creator],[CreateTime],[Remark],[EditorId],[EditTime],[AccountId])values(8,'财务总监',0,0,8,null,1,3,'admin','2013-7-10 2:43:44',null,3,'2013-7-10 2:43:44',1)
      end
      else 
      begin 
           update [Dcx_Role] set [RoleName]='财务总监',[SystemRoleType]=0,[ParentId]=0,[RoleOrder]=8,[IsDisplay]=null,[RoleTypeId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-7-10 2:43:44',[Remark]=null,[EditorId]=3,[EditTime]='2013-7-10 2:43:44',[AccountId]=1 where  [RoleId]=8 
      end
      if (select count(1) from [Dcx_Role] where  [RoleId]=124  )<1 
      begin 
           Insert into [Dcx_Role] ([RoleId],[RoleName],[SystemRoleType],[ParentId],[RoleOrder],[IsDisplay],[RoleTypeId],[CreatorId],[Creator],[CreateTime],[Remark],[EditorId],[EditTime],[AccountId])values(124,'办公室负责人',0,0,23,null,1,3,'admin','2013-7-10 2:43:44',null,3,'2013-7-10 2:43:44',1)
      end
      else 
      begin 
           update [Dcx_Role] set [RoleName]='办公室负责人',[SystemRoleType]=0,[ParentId]=0,[RoleOrder]=23,[IsDisplay]=null,[RoleTypeId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-7-10 2:43:44',[Remark]=null,[EditorId]=3,[EditTime]='2013-7-10 2:43:44',[AccountId]=1 where  [RoleId]=124 
      end
      if (select count(1) from [Dcx_Role] where  [RoleId]=136  )<1 
      begin 
           Insert into [Dcx_Role] ([RoleId],[RoleName],[SystemRoleType],[ParentId],[RoleOrder],[IsDisplay],[RoleTypeId],[CreatorId],[Creator],[CreateTime],[Remark],[EditorId],[EditTime],[AccountId])values(136,'秘书',0,0,31,null,1,3,'admin','2013-7-10 2:43:44',null,3,'2013-7-10 2:43:44',1)
      end
      else 
      begin 
           update [Dcx_Role] set [RoleName]='秘书',[SystemRoleType]=0,[ParentId]=0,[RoleOrder]=31,[IsDisplay]=null,[RoleTypeId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-7-10 2:43:44',[Remark]=null,[EditorId]=3,[EditTime]='2013-7-10 2:43:44',[AccountId]=1 where  [RoleId]=136 
      end
      if (select count(1) from [Dcx_Role] where  [RoleId]=141  )<1 
      begin 
           Insert into [Dcx_Role] ([RoleId],[RoleName],[SystemRoleType],[ParentId],[RoleOrder],[IsDisplay],[RoleTypeId],[CreatorId],[Creator],[CreateTime],[Remark],[EditorId],[EditTime],[AccountId])values(141,'档案管理员',0,0,34,null,1,3,'admin','2013-7-10 2:43:44','',3,'2013-7-10 2:43:44',1)
      end
      else 
      begin 
           update [Dcx_Role] set [RoleName]='档案管理员',[SystemRoleType]=0,[ParentId]=0,[RoleOrder]=34,[IsDisplay]=null,[RoleTypeId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-7-10 2:43:44',[Remark]='',[EditorId]=3,[EditTime]='2013-7-10 2:43:44',[AccountId]=1 where  [RoleId]=141 
      end
      if (select count(1) from [Dcx_Role] where  [RoleId]=152  )<1 
      begin 
           Insert into [Dcx_Role] ([RoleId],[RoleName],[SystemRoleType],[ParentId],[RoleOrder],[IsDisplay],[RoleTypeId],[CreatorId],[Creator],[CreateTime],[Remark],[EditorId],[EditTime],[AccountId])values(152,'销售经理',0,0,43,null,1,3,'admin','2013-7-10 2:43:44',null,3,'2013-7-10 2:43:44',1)
      end
      else 
      begin 
           update [Dcx_Role] set [RoleName]='销售经理',[SystemRoleType]=0,[ParentId]=0,[RoleOrder]=43,[IsDisplay]=null,[RoleTypeId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-7-10 2:43:44',[Remark]=null,[EditorId]=3,[EditTime]='2013-7-10 2:43:44',[AccountId]=1 where  [RoleId]=152 
      end
      if (select count(1) from [Dcx_Role] where  [RoleId]=153  )<1 
      begin 
           Insert into [Dcx_Role] ([RoleId],[RoleName],[SystemRoleType],[ParentId],[RoleOrder],[IsDisplay],[RoleTypeId],[CreatorId],[Creator],[CreateTime],[Remark],[EditorId],[EditTime],[AccountId])values(153,'CEO',0,0,44,null,1,3,'admin','2013-7-10 2:43:44',null,3,'2013-7-10 2:43:44',1)
      end
      else 
      begin 
           update [Dcx_Role] set [RoleName]='CEO',[SystemRoleType]=0,[ParentId]=0,[RoleOrder]=44,[IsDisplay]=null,[RoleTypeId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-7-10 2:43:44',[Remark]=null,[EditorId]=3,[EditTime]='2013-7-10 2:43:44',[AccountId]=1 where  [RoleId]=153 
      end
      if (select count(1) from [Dcx_Role] where  [RoleId]=154  )<1 
      begin 
           Insert into [Dcx_Role] ([RoleId],[RoleName],[SystemRoleType],[ParentId],[RoleOrder],[IsDisplay],[RoleTypeId],[CreatorId],[Creator],[CreateTime],[Remark],[EditorId],[EditTime],[AccountId])values(154,'销售员',0,0,45,null,1,3,'admin','2013-7-10 2:43:44',null,3,'2013-7-10 2:43:44',1)
      end
      else 
      begin 
           update [Dcx_Role] set [RoleName]='销售员',[SystemRoleType]=0,[ParentId]=0,[RoleOrder]=45,[IsDisplay]=null,[RoleTypeId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-7-10 2:43:44',[Remark]=null,[EditorId]=3,[EditTime]='2013-7-10 2:43:44',[AccountId]=1 where  [RoleId]=154 
      end
      if (select count(1) from [Dcx_Role] where  [RoleId]=155  )<1 
      begin 
           Insert into [Dcx_Role] ([RoleId],[RoleName],[SystemRoleType],[ParentId],[RoleOrder],[IsDisplay],[RoleTypeId],[CreatorId],[Creator],[CreateTime],[Remark],[EditorId],[EditTime],[AccountId])values(155,'部门主管',0,0,46,null,1,3,'admin','2013-7-10 2:43:44',null,3,'2013-7-10 2:43:44',1)
      end
      else 
      begin 
           update [Dcx_Role] set [RoleName]='部门主管',[SystemRoleType]=0,[ParentId]=0,[RoleOrder]=46,[IsDisplay]=null,[RoleTypeId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-7-10 2:43:44',[Remark]=null,[EditorId]=3,[EditTime]='2013-7-10 2:43:44',[AccountId]=1 where  [RoleId]=155 
      end
      if (select count(1) from [Dcx_Role] where  [RoleId]=157  )<1 
      begin 
           Insert into [Dcx_Role] ([RoleId],[RoleName],[SystemRoleType],[ParentId],[RoleOrder],[IsDisplay],[RoleTypeId],[CreatorId],[Creator],[CreateTime],[Remark],[EditorId],[EditTime],[AccountId])values(157,'财务经理',0,0,48,null,1,3,'admin','2013-7-10 2:43:44',null,3,'2013-7-10 2:43:44',1)
      end
      else 
      begin 
           update [Dcx_Role] set [RoleName]='财务经理',[SystemRoleType]=0,[ParentId]=0,[RoleOrder]=48,[IsDisplay]=null,[RoleTypeId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-7-10 2:43:44',[Remark]=null,[EditorId]=3,[EditTime]='2013-7-10 2:43:44',[AccountId]=1 where  [RoleId]=157 
      end
      if (select count(1) from [Dcx_Role] where  [RoleId]=158  )<1 
      begin 
           Insert into [Dcx_Role] ([RoleId],[RoleName],[SystemRoleType],[ParentId],[RoleOrder],[IsDisplay],[RoleTypeId],[CreatorId],[Creator],[CreateTime],[Remark],[EditorId],[EditTime],[AccountId])values(158,'财务主管',0,0,49,null,1,3,'admin','2013-7-10 2:43:44',null,3,'2013-7-10 2:43:44',1)
      end
      else 
      begin 
           update [Dcx_Role] set [RoleName]='财务主管',[SystemRoleType]=0,[ParentId]=0,[RoleOrder]=49,[IsDisplay]=null,[RoleTypeId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-7-10 2:43:44',[Remark]=null,[EditorId]=3,[EditTime]='2013-7-10 2:43:44',[AccountId]=1 where  [RoleId]=158 
      end
      if (select count(1) from [Dcx_Role] where  [RoleId]=159  )<1 
      begin 
           Insert into [Dcx_Role] ([RoleId],[RoleName],[SystemRoleType],[ParentId],[RoleOrder],[IsDisplay],[RoleTypeId],[CreatorId],[Creator],[CreateTime],[Remark],[EditorId],[EditTime],[AccountId])values(159,'人力资源总监',0,0,50,null,1,3,'admin','2013-7-10 2:43:44',null,3,'2013-7-10 2:43:44',1)
      end
      else 
      begin 
           update [Dcx_Role] set [RoleName]='人力资源总监',[SystemRoleType]=0,[ParentId]=0,[RoleOrder]=50,[IsDisplay]=null,[RoleTypeId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-7-10 2:43:44',[Remark]=null,[EditorId]=3,[EditTime]='2013-7-10 2:43:44',[AccountId]=1 where  [RoleId]=159 
      end
      if (select count(1) from [Dcx_Role] where  [RoleId]=160  )<1 
      begin 
           Insert into [Dcx_Role] ([RoleId],[RoleName],[SystemRoleType],[ParentId],[RoleOrder],[IsDisplay],[RoleTypeId],[CreatorId],[Creator],[CreateTime],[Remark],[EditorId],[EditTime],[AccountId])values(160,'图书管理员',0,0,51,null,1,3,'admin','2013-7-10 2:43:44',null,3,'2013-7-10 2:43:44',1)
      end
      else 
      begin 
           update [Dcx_Role] set [RoleName]='图书管理员',[SystemRoleType]=0,[ParentId]=0,[RoleOrder]=51,[IsDisplay]=null,[RoleTypeId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-7-10 2:43:44',[Remark]=null,[EditorId]=3,[EditTime]='2013-7-10 2:43:44',[AccountId]=1 where  [RoleId]=160 
      end
      if (select count(1) from [Dcx_Role] where  [RoleId]=161  )<1 
      begin 
           Insert into [Dcx_Role] ([RoleId],[RoleName],[SystemRoleType],[ParentId],[RoleOrder],[IsDisplay],[RoleTypeId],[CreatorId],[Creator],[CreateTime],[Remark],[EditorId],[EditTime],[AccountId])values(161,'车辆管理处',0,0,52,null,1,3,'admin','2013-7-10 2:43:44',null,3,'2013-7-10 2:43:44',1)
      end
      else 
      begin 
           update [Dcx_Role] set [RoleName]='车辆管理处',[SystemRoleType]=0,[ParentId]=0,[RoleOrder]=52,[IsDisplay]=null,[RoleTypeId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-7-10 2:43:44',[Remark]=null,[EditorId]=3,[EditTime]='2013-7-10 2:43:44',[AccountId]=1 where  [RoleId]=161 
      end
      if (select count(1) from [Dcx_Role] where  [RoleId]=162  )<1 
      begin 
           Insert into [Dcx_Role] ([RoleId],[RoleName],[SystemRoleType],[ParentId],[RoleOrder],[IsDisplay],[RoleTypeId],[CreatorId],[Creator],[CreateTime],[Remark],[EditorId],[EditTime],[AccountId])values(162,'文书',0,0,53,null,1,3,'admin','2013-7-10 2:43:44',null,3,'2013-7-10 2:43:44',1)
      end
      else 
      begin 
           update [Dcx_Role] set [RoleName]='文书',[SystemRoleType]=0,[ParentId]=0,[RoleOrder]=53,[IsDisplay]=null,[RoleTypeId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-7-10 2:43:44',[Remark]=null,[EditorId]=3,[EditTime]='2013-7-10 2:43:44',[AccountId]=1 where  [RoleId]=162 
      end
      if (select count(1) from [Dcx_Role] where  [RoleId]=163  )<1 
      begin 
           Insert into [Dcx_Role] ([RoleId],[RoleName],[SystemRoleType],[ParentId],[RoleOrder],[IsDisplay],[RoleTypeId],[CreatorId],[Creator],[CreateTime],[Remark],[EditorId],[EditTime],[AccountId])values(163,'法务人员',0,0,54,null,1,3,'admin','2013-7-10 2:43:44',null,3,'2013-7-10 2:43:44',1)
      end
      else 
      begin 
           update [Dcx_Role] set [RoleName]='法务人员',[SystemRoleType]=0,[ParentId]=0,[RoleOrder]=54,[IsDisplay]=null,[RoleTypeId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-7-10 2:43:44',[Remark]=null,[EditorId]=3,[EditTime]='2013-7-10 2:43:44',[AccountId]=1 where  [RoleId]=163 
      end
      if (select count(1) from [Dcx_Role] where  [RoleId]=164  )<1 
      begin 
           Insert into [Dcx_Role] ([RoleId],[RoleName],[SystemRoleType],[ParentId],[RoleOrder],[IsDisplay],[RoleTypeId],[CreatorId],[Creator],[CreateTime],[Remark],[EditorId],[EditTime],[AccountId])values(164,'出纳',0,0,55,null,1,3,'admin','2013-7-10 2:43:44',null,3,'2013-7-10 2:43:44',1)
      end
      else 
      begin 
           update [Dcx_Role] set [RoleName]='出纳',[SystemRoleType]=0,[ParentId]=0,[RoleOrder]=55,[IsDisplay]=null,[RoleTypeId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-7-10 2:43:44',[Remark]=null,[EditorId]=3,[EditTime]='2013-7-10 2:43:44',[AccountId]=1 where  [RoleId]=164 
      end
      if (select count(1) from [Dcx_Role] where  [RoleId]=166  )<1 
      begin 
           Insert into [Dcx_Role] ([RoleId],[RoleName],[SystemRoleType],[ParentId],[RoleOrder],[IsDisplay],[RoleTypeId],[CreatorId],[Creator],[CreateTime],[Remark],[EditorId],[EditTime],[AccountId])values(166,'资产管理员',0,0,56,null,1,3,'admin','2013-7-10 2:43:44',null,3,'2013-7-10 2:43:44',1)
      end
      else 
      begin 
           update [Dcx_Role] set [RoleName]='资产管理员',[SystemRoleType]=0,[ParentId]=0,[RoleOrder]=56,[IsDisplay]=null,[RoleTypeId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-7-10 2:43:44',[Remark]=null,[EditorId]=3,[EditTime]='2013-7-10 2:43:44',[AccountId]=1 where  [RoleId]=166 
      end
      if (select count(1) from [Dcx_Role] where  [RoleId]=167  )<1 
      begin 
           Insert into [Dcx_Role] ([RoleId],[RoleName],[SystemRoleType],[ParentId],[RoleOrder],[IsDisplay],[RoleTypeId],[CreatorId],[Creator],[CreateTime],[Remark],[EditorId],[EditTime],[AccountId])values(167,'行政副总',0,0,57,null,1,3,'admin','2013-7-10 2:43:44',null,3,'2013-7-10 2:43:44',1)
      end
      else 
      begin 
           update [Dcx_Role] set [RoleName]='行政副总',[SystemRoleType]=0,[ParentId]=0,[RoleOrder]=57,[IsDisplay]=null,[RoleTypeId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-7-10 2:43:44',[Remark]=null,[EditorId]=3,[EditTime]='2013-7-10 2:43:44',[AccountId]=1 where  [RoleId]=167 
      end
      if (select count(1) from [Dcx_Role] where  [RoleId]=169  )<1 
      begin 
           Insert into [Dcx_Role] ([RoleId],[RoleName],[SystemRoleType],[ParentId],[RoleOrder],[IsDisplay],[RoleTypeId],[CreatorId],[Creator],[CreateTime],[Remark],[EditorId],[EditTime],[AccountId])values(169,'人事专员',0,0,58,null,1,3,'admin','2013-7-10 2:43:44',null,3,'2013-7-10 2:43:44',1)
      end
      else 
      begin 
           update [Dcx_Role] set [RoleName]='人事专员',[SystemRoleType]=0,[ParentId]=0,[RoleOrder]=58,[IsDisplay]=null,[RoleTypeId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-7-10 2:43:44',[Remark]=null,[EditorId]=3,[EditTime]='2013-7-10 2:43:44',[AccountId]=1 where  [RoleId]=169 
      end
      if (select count(1) from [Dcx_Role] where  [RoleId]=171  )<1 
      begin 
           Insert into [Dcx_Role] ([RoleId],[RoleName],[SystemRoleType],[ParentId],[RoleOrder],[IsDisplay],[RoleTypeId],[CreatorId],[Creator],[CreateTime],[Remark],[EditorId],[EditTime],[AccountId])values(171,'项目负责人',0,0,59,null,1,3,'admin','2013-7-10 2:43:44',null,3,'2013-7-10 2:43:44',1)
      end
      else 
      begin 
           update [Dcx_Role] set [RoleName]='项目负责人',[SystemRoleType]=0,[ParentId]=0,[RoleOrder]=59,[IsDisplay]=null,[RoleTypeId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-7-10 2:43:44',[Remark]=null,[EditorId]=3,[EditTime]='2013-7-10 2:43:44',[AccountId]=1 where  [RoleId]=171 
      end
      if (select count(1) from [Dcx_Role] where  [RoleId]=172  )<1 
      begin 
           Insert into [Dcx_Role] ([RoleId],[RoleName],[SystemRoleType],[ParentId],[RoleOrder],[IsDisplay],[RoleTypeId],[CreatorId],[Creator],[CreateTime],[Remark],[EditorId],[EditTime],[AccountId])values(172,'项目经理',0,0,60,null,1,3,'admin','2013-7-10 2:43:44',null,3,'2013-7-10 2:43:44',1)
      end
      else 
      begin 
           update [Dcx_Role] set [RoleName]='项目经理',[SystemRoleType]=0,[ParentId]=0,[RoleOrder]=60,[IsDisplay]=null,[RoleTypeId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-7-10 2:43:44',[Remark]=null,[EditorId]=3,[EditTime]='2013-7-10 2:43:44',[AccountId]=1 where  [RoleId]=172 
      end
      if (select count(1) from [Dcx_Role] where  [RoleId]=174  )<1 
      begin 
           Insert into [Dcx_Role] ([RoleId],[RoleName],[SystemRoleType],[ParentId],[RoleOrder],[IsDisplay],[RoleTypeId],[CreatorId],[Creator],[CreateTime],[Remark],[EditorId],[EditTime],[AccountId])values(174,'客户部经理',0,0,62,null,1,3,'admin','2013-7-10 2:43:44',null,3,'2013-7-10 2:43:44',1)
      end
      else 
      begin 
           update [Dcx_Role] set [RoleName]='客户部经理',[SystemRoleType]=0,[ParentId]=0,[RoleOrder]=62,[IsDisplay]=null,[RoleTypeId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-7-10 2:43:44',[Remark]=null,[EditorId]=3,[EditTime]='2013-7-10 2:43:44',[AccountId]=1 where  [RoleId]=174 
      end
      if (select count(1) from [Dcx_Role] where  [RoleId]=175  )<1 
      begin 
           Insert into [Dcx_Role] ([RoleId],[RoleName],[SystemRoleType],[ParentId],[RoleOrder],[IsDisplay],[RoleTypeId],[CreatorId],[Creator],[CreateTime],[Remark],[EditorId],[EditTime],[AccountId])values(175,'市场总监',0,0,63,null,1,3,'admin','2013-7-10 2:43:44',null,3,'2013-7-10 2:43:44',1)
      end
      else 
      begin 
           update [Dcx_Role] set [RoleName]='市场总监',[SystemRoleType]=0,[ParentId]=0,[RoleOrder]=63,[IsDisplay]=null,[RoleTypeId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-7-10 2:43:44',[Remark]=null,[EditorId]=3,[EditTime]='2013-7-10 2:43:44',[AccountId]=1 where  [RoleId]=175 
      end
      if (select count(1) from [Dcx_Role] where  [RoleId]=176  )<1 
      begin 
           Insert into [Dcx_Role] ([RoleId],[RoleName],[SystemRoleType],[ParentId],[RoleOrder],[IsDisplay],[RoleTypeId],[CreatorId],[Creator],[CreateTime],[Remark],[EditorId],[EditTime],[AccountId])values(176,'市场主管',0,0,64,null,1,3,'admin','2013-7-10 2:43:44',null,3,'2013-7-10 2:43:44',1)
      end
      else 
      begin 
           update [Dcx_Role] set [RoleName]='市场主管',[SystemRoleType]=0,[ParentId]=0,[RoleOrder]=64,[IsDisplay]=null,[RoleTypeId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-7-10 2:43:44',[Remark]=null,[EditorId]=3,[EditTime]='2013-7-10 2:43:44',[AccountId]=1 where  [RoleId]=176 
      end
      if (select count(1) from [Dcx_Role] where  [RoleId]=177  )<1 
      begin 
           Insert into [Dcx_Role] ([RoleId],[RoleName],[SystemRoleType],[ParentId],[RoleOrder],[IsDisplay],[RoleTypeId],[CreatorId],[Creator],[CreateTime],[Remark],[EditorId],[EditTime],[AccountId])values(177,'工资管理员',0,0,65,null,1,3,'admin','2013-7-10 2:43:44',null,3,'2013-7-10 2:43:44',1)
      end
      else 
      begin 
           update [Dcx_Role] set [RoleName]='工资管理员',[SystemRoleType]=0,[ParentId]=0,[RoleOrder]=65,[IsDisplay]=null,[RoleTypeId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-7-10 2:43:44',[Remark]=null,[EditorId]=3,[EditTime]='2013-7-10 2:43:44',[AccountId]=1 where  [RoleId]=177 
      end
      if (select count(1) from [Dcx_Role] where  [RoleId]=178  )<1 
      begin 
           Insert into [Dcx_Role] ([RoleId],[RoleName],[SystemRoleType],[ParentId],[RoleOrder],[IsDisplay],[RoleTypeId],[CreatorId],[Creator],[CreateTime],[Remark],[EditorId],[EditTime],[AccountId])values(178,'行政部负责人',0,0,66,null,1,3,'admin','2013-7-10 2:43:44',null,3,'2013-7-10 2:43:44',1)
      end
      else 
      begin 
           update [Dcx_Role] set [RoleName]='行政部负责人',[SystemRoleType]=0,[ParentId]=0,[RoleOrder]=66,[IsDisplay]=null,[RoleTypeId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-7-10 2:43:44',[Remark]=null,[EditorId]=3,[EditTime]='2013-7-10 2:43:44',[AccountId]=1 where  [RoleId]=178 
      end
      if (select count(1) from [Dcx_Role] where  [RoleId]=179  )<1 
      begin 
           Insert into [Dcx_Role] ([RoleId],[RoleName],[SystemRoleType],[ParentId],[RoleOrder],[IsDisplay],[RoleTypeId],[CreatorId],[Creator],[CreateTime],[Remark],[EditorId],[EditTime],[AccountId])values(179,'改卷人',0,0,67,null,1,3,'admin','2013-7-10 2:43:44',null,3,'2013-7-10 2:43:44',1)
      end
      else 
      begin 
           update [Dcx_Role] set [RoleName]='改卷人',[SystemRoleType]=0,[ParentId]=0,[RoleOrder]=67,[IsDisplay]=null,[RoleTypeId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-7-10 2:43:44',[Remark]=null,[EditorId]=3,[EditTime]='2013-7-10 2:43:44',[AccountId]=1 where  [RoleId]=179 
      end
      if (select count(1) from [Dcx_Role] where  [RoleId]=200  )<1 
      begin 
           Insert into [Dcx_Role] ([RoleId],[RoleName],[SystemRoleType],[ParentId],[RoleOrder],[IsDisplay],[RoleTypeId],[CreatorId],[Creator],[CreateTime],[Remark],[EditorId],[EditTime],[AccountId])values(200,'工作流设计人员',3,0,85,1,1,3,'admin','2013-7-10 2:43:44',null,3,'2013-7-10 2:43:44',1)
      end
      else 
      begin 
           update [Dcx_Role] set [RoleName]='工作流设计人员',[SystemRoleType]=3,[ParentId]=0,[RoleOrder]=85,[IsDisplay]=1,[RoleTypeId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-7-10 2:43:44',[Remark]=null,[EditorId]=3,[EditTime]='2013-7-10 2:43:44',[AccountId]=1 where  [RoleId]=200 
      end
      if (select count(1) from [Dcx_Role] where  [RoleId]=201  )<1 
      begin 
           Insert into [Dcx_Role] ([RoleId],[RoleName],[SystemRoleType],[ParentId],[RoleOrder],[IsDisplay],[RoleTypeId],[CreatorId],[Creator],[CreateTime],[Remark],[EditorId],[EditTime],[AccountId])values(201,'应用开发人员',1,0,85,1,1,3,'admin','2013-7-10 2:43:44',null,3,'2013-7-10 2:43:44',1)
      end
      else 
      begin 
           update [Dcx_Role] set [RoleName]='应用开发人员',[SystemRoleType]=1,[ParentId]=0,[RoleOrder]=85,[IsDisplay]=1,[RoleTypeId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-7-10 2:43:44',[Remark]=null,[EditorId]=3,[EditTime]='2013-7-10 2:43:44',[AccountId]=1 where  [RoleId]=201 
      end
      if (select count(1) from [Dcx_Role] where  [RoleId]=203  )<1 
      begin 
           Insert into [Dcx_Role] ([RoleId],[RoleName],[SystemRoleType],[ParentId],[RoleOrder],[IsDisplay],[RoleTypeId],[CreatorId],[Creator],[CreateTime],[Remark],[EditorId],[EditTime],[AccountId])values(203,'知识管理员',0,0,67,1,1,3,'admin','2013-7-10 2:43:44',null,3,'2013-7-10 2:43:44',1)
      end
      else 
      begin 
           update [Dcx_Role] set [RoleName]='知识管理员',[SystemRoleType]=0,[ParentId]=0,[RoleOrder]=67,[IsDisplay]=1,[RoleTypeId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-7-10 2:43:44',[Remark]=null,[EditorId]=3,[EditTime]='2013-7-10 2:43:44',[AccountId]=1 where  [RoleId]=203 
      end
      if (select count(1) from [Dcx_Role] where  [RoleId]=204  )<1 
      begin 
           Insert into [Dcx_Role] ([RoleId],[RoleName],[SystemRoleType],[ParentId],[RoleOrder],[IsDisplay],[RoleTypeId],[CreatorId],[Creator],[CreateTime],[Remark],[EditorId],[EditTime],[AccountId])values(204,'新闻发布员',1,0,85,1,1,3,'admin','2013-7-10 2:43:44',null,3,'2013-7-10 2:43:44',1)
      end
      else 
      begin 
           update [Dcx_Role] set [RoleName]='新闻发布员',[SystemRoleType]=1,[ParentId]=0,[RoleOrder]=85,[IsDisplay]=1,[RoleTypeId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-7-10 2:43:44',[Remark]=null,[EditorId]=3,[EditTime]='2013-7-10 2:43:44',[AccountId]=1 where  [RoleId]=204 
      end

     SET IDENTITY_INSERT [Dcx_Role] OFF 




 GO--mygofuck 

--Dcx_Position

     SET IDENTITY_INSERT [Dcx_Position] ON 
      if (select count(1) from [Dcx_Position] where  [PositionId]=18  )<1 
      begin 
           Insert into [Dcx_Position] ([PositionId],[PositionCode],[PositionName],[ParentId],[OrderNO],[Remark],[AccountId])values(18,'01','普通员工',0,1,'',1)
      end
      else 
      begin 
           update [Dcx_Position] set [PositionCode]='01',[PositionName]='普通员工',[ParentId]=0,[OrderNO]=1,[Remark]='',[AccountId]=1 where  [PositionId]=18 
      end
      if (select count(1) from [Dcx_Position] where  [PositionId]=19  )<1 
      begin 
           Insert into [Dcx_Position] ([PositionId],[PositionCode],[PositionName],[ParentId],[OrderNO],[Remark],[AccountId])values(19,'02','文员',0,2,'',1)
      end
      else 
      begin 
           update [Dcx_Position] set [PositionCode]='02',[PositionName]='文员',[ParentId]=0,[OrderNO]=2,[Remark]='',[AccountId]=1 where  [PositionId]=19 
      end
      if (select count(1) from [Dcx_Position] where  [PositionId]=20  )<1 
      begin 
           Insert into [Dcx_Position] ([PositionId],[PositionCode],[PositionName],[ParentId],[OrderNO],[Remark],[AccountId])values(20,'03','助理',0,3,'',1)
      end
      else 
      begin 
           update [Dcx_Position] set [PositionCode]='03',[PositionName]='助理',[ParentId]=0,[OrderNO]=3,[Remark]='',[AccountId]=1 where  [PositionId]=20 
      end
      if (select count(1) from [Dcx_Position] where  [PositionId]=21  )<1 
      begin 
           Insert into [Dcx_Position] ([PositionId],[PositionCode],[PositionName],[ParentId],[OrderNO],[Remark],[AccountId])values(21,'04','秘书',0,4,'',1)
      end
      else 
      begin 
           update [Dcx_Position] set [PositionCode]='04',[PositionName]='秘书',[ParentId]=0,[OrderNO]=4,[Remark]='',[AccountId]=1 where  [PositionId]=21 
      end
      if (select count(1) from [Dcx_Position] where  [PositionId]=22  )<1 
      begin 
           Insert into [Dcx_Position] ([PositionId],[PositionCode],[PositionName],[ParentId],[OrderNO],[Remark],[AccountId])values(22,'05','组长',0,5,'',1)
      end
      else 
      begin 
           update [Dcx_Position] set [PositionCode]='05',[PositionName]='组长',[ParentId]=0,[OrderNO]=5,[Remark]='',[AccountId]=1 where  [PositionId]=22 
      end
      if (select count(1) from [Dcx_Position] where  [PositionId]=23  )<1 
      begin 
           Insert into [Dcx_Position] ([PositionId],[PositionCode],[PositionName],[ParentId],[OrderNO],[Remark],[AccountId])values(23,'06','部门主管',0,6,'',1)
      end
      else 
      begin 
           update [Dcx_Position] set [PositionCode]='06',[PositionName]='部门主管',[ParentId]=0,[OrderNO]=6,[Remark]='',[AccountId]=1 where  [PositionId]=23 
      end
      if (select count(1) from [Dcx_Position] where  [PositionId]=24  )<1 
      begin 
           Insert into [Dcx_Position] ([PositionId],[PositionCode],[PositionName],[ParentId],[OrderNO],[Remark],[AccountId])values(24,'07','部门经理',0,7,'',1)
      end
      else 
      begin 
           update [Dcx_Position] set [PositionCode]='07',[PositionName]='部门经理',[ParentId]=0,[OrderNO]=7,[Remark]='',[AccountId]=1 where  [PositionId]=24 
      end
      if (select count(1) from [Dcx_Position] where  [PositionId]=25  )<1 
      begin 
           Insert into [Dcx_Position] ([PositionId],[PositionCode],[PositionName],[ParentId],[OrderNO],[Remark],[AccountId])values(25,'08','项目经理',0,8,'',1)
      end
      else 
      begin 
           update [Dcx_Position] set [PositionCode]='08',[PositionName]='项目经理',[ParentId]=0,[OrderNO]=8,[Remark]='',[AccountId]=1 where  [PositionId]=25 
      end
      if (select count(1) from [Dcx_Position] where  [PositionId]=26  )<1 
      begin 
           Insert into [Dcx_Position] ([PositionId],[PositionCode],[PositionName],[ParentId],[OrderNO],[Remark],[AccountId])values(26,'09','总经理',0,9,'',1)
      end
      else 
      begin 
           update [Dcx_Position] set [PositionCode]='09',[PositionName]='总经理',[ParentId]=0,[OrderNO]=9,[Remark]='',[AccountId]=1 where  [PositionId]=26 
      end
      if (select count(1) from [Dcx_Position] where  [PositionId]=27  )<1 
      begin 
           Insert into [Dcx_Position] ([PositionId],[PositionCode],[PositionName],[ParentId],[OrderNO],[Remark],[AccountId])values(27,'10','副经理',0,10,'',1)
      end
      else 
      begin 
           update [Dcx_Position] set [PositionCode]='10',[PositionName]='副经理',[ParentId]=0,[OrderNO]=10,[Remark]='',[AccountId]=1 where  [PositionId]=27 
      end
      if (select count(1) from [Dcx_Position] where  [PositionId]=28  )<1 
      begin 
           Insert into [Dcx_Position] ([PositionId],[PositionCode],[PositionName],[ParentId],[OrderNO],[Remark],[AccountId])values(28,'11','总裁',0,null,null,1)
      end
      else 
      begin 
           update [Dcx_Position] set [PositionCode]='11',[PositionName]='总裁',[ParentId]=0,[OrderNO]=null,[Remark]=null,[AccountId]=1 where  [PositionId]=28 
      end
      if (select count(1) from [Dcx_Position] where  [PositionId]=29  )<1 
      begin 
           Insert into [Dcx_Position] ([PositionId],[PositionCode],[PositionName],[ParentId],[OrderNO],[Remark],[AccountId])values(29,'12','副总裁',0,null,null,1)
      end
      else 
      begin 
           update [Dcx_Position] set [PositionCode]='12',[PositionName]='副总裁',[ParentId]=0,[OrderNO]=null,[Remark]=null,[AccountId]=1 where  [PositionId]=29 
      end
      if (select count(1) from [Dcx_Position] where  [PositionId]=30  )<1 
      begin 
           Insert into [Dcx_Position] ([PositionId],[PositionCode],[PositionName],[ParentId],[OrderNO],[Remark],[AccountId])values(30,'13','会计',0,null,null,1)
      end
      else 
      begin 
           update [Dcx_Position] set [PositionCode]='13',[PositionName]='会计',[ParentId]=0,[OrderNO]=null,[Remark]=null,[AccountId]=1 where  [PositionId]=30 
      end
      if (select count(1) from [Dcx_Position] where  [PositionId]=31  )<1 
      begin 
           Insert into [Dcx_Position] ([PositionId],[PositionCode],[PositionName],[ParentId],[OrderNO],[Remark],[AccountId])values(31,'14','出纳',0,null,null,1)
      end
      else 
      begin 
           update [Dcx_Position] set [PositionCode]='14',[PositionName]='出纳',[ParentId]=0,[OrderNO]=null,[Remark]=null,[AccountId]=1 where  [PositionId]=31 
      end
      if (select count(1) from [Dcx_Position] where  [PositionId]=32  )<1 
      begin 
           Insert into [Dcx_Position] ([PositionId],[PositionCode],[PositionName],[ParentId],[OrderNO],[Remark],[AccountId])values(32,'15','CFO',0,null,null,1)
      end
      else 
      begin 
           update [Dcx_Position] set [PositionCode]='15',[PositionName]='CFO',[ParentId]=0,[OrderNO]=null,[Remark]=null,[AccountId]=1 where  [PositionId]=32 
      end
      if (select count(1) from [Dcx_Position] where  [PositionId]=33  )<1 
      begin 
           Insert into [Dcx_Position] ([PositionId],[PositionCode],[PositionName],[ParentId],[OrderNO],[Remark],[AccountId])values(33,'16','COO',0,null,null,1)
      end
      else 
      begin 
           update [Dcx_Position] set [PositionCode]='16',[PositionName]='COO',[ParentId]=0,[OrderNO]=null,[Remark]=null,[AccountId]=1 where  [PositionId]=33 
      end
      if (select count(1) from [Dcx_Position] where  [PositionId]=34  )<1 
      begin 
           Insert into [Dcx_Position] ([PositionId],[PositionCode],[PositionName],[ParentId],[OrderNO],[Remark],[AccountId])values(34,'17','人事专员',0,null,null,1)
      end
      else 
      begin 
           update [Dcx_Position] set [PositionCode]='17',[PositionName]='人事专员',[ParentId]=0,[OrderNO]=null,[Remark]=null,[AccountId]=1 where  [PositionId]=34 
      end
      if (select count(1) from [Dcx_Position] where  [PositionId]=35  )<1 
      begin 
           Insert into [Dcx_Position] ([PositionId],[PositionCode],[PositionName],[ParentId],[OrderNO],[Remark],[AccountId])values(35,'18','项目经理',0,null,null,1)
      end
      else 
      begin 
           update [Dcx_Position] set [PositionCode]='18',[PositionName]='项目经理',[ParentId]=0,[OrderNO]=null,[Remark]=null,[AccountId]=1 where  [PositionId]=35 
      end
      if (select count(1) from [Dcx_Position] where  [PositionId]=36  )<1 
      begin 
           Insert into [Dcx_Position] ([PositionId],[PositionCode],[PositionName],[ParentId],[OrderNO],[Remark],[AccountId])values(36,'19','项目助理',0,null,null,1)
      end
      else 
      begin 
           update [Dcx_Position] set [PositionCode]='19',[PositionName]='项目助理',[ParentId]=0,[OrderNO]=null,[Remark]=null,[AccountId]=1 where  [PositionId]=36 
      end
      if (select count(1) from [Dcx_Position] where  [PositionId]=37  )<1 
      begin 
           Insert into [Dcx_Position] ([PositionId],[PositionCode],[PositionName],[ParentId],[OrderNO],[Remark],[AccountId])values(37,'20','CTO',0,null,null,1)
      end
      else 
      begin 
           update [Dcx_Position] set [PositionCode]='20',[PositionName]='CTO',[ParentId]=0,[OrderNO]=null,[Remark]=null,[AccountId]=1 where  [PositionId]=37 
      end

     SET IDENTITY_INSERT [Dcx_Position] OFF 




 GO--mygofuck 

--Dcx_UserGroup

     SET IDENTITY_INSERT [Dcx_UserGroup] ON 
      if (select count(1) from [Dcx_UserGroup] where  [GroupId]=1  )<1 
      begin 
           Insert into [Dcx_UserGroup] ([GroupId],[GroupName],[IsSystem],[Remark])values(1,'管理员',1,null)
      end
      else 
      begin 
           update [Dcx_UserGroup] set [GroupName]='管理员',[IsSystem]=1,[Remark]=null where  [GroupId]=1 
      end
      if (select count(1) from [Dcx_UserGroup] where  [GroupId]=2  )<1 
      begin 
           Insert into [Dcx_UserGroup] ([GroupId],[GroupName],[IsSystem],[Remark])values(2,'游客',0,null)
      end
      else 
      begin 
           update [Dcx_UserGroup] set [GroupName]='游客',[IsSystem]=0,[Remark]=null where  [GroupId]=2 
      end
      if (select count(1) from [Dcx_UserGroup] where  [GroupId]=3  )<1 
      begin 
           Insert into [Dcx_UserGroup] ([GroupId],[GroupName],[IsSystem],[Remark])values(3,'等待验证会员',0,null)
      end
      else 
      begin 
           update [Dcx_UserGroup] set [GroupName]='等待验证会员',[IsSystem]=0,[Remark]=null where  [GroupId]=3 
      end
      if (select count(1) from [Dcx_UserGroup] where  [GroupId]=4  )<1 
      begin 
           Insert into [Dcx_UserGroup] ([GroupId],[GroupName],[IsSystem],[Remark])values(4,'注册会员',0,null)
      end
      else 
      begin 
           update [Dcx_UserGroup] set [GroupName]='注册会员',[IsSystem]=0,[Remark]=null where  [GroupId]=4 
      end
      if (select count(1) from [Dcx_UserGroup] where  [GroupId]=5  )<1 
      begin 
           Insert into [Dcx_UserGroup] ([GroupId],[GroupName],[IsSystem],[Remark])values(5,'付费会员',0,null)
      end
      else 
      begin 
           update [Dcx_UserGroup] set [GroupName]='付费会员',[IsSystem]=0,[Remark]=null where  [GroupId]=5 
      end
      if (select count(1) from [Dcx_UserGroup] where  [GroupId]=6  )<1 
      begin 
           Insert into [Dcx_UserGroup] ([GroupId],[GroupName],[IsSystem],[Remark])values(6,'高级会员',0,null)
      end
      else 
      begin 
           update [Dcx_UserGroup] set [GroupName]='高级会员',[IsSystem]=0,[Remark]=null where  [GroupId]=6 
      end
      if (select count(1) from [Dcx_UserGroup] where  [GroupId]=7  )<1 
      begin 
           Insert into [Dcx_UserGroup] ([GroupId],[GroupName],[IsSystem],[Remark])values(7,'金牌会员',0,null)
      end
      else 
      begin 
           update [Dcx_UserGroup] set [GroupName]='金牌会员',[IsSystem]=0,[Remark]=null where  [GroupId]=7 
      end
      if (select count(1) from [Dcx_UserGroup] where  [GroupId]=8  )<1 
      begin 
           Insert into [Dcx_UserGroup] ([GroupId],[GroupName],[IsSystem],[Remark])values(8,'元老',0,null)
      end
      else 
      begin 
           update [Dcx_UserGroup] set [GroupName]='元老',[IsSystem]=0,[Remark]=null where  [GroupId]=8 
      end
      if (select count(1) from [Dcx_UserGroup] where  [GroupId]=9  )<1 
      begin 
           Insert into [Dcx_UserGroup] ([GroupId],[GroupName],[IsSystem],[Remark])values(9,'禁止访问系统',0,null)
      end
      else 
      begin 
           update [Dcx_UserGroup] set [GroupName]='禁止访问系统',[IsSystem]=0,[Remark]=null where  [GroupId]=9 
      end
      if (select count(1) from [Dcx_UserGroup] where  [GroupId]=10  )<1 
      begin 
           Insert into [Dcx_UserGroup] ([GroupId],[GroupName],[IsSystem],[Remark])values(10,'禁止 IP',0,null)
      end
      else 
      begin 
           update [Dcx_UserGroup] set [GroupName]='禁止 IP',[IsSystem]=0,[Remark]=null where  [GroupId]=10 
      end
      if (select count(1) from [Dcx_UserGroup] where  [GroupId]=11  )<1 
      begin 
           Insert into [Dcx_UserGroup] ([GroupId],[GroupName],[IsSystem],[Remark])values(11,'已过期，没付费',0,null)
      end
      else 
      begin 
           update [Dcx_UserGroup] set [GroupName]='已过期，没付费',[IsSystem]=0,[Remark]=null where  [GroupId]=11 
      end
      if (select count(1) from [Dcx_UserGroup] where  [GroupId]=12  )<1 
      begin 
           Insert into [Dcx_UserGroup] ([GroupId],[GroupName],[IsSystem],[Remark])values(12,'临时用户',0,null)
      end
      else 
      begin 
           update [Dcx_UserGroup] set [GroupName]='临时用户',[IsSystem]=0,[Remark]=null where  [GroupId]=12 
      end
      if (select count(1) from [Dcx_UserGroup] where  [GroupId]=13  )<1 
      begin 
           Insert into [Dcx_UserGroup] ([GroupId],[GroupName],[IsSystem],[Remark])values(13,'聊天室的化身',0,null)
      end
      else 
      begin 
           update [Dcx_UserGroup] set [GroupName]='聊天室的化身',[IsSystem]=0,[Remark]=null where  [GroupId]=13 
      end
      if (select count(1) from [Dcx_UserGroup] where  [GroupId]=14  )<1 
      begin 
           Insert into [Dcx_UserGroup] ([GroupId],[GroupName],[IsSystem],[Remark])values(14,'被邀请用户',0,null)
      end
      else 
      begin 
           update [Dcx_UserGroup] set [GroupName]='被邀请用户',[IsSystem]=0,[Remark]=null where  [GroupId]=14 
      end
      if (select count(1) from [Dcx_UserGroup] where  [GroupId]=15  )<1 
      begin 
           Insert into [Dcx_UserGroup] ([GroupId],[GroupName],[IsSystem],[Remark])values(15,'普通用户',0,null)
      end
      else 
      begin 
           update [Dcx_UserGroup] set [GroupName]='普通用户',[IsSystem]=0,[Remark]=null where  [GroupId]=15 
      end

     SET IDENTITY_INSERT [Dcx_UserGroup] OFF 




 GO--mygofuck 

--Dcx_User

     SET IDENTITY_INSERT [Dcx_User] ON 
      if (select count(1) from [Dcx_User] where  [UserId]=3  )<1 
      begin 
           Insert into [Dcx_User] ([UserId],[UserGuId],[UserName],[UpperName],[RealName],[DcxUserName],[Email],[Address],[GroupId],[AccountId],[IsAccountCreator],[CurSystemId],[EmployeeId],[DeptId],[PositionId],[SuperAdmin],[CanLogin],[IP],[RestrictIp],[VisitTime],[Online],[PWD],[LoginDate],[UserOrder],[Sex],[Telephone],[Status],[RegistedDate],[Phone],[Birthday],[Style],[IsNeedKey],[Caste],[Http],[IconPath],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SelftHomePage],[SelftNavMenu],[SelftSearch],[StyleId],[AcceptStrangerIM],[Remark],[DiskSize],[InviteCode],[TopMenuId])values(3,'a3026d23-33c8-4d90-a281-3cf38b29ad9e','admin','ADMIN','邓存星','admin','dcx_zsu389@qq.com','',15,1,1,45,1,63,18,1,1,'192.167.1.101,192.166.12.2,127.0.0.1,192.168.1.100',0,0,0,'98-E6-D1-95-49-D6-55-04-B2-08-08-18-18-AC-43-F8','1900-1-1 0:00:00',1,'男','020-84724752',null,'2013-9-2 0:00:00','','2013-10-7 0:00:00',0,0,0,'http://www.googoa.cn',null,null,'admin','2011-9-5 11:26:16',null,'admin','2013-11-25 15:48:51',null,null,null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_User] set [UserGuId]='a3026d23-33c8-4d90-a281-3cf38b29ad9e',[UserName]='admin',[UpperName]='ADMIN',[RealName]='邓存星',[DcxUserName]='admin',[Email]='dcx_zsu389@qq.com',[Address]='',[GroupId]=15,[AccountId]=1,[IsAccountCreator]=1,[CurSystemId]=45,[EmployeeId]=1,[DeptId]=63,[PositionId]=18,[SuperAdmin]=1,[CanLogin]=1,[IP]='192.167.1.101,192.166.12.2,127.0.0.1,192.168.1.100',[RestrictIp]=0,[VisitTime]=0,[Online]=0,[PWD]='98-E6-D1-95-49-D6-55-04-B2-08-08-18-18-AC-43-F8',[LoginDate]='1900-1-1 0:00:00',[UserOrder]=1,[Sex]='男',[Telephone]='020-84724752',[Status]=null,[RegistedDate]='2013-9-2 0:00:00',[Phone]='',[Birthday]='2013-10-7 0:00:00',[Style]=0,[IsNeedKey]=0,[Caste]=0,[Http]='http://www.googoa.cn',[IconPath]=null,[CreatorId]=null,[Creator]='admin',[CreateTime]='2011-9-5 11:26:16',[EditorId]=null,[Editor]='admin',[EditTime]='2013-11-25 15:48:51',[SelftHomePage]=null,[SelftNavMenu]=null,[SelftSearch]=null,[StyleId]=null,[AcceptStrangerIM]=null,[Remark]=null,[DiskSize]=null,[InviteCode]=null,[TopMenuId]=null where  [UserId]=3 
      end
      if (select count(1) from [Dcx_User] where  [UserId]=5  )<1 
      begin 
           Insert into [Dcx_User] ([UserId],[UserGuId],[UserName],[UpperName],[RealName],[DcxUserName],[Email],[Address],[GroupId],[AccountId],[IsAccountCreator],[CurSystemId],[EmployeeId],[DeptId],[PositionId],[SuperAdmin],[CanLogin],[IP],[RestrictIp],[VisitTime],[Online],[PWD],[LoginDate],[UserOrder],[Sex],[Telephone],[Status],[RegistedDate],[Phone],[Birthday],[Style],[IsNeedKey],[Caste],[Http],[IconPath],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SelftHomePage],[SelftNavMenu],[SelftSearch],[StyleId],[AcceptStrangerIM],[Remark],[DiskSize],[InviteCode],[TopMenuId])values(5,'63930874-112c-47c0-bad5-3e8d085a52af','tester','TESTER','tester',null,'dcx_zs1u6@qq.com','',1,1,0,1,7,62,33,0,1,null,0,0,0,'60-94-86-A3-E9-1F-DD-A2-66-5E-3B-DD-F4-13-F5-01','1900-1-1 0:00:00',1,'男','sss',null,null,'','1985-7-17 0:00:00',0,0,0,'http://www.googoa.cns',null,null,'admin','2011-9-5 11:26:16',null,'admin','2013-9-2 3:45:12',null,null,null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_User] set [UserGuId]='63930874-112c-47c0-bad5-3e8d085a52af',[UserName]='tester',[UpperName]='TESTER',[RealName]='tester',[DcxUserName]=null,[Email]='dcx_zs1u6@qq.com',[Address]='',[GroupId]=1,[AccountId]=1,[IsAccountCreator]=0,[CurSystemId]=1,[EmployeeId]=7,[DeptId]=62,[PositionId]=33,[SuperAdmin]=0,[CanLogin]=1,[IP]=null,[RestrictIp]=0,[VisitTime]=0,[Online]=0,[PWD]='60-94-86-A3-E9-1F-DD-A2-66-5E-3B-DD-F4-13-F5-01',[LoginDate]='1900-1-1 0:00:00',[UserOrder]=1,[Sex]='男',[Telephone]='sss',[Status]=null,[RegistedDate]=null,[Phone]='',[Birthday]='1985-7-17 0:00:00',[Style]=0,[IsNeedKey]=0,[Caste]=0,[Http]='http://www.googoa.cns',[IconPath]=null,[CreatorId]=null,[Creator]='admin',[CreateTime]='2011-9-5 11:26:16',[EditorId]=null,[Editor]='admin',[EditTime]='2013-9-2 3:45:12',[SelftHomePage]=null,[SelftNavMenu]=null,[SelftSearch]=null,[StyleId]=null,[AcceptStrangerIM]=null,[Remark]=null,[DiskSize]=null,[InviteCode]=null,[TopMenuId]=null where  [UserId]=5 
      end

     SET IDENTITY_INSERT [Dcx_User] OFF 




 GO--mygofuck 

--Dcx_UserInRole

     SET IDENTITY_INSERT [Dcx_UserInRole] ON 
      if (select count(1) from [Dcx_UserInRole] where  [UserRoleId]=7  )<1 
      begin 
           Insert into [Dcx_UserInRole] ([UserRoleId],[UserId],[RoleId],[IsMainRole],[UserName],[AccountId])values(7,3,1,0,'admin',1)
      end
      else 
      begin 
           update [Dcx_UserInRole] set [UserId]=3,[RoleId]=1,[IsMainRole]=0,[UserName]='admin',[AccountId]=1 where  [UserRoleId]=7 
      end
      if (select count(1) from [Dcx_UserInRole] where  [UserRoleId]=13  )<1 
      begin 
           Insert into [Dcx_UserInRole] ([UserRoleId],[UserId],[RoleId],[IsMainRole],[UserName],[AccountId])values(13,3,3,1,'admin',1)
      end
      else 
      begin 
           update [Dcx_UserInRole] set [UserId]=3,[RoleId]=3,[IsMainRole]=1,[UserName]='admin',[AccountId]=1 where  [UserRoleId]=13 
      end
      if (select count(1) from [Dcx_UserInRole] where  [UserRoleId]=14  )<1 
      begin 
           Insert into [Dcx_UserInRole] ([UserRoleId],[UserId],[RoleId],[IsMainRole],[UserName],[AccountId])values(14,3,4,0,'admin',1)
      end
      else 
      begin 
           update [Dcx_UserInRole] set [UserId]=3,[RoleId]=4,[IsMainRole]=0,[UserName]='admin',[AccountId]=1 where  [UserRoleId]=14 
      end

     SET IDENTITY_INSERT [Dcx_UserInRole] OFF 




 GO--mygofuck 

--WF_FlowSort

     SET IDENTITY_INSERT [WF_FlowSort] ON 
      if (select count(1) from [WF_FlowSort] where  [SortId]=25  )<1 
      begin 
           Insert into [WF_FlowSort] ([SortId],[SortNo],[SortName],[CreateTime],[Creator],[CreatorId],[AccountId])values(25,2,'人事',null,null,null,1)
      end
      else 
      begin 
           update [WF_FlowSort] set [SortNo]=2,[SortName]='人事',[CreateTime]=null,[Creator]=null,[CreatorId]=null,[AccountId]=1 where  [SortId]=25 
      end
      if (select count(1) from [WF_FlowSort] where  [SortId]=31  )<1 
      begin 
           Insert into [WF_FlowSort] ([SortId],[SortNo],[SortName],[CreateTime],[Creator],[CreatorId],[AccountId])values(31,1,'行政',null,null,null,1)
      end
      else 
      begin 
           update [WF_FlowSort] set [SortNo]=1,[SortName]='行政',[CreateTime]=null,[Creator]=null,[CreatorId]=null,[AccountId]=1 where  [SortId]=31 
      end
      if (select count(1) from [WF_FlowSort] where  [SortId]=33  )<1 
      begin 
           Insert into [WF_FlowSort] ([SortId],[SortNo],[SortName],[CreateTime],[Creator],[CreatorId],[AccountId])values(33,4,'财务',null,null,null,1)
      end
      else 
      begin 
           update [WF_FlowSort] set [SortNo]=4,[SortName]='财务',[CreateTime]=null,[Creator]=null,[CreatorId]=null,[AccountId]=1 where  [SortId]=33 
      end
      if (select count(1) from [WF_FlowSort] where  [SortId]=34  )<1 
      begin 
           Insert into [WF_FlowSort] ([SortId],[SortNo],[SortName],[CreateTime],[Creator],[CreatorId],[AccountId])values(34,7,'生产',null,null,null,1)
      end
      else 
      begin 
           update [WF_FlowSort] set [SortNo]=7,[SortName]='生产',[CreateTime]=null,[Creator]=null,[CreatorId]=null,[AccountId]=1 where  [SortId]=34 
      end
      if (select count(1) from [WF_FlowSort] where  [SortId]=35  )<1 
      begin 
           Insert into [WF_FlowSort] ([SortId],[SortNo],[SortName],[CreateTime],[Creator],[CreatorId],[AccountId])values(35,5,'销售',null,null,null,1)
      end
      else 
      begin 
           update [WF_FlowSort] set [SortNo]=5,[SortName]='销售',[CreateTime]=null,[Creator]=null,[CreatorId]=null,[AccountId]=1 where  [SortId]=35 
      end
      if (select count(1) from [WF_FlowSort] where  [SortId]=37  )<1 
      begin 
           Insert into [WF_FlowSort] ([SortId],[SortNo],[SortName],[CreateTime],[Creator],[CreatorId],[AccountId])values(37,8,'公文',null,null,null,1)
      end
      else 
      begin 
           update [WF_FlowSort] set [SortNo]=8,[SortName]='公文',[CreateTime]=null,[Creator]=null,[CreatorId]=null,[AccountId]=1 where  [SortId]=37 
      end
      if (select count(1) from [WF_FlowSort] where  [SortId]=38  )<1 
      begin 
           Insert into [WF_FlowSort] ([SortId],[SortNo],[SortName],[CreateTime],[Creator],[CreatorId],[AccountId])values(38,3,'开发',null,null,null,1)
      end
      else 
      begin 
           update [WF_FlowSort] set [SortNo]=3,[SortName]='开发',[CreateTime]=null,[Creator]=null,[CreatorId]=null,[AccountId]=1 where  [SortId]=38 
      end
      if (select count(1) from [WF_FlowSort] where  [SortId]=39  )<1 
      begin 
           Insert into [WF_FlowSort] ([SortId],[SortNo],[SortName],[CreateTime],[Creator],[CreatorId],[AccountId])values(39,6,'综合',null,null,null,1)
      end
      else 
      begin 
           update [WF_FlowSort] set [SortNo]=6,[SortName]='综合',[CreateTime]=null,[Creator]=null,[CreatorId]=null,[AccountId]=1 where  [SortId]=39 
      end

     SET IDENTITY_INSERT [WF_FlowSort] OFF 




 GO--mygofuck 

--Dcx_RuningSysParam

     SET IDENTITY_INSERT [Dcx_RuningSysParam] ON 
      if (select count(1) from [Dcx_RuningSysParam] where  [Id]=1  )<1 
      begin 
           Insert into [Dcx_RuningSysParam] ([Id],[DefautStyleId],[SystemId],[SystemKey],[TopMenuId],[SystemName],[CompanyName],[HomePageMenuId],[BigLogoUrl],[SmallLogoUrl],[LoginPageUrl],[MainPageUrl],[HomePageUrl],[DcxUserName],[InstallDate],[RegisterCode],[EditTime],[SSystemId],[SSystemKey],[AccountId])values(1,1,58,'bb6f118e7d64430fb25cfdc1sdc6c0449',0,'协同OA系统','爱福星',3291,null,null,null,null,null,'admin','2012-11-27 12:27:44','i1eCQYtr3y5u7dtrXIWqpDqByYqjlZHQpBIG9T66Y0D0aNL9o72YhVLPh0/9iWeNad+sZhaOzyuD29oH69D35NqS6oqVU5PJuKVsmcAG7Uvs1GjVf7vyHpnP9J6moD80hiIj08N2dS510PZbGq3sLo77Ko9hCxHBRIKcevbW1L4=','2012-11-27 12:27:44',null,null,1)
      end
      else 
      begin 
           update [Dcx_RuningSysParam] set [DefautStyleId]=1,[SystemId]=58,[SystemKey]='bb6f118e7d64430fb25cfdc1sdc6c0449',[TopMenuId]=0,[SystemName]='协同OA系统',[CompanyName]='爱福星',[HomePageMenuId]=3291,[BigLogoUrl]=null,[SmallLogoUrl]=null,[LoginPageUrl]=null,[MainPageUrl]=null,[HomePageUrl]=null,[DcxUserName]='admin',[InstallDate]='2012-11-27 12:27:44',[RegisterCode]='i1eCQYtr3y5u7dtrXIWqpDqByYqjlZHQpBIG9T66Y0D0aNL9o72YhVLPh0/9iWeNad+sZhaOzyuD29oH69D35NqS6oqVU5PJuKVsmcAG7Uvs1GjVf7vyHpnP9J6moD80hiIj08N2dS510PZbGq3sLo77Ko9hCxHBRIKcevbW1L4=',[EditTime]='2012-11-27 12:27:44',[SSystemId]=null,[SSystemKey]=null,[AccountId]=1 where  [Id]=1 
      end

     SET IDENTITY_INSERT [Dcx_RuningSysParam] OFF 




 GO--mygofuck 

--Dcx_Tree_Run
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=1  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(1,'部门树（非动态，单数据源，单树）',0,1,0,0,'','',0,0,0,0,1,'','','','SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept] where      {{@ParentArea}} order by [DeptOrder]','',0,'',null,'',1,0,0,0,0,420,'部门','请输入关键字','DeptName','DeptId','ParentId','','',null,'0','',0,0,'','','','','',null,'0','',0,0,'','已选项','全部增加',1,null,1,0,0,45,3,'admin','2012-4-14 13:57:56',3,'admin','2012-10-10 4:25:24','',1,1,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='部门树（非动态，单数据源，单树）',[EntId]=0,[SystemId]=1,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='',[DBTableName2]='',[TreeNodeSQL1]='SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept] where      {{@ParentArea}} order by [DeptOrder]',[TreeNodeSQL2]='',[IsDoubleDataSource]=0,[BindTextFieldName]='',[BindFieldDateType]=null,[BindFieldName]='',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=0,[RightBoxWidth]=0,[Height]=420,[TreeTitle]='部门',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='DeptName',[ValueFieldName1]='DeptId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]=null,[TopNode_ParentValue1]='0',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=0,[TextFieldName2]='',[ValueFieldName2]='',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]=null,[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=0,[UseCache2]=0,[LinkFieldName]='',[Right_ListBoxTitle]='已选项',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=45,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-4-14 13:57:56',[EditorId]=3,[Editor]='admin',[EditTime]='2012-10-10 4:25:24',[Remark]='',[SSystemId]=1,[STreeId]=1,[AccountId]=1 where  [TreeId]=1 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=2  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(2,'产品树',0,28,null,0,null,null,0,0,0,0,1,'ListR_',null,null,'SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept]  order by [DeptOrder]','SELECT [员工编号],[员工姓名], '''' as [ParentId],[deptId],'''' as IconUrl,'''' as ExIconUrl  FROM [工资_员工档案] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [员工编号]',1,null,null,'员工编号',1,0,0,200,0,500,'部门员工树','请输入关键字','DeptName','DeptId','ParentId','IconUrl','ExIconUrl',null,'0',null,0,0,'员工姓名','员工编号','ParentId','IconUrl','ExIconUrl',null,'',null,0,1,'deptId','已选项','全部增加',0,null,1,0,0,45,3,'admin','2012-4-13 4:26:14',3,'admin','2012-4-13 4:26:14',null,28,2,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='产品树',[EntId]=0,[SystemId]=28,[ModuleId]=null,[DBConnectId]=0,[DIYJsCss]=null,[StaticHtml]=null,[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='ListR_',[DBTableName1]=null,[DBTableName2]=null,[TreeNodeSQL1]='SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept]  order by [DeptOrder]',[TreeNodeSQL2]='SELECT [员工编号],[员工姓名], '''' as [ParentId],[deptId],'''' as IconUrl,'''' as ExIconUrl  FROM [工资_员工档案] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [员工编号]',[IsDoubleDataSource]=1,[BindTextFieldName]=null,[BindFieldDateType]=null,[BindFieldName]='员工编号',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=200,[RightBoxWidth]=0,[Height]=500,[TreeTitle]='部门员工树',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='DeptName',[ValueFieldName1]='DeptId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='IconUrl',[ExIconUrlFieldName1]='ExIconUrl',[UrlFieldName1]=null,[TopNode_ParentValue1]='0',[TreeNode_JSonClick1]=null,[Tree_Dynamic1]=0,[UseCache1]=0,[TextFieldName2]='员工姓名',[ValueFieldName2]='员工编号',[ParentFieldName2]='ParentId',[IconUrlFieldName2]='IconUrl',[ExIconUrlFieldName2]='ExIconUrl',[UrlFieldName2]=null,[TopNode_ParentValue2]='',[TreeNode_JSonClick2]=null,[Tree_Dynamic2]=0,[UseCache2]=1,[LinkFieldName]='deptId',[Right_ListBoxTitle]='已选项',[AddAllAlertText]='全部增加',[Right_Hidden]=0,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=45,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-4-13 4:26:14',[EditorId]=3,[Editor]='admin',[EditTime]='2012-4-13 4:26:14',[Remark]=null,[SSystemId]=28,[STreeId]=2,[AccountId]=1 where  [TreeId]=2 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=3  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(3,'角色用户树（角色静态，用户动态）',0,28,0,0,'','',0,0,0,0,1,'ListR_','','','SELECT [RoleId],[RoleName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Role] where      {{@ParentArea}} order by [RoleOrder]','SELECT [UserId],[UserName], '''' as [ParentId],[DeptId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_User] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [UserId]',1,'',null,'UserId',1,0,0,200,0,500,'角色员工树','请输入关键字','RoleName','RoleId','ParentId','','',null,'0','',0,0,'UserName','UserId','','','',null,'0','',1,1,'RoleId','已选项','全部增加',1,null,1,0,0,45,3,'admin','2012-4-13 4:26:14',3,'admin','2012-10-10 2:15:32','',28,3,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='角色用户树（角色静态，用户动态）',[EntId]=0,[SystemId]=28,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='ListR_',[DBTableName1]='',[DBTableName2]='',[TreeNodeSQL1]='SELECT [RoleId],[RoleName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Role] where      {{@ParentArea}} order by [RoleOrder]',[TreeNodeSQL2]='SELECT [UserId],[UserName], '''' as [ParentId],[DeptId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_User] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [UserId]',[IsDoubleDataSource]=1,[BindTextFieldName]='',[BindFieldDateType]=null,[BindFieldName]='UserId',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=200,[RightBoxWidth]=0,[Height]=500,[TreeTitle]='角色员工树',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='RoleName',[ValueFieldName1]='RoleId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]=null,[TopNode_ParentValue1]='0',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=0,[TextFieldName2]='UserName',[ValueFieldName2]='UserId',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]=null,[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=1,[UseCache2]=1,[LinkFieldName]='RoleId',[Right_ListBoxTitle]='已选项',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=45,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-4-13 4:26:14',[EditorId]=3,[Editor]='admin',[EditTime]='2012-10-10 2:15:32',[Remark]='',[SSystemId]=28,[STreeId]=3,[AccountId]=1 where  [TreeId]=3 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=4  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(4,'部门员工树',0,0,null,0,null,null,0,0,0,0,1,'ListR_',null,null,'SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept]  order by [DeptOrder]','SELECT [员工编号],[员工姓名], '''' as [ParentId],[deptId],'''' as IconUrl,'''' as ExIconUrl  FROM [工资_员工档案] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [员工编号]',1,null,null,'员工编号',1,0,0,200,0,500,'部门员工树','请输入关键字','DeptName','DeptId','ParentId','IconUrl','ExIconUrl',null,'0',null,0,0,'员工姓名','员工编号','ParentId','IconUrl','ExIconUrl',null,'',null,0,1,'deptId','已选项','全部增加',0,null,1,0,0,45,3,'admin','2012-4-13 4:26:14',3,'admin','2012-4-13 4:26:14',null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='部门员工树',[EntId]=0,[SystemId]=0,[ModuleId]=null,[DBConnectId]=0,[DIYJsCss]=null,[StaticHtml]=null,[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='ListR_',[DBTableName1]=null,[DBTableName2]=null,[TreeNodeSQL1]='SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept]  order by [DeptOrder]',[TreeNodeSQL2]='SELECT [员工编号],[员工姓名], '''' as [ParentId],[deptId],'''' as IconUrl,'''' as ExIconUrl  FROM [工资_员工档案] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [员工编号]',[IsDoubleDataSource]=1,[BindTextFieldName]=null,[BindFieldDateType]=null,[BindFieldName]='员工编号',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=200,[RightBoxWidth]=0,[Height]=500,[TreeTitle]='部门员工树',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='DeptName',[ValueFieldName1]='DeptId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='IconUrl',[ExIconUrlFieldName1]='ExIconUrl',[UrlFieldName1]=null,[TopNode_ParentValue1]='0',[TreeNode_JSonClick1]=null,[Tree_Dynamic1]=0,[UseCache1]=0,[TextFieldName2]='员工姓名',[ValueFieldName2]='员工编号',[ParentFieldName2]='ParentId',[IconUrlFieldName2]='IconUrl',[ExIconUrlFieldName2]='ExIconUrl',[UrlFieldName2]=null,[TopNode_ParentValue2]='',[TreeNode_JSonClick2]=null,[Tree_Dynamic2]=0,[UseCache2]=1,[LinkFieldName]='deptId',[Right_ListBoxTitle]='已选项',[AddAllAlertText]='全部增加',[Right_Hidden]=0,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=45,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-4-13 4:26:14',[EditorId]=3,[Editor]='admin',[EditTime]='2012-4-13 4:26:14',[Remark]=null,[SSystemId]=null,[STreeId]=null,[AccountId]=1 where  [TreeId]=4 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=5  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(5,'部门用户树（部门静态，用户动态，单树，用户名，ID）',0,29,0,0,'','',0,0,0,0,1,'ListR_','','','SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept]  order by [DeptOrder]','SELECT [UserId],[UserName], '''' as [ParentId],[DeptId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_User] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [UserId]',1,'',2,'员工编号',1,0,0,200,0,500,'部门员工树','请输入关键字','DeptName','DeptId','ParentId','','','','0','',0,0,'UserName','UserId','','','','','0','',1,1,'DeptId','已选项','全部增加',1,null,1,0,0,45,3,'admin','2012-4-13 4:26:14',3,'admin','2013-1-22 3:22:10','',29,5,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='部门用户树（部门静态，用户动态，单树，用户名，ID）',[EntId]=0,[SystemId]=29,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='ListR_',[DBTableName1]='',[DBTableName2]='',[TreeNodeSQL1]='SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept]  order by [DeptOrder]',[TreeNodeSQL2]='SELECT [UserId],[UserName], '''' as [ParentId],[DeptId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_User] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [UserId]',[IsDoubleDataSource]=1,[BindTextFieldName]='',[BindFieldDateType]=2,[BindFieldName]='员工编号',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=200,[RightBoxWidth]=0,[Height]=500,[TreeTitle]='部门员工树',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='DeptName',[ValueFieldName1]='DeptId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]='',[TopNode_ParentValue1]='0',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=0,[TextFieldName2]='UserName',[ValueFieldName2]='UserId',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]='',[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=1,[UseCache2]=1,[LinkFieldName]='DeptId',[Right_ListBoxTitle]='已选项',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=45,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-4-13 4:26:14',[EditorId]=3,[Editor]='admin',[EditTime]='2013-1-22 3:22:10',[Remark]='',[SSystemId]=29,[STreeId]=5,[AccountId]=1 where  [TreeId]=5 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=6  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(6,'部门员工树（部门静态，员工动态）',0,1,0,0,'','',0,0,0,0,1,'ListR_','','','SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept]  order by [DeptOrder]','SELECT [EmployeeCode],[Name], '''' as [ParentId],[deptId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Employee] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [EmployeeCode]',1,'',null,'员工编号',1,0,0,200,0,500,'部门员工树','请输入关键字','DeptName','DeptId','ParentId','','',null,'0','',0,0,'Name','EmployeeCode','','','',null,'0','',0,1,'DeptId','已选项','全部增加',1,null,1,0,0,45,3,'admin','2012-4-13 4:26:14',3,'admin','2012-10-10 2:13:18','',1,6,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='部门员工树（部门静态，员工动态）',[EntId]=0,[SystemId]=1,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='ListR_',[DBTableName1]='',[DBTableName2]='',[TreeNodeSQL1]='SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept]  order by [DeptOrder]',[TreeNodeSQL2]='SELECT [EmployeeCode],[Name], '''' as [ParentId],[deptId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Employee] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [EmployeeCode]',[IsDoubleDataSource]=1,[BindTextFieldName]='',[BindFieldDateType]=null,[BindFieldName]='员工编号',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=200,[RightBoxWidth]=0,[Height]=500,[TreeTitle]='部门员工树',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='DeptName',[ValueFieldName1]='DeptId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]=null,[TopNode_ParentValue1]='0',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=0,[TextFieldName2]='Name',[ValueFieldName2]='EmployeeCode',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]=null,[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=0,[UseCache2]=1,[LinkFieldName]='DeptId',[Right_ListBoxTitle]='已选项',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=45,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-4-13 4:26:14',[EditorId]=3,[Editor]='admin',[EditTime]='2012-10-10 2:13:18',[Remark]='',[SSystemId]=1,[STreeId]=6,[AccountId]=1 where  [TreeId]=6 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=8  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(8,'菜单树',0,27,0,0,'','',0,0,0,0,1,'','','','SELECT [MenuId],[MenuName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Menu]where [CreatorAccountId]={{@accountId@}}  and    {{@ParentArea}} order by [OrderBy]','',0,null,null,'MenuId',0,0,0,204,204,550,'全部网页','请输入关键字','MenuName','MenuId','ParentId','','',null,'{$topmenuid}','',1,1,'','','','','',null,'0','',0,0,'','已选择','全部增加',1,null,0,0,0,30,3,'admin','2012-5-14 15:37:09',3,'admin','2012-9-7 15:10:47','',27,8,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='菜单树',[EntId]=0,[SystemId]=27,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='',[DBTableName2]='',[TreeNodeSQL1]='SELECT [MenuId],[MenuName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Menu]where [CreatorAccountId]={{@accountId@}}  and    {{@ParentArea}} order by [OrderBy]',[TreeNodeSQL2]='',[IsDoubleDataSource]=0,[BindTextFieldName]=null,[BindFieldDateType]=null,[BindFieldName]='MenuId',[IsBindToValue]=0,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=204,[RightBoxWidth]=204,[Height]=550,[TreeTitle]='全部网页',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='MenuName',[ValueFieldName1]='MenuId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]=null,[TopNode_ParentValue1]='{$topmenuid}',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=1,[UseCache1]=1,[TextFieldName2]='',[ValueFieldName2]='',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]=null,[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=0,[UseCache2]=0,[LinkFieldName]='',[Right_ListBoxTitle]='已选择',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=0,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=30,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-5-14 15:37:09',[EditorId]=3,[Editor]='admin',[EditTime]='2012-9-7 15:10:47',[Remark]='',[SSystemId]=27,[STreeId]=8,[AccountId]=1 where  [TreeId]=8 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=9  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(9,'全部网页2',1909,27,0,0,'','',0,0,0,0,1,'','','','SELECT [MenuId],[MenuName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Menu]where [CreatorAccountId]={{@accountId@}}  and    {{@ParentArea}} order by [OrderBy]','',0,'',2,'MenuId',0,0,0,304,204,550,'全部网页','请输入关键字','MenuName','MenuId','ParentId','','','','{$topmenuid}','',1,1,'','','','','','','0','',0,0,'','已选择','全部增加',1,null,0,0,0,30,3,'admin','2012-5-14 15:37:09',3,'admin','2013-1-17 0:28:58','',27,9,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='全部网页2',[EntId]=1909,[SystemId]=27,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='',[DBTableName2]='',[TreeNodeSQL1]='SELECT [MenuId],[MenuName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Menu]where [CreatorAccountId]={{@accountId@}}  and    {{@ParentArea}} order by [OrderBy]',[TreeNodeSQL2]='',[IsDoubleDataSource]=0,[BindTextFieldName]='',[BindFieldDateType]=2,[BindFieldName]='MenuId',[IsBindToValue]=0,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=304,[RightBoxWidth]=204,[Height]=550,[TreeTitle]='全部网页',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='MenuName',[ValueFieldName1]='MenuId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]='',[TopNode_ParentValue1]='{$topmenuid}',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=1,[UseCache1]=1,[TextFieldName2]='',[ValueFieldName2]='',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]='',[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=0,[UseCache2]=0,[LinkFieldName]='',[Right_ListBoxTitle]='已选择',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=0,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=30,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-5-14 15:37:09',[EditorId]=3,[Editor]='admin',[EditTime]='2013-1-17 0:28:58',[Remark]='',[SSystemId]=27,[STreeId]=9,[AccountId]=1 where  [TreeId]=9 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=10  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(10,'全部网页3',0,27,0,0,'','',0,0,0,0,1,'','','','SELECT [MenuId],[MenuName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Menu]where [CreatorAccountId]={{@accountId@}}  and    {{@ParentArea}} order by [OrderBy]','',0,'',null,'MenuId',0,0,0,204,204,550,'全部网页','请输入关键字','MenuName','MenuId','ParentId','','','','{$topmenuid}','',0,0,'','','','','','','0','',0,0,'','已选择','全部增加',1,null,1,0,0,30,3,'admin','2012-5-14 15:37:09',3,'admin','2012-11-13 4:01:03','',27,10,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='全部网页3',[EntId]=0,[SystemId]=27,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='',[DBTableName2]='',[TreeNodeSQL1]='SELECT [MenuId],[MenuName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Menu]where [CreatorAccountId]={{@accountId@}}  and    {{@ParentArea}} order by [OrderBy]',[TreeNodeSQL2]='',[IsDoubleDataSource]=0,[BindTextFieldName]='',[BindFieldDateType]=null,[BindFieldName]='MenuId',[IsBindToValue]=0,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=204,[RightBoxWidth]=204,[Height]=550,[TreeTitle]='全部网页',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='MenuName',[ValueFieldName1]='MenuId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]='',[TopNode_ParentValue1]='{$topmenuid}',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=0,[TextFieldName2]='',[ValueFieldName2]='',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]='',[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=0,[UseCache2]=0,[LinkFieldName]='',[Right_ListBoxTitle]='已选择',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=30,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-5-14 15:37:09',[EditorId]=3,[Editor]='admin',[EditTime]='2012-11-13 4:01:03',[Remark]='',[SSystemId]=27,[STreeId]=10,[AccountId]=1 where  [TreeId]=10 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=11  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(11,'全部网页',0,29,0,0,'','',0,0,0,0,1,'','','','SELECT [MenuId],[MenuName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Menu]where [CreatorAccountId]={{@accountId@}}  and    {{@ParentArea}} order by [OrderBy]','',0,null,null,'MenuId',0,0,0,304,204,550,'全部网页','请输入关键字','MenuName','MenuId','ParentId','','',null,'{$topmenuid}','',1,1,'','','','','',null,'0','',0,0,'','已选择','全部增加',1,null,0,0,0,30,3,'admin','2012-5-14 15:37:09',3,'admin','2012-9-7 5:46:32','',29,11,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='全部网页',[EntId]=0,[SystemId]=29,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='',[DBTableName2]='',[TreeNodeSQL1]='SELECT [MenuId],[MenuName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Menu]where [CreatorAccountId]={{@accountId@}}  and    {{@ParentArea}} order by [OrderBy]',[TreeNodeSQL2]='',[IsDoubleDataSource]=0,[BindTextFieldName]=null,[BindFieldDateType]=null,[BindFieldName]='MenuId',[IsBindToValue]=0,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=304,[RightBoxWidth]=204,[Height]=550,[TreeTitle]='全部网页',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='MenuName',[ValueFieldName1]='MenuId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]=null,[TopNode_ParentValue1]='{$topmenuid}',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=1,[UseCache1]=1,[TextFieldName2]='',[ValueFieldName2]='',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]=null,[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=0,[UseCache2]=0,[LinkFieldName]='',[Right_ListBoxTitle]='已选择',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=0,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=30,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-5-14 15:37:09',[EditorId]=3,[Editor]='admin',[EditTime]='2012-9-7 5:46:32',[Remark]='',[SSystemId]=29,[STreeId]=11,[AccountId]=1 where  [TreeId]=11 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=12  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(12,'应用树',0,1,0,0,'','',0,0,0,0,1,'','','','SELECT [MenuId],[MenuName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Menu]where [CreatorAccountId]={{@accountId@}}  and    {{@ParentArea}} order by [OrderBy]','',0,null,null,'MenuId',0,0,0,304,204,550,'全部网页','请输入关键字','MenuName','MenuId','ParentId','','',null,'{$topmenuid}','',0,0,'','','','','',null,'0','',0,0,'','已选择','全部增加',1,null,0,0,0,30,3,'admin','2012-5-14 15:37:09',3,'admin','2012-10-2 4:47:29','',1,12,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='应用树',[EntId]=0,[SystemId]=1,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='',[DBTableName2]='',[TreeNodeSQL1]='SELECT [MenuId],[MenuName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Menu]where [CreatorAccountId]={{@accountId@}}  and    {{@ParentArea}} order by [OrderBy]',[TreeNodeSQL2]='',[IsDoubleDataSource]=0,[BindTextFieldName]=null,[BindFieldDateType]=null,[BindFieldName]='MenuId',[IsBindToValue]=0,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=304,[RightBoxWidth]=204,[Height]=550,[TreeTitle]='全部网页',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='MenuName',[ValueFieldName1]='MenuId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]=null,[TopNode_ParentValue1]='{$topmenuid}',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=0,[TextFieldName2]='',[ValueFieldName2]='',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]=null,[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=0,[UseCache2]=0,[LinkFieldName]='',[Right_ListBoxTitle]='已选择',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=0,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=30,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-5-14 15:37:09',[EditorId]=3,[Editor]='admin',[EditTime]='2012-10-2 4:47:29',[Remark]='',[SSystemId]=1,[STreeId]=12,[AccountId]=1 where  [TreeId]=12 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=13  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(13,'应用树（错误）',0,1,0,0,'','',0,0,0,0,1,'','Dcx_Menu','','SELECT [MenuId],[MenuName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Menu]where [CreatorAccountId]={{@accountId@}}  and    {{@ParentArea}} order by [OrderBy]','',0,null,null,'MenuId',0,0,0,204,204,550,'菜单树','请输入关键字','MenuName','MenuId','ParentId','','',null,'{$topmenuid}','',1,1,'','','','','',null,'0','',0,0,'','已选择','全部增加',1,null,0,0,0,30,3,'admin','2012-5-14 15:37:09',3,'admin','2012-9-7 15:10:46','',1,13,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='应用树（错误）',[EntId]=0,[SystemId]=1,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='Dcx_Menu',[DBTableName2]='',[TreeNodeSQL1]='SELECT [MenuId],[MenuName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Menu]where [CreatorAccountId]={{@accountId@}}  and    {{@ParentArea}} order by [OrderBy]',[TreeNodeSQL2]='',[IsDoubleDataSource]=0,[BindTextFieldName]=null,[BindFieldDateType]=null,[BindFieldName]='MenuId',[IsBindToValue]=0,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=204,[RightBoxWidth]=204,[Height]=550,[TreeTitle]='菜单树',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='MenuName',[ValueFieldName1]='MenuId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]=null,[TopNode_ParentValue1]='{$topmenuid}',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=1,[UseCache1]=1,[TextFieldName2]='',[ValueFieldName2]='',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]=null,[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=0,[UseCache2]=0,[LinkFieldName]='',[Right_ListBoxTitle]='已选择',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=0,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=30,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-5-14 15:37:09',[EditorId]=3,[Editor]='admin',[EditTime]='2012-9-7 15:10:46',[Remark]='',[SSystemId]=1,[STreeId]=13,[AccountId]=1 where  [TreeId]=13 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=14  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(14,'应用端的网页（动态）',0,29,0,0,'','',0,0,0,0,1,'','','','SELECT [MenuId],[MenuName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Menu_Run] where      ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} order by [OrderBy]','',0,'',null,'MenuId',0,0,0,204,204,550,'全部网页','请输入关键字','MenuName','MenuId','ParentId','','','','{$topmenuid}','',1,0,'','','','','','','0','',0,0,'','已选择','全部增加',1,null,1,0,0,30,3,'admin','2012-5-14 15:37:09',3,'admin','2012-12-5 7:04:56','',29,14,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='应用端的网页（动态）',[EntId]=0,[SystemId]=29,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='',[DBTableName2]='',[TreeNodeSQL1]='SELECT [MenuId],[MenuName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Menu_Run] where      ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} order by [OrderBy]',[TreeNodeSQL2]='',[IsDoubleDataSource]=0,[BindTextFieldName]='',[BindFieldDateType]=null,[BindFieldName]='MenuId',[IsBindToValue]=0,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=204,[RightBoxWidth]=204,[Height]=550,[TreeTitle]='全部网页',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='MenuName',[ValueFieldName1]='MenuId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]='',[TopNode_ParentValue1]='{$topmenuid}',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=1,[UseCache1]=0,[TextFieldName2]='',[ValueFieldName2]='',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]='',[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=0,[UseCache2]=0,[LinkFieldName]='',[Right_ListBoxTitle]='已选择',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=30,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-5-14 15:37:09',[EditorId]=3,[Editor]='admin',[EditTime]='2012-12-5 7:04:56',[Remark]='',[SSystemId]=29,[STreeId]=14,[AccountId]=1 where  [TreeId]=14 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=15  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(15,'应用目录',2023,29,0,0,'','',0,0,0,0,1,'','','','SELECT [MenuId],[MenuName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Menu_Run] where     ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} order by [OrderBy]','SELECT [EntId],[EntName],  [ParentId],[MenuId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Entity_Run] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [OrderBy]',1,'',null,'MenuId',1,0,0,190,190,550,'应用目录','请输入关键词','MenuName','MenuId','ParentId','','',null,'{$topmenuid}','',1,1,'EntName','EntId','ParentId','','',null,'0','',1,1,'MenuId','已选择','全部增加',1,null,1,0,0,17,3,'admin','2012-10-9 0:54:08',3,'admin','2012-10-9 9:55:46','',29,15,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='应用目录',[EntId]=2023,[SystemId]=29,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='',[DBTableName2]='',[TreeNodeSQL1]='SELECT [MenuId],[MenuName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Menu_Run] where     ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} order by [OrderBy]',[TreeNodeSQL2]='SELECT [EntId],[EntName],  [ParentId],[MenuId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Entity_Run] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [OrderBy]',[IsDoubleDataSource]=1,[BindTextFieldName]='',[BindFieldDateType]=null,[BindFieldName]='MenuId',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=190,[RightBoxWidth]=190,[Height]=550,[TreeTitle]='应用目录',[SearchIputDefaultText]='请输入关键词',[TextFieldName1]='MenuName',[ValueFieldName1]='MenuId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]=null,[TopNode_ParentValue1]='{$topmenuid}',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=1,[UseCache1]=1,[TextFieldName2]='EntName',[ValueFieldName2]='EntId',[ParentFieldName2]='ParentId',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]=null,[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=1,[UseCache2]=1,[LinkFieldName]='MenuId',[Right_ListBoxTitle]='已选择',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=17,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-10-9 0:54:08',[EditorId]=3,[Editor]='admin',[EditTime]='2012-10-9 9:55:46',[Remark]='',[SSystemId]=29,[STreeId]=15,[AccountId]=1 where  [TreeId]=15 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=16  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(16,'角色（静态，单树，RoleNameName,RoleID）',0,29,0,0,'','',0,0,0,0,1,'','','','SELECT [RoleId],[RoleName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Role] where      {{@ParentArea}} order by [RoleOrder]','',0,'',2,'',0,0,0,204,204,350,'请选择','请输入关键词','RoleName','RoleId','ParentId','','','','0','',0,1,'','','','','','','0','',1,1,'','已选择','全部增加',1,null,1,0,0,18,3,'admin','2012-10-9 23:19:20',3,'admin','2013-1-26 0:22:45','',29,16,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='角色（静态，单树，RoleNameName,RoleID）',[EntId]=0,[SystemId]=29,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='',[DBTableName2]='',[TreeNodeSQL1]='SELECT [RoleId],[RoleName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Role] where      {{@ParentArea}} order by [RoleOrder]',[TreeNodeSQL2]='',[IsDoubleDataSource]=0,[BindTextFieldName]='',[BindFieldDateType]=2,[BindFieldName]='',[IsBindToValue]=0,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=204,[RightBoxWidth]=204,[Height]=350,[TreeTitle]='请选择',[SearchIputDefaultText]='请输入关键词',[TextFieldName1]='RoleName',[ValueFieldName1]='RoleId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]='',[TopNode_ParentValue1]='0',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=1,[TextFieldName2]='',[ValueFieldName2]='',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]='',[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=1,[UseCache2]=1,[LinkFieldName]='',[Right_ListBoxTitle]='已选择',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=18,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-10-9 23:19:20',[EditorId]=3,[Editor]='admin',[EditTime]='2013-1-26 0:22:45',[Remark]='',[SSystemId]=29,[STreeId]=16,[AccountId]=1 where  [TreeId]=16 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=17  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(17,'角色（静态，单树，RoleNameName,RoleID）',0,29,0,0,'','',0,0,0,0,1,'','','','SELECT [RoleId],[RoleName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Role] where      {{@ParentArea}} order by [RoleOrder]','',0,'',2,'RoleId',1,0,0,204,204,550,'请选择','请输入关键词','RoleName','RoleId','ParentId','','','','0','',0,1,'','','','','','','0','',1,1,'','已选择','全部增加',1,null,1,0,0,18,3,'admin','2012-10-9 23:19:20',3,'admin','2013-1-26 0:22:16','',29,17,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='角色（静态，单树，RoleNameName,RoleID）',[EntId]=0,[SystemId]=29,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='',[DBTableName2]='',[TreeNodeSQL1]='SELECT [RoleId],[RoleName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Role] where      {{@ParentArea}} order by [RoleOrder]',[TreeNodeSQL2]='',[IsDoubleDataSource]=0,[BindTextFieldName]='',[BindFieldDateType]=2,[BindFieldName]='RoleId',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=204,[RightBoxWidth]=204,[Height]=550,[TreeTitle]='请选择',[SearchIputDefaultText]='请输入关键词',[TextFieldName1]='RoleName',[ValueFieldName1]='RoleId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]='',[TopNode_ParentValue1]='0',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=1,[TextFieldName2]='',[ValueFieldName2]='',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]='',[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=1,[UseCache2]=1,[LinkFieldName]='',[Right_ListBoxTitle]='已选择',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=18,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-10-9 23:19:20',[EditorId]=3,[Editor]='admin',[EditTime]='2013-1-26 0:22:16',[Remark]='',[SSystemId]=29,[STreeId]=17,[AccountId]=1 where  [TreeId]=17 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=18  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(18,'角色（静态，模块）',2004,29,0,0,'','',0,0,0,0,1,'','','','SELECT [RoleId],[RoleName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Role] where      {{@ParentArea}} order by [RoleOrder]','',0,'',null,'RoleId',1,0,0,190,190,550,'请选择','请输入关键词','RoleName','RoleId','ParentId','','',null,'0','',0,1,'','','','','',null,'0','',1,1,'','已选择','全部增加',1,null,1,0,0,18,3,'admin','2012-10-9 23:19:20',3,'admin','2012-10-10 4:28:02','',29,18,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='角色（静态，模块）',[EntId]=2004,[SystemId]=29,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='',[DBTableName2]='',[TreeNodeSQL1]='SELECT [RoleId],[RoleName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Role] where      {{@ParentArea}} order by [RoleOrder]',[TreeNodeSQL2]='',[IsDoubleDataSource]=0,[BindTextFieldName]='',[BindFieldDateType]=null,[BindFieldName]='RoleId',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=190,[RightBoxWidth]=190,[Height]=550,[TreeTitle]='请选择',[SearchIputDefaultText]='请输入关键词',[TextFieldName1]='RoleName',[ValueFieldName1]='RoleId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]=null,[TopNode_ParentValue1]='0',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=1,[TextFieldName2]='',[ValueFieldName2]='',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]=null,[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=1,[UseCache2]=1,[LinkFieldName]='',[Right_ListBoxTitle]='已选择',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=18,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-10-9 23:19:20',[EditorId]=3,[Editor]='admin',[EditTime]='2012-10-10 4:28:02',[Remark]='',[SSystemId]=29,[STreeId]=18,[AccountId]=1 where  [TreeId]=18 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=19  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(19,'运行端网页目录（动态，单树，MenuName,MenuID）',2029,29,0,0,'','',0,0,0,0,1,'','','','SELECT [MenuId],[MenuName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Menu_Run]where         ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} order by [OrderBy]','',0,'',2,'MenuId',1,0,0,190,190,550,'全部网页','请输入关键字','MenuName','MenuId','ParentId','','','','{$topmenuid}','',1,1,'','','','','','','0','',0,0,'','已选择','全部增加',1,null,1,0,0,30,3,'admin','2012-5-14 15:37:09',3,'admin','2013-1-26 0:42:54','',29,19,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='运行端网页目录（动态，单树，MenuName,MenuID）',[EntId]=2029,[SystemId]=29,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='',[DBTableName2]='',[TreeNodeSQL1]='SELECT [MenuId],[MenuName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Menu_Run]where         ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} order by [OrderBy]',[TreeNodeSQL2]='',[IsDoubleDataSource]=0,[BindTextFieldName]='',[BindFieldDateType]=2,[BindFieldName]='MenuId',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=190,[RightBoxWidth]=190,[Height]=550,[TreeTitle]='全部网页',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='MenuName',[ValueFieldName1]='MenuId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]='',[TopNode_ParentValue1]='{$topmenuid}',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=1,[UseCache1]=1,[TextFieldName2]='',[ValueFieldName2]='',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]='',[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=0,[UseCache2]=0,[LinkFieldName]='',[Right_ListBoxTitle]='已选择',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=30,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-5-14 15:37:09',[EditorId]=3,[Editor]='admin',[EditTime]='2013-1-26 0:42:54',[Remark]='',[SSystemId]=29,[STreeId]=19,[AccountId]=1 where  [TreeId]=19 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=20  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(20,'数据源',1846,27,0,0,'','',0,0,0,0,1,'','','','SELECT [MenuId],[MenuName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Menu]where [CreatorAccountId]={{@accountId@}}  and    {{@ParentArea}} order by [OrderBy]','',0,null,null,'MenuId',0,0,0,304,204,550,'数据源','请输入关键字','DBTableByName','DBTableByName','','','',null,'0','',1,1,'','','','','',null,'0','',0,0,'','已选择','全部增加',1,null,0,0,0,30,3,'admin','2012-5-14 15:37:09',3,'admin','2012-9-7 5:46:32','',27,20,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='数据源',[EntId]=1846,[SystemId]=27,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='',[DBTableName2]='',[TreeNodeSQL1]='SELECT [MenuId],[MenuName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Menu]where [CreatorAccountId]={{@accountId@}}  and    {{@ParentArea}} order by [OrderBy]',[TreeNodeSQL2]='',[IsDoubleDataSource]=0,[BindTextFieldName]=null,[BindFieldDateType]=null,[BindFieldName]='MenuId',[IsBindToValue]=0,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=304,[RightBoxWidth]=204,[Height]=550,[TreeTitle]='数据源',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='DBTableByName',[ValueFieldName1]='DBTableByName',[ParentFieldName1]='',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]=null,[TopNode_ParentValue1]='0',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=1,[UseCache1]=1,[TextFieldName2]='',[ValueFieldName2]='',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]=null,[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=0,[UseCache2]=0,[LinkFieldName]='',[Right_ListBoxTitle]='已选择',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=0,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=30,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-5-14 15:37:09',[EditorId]=3,[Editor]='admin',[EditTime]='2012-9-7 5:46:32',[Remark]='',[SSystemId]=27,[STreeId]=20,[AccountId]=1 where  [TreeId]=20 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=21  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(21,'部门树（部门静态，用户动态）',2009,29,0,0,'','',0,0,0,0,1,'ListR_','','','SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept]  order by [DeptOrder]','SELECT [UserId],[UserName], '''' as [ParentId],[DeptId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_User] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [UserId]',0,'',2,'员工编号',1,0,0,190,0,500,'部门树','请输入关键字','DeptName','DeptId','ParentId','','','','0','',0,0,'UserName','UserId','','','','','0','',0,1,'DeptId','已选项','全部增加',1,null,1,0,0,45,3,'admin','2012-11-4 15:30:41',3,'admin','2012-12-9 6:48:02','',29,21,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='部门树（部门静态，用户动态）',[EntId]=2009,[SystemId]=29,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='ListR_',[DBTableName1]='',[DBTableName2]='',[TreeNodeSQL1]='SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept]  order by [DeptOrder]',[TreeNodeSQL2]='SELECT [UserId],[UserName], '''' as [ParentId],[DeptId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_User] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [UserId]',[IsDoubleDataSource]=0,[BindTextFieldName]='',[BindFieldDateType]=2,[BindFieldName]='员工编号',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=190,[RightBoxWidth]=0,[Height]=500,[TreeTitle]='部门树',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='DeptName',[ValueFieldName1]='DeptId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]='',[TopNode_ParentValue1]='0',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=0,[TextFieldName2]='UserName',[ValueFieldName2]='UserId',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]='',[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=0,[UseCache2]=1,[LinkFieldName]='DeptId',[Right_ListBoxTitle]='已选项',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=45,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-11-4 15:30:41',[EditorId]=3,[Editor]='admin',[EditTime]='2012-12-9 6:48:02',[Remark]='',[SSystemId]=29,[STreeId]=21,[AccountId]=1 where  [TreeId]=21 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=22  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(22,'部门树（非动态，单数据源，单树）',2054,29,0,0,'','',0,0,0,0,1,'','','','SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept] where      {{@ParentArea}} order by [DeptOrder]','',0,'',2,'DeptId',1,0,0,190,0,480,'部门','请输入关键字','DeptName','DeptId','ParentId','','','','0','',0,0,'','','','','','','0','',0,0,'','已选项','全部增加',1,null,1,0,0,45,3,'admin','2012-11-11 5:26:51',3,'admin','2012-12-11 5:10:41','',29,22,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='部门树（非动态，单数据源，单树）',[EntId]=2054,[SystemId]=29,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='',[DBTableName2]='',[TreeNodeSQL1]='SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept] where      {{@ParentArea}} order by [DeptOrder]',[TreeNodeSQL2]='',[IsDoubleDataSource]=0,[BindTextFieldName]='',[BindFieldDateType]=2,[BindFieldName]='DeptId',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=190,[RightBoxWidth]=0,[Height]=480,[TreeTitle]='部门',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='DeptName',[ValueFieldName1]='DeptId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]='',[TopNode_ParentValue1]='0',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=0,[TextFieldName2]='',[ValueFieldName2]='',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]='',[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=0,[UseCache2]=0,[LinkFieldName]='',[Right_ListBoxTitle]='已选项',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=45,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-11-11 5:26:51',[EditorId]=3,[Editor]='admin',[EditTime]='2012-12-11 5:10:41',[Remark]='',[SSystemId]=29,[STreeId]=22,[AccountId]=1 where  [TreeId]=22 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=23  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(23,'工作流',2055,4,0,0,'','',0,0,0,0,1,'','','','SELECT [SortId],[SortName],'''' as [ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [WF_FlowSort] where      {{@ParentArea}} order by [SortNo]','SELECT [FlowId],[FlowName],'''' as [ParentId],[SortId],'''' as IconUrl,'''' as ExIconUrl 
 FROM [WF_FlowType] where      ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}}  order by [FlowNo]',1,'',2,'FlowId',1,0,0,0,0,520,'工作流','请输入关键字','SortName','SortId','','','','','0','',0,0,'FlowName','FlowId','','','','','0','CreateFlowRun(',0,0,'SortId','已选项','全部增加',1,null,1,0,0,45,3,'admin','2012-12-10 20:46:27',3,'admin','2013-1-9 3:43:25','',4,23,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='工作流',[EntId]=2055,[SystemId]=4,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='',[DBTableName2]='',[TreeNodeSQL1]='SELECT [SortId],[SortName],'''' as [ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [WF_FlowSort] where      {{@ParentArea}} order by [SortNo]',[TreeNodeSQL2]='SELECT [FlowId],[FlowName],'''' as [ParentId],[SortId],'''' as IconUrl,'''' as ExIconUrl 
 FROM [WF_FlowType] where      ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}}  order by [FlowNo]',[IsDoubleDataSource]=1,[BindTextFieldName]='',[BindFieldDateType]=2,[BindFieldName]='FlowId',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=0,[RightBoxWidth]=0,[Height]=520,[TreeTitle]='工作流',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='SortName',[ValueFieldName1]='SortId',[ParentFieldName1]='',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]='',[TopNode_ParentValue1]='0',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=0,[TextFieldName2]='FlowName',[ValueFieldName2]='FlowId',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]='',[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='CreateFlowRun(',[Tree_Dynamic2]=0,[UseCache2]=0,[LinkFieldName]='SortId',[Right_ListBoxTitle]='已选项',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=45,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-10 20:46:27',[EditorId]=3,[Editor]='admin',[EditTime]='2013-1-9 3:43:25',[Remark]='',[SSystemId]=4,[STreeId]=23,[AccountId]=1 where  [TreeId]=23 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=24  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(24,'工作流',0,1,0,0,'','',0,0,0,0,1,'','','','SELECT [SortId],[SortName],'''' as [ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [WF_FlowSort] where      {{@ParentArea}} order by [SortNo]','SELECT [FlowId],[FlowName],'''' as [ParentId],[SortId],'''' as IconUrl,'''' as ExIconUrl 
 FROM [WF_FlowType] where      ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}}  order by [FlowNo]',1,'',2,'FlowId',1,0,0,0,0,520,'工作流','请输入关键字','SortName','SortId','','','','','0','',0,0,'FlowName','FlowId','','','','','0','',0,0,'SortId','已选项','全部增加',1,'',1,0,0,45,1,'admin','2013-11-1 8:26:12',3,'admin','2013-11-1 8:26:21','',1,24,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='工作流',[EntId]=0,[SystemId]=1,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='',[DBTableName2]='',[TreeNodeSQL1]='SELECT [SortId],[SortName],'''' as [ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [WF_FlowSort] where      {{@ParentArea}} order by [SortNo]',[TreeNodeSQL2]='SELECT [FlowId],[FlowName],'''' as [ParentId],[SortId],'''' as IconUrl,'''' as ExIconUrl 
 FROM [WF_FlowType] where      ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}}  order by [FlowNo]',[IsDoubleDataSource]=1,[BindTextFieldName]='',[BindFieldDateType]=2,[BindFieldName]='FlowId',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=0,[RightBoxWidth]=0,[Height]=520,[TreeTitle]='工作流',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='SortName',[ValueFieldName1]='SortId',[ParentFieldName1]='',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]='',[TopNode_ParentValue1]='0',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=0,[TextFieldName2]='FlowName',[ValueFieldName2]='FlowId',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]='',[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=0,[UseCache2]=0,[LinkFieldName]='SortId',[Right_ListBoxTitle]='已选项',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]='',[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=45,[CreatorId]=1,[Creator]='admin',[CreateTime]='2013-11-1 8:26:12',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-1 8:26:21',[Remark]='',[SSystemId]=1,[STreeId]=24,[AccountId]=1 where  [TreeId]=24 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=25  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(25,'工作流（流程设计,动态）',2062,29,0,0,'','',0,0,0,0,1,'','','','SELECT [SortId],[SortName],'''' as [ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [WF_FlowSort] where      {{@ParentArea}} order by [SortNo]','SELECT [FlowId],[FlowName],0 as [ParentId],[SortId],'''' as IconUrl,'''' as ExIconUrl 
 FROM [WF_FlowType] where      ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}}  order by [FlowNo]',1,'',2,'FlowId',1,0,0,0,0,520,'工作流','请输入关键字','SortName','SortId','','','','','0','',0,0,'FlowName','FlowId','','','','','0','',1,0,'SortId','已选项','全部增加',1,null,1,0,0,45,3,'admin','2012-12-15 21:31:31',3,'admin','2013-2-20 14:54:06','',29,25,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='工作流（流程设计,动态）',[EntId]=2062,[SystemId]=29,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='',[DBTableName2]='',[TreeNodeSQL1]='SELECT [SortId],[SortName],'''' as [ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [WF_FlowSort] where      {{@ParentArea}} order by [SortNo]',[TreeNodeSQL2]='SELECT [FlowId],[FlowName],0 as [ParentId],[SortId],'''' as IconUrl,'''' as ExIconUrl 
 FROM [WF_FlowType] where      ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}}  order by [FlowNo]',[IsDoubleDataSource]=1,[BindTextFieldName]='',[BindFieldDateType]=2,[BindFieldName]='FlowId',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=0,[RightBoxWidth]=0,[Height]=520,[TreeTitle]='工作流',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='SortName',[ValueFieldName1]='SortId',[ParentFieldName1]='',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]='',[TopNode_ParentValue1]='0',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=0,[TextFieldName2]='FlowName',[ValueFieldName2]='FlowId',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]='',[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=1,[UseCache2]=0,[LinkFieldName]='SortId',[Right_ListBoxTitle]='已选项',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=45,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-15 21:31:31',[EditorId]=3,[Editor]='admin',[EditTime]='2013-2-20 14:54:06',[Remark]='',[SSystemId]=29,[STreeId]=25,[AccountId]=1 where  [TreeId]=25 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=26  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(26,'运行端的应用树（网页静态，应用静态）',0,1,0,0,'','',0,0,0,0,1,'','','','SELECT [MenuId],[MenuName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Menu_Run] where     ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} order by [OrderBy]','SELECT [EntId],[EntName],  [ParentId],[MenuId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Entity_Run] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [OrderBy]',1,'',2,'MenuId',1,0,0,204,204,550,'应用目录','请输入关键词','MenuName','MenuId','ParentId','','','','{$topmenuid}','',0,1,'EntName','EntId','ParentId','','','','0','',0,1,'MenuId','已选择','全部增加',1,null,1,0,0,17,1,'admin','2012-12-15 23:52:29',3,'admin','2012-12-15 23:53:17','',1,26,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='运行端的应用树（网页静态，应用静态）',[EntId]=0,[SystemId]=1,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='',[DBTableName2]='',[TreeNodeSQL1]='SELECT [MenuId],[MenuName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Menu_Run] where     ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} order by [OrderBy]',[TreeNodeSQL2]='SELECT [EntId],[EntName],  [ParentId],[MenuId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Entity_Run] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [OrderBy]',[IsDoubleDataSource]=1,[BindTextFieldName]='',[BindFieldDateType]=2,[BindFieldName]='MenuId',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=204,[RightBoxWidth]=204,[Height]=550,[TreeTitle]='应用目录',[SearchIputDefaultText]='请输入关键词',[TextFieldName1]='MenuName',[ValueFieldName1]='MenuId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]='',[TopNode_ParentValue1]='{$topmenuid}',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=1,[TextFieldName2]='EntName',[ValueFieldName2]='EntId',[ParentFieldName2]='ParentId',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]='',[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=0,[UseCache2]=1,[LinkFieldName]='MenuId',[Right_ListBoxTitle]='已选择',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=17,[CreatorId]=1,[Creator]='admin',[CreateTime]='2012-12-15 23:52:29',[EditorId]=3,[Editor]='admin',[EditTime]='2012-12-15 23:53:17',[Remark]='',[SSystemId]=1,[STreeId]=26,[AccountId]=1 where  [TreeId]=26 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=27  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(27,'部门用户树（左树右列表，姓名，用户名）',0,29,0,0,'','',0,0,0,0,1,'ListR_','','','SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept]  order by [DeptOrder]','SELECT [UserName],[RealName], '''' as [ParentId],[DeptId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_User] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [RealName]',1,'',2,'员工编号',1,0,0,200,0,500,'部门员工树','请输入关键字','DeptName','DeptId','ParentId','','','','0','',0,0,'RealName','UserName','','','','','0','',1,1,'DeptId','已选项','全部增加',0,null,1,0,0,45,3,'admin','2012-12-16 0:36:13',3,'admin','2012-12-16 0:42:07','',29,27,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='部门用户树（左树右列表，姓名，用户名）',[EntId]=0,[SystemId]=29,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='ListR_',[DBTableName1]='',[DBTableName2]='',[TreeNodeSQL1]='SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept]  order by [DeptOrder]',[TreeNodeSQL2]='SELECT [UserName],[RealName], '''' as [ParentId],[DeptId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_User] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [RealName]',[IsDoubleDataSource]=1,[BindTextFieldName]='',[BindFieldDateType]=2,[BindFieldName]='员工编号',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=200,[RightBoxWidth]=0,[Height]=500,[TreeTitle]='部门员工树',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='DeptName',[ValueFieldName1]='DeptId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]='',[TopNode_ParentValue1]='0',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=0,[TextFieldName2]='RealName',[ValueFieldName2]='UserName',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]='',[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=1,[UseCache2]=1,[LinkFieldName]='DeptId',[Right_ListBoxTitle]='已选项',[AddAllAlertText]='全部增加',[Right_Hidden]=0,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=45,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-16 0:36:13',[EditorId]=3,[Editor]='admin',[EditTime]='2012-12-16 0:42:07',[Remark]='',[SSystemId]=29,[STreeId]=27,[AccountId]=1 where  [TreeId]=27 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=28  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(28,'角色（左树右列表，静态，表单）',0,29,0,0,'','',0,0,0,0,1,'','','','SELECT [RoleId],[RoleName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Role] where      {{@ParentArea}} order by [RoleOrder]','',0,'',2,'',0,0,0,204,204,350,'全部角色','请输入关键词','RoleName','RoleId','ParentId','','','','0','',0,1,'','','','','','','0','',1,1,'','已选择','全部增加',0,null,1,0,0,18,1,'admin','2012-12-16 0:43:52',3,'admin','2012-12-16 0:44:33','',29,28,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='角色（左树右列表，静态，表单）',[EntId]=0,[SystemId]=29,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='',[DBTableName2]='',[TreeNodeSQL1]='SELECT [RoleId],[RoleName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Role] where      {{@ParentArea}} order by [RoleOrder]',[TreeNodeSQL2]='',[IsDoubleDataSource]=0,[BindTextFieldName]='',[BindFieldDateType]=2,[BindFieldName]='',[IsBindToValue]=0,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=204,[RightBoxWidth]=204,[Height]=350,[TreeTitle]='全部角色',[SearchIputDefaultText]='请输入关键词',[TextFieldName1]='RoleName',[ValueFieldName1]='RoleId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]='',[TopNode_ParentValue1]='0',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=1,[TextFieldName2]='',[ValueFieldName2]='',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]='',[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=1,[UseCache2]=1,[LinkFieldName]='',[Right_ListBoxTitle]='已选择',[AddAllAlertText]='全部增加',[Right_Hidden]=0,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=18,[CreatorId]=1,[Creator]='admin',[CreateTime]='2012-12-16 0:43:52',[EditorId]=3,[Editor]='admin',[EditTime]='2012-12-16 0:44:33',[Remark]='',[SSystemId]=29,[STreeId]=28,[AccountId]=1 where  [TreeId]=28 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=29  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(29,'部门用户树（左树右列表，用户名，ID）',0,30,0,0,'','',0,0,0,0,1,'ListR_','','','SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept]  order by [DeptOrder]','SELECT [UserId],[UserName], '''' as [ParentId],[DeptId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_User] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [UserName]',1,'',2,'员工编号',1,0,0,200,0,500,'部门员工树','请输入关键字','DeptName','DeptId','ParentId','','','','0','',0,0,'UserName','UserId','','','','','0','',1,1,'DeptId','已选项','全部增加',0,null,1,0,0,45,1,'admin','2012-12-24 8:27:31',3,'admin','2012-12-24 8:28:44','',30,29,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='部门用户树（左树右列表，用户名，ID）',[EntId]=0,[SystemId]=30,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='ListR_',[DBTableName1]='',[DBTableName2]='',[TreeNodeSQL1]='SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept]  order by [DeptOrder]',[TreeNodeSQL2]='SELECT [UserId],[UserName], '''' as [ParentId],[DeptId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_User] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [UserName]',[IsDoubleDataSource]=1,[BindTextFieldName]='',[BindFieldDateType]=2,[BindFieldName]='员工编号',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=200,[RightBoxWidth]=0,[Height]=500,[TreeTitle]='部门员工树',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='DeptName',[ValueFieldName1]='DeptId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]='',[TopNode_ParentValue1]='0',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=0,[TextFieldName2]='UserName',[ValueFieldName2]='UserId',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]='',[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=1,[UseCache2]=1,[LinkFieldName]='DeptId',[Right_ListBoxTitle]='已选项',[AddAllAlertText]='全部增加',[Right_Hidden]=0,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=45,[CreatorId]=1,[Creator]='admin',[CreateTime]='2012-12-24 8:27:31',[EditorId]=3,[Editor]='admin',[EditTime]='2012-12-24 8:28:44',[Remark]='',[SSystemId]=30,[STreeId]=29,[AccountId]=1 where  [TreeId]=29 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=30  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(30,'部门树（非动态，单数据源，左树右列表）',0,29,0,0,'','',0,0,0,0,1,'','','','SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept] where      {{@ParentArea}} order by [DeptOrder]','',0,'',2,'DeptId',1,0,0,0,0,480,'部门','请输入关键字','DeptName','DeptId','ParentId','','','','0','',0,0,'','','','','','','0','',0,0,'','已选项','全部增加',0,null,1,0,0,45,1,'admin','2013-1-16 3:23:12',3,'admin','2013-1-16 3:23:41','',29,30,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='部门树（非动态，单数据源，左树右列表）',[EntId]=0,[SystemId]=29,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='',[DBTableName2]='',[TreeNodeSQL1]='SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept] where      {{@ParentArea}} order by [DeptOrder]',[TreeNodeSQL2]='',[IsDoubleDataSource]=0,[BindTextFieldName]='',[BindFieldDateType]=2,[BindFieldName]='DeptId',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=0,[RightBoxWidth]=0,[Height]=480,[TreeTitle]='部门',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='DeptName',[ValueFieldName1]='DeptId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]='',[TopNode_ParentValue1]='0',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=0,[TextFieldName2]='',[ValueFieldName2]='',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]='',[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=0,[UseCache2]=0,[LinkFieldName]='',[Right_ListBoxTitle]='已选项',[AddAllAlertText]='全部增加',[Right_Hidden]=0,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=45,[CreatorId]=1,[Creator]='admin',[CreateTime]='2013-1-16 3:23:12',[EditorId]=3,[Editor]='admin',[EditTime]='2013-1-16 3:23:41',[Remark]='',[SSystemId]=29,[STreeId]=30,[AccountId]=1 where  [TreeId]=30 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=31  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(31,'运行端网页目录（动态，单树，MenuName,MenuID）',2084,29,0,0,'','',0,0,0,0,1,'','','','SELECT [MenuId],[MenuName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Menu_Run]where         ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} order by [OrderBy]','',0,'',2,'MenuId',1,0,0,200,204,550,'全部网页','请输入关键字','MenuName','MenuId','ParentId','','','','{$topmenuid}','',1,1,'','','','','','','0','',0,0,'','已选择','全部增加',1,null,1,0,0,30,1,'admin','2013-1-27 3:57:12',3,'admin','2013-1-27 3:57:23','',29,31,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='运行端网页目录（动态，单树，MenuName,MenuID）',[EntId]=2084,[SystemId]=29,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='',[DBTableName2]='',[TreeNodeSQL1]='SELECT [MenuId],[MenuName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Menu_Run]where         ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} order by [OrderBy]',[TreeNodeSQL2]='',[IsDoubleDataSource]=0,[BindTextFieldName]='',[BindFieldDateType]=2,[BindFieldName]='MenuId',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=200,[RightBoxWidth]=204,[Height]=550,[TreeTitle]='全部网页',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='MenuName',[ValueFieldName1]='MenuId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]='',[TopNode_ParentValue1]='{$topmenuid}',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=1,[UseCache1]=1,[TextFieldName2]='',[ValueFieldName2]='',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]='',[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=0,[UseCache2]=0,[LinkFieldName]='',[Right_ListBoxTitle]='已选择',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=30,[CreatorId]=1,[Creator]='admin',[CreateTime]='2013-1-27 3:57:12',[EditorId]=3,[Editor]='admin',[EditTime]='2013-1-27 3:57:23',[Remark]='',[SSystemId]=29,[STreeId]=31,[AccountId]=1 where  [TreeId]=31 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=32  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(32,'运行端的主应用树（网页动态，应用动态）',0,29,0,0,'','',0,0,0,0,1,'','','','SELECT [MenuId],[MenuName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Menu_Run] where     ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} order by [OrderBy]','SELECT [EntId],[EntName],  [ParentId],[MenuId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Entity_Run] where [ParentId]<1 and    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [OrderBy]',1,'',2,'MenuId',1,0,0,204,204,550,'应用目录','请输入关键词','MenuName','MenuId','ParentId','','','','{$topmenuid}','',1,1,'EntName','EntId','ParentId','','','','0','',1,1,'MenuId','已选择','全部增加',1,null,1,0,0,17,1,'admin','2013-2-18 7:28:00',3,'admin','2013-2-18 7:30:18','',29,32,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='运行端的主应用树（网页动态，应用动态）',[EntId]=0,[SystemId]=29,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='',[DBTableName2]='',[TreeNodeSQL1]='SELECT [MenuId],[MenuName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Menu_Run] where     ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} order by [OrderBy]',[TreeNodeSQL2]='SELECT [EntId],[EntName],  [ParentId],[MenuId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Entity_Run] where [ParentId]<1 and    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [OrderBy]',[IsDoubleDataSource]=1,[BindTextFieldName]='',[BindFieldDateType]=2,[BindFieldName]='MenuId',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=204,[RightBoxWidth]=204,[Height]=550,[TreeTitle]='应用目录',[SearchIputDefaultText]='请输入关键词',[TextFieldName1]='MenuName',[ValueFieldName1]='MenuId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]='',[TopNode_ParentValue1]='{$topmenuid}',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=1,[UseCache1]=1,[TextFieldName2]='EntName',[ValueFieldName2]='EntId',[ParentFieldName2]='ParentId',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]='',[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=1,[UseCache2]=1,[LinkFieldName]='MenuId',[Right_ListBoxTitle]='已选择',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=17,[CreatorId]=1,[Creator]='admin',[CreateTime]='2013-2-18 7:28:00',[EditorId]=3,[Editor]='admin',[EditTime]='2013-2-18 7:30:18',[Remark]='',[SSystemId]=29,[STreeId]=32,[AccountId]=1 where  [TreeId]=32 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=33  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(33,'部门用户树（部门静态，用户动态，单树，用户名，ID）',0,4,0,0,'','',0,0,0,0,1,'ListR_','','','SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept]  order by [DeptOrder]','SELECT [UserId],[UserName], '''' as [ParentId],[DeptId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_User] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [UserId]',1,'',2,'员工编号',1,0,0,200,0,500,'部门员工树','请输入关键字','DeptName','DeptId','ParentId','','','','0','',0,0,'UserName','UserId','','','','','0','',1,1,'DeptId','已选项','全部增加',1,null,1,0,0,45,3,'admin','2012-4-13 4:26:14',3,'admin','2013-1-22 3:22:10','',4,33,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='部门用户树（部门静态，用户动态，单树，用户名，ID）',[EntId]=0,[SystemId]=4,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='ListR_',[DBTableName1]='',[DBTableName2]='',[TreeNodeSQL1]='SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept]  order by [DeptOrder]',[TreeNodeSQL2]='SELECT [UserId],[UserName], '''' as [ParentId],[DeptId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_User] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [UserId]',[IsDoubleDataSource]=1,[BindTextFieldName]='',[BindFieldDateType]=2,[BindFieldName]='员工编号',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=200,[RightBoxWidth]=0,[Height]=500,[TreeTitle]='部门员工树',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='DeptName',[ValueFieldName1]='DeptId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]='',[TopNode_ParentValue1]='0',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=0,[TextFieldName2]='UserName',[ValueFieldName2]='UserId',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]='',[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=1,[UseCache2]=1,[LinkFieldName]='DeptId',[Right_ListBoxTitle]='已选项',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=45,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-4-13 4:26:14',[EditorId]=3,[Editor]='admin',[EditTime]='2013-1-22 3:22:10',[Remark]='',[SSystemId]=4,[STreeId]=33,[AccountId]=1 where  [TreeId]=33 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=34  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(34,'部门树（非动态，单数据源，单树）',0,27,0,0,'','',0,0,0,0,1,'','Dcx_Dept','','SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept] where      {{@ParentArea}} order by [DeptOrder]','',0,'',null,'',1,0,0,0,0,420,'部门','请输入关键字','DeptName','DeptId','ParentId','','',null,'0','',0,0,'','','','','',null,'0','',0,0,'','已选项','全部增加',1,null,1,0,0,45,3,'admin','2012-4-14 13:57:56',3,'admin','2012-10-10 4:25:24','',27,34,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='部门树（非动态，单数据源，单树）',[EntId]=0,[SystemId]=27,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='Dcx_Dept',[DBTableName2]='',[TreeNodeSQL1]='SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept] where      {{@ParentArea}} order by [DeptOrder]',[TreeNodeSQL2]='',[IsDoubleDataSource]=0,[BindTextFieldName]='',[BindFieldDateType]=null,[BindFieldName]='',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=0,[RightBoxWidth]=0,[Height]=420,[TreeTitle]='部门',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='DeptName',[ValueFieldName1]='DeptId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]=null,[TopNode_ParentValue1]='0',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=0,[TextFieldName2]='',[ValueFieldName2]='',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]=null,[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=0,[UseCache2]=0,[LinkFieldName]='',[Right_ListBoxTitle]='已选项',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=45,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-4-14 13:57:56',[EditorId]=3,[Editor]='admin',[EditTime]='2012-10-10 4:25:24',[Remark]='',[SSystemId]=27,[STreeId]=34,[AccountId]=1 where  [TreeId]=34 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=35  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(35,'部门员工树（部门静态，员工动态）',0,27,0,0,'','',0,0,0,0,1,'ListR_','Dcx_Dept','Dcx_Employee','SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept]  order by [DeptOrder]','SELECT [EmployeeCode],[Name], '''' as [ParentId],[deptId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Employee] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [EmployeeCode]',1,'',null,'员工编号',1,0,0,200,0,500,'部门员工树','请输入关键字','DeptName','DeptId','ParentId','','',null,'0','',0,0,'Name','EmployeeCode','','','',null,'0','',0,1,'DeptId','已选项','全部增加',1,null,1,0,0,45,3,'admin','2012-4-13 4:26:14',3,'admin','2012-10-10 2:13:18','',27,35,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='部门员工树（部门静态，员工动态）',[EntId]=0,[SystemId]=27,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='ListR_',[DBTableName1]='Dcx_Dept',[DBTableName2]='Dcx_Employee',[TreeNodeSQL1]='SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept]  order by [DeptOrder]',[TreeNodeSQL2]='SELECT [EmployeeCode],[Name], '''' as [ParentId],[deptId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Employee] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [EmployeeCode]',[IsDoubleDataSource]=1,[BindTextFieldName]='',[BindFieldDateType]=null,[BindFieldName]='员工编号',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=200,[RightBoxWidth]=0,[Height]=500,[TreeTitle]='部门员工树',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='DeptName',[ValueFieldName1]='DeptId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]=null,[TopNode_ParentValue1]='0',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=0,[TextFieldName2]='Name',[ValueFieldName2]='EmployeeCode',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]=null,[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=0,[UseCache2]=1,[LinkFieldName]='DeptId',[Right_ListBoxTitle]='已选项',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=45,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-4-13 4:26:14',[EditorId]=3,[Editor]='admin',[EditTime]='2012-10-10 2:13:18',[Remark]='',[SSystemId]=27,[STreeId]=35,[AccountId]=1 where  [TreeId]=35 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=36  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(36,'应用树',0,27,0,0,'','',0,0,0,0,1,'','Dcx_Menu','','SELECT [MenuId],[MenuName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Menu]where [CreatorAccountId]={{@accountId@}}  and    {{@ParentArea}} order by [OrderBy]','',0,null,null,'MenuId',0,0,0,304,204,550,'应用目录','请输入关键字','MenuName','MenuId','ParentId','','',null,'{$topmenuid}','',0,0,'','','','','',null,'0','',0,0,'','已选择','全部增加',1,null,0,0,0,30,3,'admin','2012-5-14 15:37:09',3,'admin','2012-10-2 4:47:29','',27,36,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='应用树',[EntId]=0,[SystemId]=27,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='Dcx_Menu',[DBTableName2]='',[TreeNodeSQL1]='SELECT [MenuId],[MenuName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Menu]where [CreatorAccountId]={{@accountId@}}  and    {{@ParentArea}} order by [OrderBy]',[TreeNodeSQL2]='',[IsDoubleDataSource]=0,[BindTextFieldName]=null,[BindFieldDateType]=null,[BindFieldName]='MenuId',[IsBindToValue]=0,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=304,[RightBoxWidth]=204,[Height]=550,[TreeTitle]='应用目录',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='MenuName',[ValueFieldName1]='MenuId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]=null,[TopNode_ParentValue1]='{$topmenuid}',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=0,[TextFieldName2]='',[ValueFieldName2]='',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]=null,[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=0,[UseCache2]=0,[LinkFieldName]='',[Right_ListBoxTitle]='已选择',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=0,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=30,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-5-14 15:37:09',[EditorId]=3,[Editor]='admin',[EditTime]='2012-10-2 4:47:29',[Remark]='',[SSystemId]=27,[STreeId]=36,[AccountId]=1 where  [TreeId]=36 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=37  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(37,'应用树（错误）',0,27,0,0,'','',0,0,0,0,1,'','Dcx_Menu','','SELECT [MenuId],[MenuName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Menu]where [CreatorAccountId]={{@accountId@}}  and    {{@ParentArea}} order by [OrderBy]','',0,null,null,'MenuId',0,0,0,204,204,550,'菜单树','请输入关键字','MenuName','MenuId','ParentId','','',null,'{$topmenuid}','',1,1,'','','','','',null,'0','',0,0,'','已选择','全部增加',1,null,0,0,0,30,3,'admin','2012-5-14 15:37:09',3,'admin','2012-9-7 15:10:46','',27,37,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='应用树（错误）',[EntId]=0,[SystemId]=27,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='Dcx_Menu',[DBTableName2]='',[TreeNodeSQL1]='SELECT [MenuId],[MenuName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Menu]where [CreatorAccountId]={{@accountId@}}  and    {{@ParentArea}} order by [OrderBy]',[TreeNodeSQL2]='',[IsDoubleDataSource]=0,[BindTextFieldName]=null,[BindFieldDateType]=null,[BindFieldName]='MenuId',[IsBindToValue]=0,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=204,[RightBoxWidth]=204,[Height]=550,[TreeTitle]='菜单树',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='MenuName',[ValueFieldName1]='MenuId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]=null,[TopNode_ParentValue1]='{$topmenuid}',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=1,[UseCache1]=1,[TextFieldName2]='',[ValueFieldName2]='',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]=null,[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=0,[UseCache2]=0,[LinkFieldName]='',[Right_ListBoxTitle]='已选择',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=0,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=30,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-5-14 15:37:09',[EditorId]=3,[Editor]='admin',[EditTime]='2012-9-7 15:10:46',[Remark]='',[SSystemId]=27,[STreeId]=37,[AccountId]=1 where  [TreeId]=37 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=38  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(38,'工作流',0,27,0,0,'','',0,0,0,0,1,'','WF_FlowSort','WF_FlowType','SELECT [SortId],[SortName],'''' as [ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [WF_FlowSort] where      {{@ParentArea}} order by [SortNo]','SELECT [FlowId],[FlowName],'''' as [ParentId],[SortId],'''' as IconUrl,'''' as ExIconUrl 
 FROM [WF_FlowType] where      ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}}  order by [FlowNo]',1,'',1,'FlowId',1,0,0,0,0,520,'工作流','请输入关键字','SortName','SortId','','','','','0','',0,0,'FlowName','FlowId','','','','','0','',0,0,'SortId','已选项','全部增加',1,null,1,0,0,45,3,'admin','2012-12-11 6:55:03',3,'admin','2012-12-11 6:56:33','',27,38,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='工作流',[EntId]=0,[SystemId]=27,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='WF_FlowSort',[DBTableName2]='WF_FlowType',[TreeNodeSQL1]='SELECT [SortId],[SortName],'''' as [ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [WF_FlowSort] where      {{@ParentArea}} order by [SortNo]',[TreeNodeSQL2]='SELECT [FlowId],[FlowName],'''' as [ParentId],[SortId],'''' as IconUrl,'''' as ExIconUrl 
 FROM [WF_FlowType] where      ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}}  order by [FlowNo]',[IsDoubleDataSource]=1,[BindTextFieldName]='',[BindFieldDateType]=1,[BindFieldName]='FlowId',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=0,[RightBoxWidth]=0,[Height]=520,[TreeTitle]='工作流',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='SortName',[ValueFieldName1]='SortId',[ParentFieldName1]='',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]='',[TopNode_ParentValue1]='0',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=0,[TextFieldName2]='FlowName',[ValueFieldName2]='FlowId',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]='',[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=0,[UseCache2]=0,[LinkFieldName]='SortId',[Right_ListBoxTitle]='已选项',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=45,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-11 6:55:03',[EditorId]=3,[Editor]='admin',[EditTime]='2012-12-11 6:56:33',[Remark]='',[SSystemId]=27,[STreeId]=38,[AccountId]=1 where  [TreeId]=38 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=39  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(39,'运行端的应用树（网页静态，应用静态）',0,27,0,0,'','',0,0,0,0,1,'','Dcx_Menu_Run','Dcx_Entity_Run','SELECT [MenuId],[MenuName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Menu_Run] where     ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} order by [OrderBy]','SELECT [EntId],[EntName],  [ParentId],[MenuId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Entity_Run] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [OrderBy]',1,'',2,'MenuId',1,0,0,204,204,550,'应用目录','请输入关键词','MenuName','MenuId','ParentId','','','','{$topmenuid}','',0,1,'EntName','EntId','ParentId','','','','0','',0,1,'MenuId','已选择','全部增加',1,null,1,0,0,17,3,'admin','2012-12-15 23:52:29',3,'admin','2012-12-15 23:53:16','',27,39,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='运行端的应用树（网页静态，应用静态）',[EntId]=0,[SystemId]=27,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='Dcx_Menu_Run',[DBTableName2]='Dcx_Entity_Run',[TreeNodeSQL1]='SELECT [MenuId],[MenuName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Menu_Run] where     ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} order by [OrderBy]',[TreeNodeSQL2]='SELECT [EntId],[EntName],  [ParentId],[MenuId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Entity_Run] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [OrderBy]',[IsDoubleDataSource]=1,[BindTextFieldName]='',[BindFieldDateType]=2,[BindFieldName]='MenuId',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=204,[RightBoxWidth]=204,[Height]=550,[TreeTitle]='应用目录',[SearchIputDefaultText]='请输入关键词',[TextFieldName1]='MenuName',[ValueFieldName1]='MenuId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]='',[TopNode_ParentValue1]='{$topmenuid}',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=1,[TextFieldName2]='EntName',[ValueFieldName2]='EntId',[ParentFieldName2]='ParentId',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]='',[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=0,[UseCache2]=1,[LinkFieldName]='MenuId',[Right_ListBoxTitle]='已选择',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=17,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-15 23:52:29',[EditorId]=3,[Editor]='admin',[EditTime]='2012-12-15 23:53:16',[Remark]='',[SSystemId]=27,[STreeId]=39,[AccountId]=1 where  [TreeId]=39 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=40  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(40,'工作流',2055,27,0,0,'','',0,0,0,0,1,'','WF_FlowSort','WF_FlowType','SELECT [SortId],[SortName],'''' as [ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [WF_FlowSort] where      {{@ParentArea}} order by [SortNo]','SELECT [FlowId],[FlowName],'''' as [ParentId],[SortId],'''' as IconUrl,'''' as ExIconUrl 
 FROM [WF_FlowType] where      ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}}  order by [FlowNo]',1,'',1,'FlowId',1,0,0,0,0,520,'工作流','请输入关键字','SortName','SortId','','','','','0','',0,0,'FlowName','FlowId','','','','','0','CreateFlowRun(',0,0,'SortId','已选项','全部增加',1,null,1,0,0,45,3,'admin','2012-12-10 20:46:27',3,'admin','2013-1-9 3:43:22','',27,40,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='工作流',[EntId]=2055,[SystemId]=27,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='WF_FlowSort',[DBTableName2]='WF_FlowType',[TreeNodeSQL1]='SELECT [SortId],[SortName],'''' as [ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [WF_FlowSort] where      {{@ParentArea}} order by [SortNo]',[TreeNodeSQL2]='SELECT [FlowId],[FlowName],'''' as [ParentId],[SortId],'''' as IconUrl,'''' as ExIconUrl 
 FROM [WF_FlowType] where      ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}}  order by [FlowNo]',[IsDoubleDataSource]=1,[BindTextFieldName]='',[BindFieldDateType]=1,[BindFieldName]='FlowId',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=0,[RightBoxWidth]=0,[Height]=520,[TreeTitle]='工作流',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='SortName',[ValueFieldName1]='SortId',[ParentFieldName1]='',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]='',[TopNode_ParentValue1]='0',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=0,[TextFieldName2]='FlowName',[ValueFieldName2]='FlowId',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]='',[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='CreateFlowRun(',[Tree_Dynamic2]=0,[UseCache2]=0,[LinkFieldName]='SortId',[Right_ListBoxTitle]='已选项',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=45,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-10 20:46:27',[EditorId]=3,[Editor]='admin',[EditTime]='2013-1-9 3:43:22',[Remark]='',[SSystemId]=27,[STreeId]=40,[AccountId]=1 where  [TreeId]=40 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=41  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(41,'产品树（未设计）',0,27,null,0,null,null,0,0,0,0,1,'ListR_','Dcx_Dept','工资_员工档案','SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept]  order by [DeptOrder]','SELECT [员工编号],[员工姓名], '''' as [ParentId],[deptId],'''' as IconUrl,'''' as ExIconUrl  FROM [工资_员工档案] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [员工编号]',1,null,null,'员工编号',1,0,0,200,0,500,'部门员工树','请输入关键字','DeptName','DeptId','ParentId','IconUrl','ExIconUrl',null,'0',null,0,0,'员工姓名','员工编号','ParentId','IconUrl','ExIconUrl',null,'',null,0,1,'deptId','已选项','全部增加',0,null,1,0,0,45,3,'admin','2012-4-13 4:26:14',3,'admin','2012-4-13 4:26:14',null,27,41,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='产品树（未设计）',[EntId]=0,[SystemId]=27,[ModuleId]=null,[DBConnectId]=0,[DIYJsCss]=null,[StaticHtml]=null,[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='ListR_',[DBTableName1]='Dcx_Dept',[DBTableName2]='工资_员工档案',[TreeNodeSQL1]='SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept]  order by [DeptOrder]',[TreeNodeSQL2]='SELECT [员工编号],[员工姓名], '''' as [ParentId],[deptId],'''' as IconUrl,'''' as ExIconUrl  FROM [工资_员工档案] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [员工编号]',[IsDoubleDataSource]=1,[BindTextFieldName]=null,[BindFieldDateType]=null,[BindFieldName]='员工编号',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=200,[RightBoxWidth]=0,[Height]=500,[TreeTitle]='部门员工树',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='DeptName',[ValueFieldName1]='DeptId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='IconUrl',[ExIconUrlFieldName1]='ExIconUrl',[UrlFieldName1]=null,[TopNode_ParentValue1]='0',[TreeNode_JSonClick1]=null,[Tree_Dynamic1]=0,[UseCache1]=0,[TextFieldName2]='员工姓名',[ValueFieldName2]='员工编号',[ParentFieldName2]='ParentId',[IconUrlFieldName2]='IconUrl',[ExIconUrlFieldName2]='ExIconUrl',[UrlFieldName2]=null,[TopNode_ParentValue2]='',[TreeNode_JSonClick2]=null,[Tree_Dynamic2]=0,[UseCache2]=1,[LinkFieldName]='deptId',[Right_ListBoxTitle]='已选项',[AddAllAlertText]='全部增加',[Right_Hidden]=0,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=45,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-4-13 4:26:14',[EditorId]=3,[Editor]='admin',[EditTime]='2012-4-13 4:26:14',[Remark]=null,[SSystemId]=27,[STreeId]=41,[AccountId]=1 where  [TreeId]=41 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=42  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(42,'角色用户树（角色静态，用户动态）',0,27,0,0,'','',0,0,0,0,1,'ListR_','Dcx_Role','Dcx_User','SELECT [RoleId],[RoleName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Role] where      {{@ParentArea}} order by [RoleOrder]','SELECT [UserId],[UserName], '''' as [ParentId],[DeptId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_User] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [UserId]',1,'',null,'UserId',1,0,0,200,0,500,'角色员工树','请输入关键字','RoleName','RoleId','ParentId','','',null,'0','',0,0,'UserName','UserId','','','',null,'0','',1,1,'RoleId','已选项','全部增加',1,null,1,0,0,45,3,'admin','2012-4-13 4:26:14',3,'admin','2012-10-10 2:15:32','',27,42,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='角色用户树（角色静态，用户动态）',[EntId]=0,[SystemId]=27,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='ListR_',[DBTableName1]='Dcx_Role',[DBTableName2]='Dcx_User',[TreeNodeSQL1]='SELECT [RoleId],[RoleName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Role] where      {{@ParentArea}} order by [RoleOrder]',[TreeNodeSQL2]='SELECT [UserId],[UserName], '''' as [ParentId],[DeptId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_User] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [UserId]',[IsDoubleDataSource]=1,[BindTextFieldName]='',[BindFieldDateType]=null,[BindFieldName]='UserId',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=200,[RightBoxWidth]=0,[Height]=500,[TreeTitle]='角色员工树',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='RoleName',[ValueFieldName1]='RoleId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]=null,[TopNode_ParentValue1]='0',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=0,[TextFieldName2]='UserName',[ValueFieldName2]='UserId',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]=null,[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=1,[UseCache2]=1,[LinkFieldName]='RoleId',[Right_ListBoxTitle]='已选项',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=45,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-4-13 4:26:14',[EditorId]=3,[Editor]='admin',[EditTime]='2012-10-10 2:15:32',[Remark]='',[SSystemId]=27,[STreeId]=42,[AccountId]=1 where  [TreeId]=42 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=43  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(43,'部门用户树（部门静态，用户动态，单树，用户名，ID）',0,27,0,0,'','',0,0,0,0,1,'ListR_','Dcx_Dept','Dcx_User','SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept]  order by [DeptOrder]','SELECT [UserId],[UserName], '''' as [ParentId],[DeptId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_User] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [UserId]',1,'',2,'员工编号',1,0,0,200,0,500,'部门员工树','请输入关键字','DeptName','DeptId','ParentId','','','','0','',0,0,'UserName','UserId','','','','','0','',1,1,'DeptId','已选项','全部增加',1,null,1,0,0,45,3,'admin','2012-4-13 4:26:14',3,'admin','2013-1-22 3:22:07','',27,43,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='部门用户树（部门静态，用户动态，单树，用户名，ID）',[EntId]=0,[SystemId]=27,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='ListR_',[DBTableName1]='Dcx_Dept',[DBTableName2]='Dcx_User',[TreeNodeSQL1]='SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept]  order by [DeptOrder]',[TreeNodeSQL2]='SELECT [UserId],[UserName], '''' as [ParentId],[DeptId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_User] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [UserId]',[IsDoubleDataSource]=1,[BindTextFieldName]='',[BindFieldDateType]=2,[BindFieldName]='员工编号',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=200,[RightBoxWidth]=0,[Height]=500,[TreeTitle]='部门员工树',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='DeptName',[ValueFieldName1]='DeptId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]='',[TopNode_ParentValue1]='0',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=0,[TextFieldName2]='UserName',[ValueFieldName2]='UserId',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]='',[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=1,[UseCache2]=1,[LinkFieldName]='DeptId',[Right_ListBoxTitle]='已选项',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=45,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-4-13 4:26:14',[EditorId]=3,[Editor]='admin',[EditTime]='2013-1-22 3:22:07',[Remark]='',[SSystemId]=27,[STreeId]=43,[AccountId]=1 where  [TreeId]=43 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=44  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(44,'全部网页4',1980,27,0,0,'','',0,0,0,0,1,'','Dcx_Menu','','SELECT [MenuId],[MenuName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Menu]where [CreatorAccountId]={{@accountId@}}  and    {{@ParentArea}} order by [OrderBy]','',0,null,null,'MenuId',0,0,0,304,204,550,'全部网页','请输入关键字','MenuName','MenuId','ParentId','','',null,'{$topmenuid}','',1,1,'','','','','',null,'0','',0,0,'','已选择','全部增加',1,null,0,0,0,30,3,'admin','2012-5-14 15:37:09',3,'admin','2012-9-7 5:46:31','',27,44,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='全部网页4',[EntId]=1980,[SystemId]=27,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='Dcx_Menu',[DBTableName2]='',[TreeNodeSQL1]='SELECT [MenuId],[MenuName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Menu]where [CreatorAccountId]={{@accountId@}}  and    {{@ParentArea}} order by [OrderBy]',[TreeNodeSQL2]='',[IsDoubleDataSource]=0,[BindTextFieldName]=null,[BindFieldDateType]=null,[BindFieldName]='MenuId',[IsBindToValue]=0,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=304,[RightBoxWidth]=204,[Height]=550,[TreeTitle]='全部网页',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='MenuName',[ValueFieldName1]='MenuId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]=null,[TopNode_ParentValue1]='{$topmenuid}',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=1,[UseCache1]=1,[TextFieldName2]='',[ValueFieldName2]='',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]=null,[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=0,[UseCache2]=0,[LinkFieldName]='',[Right_ListBoxTitle]='已选择',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=0,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=30,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-5-14 15:37:09',[EditorId]=3,[Editor]='admin',[EditTime]='2012-9-7 5:46:31',[Remark]='',[SSystemId]=27,[STreeId]=44,[AccountId]=1 where  [TreeId]=44 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=45  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(45,'应用端的网页（动态）',0,27,0,0,'','',0,0,0,0,1,'','Dcx_Menu_Run','','SELECT [MenuId],[MenuName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Menu_Run] where      ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} order by [OrderBy]','',0,'',null,'MenuId',0,0,0,204,204,550,'全部网页','请输入关键字','MenuName','MenuId','ParentId','','','','{$topmenuid}','',1,0,'','','','','','','0','',0,0,'','已选择','全部增加',1,null,1,0,0,30,3,'admin','2012-5-14 15:37:09',3,'admin','2012-12-5 7:04:54','',27,45,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='应用端的网页（动态）',[EntId]=0,[SystemId]=27,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='Dcx_Menu_Run',[DBTableName2]='',[TreeNodeSQL1]='SELECT [MenuId],[MenuName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Menu_Run] where      ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} order by [OrderBy]',[TreeNodeSQL2]='',[IsDoubleDataSource]=0,[BindTextFieldName]='',[BindFieldDateType]=null,[BindFieldName]='MenuId',[IsBindToValue]=0,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=204,[RightBoxWidth]=204,[Height]=550,[TreeTitle]='全部网页',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='MenuName',[ValueFieldName1]='MenuId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]='',[TopNode_ParentValue1]='{$topmenuid}',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=1,[UseCache1]=0,[TextFieldName2]='',[ValueFieldName2]='',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]='',[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=0,[UseCache2]=0,[LinkFieldName]='',[Right_ListBoxTitle]='已选择',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=30,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-5-14 15:37:09',[EditorId]=3,[Editor]='admin',[EditTime]='2012-12-5 7:04:54',[Remark]='',[SSystemId]=27,[STreeId]=45,[AccountId]=1 where  [TreeId]=45 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=46  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(46,'运行端的应用树（网页静态，应用动态）',2023,27,0,0,'','',0,0,0,0,1,'','Dcx_Menu_Run','Dcx_Entity_Run','SELECT [MenuId],[MenuName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Menu_Run] where     ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} order by [OrderBy]','SELECT [EntId],[EntName],  [ParentId],[MenuId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Entity_Run] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [OrderBy]',1,'',null,'MenuId',1,0,0,190,190,550,'应用目录','请输入关键词','MenuName','MenuId','ParentId','','',null,'{$topmenuid}','',1,1,'EntName','EntId','ParentId','','',null,'0','',1,1,'MenuId','已选择','全部增加',1,null,1,0,0,17,3,'admin','2012-10-9 0:54:08',3,'admin','2012-10-9 9:55:46','',27,46,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='运行端的应用树（网页静态，应用动态）',[EntId]=2023,[SystemId]=27,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='Dcx_Menu_Run',[DBTableName2]='Dcx_Entity_Run',[TreeNodeSQL1]='SELECT [MenuId],[MenuName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Menu_Run] where     ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} order by [OrderBy]',[TreeNodeSQL2]='SELECT [EntId],[EntName],  [ParentId],[MenuId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Entity_Run] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [OrderBy]',[IsDoubleDataSource]=1,[BindTextFieldName]='',[BindFieldDateType]=null,[BindFieldName]='MenuId',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=190,[RightBoxWidth]=190,[Height]=550,[TreeTitle]='应用目录',[SearchIputDefaultText]='请输入关键词',[TextFieldName1]='MenuName',[ValueFieldName1]='MenuId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]=null,[TopNode_ParentValue1]='{$topmenuid}',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=1,[UseCache1]=1,[TextFieldName2]='EntName',[ValueFieldName2]='EntId',[ParentFieldName2]='ParentId',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]=null,[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=1,[UseCache2]=1,[LinkFieldName]='MenuId',[Right_ListBoxTitle]='已选择',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=17,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-10-9 0:54:08',[EditorId]=3,[Editor]='admin',[EditTime]='2012-10-9 9:55:46',[Remark]='',[SSystemId]=27,[STreeId]=46,[AccountId]=1 where  [TreeId]=46 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=47  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(47,'角色（静态，单树，RoleNameName,RoleID）',0,27,0,0,'','',0,0,0,0,1,'','Dcx_Role','','SELECT [RoleId],[RoleName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Role] where      {{@ParentArea}} order by [RoleOrder]','',0,'',2,'',0,0,0,204,204,350,'请选择','请输入关键词','RoleName','RoleId','ParentId','','','','0','',0,1,'','','','','','','0','',1,1,'','已选择','全部增加',1,null,1,0,0,18,3,'admin','2012-10-9 23:19:20',3,'admin','2013-1-26 0:22:42','',27,47,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='角色（静态，单树，RoleNameName,RoleID）',[EntId]=0,[SystemId]=27,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='Dcx_Role',[DBTableName2]='',[TreeNodeSQL1]='SELECT [RoleId],[RoleName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Role] where      {{@ParentArea}} order by [RoleOrder]',[TreeNodeSQL2]='',[IsDoubleDataSource]=0,[BindTextFieldName]='',[BindFieldDateType]=2,[BindFieldName]='',[IsBindToValue]=0,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=204,[RightBoxWidth]=204,[Height]=350,[TreeTitle]='请选择',[SearchIputDefaultText]='请输入关键词',[TextFieldName1]='RoleName',[ValueFieldName1]='RoleId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]='',[TopNode_ParentValue1]='0',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=1,[TextFieldName2]='',[ValueFieldName2]='',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]='',[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=1,[UseCache2]=1,[LinkFieldName]='',[Right_ListBoxTitle]='已选择',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=18,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-10-9 23:19:20',[EditorId]=3,[Editor]='admin',[EditTime]='2013-1-26 0:22:42',[Remark]='',[SSystemId]=27,[STreeId]=47,[AccountId]=1 where  [TreeId]=47 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=48  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(48,'角色（静态，单树，RoleNameName,RoleID）',0,27,0,0,'','',0,0,0,0,1,'','Dcx_Role','','SELECT [RoleId],[RoleName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Role] where      {{@ParentArea}} order by [RoleOrder]','',0,'',2,'RoleId',1,0,0,204,204,550,'请选择','请输入关键词','RoleName','RoleId','ParentId','','','','0','',0,1,'','','','','','','0','',1,1,'','已选择','全部增加',1,null,1,0,0,18,3,'admin','2012-10-9 23:19:20',3,'admin','2013-1-26 0:22:14','',27,48,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='角色（静态，单树，RoleNameName,RoleID）',[EntId]=0,[SystemId]=27,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='Dcx_Role',[DBTableName2]='',[TreeNodeSQL1]='SELECT [RoleId],[RoleName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Role] where      {{@ParentArea}} order by [RoleOrder]',[TreeNodeSQL2]='',[IsDoubleDataSource]=0,[BindTextFieldName]='',[BindFieldDateType]=2,[BindFieldName]='RoleId',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=204,[RightBoxWidth]=204,[Height]=550,[TreeTitle]='请选择',[SearchIputDefaultText]='请输入关键词',[TextFieldName1]='RoleName',[ValueFieldName1]='RoleId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]='',[TopNode_ParentValue1]='0',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=1,[TextFieldName2]='',[ValueFieldName2]='',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]='',[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=1,[UseCache2]=1,[LinkFieldName]='',[Right_ListBoxTitle]='已选择',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=18,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-10-9 23:19:20',[EditorId]=3,[Editor]='admin',[EditTime]='2013-1-26 0:22:14',[Remark]='',[SSystemId]=27,[STreeId]=48,[AccountId]=1 where  [TreeId]=48 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=49  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(49,'角色（静态，模块）',2004,27,0,0,'','',0,0,0,0,1,'','Dcx_Role','','SELECT [RoleId],[RoleName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Role] where      {{@ParentArea}} order by [RoleOrder]','',0,'',null,'RoleId',1,0,0,190,190,550,'请选择','请输入关键词','RoleName','RoleId','ParentId','','',null,'0','',0,1,'','','','','',null,'0','',1,1,'','已选择','全部增加',1,null,1,0,0,18,3,'admin','2012-10-9 23:19:20',3,'admin','2012-10-10 4:28:02','',27,49,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='角色（静态，模块）',[EntId]=2004,[SystemId]=27,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='Dcx_Role',[DBTableName2]='',[TreeNodeSQL1]='SELECT [RoleId],[RoleName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Role] where      {{@ParentArea}} order by [RoleOrder]',[TreeNodeSQL2]='',[IsDoubleDataSource]=0,[BindTextFieldName]='',[BindFieldDateType]=null,[BindFieldName]='RoleId',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=190,[RightBoxWidth]=190,[Height]=550,[TreeTitle]='请选择',[SearchIputDefaultText]='请输入关键词',[TextFieldName1]='RoleName',[ValueFieldName1]='RoleId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]=null,[TopNode_ParentValue1]='0',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=1,[TextFieldName2]='',[ValueFieldName2]='',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]=null,[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=1,[UseCache2]=1,[LinkFieldName]='',[Right_ListBoxTitle]='已选择',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=18,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-10-9 23:19:20',[EditorId]=3,[Editor]='admin',[EditTime]='2012-10-10 4:28:02',[Remark]='',[SSystemId]=27,[STreeId]=49,[AccountId]=1 where  [TreeId]=49 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=50  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(50,'运行端网页目录（动态，单树，MenuName,MenuID）',2029,27,0,0,'','',0,0,0,0,1,'','Dcx_Menu_Run','','SELECT [MenuId],[MenuName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Menu_Run]where         ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} order by [OrderBy]','',0,'',2,'MenuId',1,0,0,190,190,550,'全部网页','请输入关键字','MenuName','MenuId','ParentId','','','','{$topmenuid}','',1,1,'','','','','','','0','',0,0,'','已选择','全部增加',1,null,1,0,0,30,3,'admin','2012-5-14 15:37:09',3,'admin','2013-1-26 0:42:52','',27,50,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='运行端网页目录（动态，单树，MenuName,MenuID）',[EntId]=2029,[SystemId]=27,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='Dcx_Menu_Run',[DBTableName2]='',[TreeNodeSQL1]='SELECT [MenuId],[MenuName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Menu_Run]where         ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} order by [OrderBy]',[TreeNodeSQL2]='',[IsDoubleDataSource]=0,[BindTextFieldName]='',[BindFieldDateType]=2,[BindFieldName]='MenuId',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=190,[RightBoxWidth]=190,[Height]=550,[TreeTitle]='全部网页',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='MenuName',[ValueFieldName1]='MenuId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]='',[TopNode_ParentValue1]='{$topmenuid}',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=1,[UseCache1]=1,[TextFieldName2]='',[ValueFieldName2]='',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]='',[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=0,[UseCache2]=0,[LinkFieldName]='',[Right_ListBoxTitle]='已选择',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=30,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-5-14 15:37:09',[EditorId]=3,[Editor]='admin',[EditTime]='2013-1-26 0:42:52',[Remark]='',[SSystemId]=27,[STreeId]=50,[AccountId]=1 where  [TreeId]=50 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=51  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(51,'部门树（部门静态，用户动态）',2009,27,0,0,'','',0,0,0,0,1,'ListR_','Dcx_Dept','Dcx_User','SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept]  order by [DeptOrder]','SELECT [UserId],[UserName], '''' as [ParentId],[DeptId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_User] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [UserId]',0,'',2,'员工编号',1,0,0,200,0,500,'部门树','请输入关键字','DeptName','DeptId','ParentId','','','','0','',0,0,'UserName','UserId','','','','','0','',0,1,'DeptId','已选项','全部增加',1,null,1,0,0,45,3,'admin','2012-11-4 15:30:41',3,'admin','2012-12-9 6:47:55','',27,51,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='部门树（部门静态，用户动态）',[EntId]=2009,[SystemId]=27,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='ListR_',[DBTableName1]='Dcx_Dept',[DBTableName2]='Dcx_User',[TreeNodeSQL1]='SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept]  order by [DeptOrder]',[TreeNodeSQL2]='SELECT [UserId],[UserName], '''' as [ParentId],[DeptId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_User] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [UserId]',[IsDoubleDataSource]=0,[BindTextFieldName]='',[BindFieldDateType]=2,[BindFieldName]='员工编号',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=200,[RightBoxWidth]=0,[Height]=500,[TreeTitle]='部门树',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='DeptName',[ValueFieldName1]='DeptId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]='',[TopNode_ParentValue1]='0',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=0,[TextFieldName2]='UserName',[ValueFieldName2]='UserId',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]='',[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=0,[UseCache2]=1,[LinkFieldName]='DeptId',[Right_ListBoxTitle]='已选项',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=45,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-11-4 15:30:41',[EditorId]=3,[Editor]='admin',[EditTime]='2012-12-9 6:47:55',[Remark]='',[SSystemId]=27,[STreeId]=51,[AccountId]=1 where  [TreeId]=51 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=52  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(52,'部门树（非动态，单数据源，单树）',2054,27,0,0,'','',0,0,0,0,1,'','Dcx_Dept','','SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept] where      {{@ParentArea}} order by [DeptOrder]','',0,'',1,'DeptId',1,0,0,0,0,480,'部门','请输入关键字','DeptName','DeptId','ParentId','','','','0','',0,0,'','','','','','','0','',0,0,'','已选项','全部增加',1,null,1,0,0,45,3,'admin','2012-11-11 5:26:51',3,'admin','2012-12-11 5:10:39','',27,52,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='部门树（非动态，单数据源，单树）',[EntId]=2054,[SystemId]=27,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='Dcx_Dept',[DBTableName2]='',[TreeNodeSQL1]='SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept] where      {{@ParentArea}} order by [DeptOrder]',[TreeNodeSQL2]='',[IsDoubleDataSource]=0,[BindTextFieldName]='',[BindFieldDateType]=1,[BindFieldName]='DeptId',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=0,[RightBoxWidth]=0,[Height]=480,[TreeTitle]='部门',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='DeptName',[ValueFieldName1]='DeptId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]='',[TopNode_ParentValue1]='0',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=0,[TextFieldName2]='',[ValueFieldName2]='',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]='',[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=0,[UseCache2]=0,[LinkFieldName]='',[Right_ListBoxTitle]='已选项',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=45,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-11-11 5:26:51',[EditorId]=3,[Editor]='admin',[EditTime]='2012-12-11 5:10:39',[Remark]='',[SSystemId]=27,[STreeId]=52,[AccountId]=1 where  [TreeId]=52 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=53  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(53,'工作流（流程设计）',2062,27,0,0,'','',0,0,0,0,1,'','WF_FlowSort','WF_FlowType','SELECT [SortId],[SortName],'''' as [ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [WF_FlowSort] where      {{@ParentArea}} order by [SortNo]','SELECT [FlowId],[FlowName],'''' as [ParentId],[SortId],'''' as IconUrl,'''' as ExIconUrl 
 FROM [WF_FlowType] where      ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}}  order by [FlowNo]',1,'',1,'FlowId',1,0,0,0,0,520,'工作流','请输入关键字','SortName','SortId','','','','','0','',0,0,'FlowName','FlowId','','','','','0','',0,0,'SortId','已选项','全部增加',1,null,1,0,0,45,3,'admin','2012-12-15 21:31:31',3,'admin','2013-3-2 5:36:31','',27,53,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='工作流（流程设计）',[EntId]=2062,[SystemId]=27,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='WF_FlowSort',[DBTableName2]='WF_FlowType',[TreeNodeSQL1]='SELECT [SortId],[SortName],'''' as [ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [WF_FlowSort] where      {{@ParentArea}} order by [SortNo]',[TreeNodeSQL2]='SELECT [FlowId],[FlowName],'''' as [ParentId],[SortId],'''' as IconUrl,'''' as ExIconUrl 
 FROM [WF_FlowType] where      ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}}  order by [FlowNo]',[IsDoubleDataSource]=1,[BindTextFieldName]='',[BindFieldDateType]=1,[BindFieldName]='FlowId',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=0,[RightBoxWidth]=0,[Height]=520,[TreeTitle]='工作流',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='SortName',[ValueFieldName1]='SortId',[ParentFieldName1]='',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]='',[TopNode_ParentValue1]='0',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=0,[TextFieldName2]='FlowName',[ValueFieldName2]='FlowId',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]='',[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=0,[UseCache2]=0,[LinkFieldName]='SortId',[Right_ListBoxTitle]='已选项',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=45,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-15 21:31:31',[EditorId]=3,[Editor]='admin',[EditTime]='2013-3-2 5:36:31',[Remark]='',[SSystemId]=27,[STreeId]=53,[AccountId]=1 where  [TreeId]=53 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=54  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(54,'部门用户树（左树右列表，姓名，用户名）',0,27,0,0,'','',0,0,0,0,1,'ListR_','Dcx_Dept','Dcx_User','SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept]  order by [DeptOrder]','SELECT [UserName],[RealName], '''' as [ParentId],[DeptId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_User] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [RealName]',1,'',2,'员工编号',1,0,0,200,0,500,'部门员工树','请输入关键字','DeptName','DeptId','ParentId','','','','0','',0,0,'RealName','UserName','','','','','0','',1,1,'DeptId','已选项','全部增加',0,null,1,0,0,45,3,'admin','2012-12-16 0:36:13',3,'admin','2012-12-16 0:42:05','',27,54,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='部门用户树（左树右列表，姓名，用户名）',[EntId]=0,[SystemId]=27,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='ListR_',[DBTableName1]='Dcx_Dept',[DBTableName2]='Dcx_User',[TreeNodeSQL1]='SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept]  order by [DeptOrder]',[TreeNodeSQL2]='SELECT [UserName],[RealName], '''' as [ParentId],[DeptId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_User] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [RealName]',[IsDoubleDataSource]=1,[BindTextFieldName]='',[BindFieldDateType]=2,[BindFieldName]='员工编号',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=200,[RightBoxWidth]=0,[Height]=500,[TreeTitle]='部门员工树',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='DeptName',[ValueFieldName1]='DeptId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]='',[TopNode_ParentValue1]='0',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=0,[TextFieldName2]='RealName',[ValueFieldName2]='UserName',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]='',[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=1,[UseCache2]=1,[LinkFieldName]='DeptId',[Right_ListBoxTitle]='已选项',[AddAllAlertText]='全部增加',[Right_Hidden]=0,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=45,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-16 0:36:13',[EditorId]=3,[Editor]='admin',[EditTime]='2012-12-16 0:42:05',[Remark]='',[SSystemId]=27,[STreeId]=54,[AccountId]=1 where  [TreeId]=54 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=55  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(55,'角色（左树右列表，静态，表单）',0,27,0,0,'','',0,0,0,0,1,'','Dcx_Role','','SELECT [RoleId],[RoleName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Role] where      {{@ParentArea}} order by [RoleOrder]','',0,'',2,'',0,0,0,204,204,350,'全部角色','请输入关键词','RoleName','RoleId','ParentId','','','','0','',0,1,'','','','','','','0','',1,1,'','已选择','全部增加',0,null,1,0,0,18,3,'admin','2012-12-16 0:44:30',3,'admin','2012-12-16 0:44:30','',27,55,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='角色（左树右列表，静态，表单）',[EntId]=0,[SystemId]=27,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='Dcx_Role',[DBTableName2]='',[TreeNodeSQL1]='SELECT [RoleId],[RoleName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Role] where      {{@ParentArea}} order by [RoleOrder]',[TreeNodeSQL2]='',[IsDoubleDataSource]=0,[BindTextFieldName]='',[BindFieldDateType]=2,[BindFieldName]='',[IsBindToValue]=0,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=204,[RightBoxWidth]=204,[Height]=350,[TreeTitle]='全部角色',[SearchIputDefaultText]='请输入关键词',[TextFieldName1]='RoleName',[ValueFieldName1]='RoleId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]='',[TopNode_ParentValue1]='0',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=1,[TextFieldName2]='',[ValueFieldName2]='',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]='',[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=1,[UseCache2]=1,[LinkFieldName]='',[Right_ListBoxTitle]='已选择',[AddAllAlertText]='全部增加',[Right_Hidden]=0,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=18,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-16 0:44:30',[EditorId]=3,[Editor]='admin',[EditTime]='2012-12-16 0:44:30',[Remark]='',[SSystemId]=27,[STreeId]=55,[AccountId]=1 where  [TreeId]=55 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=56  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(56,'部门树（非动态，单数据源，左树右列表）',0,27,0,0,'','',0,0,0,0,1,'','Dcx_Dept','','SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept] where      {{@ParentArea}} order by [DeptOrder]','',0,'',1,'DeptId',1,0,0,0,0,480,'部门','请输入关键字','DeptName','DeptId','ParentId','','','','0','',0,0,'','','','','','','0','',0,0,'','已选项','全部增加',0,null,1,0,0,45,3,'admin','2013-1-16 3:23:38',3,'admin','2013-1-16 3:23:38','',27,56,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='部门树（非动态，单数据源，左树右列表）',[EntId]=0,[SystemId]=27,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='Dcx_Dept',[DBTableName2]='',[TreeNodeSQL1]='SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept] where      {{@ParentArea}} order by [DeptOrder]',[TreeNodeSQL2]='',[IsDoubleDataSource]=0,[BindTextFieldName]='',[BindFieldDateType]=1,[BindFieldName]='DeptId',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=0,[RightBoxWidth]=0,[Height]=480,[TreeTitle]='部门',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='DeptName',[ValueFieldName1]='DeptId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]='',[TopNode_ParentValue1]='0',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=0,[TextFieldName2]='',[ValueFieldName2]='',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]='',[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=0,[UseCache2]=0,[LinkFieldName]='',[Right_ListBoxTitle]='已选项',[AddAllAlertText]='全部增加',[Right_Hidden]=0,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=45,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-1-16 3:23:38',[EditorId]=3,[Editor]='admin',[EditTime]='2013-1-16 3:23:38',[Remark]='',[SSystemId]=27,[STreeId]=56,[AccountId]=1 where  [TreeId]=56 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=57  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(57,'运行端网页目录（动态，单树，MenuName,MenuID）',2084,27,0,0,'','',0,0,0,0,1,'','Dcx_Menu_Run','','SELECT [MenuId],[MenuName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Menu_Run]where         ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} order by [OrderBy]','',0,'',2,'MenuId',1,0,0,200,204,550,'全部网页','请输入关键字','MenuName','MenuId','ParentId','','','','{$topmenuid}','',1,1,'','','','','','','0','',0,0,'','已选择','全部增加',1,null,1,0,0,30,3,'admin','2013-1-27 3:57:21',3,'admin','2013-1-27 3:57:21','',27,57,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='运行端网页目录（动态，单树，MenuName,MenuID）',[EntId]=2084,[SystemId]=27,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='Dcx_Menu_Run',[DBTableName2]='',[TreeNodeSQL1]='SELECT [MenuId],[MenuName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Menu_Run]where         ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and  ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} order by [OrderBy]',[TreeNodeSQL2]='',[IsDoubleDataSource]=0,[BindTextFieldName]='',[BindFieldDateType]=2,[BindFieldName]='MenuId',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=200,[RightBoxWidth]=204,[Height]=550,[TreeTitle]='全部网页',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='MenuName',[ValueFieldName1]='MenuId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]='',[TopNode_ParentValue1]='{$topmenuid}',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=1,[UseCache1]=1,[TextFieldName2]='',[ValueFieldName2]='',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]='',[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=0,[UseCache2]=0,[LinkFieldName]='',[Right_ListBoxTitle]='已选择',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=30,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-1-27 3:57:21',[EditorId]=3,[Editor]='admin',[EditTime]='2013-1-27 3:57:21',[Remark]='',[SSystemId]=27,[STreeId]=57,[AccountId]=1 where  [TreeId]=57 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=58  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(58,'部门用户树（左树右列表，用户名，ID）',0,27,0,0,'','',0,0,0,0,1,'ListR_','Dcx_Dept','Dcx_User','SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept]  order by [DeptOrder]','SELECT [UserId],[UserName], '''' as [ParentId],[DeptId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_User] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [UserName]',1,'',2,'员工编号',1,0,0,200,0,500,'部门员工树','请输入关键字','DeptName','DeptId','ParentId','','','','0','',0,0,'UserName','UserId','','','','','0','',1,1,'DeptId','已选项','全部增加',0,null,1,0,0,45,3,'admin','2012-12-24 8:28:43',3,'admin','2012-12-24 8:28:43','',27,58,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='部门用户树（左树右列表，用户名，ID）',[EntId]=0,[SystemId]=27,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='ListR_',[DBTableName1]='Dcx_Dept',[DBTableName2]='Dcx_User',[TreeNodeSQL1]='SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept]  order by [DeptOrder]',[TreeNodeSQL2]='SELECT [UserId],[UserName], '''' as [ParentId],[DeptId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_User] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [UserName]',[IsDoubleDataSource]=1,[BindTextFieldName]='',[BindFieldDateType]=2,[BindFieldName]='员工编号',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=200,[RightBoxWidth]=0,[Height]=500,[TreeTitle]='部门员工树',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='DeptName',[ValueFieldName1]='DeptId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]='',[TopNode_ParentValue1]='0',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=0,[TextFieldName2]='UserName',[ValueFieldName2]='UserId',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]='',[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=1,[UseCache2]=1,[LinkFieldName]='DeptId',[Right_ListBoxTitle]='已选项',[AddAllAlertText]='全部增加',[Right_Hidden]=0,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=45,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-24 8:28:43',[EditorId]=3,[Editor]='admin',[EditTime]='2012-12-24 8:28:43',[Remark]='',[SSystemId]=27,[STreeId]=58,[AccountId]=1 where  [TreeId]=58 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=59  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(59,'通讯录（左树右列表，用户名，ID）',0,27,0,0,'','',0,0,0,0,1,'ListR_','Dcx_LinkManGroup','Dcx_LinkMan','SELECT [GroupId],[GroupName],'''' as [ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_LinkManGroup] where [CreatorId]={$userid} order by [OrderNo]','SELECT [UserId],[UserName], '''' as [ParentId],[GroupId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_LinkMan] where [CreatorId]={$userid} and   {{@ParentArea}} and {{@LinkArea}} order by [UserName]',1,'',2,'UserId',1,0,0,200,0,500,'通讯录','请输入关键字','GroupName','GroupId','ParentId','','','','','',0,0,'UserName','UserId','','','','','','',0,1,'GroupId','已选项','全部增加',0,null,1,0,0,45,3,'admin','2012-12-24 8:28:43',3,'admin','2012-12-24 8:28:43','',27,58,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='通讯录（左树右列表，用户名，ID）',[EntId]=0,[SystemId]=27,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='ListR_',[DBTableName1]='Dcx_LinkManGroup',[DBTableName2]='Dcx_LinkMan',[TreeNodeSQL1]='SELECT [GroupId],[GroupName],'''' as [ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_LinkManGroup] where [CreatorId]={$userid} order by [OrderNo]',[TreeNodeSQL2]='SELECT [UserId],[UserName], '''' as [ParentId],[GroupId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_LinkMan] where [CreatorId]={$userid} and   {{@ParentArea}} and {{@LinkArea}} order by [UserName]',[IsDoubleDataSource]=1,[BindTextFieldName]='',[BindFieldDateType]=2,[BindFieldName]='UserId',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=200,[RightBoxWidth]=0,[Height]=500,[TreeTitle]='通讯录',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='GroupName',[ValueFieldName1]='GroupId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]='',[TopNode_ParentValue1]='',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=0,[TextFieldName2]='UserName',[ValueFieldName2]='UserId',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]='',[TopNode_ParentValue2]='',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=0,[UseCache2]=1,[LinkFieldName]='GroupId',[Right_ListBoxTitle]='已选项',[AddAllAlertText]='全部增加',[Right_Hidden]=0,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=45,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-24 8:28:43',[EditorId]=3,[Editor]='admin',[EditTime]='2012-12-24 8:28:43',[Remark]='',[SSystemId]=27,[STreeId]=58,[AccountId]=1 where  [TreeId]=59 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=60  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(60,'角色（静态，单树，RoleNameName,RoleID）',2278,29,0,0,'','',0,0,0,0,1,'','Dcx_Role','','SELECT [RoleId],[RoleName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Role] where  [RoleId]>2 and     {{@ParentArea}} order by [RoleOrder]','',0,'',1,'RoleId',1,1,0,204,204,550,'请选择','请输入关键词','RoleName','RoleId','ParentId','','','','0','',0,1,'','','','','','','0','',1,1,'','已选择','全部增加',1,null,1,0,0,18,3,'admin','2012-10-9 23:19:20',3,'admin','2013-1-26 0:22:45','',29,16,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='角色（静态，单树，RoleNameName,RoleID）',[EntId]=2278,[SystemId]=29,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='Dcx_Role',[DBTableName2]='',[TreeNodeSQL1]='SELECT [RoleId],[RoleName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Role] where  [RoleId]>2 and     {{@ParentArea}} order by [RoleOrder]',[TreeNodeSQL2]='',[IsDoubleDataSource]=0,[BindTextFieldName]='',[BindFieldDateType]=1,[BindFieldName]='RoleId',[IsBindToValue]=1,[BindMode]=1,[BindModuleType]=0,[LeftBoxWidth]=204,[RightBoxWidth]=204,[Height]=550,[TreeTitle]='请选择',[SearchIputDefaultText]='请输入关键词',[TextFieldName1]='RoleName',[ValueFieldName1]='RoleId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]='',[TopNode_ParentValue1]='0',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=1,[TextFieldName2]='',[ValueFieldName2]='',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]='',[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=1,[UseCache2]=1,[LinkFieldName]='',[Right_ListBoxTitle]='已选择',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=18,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-10-9 23:19:20',[EditorId]=3,[Editor]='admin',[EditTime]='2013-1-26 0:22:45',[Remark]='',[SSystemId]=29,[STreeId]=16,[AccountId]=1 where  [TreeId]=60 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=61  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(61,'部门用户树（左树右列表，用户名，ID）',0,45,0,0,'','',0,0,0,0,1,'ListR_','','','SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept]  order by [DeptOrder]','SELECT [UserId],[UserName], '''' as [ParentId],[DeptId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_User] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [UserName]',1,'',2,'员工编号',1,0,0,200,0,500,'部门员工树','请输入关键字','DeptName','DeptId','ParentId','','','','0','',0,0,'UserName','UserId','','','','','0','',1,1,'DeptId','已选项','全部增加',1,null,1,0,0,45,1,'admin','2012-12-24 8:27:31',3,'admin','2012-12-24 8:28:44','',30,29,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='部门用户树（左树右列表，用户名，ID）',[EntId]=0,[SystemId]=45,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='ListR_',[DBTableName1]='',[DBTableName2]='',[TreeNodeSQL1]='SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept]  order by [DeptOrder]',[TreeNodeSQL2]='SELECT [UserId],[UserName], '''' as [ParentId],[DeptId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_User] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [UserName]',[IsDoubleDataSource]=1,[BindTextFieldName]='',[BindFieldDateType]=2,[BindFieldName]='员工编号',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=200,[RightBoxWidth]=0,[Height]=500,[TreeTitle]='部门员工树',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='DeptName',[ValueFieldName1]='DeptId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]='',[TopNode_ParentValue1]='0',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=0,[TextFieldName2]='UserName',[ValueFieldName2]='UserId',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]='',[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=1,[UseCache2]=1,[LinkFieldName]='DeptId',[Right_ListBoxTitle]='已选项',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]=null,[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=45,[CreatorId]=1,[Creator]='admin',[CreateTime]='2012-12-24 8:27:31',[EditorId]=3,[Editor]='admin',[EditTime]='2012-12-24 8:28:44',[Remark]='',[SSystemId]=30,[STreeId]=29,[AccountId]=1 where  [TreeId]=61 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=62  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(62,'示例模板',-1,0,0,0,'','',0,0,0,0,1,'','','','SELECT [MTypeId],[MTypeName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_MenuType]  order by [SortOrder]','SELECT [MenuId],[MenuName], [ParentId],[MTypeId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_MenuExample]
 where   {{@ParentArea}} and {{@LinkArea}} order by [SortOrder],[MenuId]',1,'',2,'',0,0,0,204,204,500,'请选择','请输入关键词','MTypeName','MTypeId','ParentId','','','','0','',0,1,'MenuName','MenuId','','','','','0','',1,1,'MTypeId','已选择','全部增加',1,'',1,0,0,18,3,'admin','2013-10-12 15:31:06',3,'admin','2013-10-12 16:35:09','',0,0,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='示例模板',[EntId]=-1,[SystemId]=0,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='',[DBTableName2]='',[TreeNodeSQL1]='SELECT [MTypeId],[MTypeName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_MenuType]  order by [SortOrder]',[TreeNodeSQL2]='SELECT [MenuId],[MenuName], [ParentId],[MTypeId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_MenuExample]
 where   {{@ParentArea}} and {{@LinkArea}} order by [SortOrder],[MenuId]',[IsDoubleDataSource]=1,[BindTextFieldName]='',[BindFieldDateType]=2,[BindFieldName]='',[IsBindToValue]=0,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=204,[RightBoxWidth]=204,[Height]=500,[TreeTitle]='请选择',[SearchIputDefaultText]='请输入关键词',[TextFieldName1]='MTypeName',[ValueFieldName1]='MTypeId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]='',[TopNode_ParentValue1]='0',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=1,[TextFieldName2]='MenuName',[ValueFieldName2]='MenuId',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]='',[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=1,[UseCache2]=1,[LinkFieldName]='MTypeId',[Right_ListBoxTitle]='已选择',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]='',[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=18,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-10-12 15:31:06',[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-12 16:35:09',[Remark]='',[SSystemId]=0,[STreeId]=0,[AccountId]=1 where  [TreeId]=62 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=63  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(63,'示例模板，单数据源',-1,0,0,0,'','',0,0,0,0,1,'','','','SELECT [MenuId],[MenuName], [ParentId],[MTypeId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_MenuExample]
 where    {{@ParentArea}} order by [SortOrder],[MenuId]','',0,'',2,'',0,0,0,204,204,500,'请选择','请输入关键词','MenuName','MenuId','ParentId','','','','0','',1,1,'MenuName','MenuId','','','','','0','',1,1,'MTypeId','已选择','全部增加',1,'',1,0,0,18,3,'admin','2013-10-12 22:50:23',3,'admin','2013-10-12 22:56:01','',0,0,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='示例模板，单数据源',[EntId]=-1,[SystemId]=0,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='',[DBTableName1]='',[DBTableName2]='',[TreeNodeSQL1]='SELECT [MenuId],[MenuName], [ParentId],[MTypeId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_MenuExample]
 where    {{@ParentArea}} order by [SortOrder],[MenuId]',[TreeNodeSQL2]='',[IsDoubleDataSource]=0,[BindTextFieldName]='',[BindFieldDateType]=2,[BindFieldName]='',[IsBindToValue]=0,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=204,[RightBoxWidth]=204,[Height]=500,[TreeTitle]='请选择',[SearchIputDefaultText]='请输入关键词',[TextFieldName1]='MenuName',[ValueFieldName1]='MenuId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]='',[TopNode_ParentValue1]='0',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=1,[UseCache1]=1,[TextFieldName2]='MenuName',[ValueFieldName2]='MenuId',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]='',[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=1,[UseCache2]=1,[LinkFieldName]='MTypeId',[Right_ListBoxTitle]='已选择',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]='',[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=18,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-10-12 22:50:23',[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-12 22:56:01',[Remark]='',[SSystemId]=0,[STreeId]=0,[AccountId]=1 where  [TreeId]=63 
      end
      if (select count(1) from [Dcx_Tree_Run] where  [TreeId]=64  )<1 
      begin 
           Insert into [Dcx_Tree_Run] ([TreeId],[TreeName],[EntId],[SystemId],[ModuleId],[DBConnectId],[DIYJsCss],[StaticHtml],[NoTitle],[NoSearch],[NoImg],[IsDesigning],[IsStatic],[CtrlPrex],[DBTableName1],[DBTableName2],[TreeNodeSQL1],[TreeNodeSQL2],[IsDoubleDataSource],[BindTextFieldName],[BindFieldDateType],[BindFieldName],[IsBindToValue],[BindMode],[BindModuleType],[LeftBoxWidth],[RightBoxWidth],[Height],[TreeTitle],[SearchIputDefaultText],[TextFieldName1],[ValueFieldName1],[ParentFieldName1],[IconUrlFieldName1],[ExIconUrlFieldName1],[UrlFieldName1],[TopNode_ParentValue1],[TreeNode_JSonClick1],[Tree_Dynamic1],[UseCache1],[TextFieldName2],[ValueFieldName2],[ParentFieldName2],[IconUrlFieldName2],[ExIconUrlFieldName2],[UrlFieldName2],[TopNode_ParentValue2],[TreeNode_JSonClick2],[Tree_Dynamic2],[UseCache2],[LinkFieldName],[Right_ListBoxTitle],[AddAllAlertText],[Right_Hidden],[AddAll_JSonClick],[DoCallBack],[LeftDrag],[RightDrag],[LeftRightSpace_Width],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[Remark],[SSystemId],[STreeId],[AccountId])values(64,'部门树（部门静态，用户动态）',2037,0,0,0,'','',0,0,0,0,1,'ListR_','','','SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept]  order by [DeptOrder]','SELECT [UserId],[UserName], '''' as [ParentId],[DeptId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_User] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [UserId]',0,'',2,'员工编号',1,0,0,180,0,500,'部门树','请输入关键字','DeptName','DeptId','ParentId','','','','0','',0,0,'UserName','UserId','','','','','0','',0,1,'DeptId','已选项','全部增加',1,'',1,0,0,45,3,'admin','2013-11-4 15:30:03',3,'admin','2013-11-4 16:07:06','',0,0,1)
      end
      else 
      begin 
           update [Dcx_Tree_Run] set [TreeName]='部门树（部门静态，用户动态）',[EntId]=2037,[SystemId]=0,[ModuleId]=0,[DBConnectId]=0,[DIYJsCss]='',[StaticHtml]='',[NoTitle]=0,[NoSearch]=0,[NoImg]=0,[IsDesigning]=0,[IsStatic]=1,[CtrlPrex]='ListR_',[DBTableName1]='',[DBTableName2]='',[TreeNodeSQL1]='SELECT [DeptId],[DeptName],[ParentId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_Dept]  order by [DeptOrder]',[TreeNodeSQL2]='SELECT [UserId],[UserName], '''' as [ParentId],[DeptId],'''' as IconUrl,'''' as ExIconUrl  FROM [Dcx_User] where    ([AccountId]={$AccountId}   or    [AccountId]=1) and {{@ParentArea}} and {{@LinkArea}} order by [UserId]',[IsDoubleDataSource]=0,[BindTextFieldName]='',[BindFieldDateType]=2,[BindFieldName]='员工编号',[IsBindToValue]=1,[BindMode]=0,[BindModuleType]=0,[LeftBoxWidth]=180,[RightBoxWidth]=0,[Height]=500,[TreeTitle]='部门树',[SearchIputDefaultText]='请输入关键字',[TextFieldName1]='DeptName',[ValueFieldName1]='DeptId',[ParentFieldName1]='ParentId',[IconUrlFieldName1]='',[ExIconUrlFieldName1]='',[UrlFieldName1]='',[TopNode_ParentValue1]='0',[TreeNode_JSonClick1]='',[Tree_Dynamic1]=0,[UseCache1]=0,[TextFieldName2]='UserName',[ValueFieldName2]='UserId',[ParentFieldName2]='',[IconUrlFieldName2]='',[ExIconUrlFieldName2]='',[UrlFieldName2]='',[TopNode_ParentValue2]='0',[TreeNode_JSonClick2]='',[Tree_Dynamic2]=0,[UseCache2]=1,[LinkFieldName]='DeptId',[Right_ListBoxTitle]='已选项',[AddAllAlertText]='全部增加',[Right_Hidden]=1,[AddAll_JSonClick]='',[DoCallBack]=1,[LeftDrag]=0,[RightDrag]=0,[LeftRightSpace_Width]=45,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-11-4 15:30:03',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-4 16:07:06',[Remark]='',[SSystemId]=0,[STreeId]=0,[AccountId]=1 where  [TreeId]=64 
      end




 GO--mygofuck 
UPDATE [Dcx_User] SET [UserGuId] =newid() 
      ,[UpperName] ='ADMIN'
      ,[RealName] = '系统管理员'
      ,[Email] = 'your_email@163.com'
      ,[Address] =''
      ,[GroupId] = 14
      ,[AccountId] =1
      ,[IsAccountCreator] =1
      ,[SuperAdmin] = 1
      ,[CanLogin] =1
      ,[IP] =''
      ,[RestrictIp] =0
      ,[VisitTime] =0
      ,[Online] =0
      ,[PWD] ='60-94-86-A3-E9-1F-DD-A2-66-5E-3B-DD-F4-13-F5-01'
      ,[LoginDate] =getdate()
      ,[UserOrder] =1
      ,[Sex] ='男'
      ,[Telephone] =null
      ,[Status] =null
      ,[RegistedDate] =getdate()
      ,[Phone] =null
      ,[Birthday] =getdate()
      ,[Style] =1
      ,[IsNeedKey] =0
      ,[Caste] = 0
      ,[Http] = null
      ,[IconPath] =null
      ,[CreatorId] = 3
      ,[Creator] ='admin'
      ,[CreateTime] =getdate()
      ,[EditorId] =3
      ,[Editor] = 'admin'
      ,[EditTime] = getdate()
      ,[SelftHomePage] = 0
      ,[SelftNavMenu] = 0
      ,[SelftSearch] =0
      ,[StyleId] = 1
      ,[AcceptStrangerIM] =1
      ,[Remark] =''
      ,[DiskSize] =0
      ,[InviteCode] =null
 WHERE [UserName]='admin' 

 GO--mygofuck 
declare  @topMenuId int 
set  @topMenuId=-1 

--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=2831  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2831,'5cac5a7a-cb53-4068-9f9f-1eb78c428a13','<font color=red>调动申请</font>',2905,'/Template/default/ListReport/ListReport_Tree001.aspx',1,'/images/default.gif','/images/default.gif',4,'',null,0,null,4,0,4,1,1,1,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='5cac5a7a-cb53-4068-9f9f-1eb78c428a13',[MenuName]='<font color=red>调动申请</font>',[ParentId]=2905,[ProPath]='/Template/default/ListReport/ListReport_Tree001.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=4,[Target]='',[IsOpen]=null,[IsHidden]=0,[Remark]=null,[SSystemId]=4,[SMenuId]=0,[SystemId]=4,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=2831 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=2831  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(616,2831,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=2831  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=1629  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(1629,2831,'调动申请',1,1017,0,'人事_个人调动申请表',0,0,1,4,1629,null,null,4,null,1,null,30,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=2831,[EntName]='调动申请',[MEnt]=1,[DBTableId]=1017,[DBConnectId]=0,[DBTableName]='人事_个人调动申请表',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=4,[SEntId]=1629,[FSystemId]=null,[FEntId]=null,[SystemId]=4,[Remark]=null,[IsFlow]=1,[IsChecked]=null,[FlowId]=30,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=1629 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=1629

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=1629  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11404,-1,1629,1,1,1,1,0,1,0,0,0,1,0,0,0,0,0,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=0,[CanUpdate]=1,[CanOutPut]=0,[CanInput]=0,[CanCopy]=0,[CanPrint]=1,[CanCheck]=0,[CanClean]=0,[CanRecycle]=0,[CanExecute]=0,[CanDesign]=0,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=1629  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=1629  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(10763,2831,1629,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=2831,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=1629  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=1629

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1629  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18996,4,2831,1629,13,1,1,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=4,[MenuId]=2831,[TemplateId]=13,[ModuleId]=1,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1629  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1629  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18997,4,2831,1629,13,2,9,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=4,[MenuId]=2831,[TemplateId]=13,[ModuleId]=9,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1629  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1629  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18998,4,2831,1629,13,3,14,1,4,2,'/Template/Default/Form/AjaxForm/AjaxForm008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=4,[MenuId]=2831,[TemplateId]=13,[ModuleId]=14,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='/Template/Default/Form/AjaxForm/AjaxForm008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1629  and  [ModuleTypeId]=3 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1629  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18999,4,2831,1629,13,16,31,1,5,2,'/Template/Default/Browse/Browse008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=4,[MenuId]=2831,[TemplateId]=13,[ModuleId]=31,[GroupId]=1,[AreaId]=5,[ShowMode]=2,[AreaUrl]='/Template/Default/Browse/Browse008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1629  and  [ModuleTypeId]=16 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_AjaxForm_Run]  where [EntId]=1629

--Dcx_AjaxForm_Run
      if (select count(1) from [Dcx_AjaxForm_Run] where  [EntId]=1629  )<1 
      begin 
           Insert into [Dcx_AjaxForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('16fbe848-9ce0-452d-a140-e728d06dc4f3','调动申请',1629,14,'','',0,'<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>','','DcxRun.AjaxF_1629= {"MenuId":2831,"MEntId":1629,"EntName":"调动申请","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":true,"EntMsg":{"E1629":{"EntId":1629,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{
DcxForm.CreateHtmlEditor(''d1629_调动理由'',1629,''AjaxF_'',''调动理由'',600,350,false,1,false);

}
GetLinkCtrlData_AjaxF_1629_153(null,null);
GetLinkCtrlData_AjaxF_1629_154(null,null);
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_1629.EntMsg.E1629.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"人事_个人调动申请表","EntId":1629,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"申请人编号":{"DtId":2,"DB":1,"CId":4,"FL":-1},"申请调动人":{"DtId":2,"DB":1,"CId":4,"FL":-1},"申请调动时间":{"DtId":3,"DB":1,"CId":4,"FL":-1},"调动理由":{"DtId":2,"DB":1,"CId":23,"FL":-1},"申请人姓名":{"DtId":2,"DB":1,"CId":4,"FL":-1},"性别":{"DtId":2,"DB":1,"CId":4,"FL":-1},"入职时间":{"DtId":2,"DB":1,"CId":4,"FL":-1},"原工作部门":{"DtId":2,"DB":1,"CId":4,"FL":-1},"原工作岗位":{"DtId":2,"DB":1,"CId":4,"FL":-1},"原工资级别":{"DtId":7,"DB":1,"CId":4,"FL":-1},"原基本工资":{"DtId":5,"DB":1,"CId":1,"FL":0},"原考核工资":{"DtId":5,"DB":1,"CId":4,"FL":-1},"调动后的部门":{"DtId":2,"DB":1,"CId":3,"FL":-1},"调动后的岗位":{"DtId":2,"DB":1,"CId":3,"FL":-1},"调动后的工资级别":{"DtId":7,"DB":1,"CId":3,"FL":-1},"调动后的基本工资":{"DtId":5,"DB":1,"CId":1,"FL":0},"调动后的考核工资":{"DtId":5,"DB":1,"CId":1,"FL":0},"调出部门意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"调入部门意见":{"DtId":2,"DB":1,"CId":2,"FL":0},"人事部意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"总经理意见":{"DtId":2,"DB":1,"CId":2,"FL":0}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_1629.EntMsg.E1629.GetDataRowModel=function()
{
    return {"申请人编号":"","申请调动人":"","申请调动时间":new Date(),"调动理由":"","申请人姓名":"","性别":"","入职时间":"","原工作部门":"","原工作岗位":"","原工资级别":"0","原基本工资":"0","原考核工资":"0","调动后的部门":"","调动后的岗位":"","调动后的工资级别":"0","调动后的基本工资":"0","调动后的考核工资":"0","调出部门意见":"","调入部门意见":"","人事部意见":"","总经理意见":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_AjaxF_1629_146(obj,curFieldName){
 var EntId=1629;
 var FldId=2659;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''性别'';
 var $formContainer=DcxForm.GetHtmlContainer(1629,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1629,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"性别\",FldId:"+FldId+",EntId:1629,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''申请调动人''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1629,''AjaxF_'',''申请调动人'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@申请调动人}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1629_性别");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1629_147(obj,curFieldName){
 var EntId=1629;
 var FldId=2660;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''入职时间'';
 var $formContainer=DcxForm.GetHtmlContainer(1629,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1629,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"入职时间\",FldId:"+FldId+",EntId:1629,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''申请调动人''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1629,''AjaxF_'',''申请调动人'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@申请调动人}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1629_入职时间");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1629_148(obj,curFieldName){
 var EntId=1629;
 var FldId=2661;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''原工作部门'';
 var $formContainer=DcxForm.GetHtmlContainer(1629,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1629,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"原工作部门\",FldId:"+FldId+",EntId:1629,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''申请调动人''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1629,''AjaxF_'',''申请调动人'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@申请调动人}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1629_原工作部门");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1629_149(obj,curFieldName){
 var EntId=1629;
 var FldId=2662;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''原工作岗位'';
 var $formContainer=DcxForm.GetHtmlContainer(1629,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1629,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"原工作岗位\",FldId:"+FldId+",EntId:1629,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''申请调动人''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1629,''AjaxF_'',''申请调动人'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@申请调动人}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1629_原工作岗位");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1629_150(obj,curFieldName){
 var EntId=1629;
 var FldId=2663;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''原工资级别'';
 var $formContainer=DcxForm.GetHtmlContainer(1629,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1629,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"原工资级别\",FldId:"+FldId+",EntId:1629,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''申请调动人''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1629,''AjaxF_'',''申请调动人'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@申请调动人}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1629_原工资级别");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1629_151(obj,curFieldName){
 var EntId=1629;
 var FldId=2664;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''原基本工资'';
 var $formContainer=DcxForm.GetHtmlContainer(1629,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1629,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"原基本工资\",FldId:"+FldId+",EntId:1629,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:1,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''申请调动人''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1629,''AjaxF_'',''申请调动人'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@申请调动人}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1629_原基本工资");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1629_152(obj,curFieldName){
 var EntId=1629;
 var FldId=2665;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''原考核工资'';
 var $formContainer=DcxForm.GetHtmlContainer(1629,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1629,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"原考核工资\",FldId:"+FldId+",EntId:1629,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''申请调动人''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1629,''AjaxF_'',''申请调动人'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@申请调动人}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1629_原考核工资");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1629_153(obj,curFieldName){
 var EntId=1629;
 var FldId=2669;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''调动后的基本工资'';
 var $formContainer=DcxForm.GetHtmlContainer(1629,''AjaxF_'');
 var $ddlContainer=null;
var strCode="{@原基本工资}" ;
var v_f1=null;
if(''原基本工资''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,1629,''AjaxF_'',''原基本工资'',$formContainer);
if(v_f1==null)
   return;
v_f1 = v_f1.replaceAll('','','''');
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0.00";
strCode=strCode.replaceAll("{@原基本工资}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal)||isNaN(myVal))
myVal = 0.00;
myVal =Dcx.ConvertMoney(myVal);
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d1629_调动后的基本工资");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
function GetLinkCtrlData_AjaxF_1629_154(obj,curFieldName){
 var EntId=1629;
 var FldId=2670;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''调动后的考核工资'';
 var $formContainer=DcxForm.GetHtmlContainer(1629,''AjaxF_'');
 var $ddlContainer=null;
var strCode="{@原考核工资}" ;
var v_f1=null;
if(''原考核工资''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1629,''AjaxF_'',''原考核工资'',$formContainer);
if(v_f1==null)
   return;
v_f1 = v_f1.replaceAll('','','''');
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0.00";
strCode=strCode.replaceAll("{@原考核工资}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal)||isNaN(myVal))
myVal = 0.00;
myVal =Dcx.ConvertMoney(myVal);
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d1629_调动后的考核工资");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_1629.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1629,''AjaxF_'',buildNew,closeDlg);

}','<$1629$>select [申请人编号],[申请调动人],[申请调动时间],[申请人姓名],[性别],[入职时间],[原工作部门],[原工作岗位],[原工资级别],[原基本工资],[原考核工资],[调动后的部门],[调动后的岗位],[调动后的工资级别],[调动后的基本工资],[调动后的考核工资],[调动理由],[调出部门意见],[调入部门意见],[人事部意见],[总经理意见],[LD_Id] from 人事_个人调动申请表 where [LD_Id]=''{$keyfieldvalue}''</$1629$>',20,'','','','1629*LD_Id*2**2*人事_个人调动申请表*调动申请',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 7:02:48',3,'admin','2013-11-30 5:59:53',1)
      end
      else 
      begin 
           update [Dcx_AjaxForm_Run] set [FormId]='16fbe848-9ce0-452d-a140-e728d06dc4f3',[FormName]='调动申请',[ModuleId]=14,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.AjaxF_1629= {"MenuId":2831,"MEntId":1629,"EntName":"调动申请","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":true,"EntMsg":{"E1629":{"EntId":1629,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{
DcxForm.CreateHtmlEditor(''d1629_调动理由'',1629,''AjaxF_'',''调动理由'',600,350,false,1,false);

}
GetLinkCtrlData_AjaxF_1629_153(null,null);
GetLinkCtrlData_AjaxF_1629_154(null,null);
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_1629.EntMsg.E1629.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"人事_个人调动申请表","EntId":1629,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"申请人编号":{"DtId":2,"DB":1,"CId":4,"FL":-1},"申请调动人":{"DtId":2,"DB":1,"CId":4,"FL":-1},"申请调动时间":{"DtId":3,"DB":1,"CId":4,"FL":-1},"调动理由":{"DtId":2,"DB":1,"CId":23,"FL":-1},"申请人姓名":{"DtId":2,"DB":1,"CId":4,"FL":-1},"性别":{"DtId":2,"DB":1,"CId":4,"FL":-1},"入职时间":{"DtId":2,"DB":1,"CId":4,"FL":-1},"原工作部门":{"DtId":2,"DB":1,"CId":4,"FL":-1},"原工作岗位":{"DtId":2,"DB":1,"CId":4,"FL":-1},"原工资级别":{"DtId":7,"DB":1,"CId":4,"FL":-1},"原基本工资":{"DtId":5,"DB":1,"CId":1,"FL":0},"原考核工资":{"DtId":5,"DB":1,"CId":4,"FL":-1},"调动后的部门":{"DtId":2,"DB":1,"CId":3,"FL":-1},"调动后的岗位":{"DtId":2,"DB":1,"CId":3,"FL":-1},"调动后的工资级别":{"DtId":7,"DB":1,"CId":3,"FL":-1},"调动后的基本工资":{"DtId":5,"DB":1,"CId":1,"FL":0},"调动后的考核工资":{"DtId":5,"DB":1,"CId":1,"FL":0},"调出部门意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"调入部门意见":{"DtId":2,"DB":1,"CId":2,"FL":0},"人事部意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"总经理意见":{"DtId":2,"DB":1,"CId":2,"FL":0}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_1629.EntMsg.E1629.GetDataRowModel=function()
{
    return {"申请人编号":"","申请调动人":"","申请调动时间":new Date(),"调动理由":"","申请人姓名":"","性别":"","入职时间":"","原工作部门":"","原工作岗位":"","原工资级别":"0","原基本工资":"0","原考核工资":"0","调动后的部门":"","调动后的岗位":"","调动后的工资级别":"0","调动后的基本工资":"0","调动后的考核工资":"0","调出部门意见":"","调入部门意见":"","人事部意见":"","总经理意见":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_AjaxF_1629_146(obj,curFieldName){
 var EntId=1629;
 var FldId=2659;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''性别'';
 var $formContainer=DcxForm.GetHtmlContainer(1629,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1629,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"性别\",FldId:"+FldId+",EntId:1629,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''申请调动人''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1629,''AjaxF_'',''申请调动人'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@申请调动人}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1629_性别");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1629_147(obj,curFieldName){
 var EntId=1629;
 var FldId=2660;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''入职时间'';
 var $formContainer=DcxForm.GetHtmlContainer(1629,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1629,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"入职时间\",FldId:"+FldId+",EntId:1629,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''申请调动人''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1629,''AjaxF_'',''申请调动人'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@申请调动人}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1629_入职时间");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1629_148(obj,curFieldName){
 var EntId=1629;
 var FldId=2661;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''原工作部门'';
 var $formContainer=DcxForm.GetHtmlContainer(1629,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1629,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"原工作部门\",FldId:"+FldId+",EntId:1629,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''申请调动人''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1629,''AjaxF_'',''申请调动人'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@申请调动人}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1629_原工作部门");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1629_149(obj,curFieldName){
 var EntId=1629;
 var FldId=2662;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''原工作岗位'';
 var $formContainer=DcxForm.GetHtmlContainer(1629,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1629,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"原工作岗位\",FldId:"+FldId+",EntId:1629,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''申请调动人''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1629,''AjaxF_'',''申请调动人'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@申请调动人}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1629_原工作岗位");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1629_150(obj,curFieldName){
 var EntId=1629;
 var FldId=2663;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''原工资级别'';
 var $formContainer=DcxForm.GetHtmlContainer(1629,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1629,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"原工资级别\",FldId:"+FldId+",EntId:1629,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''申请调动人''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1629,''AjaxF_'',''申请调动人'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@申请调动人}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1629_原工资级别");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1629_151(obj,curFieldName){
 var EntId=1629;
 var FldId=2664;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''原基本工资'';
 var $formContainer=DcxForm.GetHtmlContainer(1629,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1629,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"原基本工资\",FldId:"+FldId+",EntId:1629,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:1,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''申请调动人''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1629,''AjaxF_'',''申请调动人'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@申请调动人}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1629_原基本工资");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1629_152(obj,curFieldName){
 var EntId=1629;
 var FldId=2665;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''原考核工资'';
 var $formContainer=DcxForm.GetHtmlContainer(1629,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1629,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"原考核工资\",FldId:"+FldId+",EntId:1629,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''申请调动人''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1629,''AjaxF_'',''申请调动人'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@申请调动人}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1629_原考核工资");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1629_153(obj,curFieldName){
 var EntId=1629;
 var FldId=2669;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''调动后的基本工资'';
 var $formContainer=DcxForm.GetHtmlContainer(1629,''AjaxF_'');
 var $ddlContainer=null;
var strCode="{@原基本工资}" ;
var v_f1=null;
if(''原基本工资''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,1629,''AjaxF_'',''原基本工资'',$formContainer);
if(v_f1==null)
   return;
v_f1 = v_f1.replaceAll('','','''');
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0.00";
strCode=strCode.replaceAll("{@原基本工资}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal)||isNaN(myVal))
myVal = 0.00;
myVal =Dcx.ConvertMoney(myVal);
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d1629_调动后的基本工资");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
function GetLinkCtrlData_AjaxF_1629_154(obj,curFieldName){
 var EntId=1629;
 var FldId=2670;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''调动后的考核工资'';
 var $formContainer=DcxForm.GetHtmlContainer(1629,''AjaxF_'');
 var $ddlContainer=null;
var strCode="{@原考核工资}" ;
var v_f1=null;
if(''原考核工资''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1629,''AjaxF_'',''原考核工资'',$formContainer);
if(v_f1==null)
   return;
v_f1 = v_f1.replaceAll('','','''');
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0.00";
strCode=strCode.replaceAll("{@原考核工资}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal)||isNaN(myVal))
myVal = 0.00;
myVal =Dcx.ConvertMoney(myVal);
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d1629_调动后的考核工资");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_1629.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1629,''AjaxF_'',buildNew,closeDlg);

}',[LoadingSql]='<$1629$>select [申请人编号],[申请调动人],[申请调动时间],[申请人姓名],[性别],[入职时间],[原工作部门],[原工作岗位],[原工资级别],[原基本工资],[原考核工资],[调动后的部门],[调动后的岗位],[调动后的工资级别],[调动后的基本工资],[调动后的考核工资],[调动理由],[调出部门意见],[调入部门意见],[人事部意见],[总经理意见],[LD_Id] from 人事_个人调动申请表 where [LD_Id]=''{$keyfieldvalue}''</$1629$>',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='1629*LD_Id*2**2*人事_个人调动申请表*调动申请',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 7:02:48',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-30 5:59:53',[AccountId]=1 where  [EntId]=1629 
      end




--Dcx_AjaxFormField_Run
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='b765a3a4-c534-9255-511f-5064f6acf2d7'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2654,'b765a3a4-c534-9255-511f-5064f6acf2d7',1629,1629,'00000000-0000-0000-0000-000000000000','申请人编号',2,2,31,'{$staffNO}',0,9,null,0,4,1,0,1,-1,0,0,'','','','{$staffNO},','<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="1629" groupid="176" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="962" class="li-area-title" scroll="no" style="width: 77px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">调动申请</span></div>
</li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="177" entid="1629" class="ul-mform" ctrlprex="AjaxF_" isrple="1">
<li areaid="963" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2654" istitle="1">申请人编号 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d1629_申请人编号" class="form-lbl" style="width:201px;" IsForField=1 EntId="1629" CId="4" FId="2654" Vtp="0"  >','</span><input id="d1629_申请人编号_hid" type="hidden"  EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="申请人编号" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="2654" vlk=0    value="','" />',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2654,[Form_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='申请人编号',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=31,[DefaultValue]='{$staffNO}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$staffNO},',[BeforeHtml]='<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="1629" groupid="176" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="962" class="li-area-title" scroll="no" style="width: 77px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">调动申请</span></div>
</li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="177" entid="1629" class="ul-mform" ctrlprex="AjaxF_" isrple="1">
<li areaid="963" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2654" istitle="1">申请人编号 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1629_申请人编号" class="form-lbl" style="width:201px;" IsForField=1 EntId="1629" CId="4" FId="2654" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d1629_申请人编号_hid" type="hidden"  EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="申请人编号" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="2654" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='b765a3a4-c534-9255-511f-5064f6acf2d7' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='fb089814-aa33-ac20-920d-0154e9e333c7'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2655,'fb089814-aa33-ac20-920d-0154e9e333c7',1629,1629,'00000000-0000-0000-0000-000000000000','申请调动人',2,2,11,'{$UserName}',0,9,null,0,4,1,0,2,-1,0,0,'','','','{$UserName},','</span>
</div>
</li>
<li areaid="964" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2655" istitle="1">申请调动人 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d1629_申请调动人" class="form-lbl" style="width:201px;" IsForField=1 EntId="1629" CId="4" FId="2655" Vtp="0"  CBack=1  >','</span><input id="d1629_申请调动人_hid" type="hidden"  EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="申请调动人" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="2655" vlk=0    value="','" />',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2655,[Form_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='申请调动人',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=11,[DefaultValue]='{$UserName}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=2,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$UserName},',[BeforeHtml]='</span>
</div>
</li>
<li areaid="964" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2655" istitle="1">申请调动人 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1629_申请调动人" class="form-lbl" style="width:201px;" IsForField=1 EntId="1629" CId="4" FId="2655" Vtp="0"  CBack=1  >',[CtrlbackHtml]='</span><input id="d1629_申请调动人_hid" type="hidden"  EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="申请调动人" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="2655" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='fb089814-aa33-ac20-920d-0154e9e333c7' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='9a8d06fd-0221-f775-e82d-22ecc0cdc75a'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2656,'9a8d06fd-0221-f775-e82d-22ecc0cdc75a',1629,1629,'00000000-0000-0000-0000-000000000000','申请调动时间',3,3,12,'{$date}',0,9,null,0,4,1,0,3,-1,0,0,'','','','{$date},','</span>
</div>
</li>
<li areaid="965" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2656" istitle="1">申请调动时间 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d1629_申请调动时间" class="form-lbl" style="width:201px;" IsForField=1 EntId="1629" CId="4" FId="2656" Vtp="0"  >','</span><input id="d1629_申请调动时间_hid" type="hidden"  EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="申请调动时间" dType="3" Vtp="0" RDT="3" Isc="0" RId="9" CId="4" FId="2656" vlk=0    value="','" />',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2656,[Form_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='申请调动时间',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=12,[DefaultValue]='{$date}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=3,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$date},',[BeforeHtml]='</span>
</div>
</li>
<li areaid="965" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2656" istitle="1">申请调动时间 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1629_申请调动时间" class="form-lbl" style="width:201px;" IsForField=1 EntId="1629" CId="4" FId="2656" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d1629_申请调动时间_hid" type="hidden"  EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="申请调动时间" dType="3" Vtp="0" RDT="3" Isc="0" RId="9" CId="4" FId="2656" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='9a8d06fd-0221-f775-e82d-22ecc0cdc75a' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='9f904f67-ab89-5e86-f0c7-7f61b0f9c0dd'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2658,'9f904f67-ab89-5e86-f0c7-7f61b0f9c0dd',1629,1629,'00000000-0000-0000-0000-000000000000','申请人姓名',2,2,14,'{$realname}',0,9,null,0,4,1,0,4,-1,0,0,'','','','{$realname},','</span>
</div>
</li>

<li areaid="967" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2658">姓名  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d1629_申请人姓名" class="form-lbl" style="width:201px;" IsForField=1 EntId="1629" CId="4" FId="2658" Vtp="0"  >','</span><input id="d1629_申请人姓名_hid" type="hidden"  EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="申请人姓名" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="2658" vlk=0    value="','" />',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2658,[Form_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='申请人姓名',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=14,[DefaultValue]='{$realname}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=4,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$realname},',[BeforeHtml]='</span>
</div>
</li>

<li areaid="967" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2658">姓名  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1629_申请人姓名" class="form-lbl" style="width:201px;" IsForField=1 EntId="1629" CId="4" FId="2658" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d1629_申请人姓名_hid" type="hidden"  EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="申请人姓名" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="2658" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='9f904f67-ab89-5e86-f0c7-7f61b0f9c0dd' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='c2580f4a-f879-9fe5-f613-3c556c73e56c'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2659,'c2580f4a-f879-9fe5-f613-3c556c73e56c',1629,1629,'00000000-0000-0000-0000-000000000000','性别',2,2,15,'Select  [Dcx_Employee].[Sex]  from  [Dcx_Employee]  Where   UserName=''{@申请调动人}''',2,9,null,0,4,1,0,5,-1,0,0,'','','申请调动人,','','</span>
  </div>
</li>
<li areaid="968" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2659">性别  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d1629_性别" class="form-lbl" style="width:201px;" IsForField=1 EntId="1629" CId="4" FId="2659" Vtp="2"  >','</span><input id="d1629_性别_hid" type="hidden"  EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="性别" dType="2" Vtp="2" RDT="2" Isc="0" RId="9" CId="4" FId="2659" vlk=0    value="','" />',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2659,[Form_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='性别',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=15,[DefaultValue]='Select  [Dcx_Employee].[Sex]  from  [Dcx_Employee]  Where   UserName=''{@申请调动人}''',[ValueType]=2,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=5,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='申请调动人,',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="968" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2659">性别  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1629_性别" class="form-lbl" style="width:201px;" IsForField=1 EntId="1629" CId="4" FId="2659" Vtp="2"  >',[CtrlbackHtml]='</span><input id="d1629_性别_hid" type="hidden"  EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="性别" dType="2" Vtp="2" RDT="2" Isc="0" RId="9" CId="4" FId="2659" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='c2580f4a-f879-9fe5-f613-3c556c73e56c' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='7741b548-4987-518d-3556-50314b89689c'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2660,'7741b548-4987-518d-3556-50314b89689c',1629,1629,'00000000-0000-0000-0000-000000000000','入职时间',2,2,16,'Select  [Dcx_Employee].EntryDate  from  [Dcx_Employee]  Where   UserName Like ''{@申请调动人}%''',2,9,null,0,4,1,0,6,-1,0,0,'','','申请调动人,','','</span>
  </div>
</li>
<li areaid="969" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2660">入职时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d1629_入职时间" class="form-lbl" style="width:201px;" IsForField=1 EntId="1629" CId="4" FId="2660" Vtp="2"  >','</span><input id="d1629_入职时间_hid" type="hidden"  EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="入职时间" dType="2" Vtp="2" RDT="2" Isc="0" RId="9" CId="4" FId="2660" vlk=0    value="','" />',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2660,[Form_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='入职时间',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=16,[DefaultValue]='Select  [Dcx_Employee].EntryDate  from  [Dcx_Employee]  Where   UserName Like ''{@申请调动人}%''',[ValueType]=2,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=6,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='申请调动人,',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="969" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2660">入职时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1629_入职时间" class="form-lbl" style="width:201px;" IsForField=1 EntId="1629" CId="4" FId="2660" Vtp="2"  >',[CtrlbackHtml]='</span><input id="d1629_入职时间_hid" type="hidden"  EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="入职时间" dType="2" Vtp="2" RDT="2" Isc="0" RId="9" CId="4" FId="2660" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='7741b548-4987-518d-3556-50314b89689c' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='81cbe153-1734-5803-e2c2-0037778d15a5'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2661,'81cbe153-1734-5803-e2c2-0037778d15a5',1629,1629,'00000000-0000-0000-0000-000000000000','原工作部门',2,2,17,'Select  (select top 1 A.[DeptName] from [Dcx_Dept] as A where A.[DeptId]=[Dcx_Employee].[DeptId]) as DeptName  from  [Dcx_Employee]  Where    UserName=''{@申请调动人}''',2,9,null,0,4,1,0,7,-1,0,0,'','','申请调动人,','','</span>
  </div>
</li>
<li areaid="970" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2661">原工作部门  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d1629_原工作部门" class="form-lbl" style="width:201px;" IsForField=1 EntId="1629" CId="4" FId="2661" Vtp="2"  >','</span><input id="d1629_原工作部门_hid" type="hidden"  EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="原工作部门" dType="2" Vtp="2" RDT="2" Isc="0" RId="9" CId="4" FId="2661" vlk=0    value="','" />',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2661,[Form_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='原工作部门',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=17,[DefaultValue]='Select  (select top 1 A.[DeptName] from [Dcx_Dept] as A where A.[DeptId]=[Dcx_Employee].[DeptId]) as DeptName  from  [Dcx_Employee]  Where    UserName=''{@申请调动人}''',[ValueType]=2,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=7,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='申请调动人,',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="970" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2661">原工作部门  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1629_原工作部门" class="form-lbl" style="width:201px;" IsForField=1 EntId="1629" CId="4" FId="2661" Vtp="2"  >',[CtrlbackHtml]='</span><input id="d1629_原工作部门_hid" type="hidden"  EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="原工作部门" dType="2" Vtp="2" RDT="2" Isc="0" RId="9" CId="4" FId="2661" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='81cbe153-1734-5803-e2c2-0037778d15a5' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='1dd7ca87-b231-c85d-e08e-ae7aa52ba430'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2662,'1dd7ca87-b231-c85d-e08e-ae7aa52ba430',1629,1629,'00000000-0000-0000-0000-000000000000','原工作岗位',2,2,18,'Select  [Dcx_Employee].[PositionName]  from  [Dcx_Employee]  Where    UserName=''{@申请调动人}''',2,9,null,0,4,1,0,8,-1,0,0,'','','申请调动人,','','</span>
  </div>
</li>
<li areaid="971" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2662">原工作岗位  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d1629_原工作岗位" class="form-lbl" style="width:201px;" IsForField=1 EntId="1629" CId="4" FId="2662" Vtp="2"  >','</span><input id="d1629_原工作岗位_hid" type="hidden"  EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="原工作岗位" dType="2" Vtp="2" RDT="2" Isc="0" RId="9" CId="4" FId="2662" vlk=0    value="','" />',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2662,[Form_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='原工作岗位',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=18,[DefaultValue]='Select  [Dcx_Employee].[PositionName]  from  [Dcx_Employee]  Where    UserName=''{@申请调动人}''',[ValueType]=2,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=8,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='申请调动人,',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="971" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2662">原工作岗位  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1629_原工作岗位" class="form-lbl" style="width:201px;" IsForField=1 EntId="1629" CId="4" FId="2662" Vtp="2"  >',[CtrlbackHtml]='</span><input id="d1629_原工作岗位_hid" type="hidden"  EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="原工作岗位" dType="2" Vtp="2" RDT="2" Isc="0" RId="9" CId="4" FId="2662" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='1dd7ca87-b231-c85d-e08e-ae7aa52ba430' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='d448b178-6b89-8009-237d-473c6ba2fb7e'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2663,'d448b178-6b89-8009-237d-473c6ba2fb7e',1629,1629,'00000000-0000-0000-0000-000000000000','原工资级别',7,5,19,'Select  [Dcx_Employee].[WageLevel]  from  [Dcx_Employee]  Where    UserName=''{@申请调动人}''',2,9,null,0,4,1,0,9,-1,0,0,'','','申请调动人,','','</span>
  </div>
</li>
<li areaid="972" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2663" istitle="1">原工资级别 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d1629_原工资级别" class="form-lbl" style="width:201px;" IsForField=1 EntId="1629" CId="4" FId="2663" Vtp="2"  >','</span><input id="d1629_原工资级别_hid" type="hidden"  EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="原工资级别" dType="7" Vtp="2" RDT="5" Isc="0" RId="9" CId="4" FId="2663" vlk=0    value="','" />',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2663,[Form_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='原工资级别',[FieldDataTypeId]=7,[RunDataTypeId]=5,[DBFieldId]=19,[DefaultValue]='Select  [Dcx_Employee].[WageLevel]  from  [Dcx_Employee]  Where    UserName=''{@申请调动人}''',[ValueType]=2,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=9,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='申请调动人,',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="972" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2663" istitle="1">原工资级别 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1629_原工资级别" class="form-lbl" style="width:201px;" IsForField=1 EntId="1629" CId="4" FId="2663" Vtp="2"  >',[CtrlbackHtml]='</span><input id="d1629_原工资级别_hid" type="hidden"  EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="原工资级别" dType="7" Vtp="2" RDT="5" Isc="0" RId="9" CId="4" FId="2663" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='d448b178-6b89-8009-237d-473c6ba2fb7e' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='7da220ca-600a-87dc-3cd5-a4fe0a4a6484'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2664,'7da220ca-600a-87dc-3cd5-a4fe0a4a6484',1629,1629,'00000000-0000-0000-0000-000000000000','原基本工资',5,5,20,'Select  [Dcx_Employee].[BaseWage]  from  [Dcx_Employee]  Where    UserName=''{@申请调动人}''',2,1,1,0,1,1,1,10,-1,0,0,'','','申请调动人,','','</span>
</div>
</li>
<li areaid="973" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2664">原基本工资</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1629_原基本工资"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onchange ="javascript:GetLinkCtrlData_AjaxF_1629_153(this,''原基本工资'');" onblur ="javascript:if(!DcxVld.Validate(this,1629,''AjaxF_'',1629,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1629,''AjaxF_'',1629); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="原基本工资" dType="5" Vtp="2" RDT="5" Isc="1" RId="1" CId="1" FId="2664" vlk=0    CBack=1  value="','"/>','',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2664,[Form_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='原基本工资',[FieldDataTypeId]=5,[RunDataTypeId]=5,[DBFieldId]=20,[DefaultValue]='Select  [Dcx_Employee].[BaseWage]  from  [Dcx_Employee]  Where    UserName=''{@申请调动人}''',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=10,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='申请调动人,',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="973" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2664">原基本工资</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1629_原基本工资"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onchange ="javascript:GetLinkCtrlData_AjaxF_1629_153(this,''原基本工资'');" onblur ="javascript:if(!DcxVld.Validate(this,1629,''AjaxF_'',1629,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1629,''AjaxF_'',1629); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="原基本工资" dType="5" Vtp="2" RDT="5" Isc="1" RId="1" CId="1" FId="2664" vlk=0    CBack=1  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='7da220ca-600a-87dc-3cd5-a4fe0a4a6484' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='062e8806-5cc8-9db9-bdd2-dcb81ea63201'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2665,'062e8806-5cc8-9db9-bdd2-dcb81ea63201',1629,1629,'00000000-0000-0000-0000-000000000000','原考核工资',5,5,21,'Select  [Dcx_Employee].MeritWage  from  [Dcx_Employee]  Where    UserName=''{@申请调动人}''',2,9,null,0,4,1,0,11,-1,0,0,'','','申请调动人,','','</span>
  </div>
</li>
<li areaid="974" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2665">原考核工资  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d1629_原考核工资" class="form-lbl" style="width:201px;" IsForField=1 EntId="1629" CId="4" FId="2665" Vtp="2"  CBack=1  >','</span><input id="d1629_原考核工资_hid" type="hidden"  EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="原考核工资" dType="5" Vtp="2" RDT="5" Isc="1" RId="9" CId="4" FId="2665" vlk=0    value="','" />',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2665,[Form_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='原考核工资',[FieldDataTypeId]=5,[RunDataTypeId]=5,[DBFieldId]=21,[DefaultValue]='Select  [Dcx_Employee].MeritWage  from  [Dcx_Employee]  Where    UserName=''{@申请调动人}''',[ValueType]=2,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=11,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='申请调动人,',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="974" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2665">原考核工资  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1629_原考核工资" class="form-lbl" style="width:201px;" IsForField=1 EntId="1629" CId="4" FId="2665" Vtp="2"  CBack=1  >',[CtrlbackHtml]='</span><input id="d1629_原考核工资_hid" type="hidden"  EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="原考核工资" dType="5" Vtp="2" RDT="5" Isc="1" RId="9" CId="4" FId="2665" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='062e8806-5cc8-9db9-bdd2-dcb81ea63201' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='804a02b6-4b82-357c-4021-d75a75ed367b'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2666,'804a02b6-4b82-357c-4021-d75a75ed367b',1629,1629,'00000000-0000-0000-0000-000000000000','调动后的部门',2,2,22,'SELECT [DeptName],[DeptCode] FROM [Dcx_Dept]',2,1,null,0,3,1,0,12,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="975" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2666">调动后的部门  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<select id="d1629_调动后的部门" name="d1629_调动后的部门" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1629,''AjaxF_'',1629,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1629,''AjaxF_'',1629);" EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="调动后的部门" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="3" FId="2666" vlk=0    style="width:201px;">','</select>','',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2666,[Form_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='调动后的部门',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=22,[DefaultValue]='SELECT [DeptName],[DeptCode] FROM [Dcx_Dept]',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=12,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="975" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2666">调动后的部门  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1629_调动后的部门" name="d1629_调动后的部门" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1629,''AjaxF_'',1629,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1629,''AjaxF_'',1629);" EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="调动后的部门" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="3" FId="2666" vlk=0    style="width:201px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='804a02b6-4b82-357c-4021-d75a75ed367b' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='8072139d-a063-ae25-03c3-3589a85b8491'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2667,'8072139d-a063-ae25-03c3-3589a85b8491',1629,1629,'00000000-0000-0000-0000-000000000000','调动后的岗位',2,2,23,'SELECT [PositionName] FROM [Dcx_Position]',2,1,null,0,3,1,0,13,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="976" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2667">调动后的岗位  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<select id="d1629_调动后的岗位" name="d1629_调动后的岗位" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1629,''AjaxF_'',1629,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1629,''AjaxF_'',1629);" EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="调动后的岗位" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="3" FId="2667" vlk=0    style="width:201px;">','</select>','',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2667,[Form_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='调动后的岗位',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=23,[DefaultValue]='SELECT [PositionName] FROM [Dcx_Position]',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=13,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="976" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2667">调动后的岗位  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1629_调动后的岗位" name="d1629_调动后的岗位" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1629,''AjaxF_'',1629,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1629,''AjaxF_'',1629);" EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="调动后的岗位" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="3" FId="2667" vlk=0    style="width:201px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='8072139d-a063-ae25-03c3-3589a85b8491' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='467a411f-078e-0996-086a-1bee1c9d34be'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2668,'467a411f-078e-0996-086a-1bee1c9d34be',1629,1629,'00000000-0000-0000-0000-000000000000','调动后的工资级别',7,5,24,'Select  工资_岗位级别.[岗位级别]  from  工资_岗位级别',2,1,null,0,3,1,0,14,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="977" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2668">调动后的工资级别  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<select id="d1629_调动后的工资级别" name="d1629_调动后的工资级别" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1629,''AjaxF_'',1629,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1629,''AjaxF_'',1629);" EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="调动后的工资级别" dType="7" Vtp="2" RDT="5" Isc="0" RId="1" CId="3" FId="2668" vlk=0    style="width:201px;">','</select>','',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2668,[Form_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='调动后的工资级别',[FieldDataTypeId]=7,[RunDataTypeId]=5,[DBFieldId]=24,[DefaultValue]='Select  工资_岗位级别.[岗位级别]  from  工资_岗位级别',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=14,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="977" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2668">调动后的工资级别  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1629_调动后的工资级别" name="d1629_调动后的工资级别" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1629,''AjaxF_'',1629,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1629,''AjaxF_'',1629);" EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="调动后的工资级别" dType="7" Vtp="2" RDT="5" Isc="0" RId="1" CId="3" FId="2668" vlk=0    style="width:201px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='467a411f-078e-0996-086a-1bee1c9d34be' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='7264f7e4-e8b0-a9aa-1e75-32d0f9501f5b'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2669,'7264f7e4-e8b0-a9aa-1e75-32d0f9501f5b',1629,1629,'00000000-0000-0000-0000-000000000000','调动后的基本工资',5,5,25,'',3,1,1,0,1,1,1,15,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="978" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2669">调动后的基本工资</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1629_调动后的基本工资"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,1629,''AjaxF_'',1629,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1629,''AjaxF_'',1629); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="调动后的基本工资" dType="5" Vtp="3" RDT="5" Isc="1" RId="1" CId="1" FId="2669" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2669,[Form_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='调动后的基本工资',[FieldDataTypeId]=5,[RunDataTypeId]=5,[DBFieldId]=25,[DefaultValue]='',[ValueType]=3,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=15,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="978" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2669">调动后的基本工资</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1629_调动后的基本工资"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,1629,''AjaxF_'',1629,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1629,''AjaxF_'',1629); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="调动后的基本工资" dType="5" Vtp="3" RDT="5" Isc="1" RId="1" CId="1" FId="2669" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='7264f7e4-e8b0-a9aa-1e75-32d0f9501f5b' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='2cbb107c-c14f-a83d-2a7c-d5c3f4abeaf5'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2670,'2cbb107c-c14f-a83d-2a7c-d5c3f4abeaf5',1629,1629,'00000000-0000-0000-0000-000000000000','调动后的考核工资',5,5,26,'',3,1,1,0,1,1,1,16,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="979" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2670" istitle="1">调动后的考核工资</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d1629_调动后的考核工资"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,1629,''AjaxF_'',1629,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1629,''AjaxF_'',1629); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="调动后的考核工资" dType="5" Vtp="3" RDT="5" Isc="1" RId="1" CId="1" FId="2670" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2670,[Form_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='调动后的考核工资',[FieldDataTypeId]=5,[RunDataTypeId]=5,[DBFieldId]=26,[DefaultValue]='',[ValueType]=3,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=16,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="979" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2670" istitle="1">调动后的考核工资</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1629_调动后的考核工资"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,1629,''AjaxF_'',1629,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1629,''AjaxF_'',1629); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="调动后的考核工资" dType="5" Vtp="3" RDT="5" Isc="1" RId="1" CId="1" FId="2670" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='2cbb107c-c14f-a83d-2a7c-d5c3f4abeaf5' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='4139f16f-ae44-1855-13d1-4a701bd1d1aa'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2657,'4139f16f-ae44-1855-13d1-4a701bd1d1aa',1629,1629,'00000000-0000-0000-0000-000000000000','调动理由',2,2,13,'',5,1,null,0,23,1,0,17,-1,0,0,'','','','','</span>
</div>
</li>
<li areaid="966" style="height: 470px; width: 792px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2657" istitle="1">调动理由 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1629_调动理由" class="form-txts"  style="width:600px;height:350px;" EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="调动理由" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="23" FId="2657" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2657,[Form_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='调动理由',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=13,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=23,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=17,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="966" style="height: 470px; width: 792px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2657" istitle="1">调动理由 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1629_调动理由" class="form-txts"  style="width:600px;height:350px;" EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="调动理由" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="23" FId="2657" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='4139f16f-ae44-1855-13d1-4a701bd1d1aa' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='3bf04a75-eb4c-ba6b-db9e-ee19a9e3521b'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2671,'3bf04a75-eb4c-ba6b-db9e-ee19a9e3521b',1629,1629,'00000000-0000-0000-0000-000000000000','调出部门意见',2,2,27,'',5,1,null,0,2,1,0,18,-1,0,0,'','','','','</span>
</div>
</li><li areaid="980" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2671" istitle="1">调出部门意见 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1629_调出部门意见" class="form-txts"  style="width:432px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1629,''AjaxF_'',1629,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1629,''AjaxF_'',1629);" EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="调出部门意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="2671" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2671,[Form_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='调出部门意见',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=27,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=18,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li areaid="980" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2671" istitle="1">调出部门意见 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1629_调出部门意见" class="form-txts"  style="width:432px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1629,''AjaxF_'',1629,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1629,''AjaxF_'',1629);" EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="调出部门意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="2671" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='3bf04a75-eb4c-ba6b-db9e-ee19a9e3521b' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='b367f5cc-2e80-8ce5-60e3-80743d70102f'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2672,'b367f5cc-2e80-8ce5-60e3-80743d70102f',1629,1629,'00000000-0000-0000-0000-000000000000','调入部门意见',2,2,28,'',5,1,1,0,2,1,1,19,-1,0,0,'','','','','</span>
</div>
</li>
<li areaid="981" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2672" istitle="1">调入部门意见</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1629_调入部门意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1629,''AjaxF_'',1629,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1629,''AjaxF_'',1629);" EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="调入部门意见" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="2672" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2672,[Form_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='调入部门意见',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=28,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=19,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="981" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2672" istitle="1">调入部门意见</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1629_调入部门意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1629,''AjaxF_'',1629,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1629,''AjaxF_'',1629);" EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="调入部门意见" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="2672" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='b367f5cc-2e80-8ce5-60e3-80743d70102f' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='7ee9952a-c2a3-abe7-a26d-8e401e0173d3'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2673,'7ee9952a-c2a3-abe7-a26d-8e401e0173d3',1629,1629,'00000000-0000-0000-0000-000000000000','人事部意见',2,2,29,'',5,1,null,0,2,1,0,20,-1,0,0,'','','','','</span>
</div>
</li>
<li areaid="982" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2673" istitle="1">人事部意见 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1629_人事部意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1629,''AjaxF_'',1629,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1629,''AjaxF_'',1629);" EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="人事部意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="2673" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2673,[Form_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='人事部意见',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=29,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=20,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="982" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2673" istitle="1">人事部意见 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1629_人事部意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1629,''AjaxF_'',1629,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1629,''AjaxF_'',1629);" EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="人事部意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="2673" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='7ee9952a-c2a3-abe7-a26d-8e401e0173d3' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='92cd12a5-f0c9-e722-2bcd-01ac743cf24c'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2674,'92cd12a5-f0c9-e722-2bcd-01ac743cf24c',1629,1629,'00000000-0000-0000-0000-000000000000','总经理意见',2,2,30,'',5,1,1,0,2,1,1,21,-1,0,0,'','','','','</span>
</div>
</li>
<li areaid="983" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2674" istitle="1">总经理意见</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','</span>
</div>
</li>
</ul>
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="178" entid="1629" class="tab_ul" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="984" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li areaid="985" istab="1" tabid="2" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1" style="">
<ul isgroup="1" groupid="179" entid="1629" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="986" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="180" entid="1629" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="987" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="1629" groupid="181" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="988" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
<li areaid="989" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>','','','<textarea  id="d1629_总经理意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1629,''AjaxF_'',1629,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1629,''AjaxF_'',1629);" EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="总经理意见" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="2674" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2674,[Form_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='总经理意见',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=30,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=21,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="983" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2674" istitle="1">总经理意见</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
</div>
</li>
</ul>
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="178" entid="1629" class="tab_ul" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="984" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li areaid="985" istab="1" tabid="2" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1" style="">
<ul isgroup="1" groupid="179" entid="1629" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="986" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="180" entid="1629" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="987" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="1629" groupid="181" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="988" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
<li areaid="989" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1629_总经理意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1629,''AjaxF_'',1629,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1629,''AjaxF_'',1629);" EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="总经理意见" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="2674" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='92cd12a5-f0c9-e722-2bcd-01ac743cf24c' 
      end



Delete from [Dcx_SearchForm_Run]  where [EntId]=1629

--Dcx_SearchForm_Run
      if (select count(1) from [Dcx_SearchForm_Run] where  [EntId]=1629  )<1 
      begin 
           Insert into [Dcx_SearchForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('df66061e-28c7-4a80-8ecd-bc1002980853','调动申请',1629,9,'','',0,'<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>','','DcxRun.SearchF_1629= {"MenuId":2831,"MEntId":1629,"EntName":"调动申请","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1629":{"EntId":1629,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_1629.EntMsg.E1629.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"人事_个人调动申请表","EntId":1629,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"申请人姓名":{"DtId":2,"DB":1,"CId":1,"FL":100},"原工作部门":{"DtId":2,"DB":1,"CId":3,"FL":100},"流程是否已结束":{"DtId":4,"DB":0,"CId":3,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.SearchF_1629.EntMsg.E1629.GetDataRowModel=function()
{
    return {"申请人姓名":"","原工作部门":"","流程是否已结束":false,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_1629.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1629,''SearchF_'',buildNew,closeDlg);

}','',20,'','','','1629*LD_Id*2**2*人事_个人调动申请表*调动申请',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 5:45:57',3,'admin','2013-11-16 17:38:13',1)
      end
      else 
      begin 
           update [Dcx_SearchForm_Run] set [FormId]='df66061e-28c7-4a80-8ecd-bc1002980853',[FormName]='调动申请',[ModuleId]=9,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.SearchF_1629= {"MenuId":2831,"MEntId":1629,"EntName":"调动申请","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1629":{"EntId":1629,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_1629.EntMsg.E1629.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"人事_个人调动申请表","EntId":1629,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"申请人姓名":{"DtId":2,"DB":1,"CId":1,"FL":100},"原工作部门":{"DtId":2,"DB":1,"CId":3,"FL":100},"流程是否已结束":{"DtId":4,"DB":0,"CId":3,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.SearchF_1629.EntMsg.E1629.GetDataRowModel=function()
{
    return {"申请人姓名":"","原工作部门":"","流程是否已结束":false,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_1629.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1629,''SearchF_'',buildNew,closeDlg);

}',[LoadingSql]='',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='1629*LD_Id*2**2*人事_个人调动申请表*调动申请',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 5:45:57',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-16 17:38:13',[AccountId]=1 where  [EntId]=1629 
      end




--Dcx_SearchFormField_Run
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='8067375e-de79-4eaa-b546-eb8d99c7de31'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'8067375e-de79-4eaa-b546-eb8d99c7de31',1629,1629,'00000000-0000-0000-0000-000000000000',1,'Like','申请人姓名',2,2,14,'',5,1,1,0,1,1,0,-1,1,0,'','','','','<div class="searchform">
<ul isgroup="1" groupid="27" entid="1629" class="search-block w920" ctrlprex="SearchF_" isrple="1">
<li areaid="105" class="search-li w270 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="1">申请人姓名</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">','','','','<input  id="d1629_申请人姓名"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1629,''SearchF_'',1629,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1629,''SearchF_'',1629);" EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="申请人姓名" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=1,[Form_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[CompareOperatorType]='Like',[FieldName]='申请人姓名',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=14,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="searchform">
<ul isgroup="1" groupid="27" entid="1629" class="search-block w920" ctrlprex="SearchF_" isrple="1">
<li areaid="105" class="search-li w270 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="1">申请人姓名</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1629_申请人姓名"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1629,''SearchF_'',1629,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1629,''SearchF_'',1629);" EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="申请人姓名" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='8067375e-de79-4eaa-b546-eb8d99c7de31' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='dccdbee3-30ea-46d6-a2b6-f2ca01a69c64'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'dccdbee3-30ea-46d6-a2b6-f2ca01a69c64',1629,1629,'00000000-0000-0000-0000-000000000000',2,'Like','原工作部门',2,2,17,'select '''' union SELECT [DeptName]  FROM [Dcx_Dept]',2,1,1,0,3,1,0,-1,1,0,'','','','','</span>
  </div>
</li>
<li areaid="106" class="search-li w270 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="2">原工作部门</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">','','','','<select id="d1629_原工作部门" name="d1629_原工作部门" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1629,''SearchF_'',1629,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1629,''SearchF_'',1629);" EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="原工作部门" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="3" FId="2" vlk=0    Cpre="Like"  style="width:150px;">','</select>','',1,-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=2,[Form_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[CompareOperatorType]='Like',[FieldName]='原工作部门',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=17,[DefaultValue]='select '''' union SELECT [DeptName]  FROM [Dcx_Dept]',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="106" class="search-li w270 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="2">原工作部门</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1629_原工作部门" name="d1629_原工作部门" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1629,''SearchF_'',1629,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1629,''SearchF_'',1629);" EntId="1629" IsField=1 DBField=1 IsPost=1 FieldName="原工作部门" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="3" FId="2" vlk=0    Cpre="Like"  style="width:150px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='dccdbee3-30ea-46d6-a2b6-f2ca01a69c64' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='8ecd8a5b-fbb2-4432-9a69-a6ca6d670c94'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'8ecd8a5b-fbb2-4432-9a69-a6ca6d670c94',1629,1629,'00000000-0000-0000-0000-000000000000',3,'=','流程是否已结束',4,4,-1,'',1,1,1,0,3,1,0,-1,1,0,'','','','','</span>
  </div>
</li>
<li areaid="107" class="search-li w270 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="3">流程已结束</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">','</span>
  </div>
</li>
<li areaid="108" class="search-li w100 h32" scroll="no" style="position: static;">
<div class="searchform-button" onclick="javascript:return VL_Search(1629);">
<div class="search-btn">&nbsp;</div>
<a href="javascript:void(0);" id="1629_searchBT">搜索</a>
</div>
</li>
</ul>
</div>','','','<select id="d1629_流程是否已结束" name="d1629_流程是否已结束" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1629,''SearchF_'',1629,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1629,''SearchF_'',1629);" EntId="1629" IsField=1 DBField=0 IsPost=1 FieldName="流程是否已结束" dType="4" Vtp="1" RDT="4" Isc="1" RId="1" CId="3" FId="3" vlk=0    Cpre="="  style="width:150px;">','<option  value="False"  >否</option>
<option  value="True"  >是</option>
</select>','',1,-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=3,[Form_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[CompareOperatorType]='=',[FieldName]='流程是否已结束',[FieldDataTypeId]=4,[RunDataTypeId]=4,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=1,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="107" class="search-li w270 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="3">流程已结束</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
  </div>
</li>
<li areaid="108" class="search-li w100 h32" scroll="no" style="position: static;">
<div class="searchform-button" onclick="javascript:return VL_Search(1629);">
<div class="search-btn">&nbsp;</div>
<a href="javascript:void(0);" id="1629_searchBT">搜索</a>
</div>
</li>
</ul>
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1629_流程是否已结束" name="d1629_流程是否已结束" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1629,''SearchF_'',1629,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1629,''SearchF_'',1629);" EntId="1629" IsField=1 DBField=0 IsPost=1 FieldName="流程是否已结束" dType="4" Vtp="1" RDT="4" Isc="1" RId="1" CId="3" FId="3" vlk=0    Cpre="="  style="width:150px;">',[CtrlbackHtml]='<option  value="False"  >否</option>
<option  value="True"  >是</option>
</select>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='8ecd8a5b-fbb2-4432-9a69-a6ca6d670c94' 
      end



Delete from [Dcx_BrowseReport_Run]  where [EntId]=1629

--Dcx_BrowseReport_Run
      if (select count(1) from [Dcx_BrowseReport_Run] where  [EntId]=1629  )<1 
      begin 
           Insert into [Dcx_BrowseReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[DIYJsCss],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('3631eab6-498b-42bd-b3ad-67294f852698','调动申请',1629,31,'','<$1629$>select [WFState],[WFUserName],[申请调动人],[申请调动时间],[调动理由],[申请人姓名],[性别],[入职时间],[原工作部门],[原工作岗位],[原工资级别],[原基本工资],[原考核工资],[调动后的部门],[调动后的岗位],[调动后的工资级别],[调动后的基本工资],[调动后的考核工资],[调出部门意见],[调入部门意见],[人事部意见],[总经理意见],[申请人编号],[LD_Id] from 人事_个人调动申请表 where [LD_Id]=''{$keyfieldvalue}''</$1629$>',1,1,20,'','DcxRun.MChildR_1629= {"MenuId":2831,"MEntId":1629,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"调动申请","EntMsg":{"E1629":{"EntId":1629,"EntName":"调动申请","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":30,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1629*LD_Id*2**2*人事_个人调动申请表*调动申请',3,'','2012-12-21 11:03:02',3,'','2013-11-17 3:03:42',1)
      end
      else 
      begin 
           update [Dcx_BrowseReport_Run] set [ReportId]='3631eab6-498b-42bd-b3ad-67294f852698',[ReportName]='调动申请',[ModuleId]=31,[StaticHtml]='',[LoadingSql]='<$1629$>select [WFState],[WFUserName],[申请调动人],[申请调动时间],[调动理由],[申请人姓名],[性别],[入职时间],[原工作部门],[原工作岗位],[原工资级别],[原基本工资],[原考核工资],[调动后的部门],[调动后的岗位],[调动后的工资级别],[调动后的基本工资],[调动后的考核工资],[调出部门意见],[调入部门意见],[人事部意见],[总经理意见],[申请人编号],[LD_Id] from 人事_个人调动申请表 where [LD_Id]=''{$keyfieldvalue}''</$1629$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[DIYJsCss]='',[AutoPublicJs]='DcxRun.MChildR_1629= {"MenuId":2831,"MEntId":1629,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"调动申请","EntMsg":{"E1629":{"EntId":1629,"EntName":"调动申请","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":30,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1629*LD_Id*2**2*人事_个人调动申请表*调动申请',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-21 11:03:02',[EditorId]=3,[Editor]='',[EditTime]='2013-11-17 3:03:42',[AccountId]=1 where  [EntId]=1629 
      end




--Dcx_BrowseReportField_Run
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='38d84a30-75d6-4162-90a7-198f79bda0da'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'38d84a30-75d6-4162-90a7-198f79bda0da',1629,1629,'00000000-0000-0000-0000-000000000000',2,'WFState',1,1,'varchar',2,1,0,'','','','<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1629" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="833" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">调动申请</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1629" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="834" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">当前状态  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=1,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='WFState',[FieldNO]=1,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1629" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="833" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">调动申请</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1629" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="834" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">当前状态  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='38d84a30-75d6-4162-90a7-198f79bda0da' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='ba3dbe04-ddb5-4c38-9e65-ae109bc42180'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'ba3dbe04-ddb5-4c38-9e65-ae109bc42180',1629,1629,'00000000-0000-0000-0000-000000000000',3,'WFUserName',2,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="835" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">当前办理人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=2,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='WFUserName',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="835" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">当前办理人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='ba3dbe04-ddb5-4c38-9e65-ae109bc42180' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='1d0160fa-ed35-4cf4-aeff-08fae50bc2e4'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'1d0160fa-ed35-4cf4-aeff-08fae50bc2e4',1629,1629,'00000000-0000-0000-0000-000000000000',11,'申请调动人',3,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="836" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">申请调动人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="申请调动人" fldid="3" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=3,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=11,[FieldName]='申请调动人',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="836" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">申请调动人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="申请调动人" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='1d0160fa-ed35-4cf4-aeff-08fae50bc2e4' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='c5f47116-14a2-448e-9515-29b9aa807e60'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'c5f47116-14a2-448e-9515-29b9aa807e60',1629,1629,'00000000-0000-0000-0000-000000000000',12,'申请调动时间',4,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="837" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">申请调动时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="申请调动时间" fldid="4" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=4,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=12,[FieldName]='申请调动时间',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="837" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">申请调动时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="申请调动时间" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='c5f47116-14a2-448e-9515-29b9aa807e60' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='64e253ad-1a29-4812-99a5-42709057895b'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'64e253ad-1a29-4812-99a5-42709057895b',1629,1629,'00000000-0000-0000-0000-000000000000',13,'调动理由',5,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="838" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">调动理由  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="调动理由" fldid="5" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=5,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=13,[FieldName]='调动理由',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="838" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">调动理由  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="调动理由" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='64e253ad-1a29-4812-99a5-42709057895b' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='81dc178f-e133-4c66-bd10-5d1004f5be19'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'81dc178f-e133-4c66-bd10-5d1004f5be19',1629,1629,'00000000-0000-0000-0000-000000000000',14,'申请人姓名',6,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="839" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">申请人姓名  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="申请人姓名" fldid="6" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=6,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=14,[FieldName]='申请人姓名',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="839" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">申请人姓名  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="申请人姓名" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='81dc178f-e133-4c66-bd10-5d1004f5be19' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='cc6f7cca-93a9-4554-983a-825d2c062194'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'cc6f7cca-93a9-4554-983a-825d2c062194',1629,1629,'00000000-0000-0000-0000-000000000000',15,'性别',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="840" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">性别  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="性别" fldid="7" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=7,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=15,[FieldName]='性别',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="840" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">性别  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="性别" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='cc6f7cca-93a9-4554-983a-825d2c062194' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='3acd7ca0-c83c-4ed5-bc10-b4378c811b77'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'3acd7ca0-c83c-4ed5-bc10-b4378c811b77',1629,1629,'00000000-0000-0000-0000-000000000000',16,'入职时间',8,4,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="841" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="8">入职时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="入职时间" fldid="8" columntypeid="4" class="form-ctr">','',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=8,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=16,[FieldName]='入职时间',[FieldNO]=8,[ColumnTypeId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="841" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="8">入职时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="入职时间" fldid="8" columntypeid="4" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='3acd7ca0-c83c-4ed5-bc10-b4378c811b77' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='db23df92-c52d-4aeb-844b-175516be4d9c'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'db23df92-c52d-4aeb-844b-175516be4d9c',1629,1629,'00000000-0000-0000-0000-000000000000',17,'原工作部门',9,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="842" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="9">原工作部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="原工作部门" fldid="9" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=9,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=17,[FieldName]='原工作部门',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="842" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="9">原工作部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="原工作部门" fldid="9" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='db23df92-c52d-4aeb-844b-175516be4d9c' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='69239954-5f2e-4b96-84fb-125fe845a3eb'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'69239954-5f2e-4b96-84fb-125fe845a3eb',1629,1629,'00000000-0000-0000-0000-000000000000',18,'原工作岗位',10,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="843" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="10">原工作岗位  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="原工作岗位" fldid="10" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=10,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=18,[FieldName]='原工作岗位',[FieldNO]=10,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="843" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="10">原工作岗位  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="原工作岗位" fldid="10" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='69239954-5f2e-4b96-84fb-125fe845a3eb' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='edc66393-4312-46ba-ad01-4a5fb4ddc48b'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'edc66393-4312-46ba-ad01-4a5fb4ddc48b',1629,1629,'00000000-0000-0000-0000-000000000000',19,'原工资级别',11,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="844" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="11">原工资级别  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="原工资级别" fldid="11" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=11,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=19,[FieldName]='原工资级别',[FieldNO]=11,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="844" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="11">原工资级别  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="原工资级别" fldid="11" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='edc66393-4312-46ba-ad01-4a5fb4ddc48b' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='20b7a450-6d9b-4e5e-98d5-fa1746160281'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(12,'20b7a450-6d9b-4e5e-98d5-fa1746160281',1629,1629,'00000000-0000-0000-0000-000000000000',20,'原基本工资',12,3,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="845" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="12">原基本工资  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="原基本工资" fldid="12" columntypeid="3" class="form-ctr">￥','',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=12,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=20,[FieldName]='原基本工资',[FieldNO]=12,[ColumnTypeId]=3,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="845" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="12">原基本工资  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="原基本工资" fldid="12" columntypeid="3" class="form-ctr">￥',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='20b7a450-6d9b-4e5e-98d5-fa1746160281' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='94b95b29-52b7-4d2d-89b0-5fd8890a185d'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(13,'94b95b29-52b7-4d2d-89b0-5fd8890a185d',1629,1629,'00000000-0000-0000-0000-000000000000',21,'原考核工资',13,3,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="846" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="13">原考核工资  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="原考核工资" fldid="13" columntypeid="3" class="form-ctr">￥','',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=13,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=21,[FieldName]='原考核工资',[FieldNO]=13,[ColumnTypeId]=3,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="846" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="13">原考核工资  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="原考核工资" fldid="13" columntypeid="3" class="form-ctr">￥',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='94b95b29-52b7-4d2d-89b0-5fd8890a185d' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='c172a4f3-f573-4a07-8787-d8c8ea47de6e'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(14,'c172a4f3-f573-4a07-8787-d8c8ea47de6e',1629,1629,'00000000-0000-0000-0000-000000000000',22,'调动后的部门',14,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="847" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="14">调动后的部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="调动后的部门" fldid="14" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=14,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=22,[FieldName]='调动后的部门',[FieldNO]=14,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="847" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="14">调动后的部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="调动后的部门" fldid="14" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='c172a4f3-f573-4a07-8787-d8c8ea47de6e' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='7a030eee-e7f8-4d05-b920-703c1bc102c3'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(15,'7a030eee-e7f8-4d05-b920-703c1bc102c3',1629,1629,'00000000-0000-0000-0000-000000000000',23,'调动后的岗位',15,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="848" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="15">调动后的岗位  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="调动后的岗位" fldid="15" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=15,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=23,[FieldName]='调动后的岗位',[FieldNO]=15,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="848" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="15">调动后的岗位  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="调动后的岗位" fldid="15" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='7a030eee-e7f8-4d05-b920-703c1bc102c3' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='3cf161ed-7e0f-4f50-9cd0-f02ad8b422d5'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(16,'3cf161ed-7e0f-4f50-9cd0-f02ad8b422d5',1629,1629,'00000000-0000-0000-0000-000000000000',24,'调动后的工资级别',16,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="849" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="16">调动后的工资级别  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="调动后的工资级别" fldid="16" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=16,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=24,[FieldName]='调动后的工资级别',[FieldNO]=16,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="849" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="16">调动后的工资级别  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="调动后的工资级别" fldid="16" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='3cf161ed-7e0f-4f50-9cd0-f02ad8b422d5' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='31b03a31-f0bc-4363-8916-dfd6b7efad7f'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(17,'31b03a31-f0bc-4363-8916-dfd6b7efad7f',1629,1629,'00000000-0000-0000-0000-000000000000',25,'调动后的基本工资',17,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="850" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="17">调动后的基本工资  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="调动后的基本工资" fldid="17" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=17,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=25,[FieldName]='调动后的基本工资',[FieldNO]=17,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="850" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="17">调动后的基本工资  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="调动后的基本工资" fldid="17" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='31b03a31-f0bc-4363-8916-dfd6b7efad7f' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='2e42a4f9-55d6-4291-9abb-c5ee4b122235'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(18,'2e42a4f9-55d6-4291-9abb-c5ee4b122235',1629,1629,'00000000-0000-0000-0000-000000000000',26,'调动后的考核工资',18,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="851" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="18">调动后的考核工资  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="调动后的考核工资" fldid="18" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=18,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=26,[FieldName]='调动后的考核工资',[FieldNO]=18,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="851" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="18">调动后的考核工资  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="调动后的考核工资" fldid="18" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='2e42a4f9-55d6-4291-9abb-c5ee4b122235' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='cdb84912-7ec3-4c25-b53a-f7017e94a5f4'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(19,'cdb84912-7ec3-4c25-b53a-f7017e94a5f4',1629,1629,'00000000-0000-0000-0000-000000000000',27,'调出部门意见',19,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="852" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="19">调出部门意见  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="调出部门意见" fldid="19" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=19,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=27,[FieldName]='调出部门意见',[FieldNO]=19,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="852" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="19">调出部门意见  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="调出部门意见" fldid="19" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='cdb84912-7ec3-4c25-b53a-f7017e94a5f4' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='8effe6ad-f122-41f0-b7d1-a569800a1c83'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(20,'8effe6ad-f122-41f0-b7d1-a569800a1c83',1629,1629,'00000000-0000-0000-0000-000000000000',28,'调入部门意见',20,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="853" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="20">调入部门意见  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="调入部门意见" fldid="20" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=20,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=28,[FieldName]='调入部门意见',[FieldNO]=20,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="853" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="20">调入部门意见  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="调入部门意见" fldid="20" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='8effe6ad-f122-41f0-b7d1-a569800a1c83' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='c437d6de-ef3e-44ae-b122-d4b9f7ea435c'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(21,'c437d6de-ef3e-44ae-b122-d4b9f7ea435c',1629,1629,'00000000-0000-0000-0000-000000000000',29,'人事部意见',21,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="854" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="21">人事部意见  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="人事部意见" fldid="21" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=21,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=29,[FieldName]='人事部意见',[FieldNO]=21,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="854" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="21">人事部意见  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="人事部意见" fldid="21" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='c437d6de-ef3e-44ae-b122-d4b9f7ea435c' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='38dfdd6b-f31e-432d-b0a8-ec5b12af91e7'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(22,'38dfdd6b-f31e-432d-b0a8-ec5b12af91e7',1629,1629,'00000000-0000-0000-0000-000000000000',30,'总经理意见',22,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="855" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="22">总经理意见  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="总经理意见" fldid="22" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=22,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=30,[FieldName]='总经理意见',[FieldNO]=22,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="855" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="22">总经理意见  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="总经理意见" fldid="22" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='38dfdd6b-f31e-432d-b0a8-ec5b12af91e7' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='2b1e863c-78cf-482c-a4f3-704adfff7622'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(23,'2b1e863c-78cf-482c-a4f3-704adfff7622',1629,1629,'00000000-0000-0000-0000-000000000000',31,'申请人编号',23,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="856" style="height: 38px; width: 792px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="23">申请人编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="申请人编号" fldid="23" columntypeid="1" class="form-ctr">','</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1629" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="861" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="862" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1629" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="863" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1629" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="864" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1629" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="865" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="866" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',-1,-1,-1,-1,0,'1629,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=23,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=31,[FieldName]='申请人编号',[FieldNO]=23,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="856" style="height: 38px; width: 792px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="23">申请人编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1629" fieldname="申请人编号" fldid="23" columntypeid="1" class="form-ctr">',[LastHtml]='</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1629" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="861" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="862" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1629" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="863" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1629" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="864" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1629" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="865" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="866" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1629,' where  [FldUId]='2b1e863c-78cf-482c-a4f3-704adfff7622' 
      end



Delete from [Dcx_ListReport_Run]  where [EntId]=1629

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=1629  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('0b18c315-c44c-42bd-a0df-25f13f791123','调动申请',1629,1,'','','<$1629$>select *  from (select row_number() over( order by [LD_Id])as dcx_rowid,[WFState],[WFFlowId],[WFRunId],[WFPrcsId],[WFUserName],[申请调动人],[申请调动时间],[调动理由],[申请人姓名],[性别],[入职时间],[原工作部门],[原工作岗位],[原工资级别],[原基本工资],[原考核工资],[调动后的部门],[调动后的岗位],[调动后的工资级别],[调动后的基本工资],[调动后的考核工资],[调出部门意见],[调入部门意见],[人事部意见],[总经理意见],[申请人编号],[LD_Id] from 人事_个人调动申请表  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1629$><$1629:Count$>select count([LD_Id]) from 人事_个人调动申请表 where {$SearchArea}</$1629:Count$>',1,1,20,'DcxRun.ListR_1629= {"MenuId":2831,"MEntId":1629,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"调动申请","EntMsg":{"E1629":{"EntId":1629,"EntName":"调动申请","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":30,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1629*LD_Id*2**2*人事_个人调动申请表*调动申请',3,'','2012-12-22 5:16:19',3,'','2013-11-16 20:11:35',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='0b18c315-c44c-42bd-a0df-25f13f791123',[ReportName]='调动申请',[ModuleId]=1,[StaticHtml]='',[DIYJsCss]='',[LoadingSql]='<$1629$>select *  from (select row_number() over( order by [LD_Id])as dcx_rowid,[WFState],[WFFlowId],[WFRunId],[WFPrcsId],[WFUserName],[申请调动人],[申请调动时间],[调动理由],[申请人姓名],[性别],[入职时间],[原工作部门],[原工作岗位],[原工资级别],[原基本工资],[原考核工资],[调动后的部门],[调动后的岗位],[调动后的工资级别],[调动后的基本工资],[调动后的考核工资],[调出部门意见],[调入部门意见],[人事部意见],[总经理意见],[申请人编号],[LD_Id] from 人事_个人调动申请表  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1629$><$1629:Count$>select count([LD_Id]) from 人事_个人调动申请表 where {$SearchArea}</$1629:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[AutoPublicJs]='DcxRun.ListR_1629= {"MenuId":2831,"MEntId":1629,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"调动申请","EntMsg":{"E1629":{"EntId":1629,"EntName":"调动申请","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":30,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1629*LD_Id*2**2*人事_个人调动申请表*调动申请',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-22 5:16:19',[EditorId]=3,[Editor]='',[EditTime]='2013-11-16 20:11:35',[AccountId]=1 where  [EntId]=1629 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='5845b30c-ca57-55e8-606b-375e6338f5d4'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(427,'5845b30c-ca57-55e8-606b-375e6338f5d4',1629,1629,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="101" entid="1629" style="width: 2710px;" ctrlprex="ListR_" isrple="1"> <li areaid="2989" class="tool-li" style="position: static;">
</li><li areaid="2990" class="tool-li" style="position: static;"><a id="ListR_1629_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1629,''ListR_'');">删   除</a></li>
<li areaid="2991" class="tool-li" style="position: static;"><a id="ListR_1629_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1629,''ListR_'');">导   出</a></li>
<li areaid="2992" class="tool-li" style="position: static;"><a id="ListR_1629_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1629,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1629" style="position: static;">
<a id="ListR_1629_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1629,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1629_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1629,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1629_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1629,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1629_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="102" entid="1629" class="list-head-ul" style="width: 2850px;" ctrlprex="ListR_" isrple="1">
<li areaid="2994" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1629" onclick="javascript:DcxCom.CheckedAll(this,1629,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="2995" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">当前状态 </label></li><li areaid="2996" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">当前办理人 </label></li><li areaid="2997" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请调动人 </label></li><li areaid="2998" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请调动时间 </label></li><li areaid="2999" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调动理由 </label></li><li areaid="3000" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请人姓名 </label></li><li areaid="3001" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">性别 </label></li><li areaid="3002" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">入职时间 </label></li><li areaid="3003" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">原工作部门 </label></li><li areaid="3004" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">原工作岗位 </label></li><li areaid="3005" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">原工资级别 </label></li><li areaid="3006" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">原基本工资 </label></li><li areaid="3007" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">原考核工资 </label></li><li areaid="3008" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调动后的部门 </label></li><li areaid="3009" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调动后的岗位 </label></li><li areaid="3010" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调动后的工资级别 </label></li><li areaid="3011" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调动后的基本工资 </label></li><li areaid="3012" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调动后的考核工资 </label></li><li areaid="3013" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调出部门意见 </label></li><li areaid="3014" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调入部门意见 </label></li><li areaid="3015" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">人事部意见 </label></li><li areaid="3016" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">总经理意见 </label></li><li areaid="3017" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请人编号 </label></li><li areaid="3018" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="办理"><span class="i">办理</span></a></div></li><li areaid="3019" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="3020" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">','',-1,103,-1,-1,1,'1629,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=427,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="101" entid="1629" style="width: 2710px;" ctrlprex="ListR_" isrple="1"> <li areaid="2989" class="tool-li" style="position: static;">
</li><li areaid="2990" class="tool-li" style="position: static;"><a id="ListR_1629_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1629,''ListR_'');">删   除</a></li>
<li areaid="2991" class="tool-li" style="position: static;"><a id="ListR_1629_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1629,''ListR_'');">导   出</a></li>
<li areaid="2992" class="tool-li" style="position: static;"><a id="ListR_1629_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1629,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1629" style="position: static;">
<a id="ListR_1629_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1629,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1629_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1629,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1629_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1629,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1629_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="102" entid="1629" class="list-head-ul" style="width: 2850px;" ctrlprex="ListR_" isrple="1">
<li areaid="2994" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1629" onclick="javascript:DcxCom.CheckedAll(this,1629,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="2995" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">当前状态 </label></li><li areaid="2996" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">当前办理人 </label></li><li areaid="2997" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请调动人 </label></li><li areaid="2998" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请调动时间 </label></li><li areaid="2999" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调动理由 </label></li><li areaid="3000" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请人姓名 </label></li><li areaid="3001" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">性别 </label></li><li areaid="3002" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">入职时间 </label></li><li areaid="3003" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">原工作部门 </label></li><li areaid="3004" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">原工作岗位 </label></li><li areaid="3005" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">原工资级别 </label></li><li areaid="3006" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">原基本工资 </label></li><li areaid="3007" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">原考核工资 </label></li><li areaid="3008" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调动后的部门 </label></li><li areaid="3009" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调动后的岗位 </label></li><li areaid="3010" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调动后的工资级别 </label></li><li areaid="3011" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调动后的基本工资 </label></li><li areaid="3012" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调动后的考核工资 </label></li><li areaid="3013" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调出部门意见 </label></li><li areaid="3014" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调入部门意见 </label></li><li areaid="3015" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">人事部意见 </label></li><li areaid="3016" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">总经理意见 </label></li><li areaid="3017" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请人编号 </label></li><li areaid="3018" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="办理"><span class="i">办理</span></a></div></li><li areaid="3019" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="3020" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1629,' where  [FldUId]='5845b30c-ca57-55e8-606b-375e6338f5d4' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='6fcf8a0e-4113-4605-afff-b8b1f385b3a6'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(154,'6fcf8a0e-4113-4605-afff-b8b1f385b3a6',1629,1629,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',2,1,'',2,21,0,'','','','islonly="1" isgroup="1" groupid="103" class="list-body-ul" style="width: 2850px;" isrple="1">
<li areaid="3021" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1629" issyscheck="1" keyvalue="','',-1,103,-1,-1,1,'1629,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=154,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='islonly="1" isgroup="1" groupid="103" class="list-body-ul" style="width: 2850px;" isrple="1">
<li areaid="3021" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1629" issyscheck="1" keyvalue="',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1629,' where  [FldUId]='6fcf8a0e-4113-4605-afff-b8b1f385b3a6' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='e4891007-9434-4186-a22c-eb793e1b4277'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'e4891007-9434-4186-a22c-eb793e1b4277',1629,1629,'00000000-0000-0000-0000-000000000000',2,'WFState',3,1,'varchar',2,1,0,'','','','" type="checkbox"></li><li areaid="3022" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowCurWfDlg(this);">
   <span isfield="1" entid="1629" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1629,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=1,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='WFState',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='" type="checkbox"></li><li areaid="3022" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowCurWfDlg(this);">
   <span isfield="1" entid="1629" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1629,' where  [FldUId]='e4891007-9434-4186-a22c-eb793e1b4277' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='c97e6a0e-f110-47d3-a5f3-aa692500e8c7'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(378,'c97e6a0e-f110-47d3-a5f3-aa692500e8c7',1629,1629,'00000000-0000-0000-0000-000000000000',9,'WFFlowId',4,1,'',1,1,0,'','','','</span>
   </a>
   <span isfield="1" entid="1629" fieldname="WFFlowId" fldid="378" columntypeid="1" class="form-ctr" style="display: none;">','',-1,103,-1,-1,1,'1629,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=378,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=9,[FieldName]='WFFlowId',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   </a>
   <span isfield="1" entid="1629" fieldname="WFFlowId" fldid="378" columntypeid="1" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1629,' where  [FldUId]='c97e6a0e-f110-47d3-a5f3-aa692500e8c7' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='7f9dd83a-a8d5-4647-8edc-3e1337af3ed2'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(379,'7f9dd83a-a8d5-4647-8edc-3e1337af3ed2',1629,1629,'00000000-0000-0000-0000-000000000000',8,'WFRunId',5,1,'',1,1,0,'','','','</span>
   <span isfield="1" entid="1629" fieldname="WFRunId" fldid="379" columntypeid="1" class="form-ctr" style="display: none;">','',-1,103,-1,-1,1,'1629,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=379,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=8,[FieldName]='WFRunId',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   <span isfield="1" entid="1629" fieldname="WFRunId" fldid="379" columntypeid="1" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1629,' where  [FldUId]='7f9dd83a-a8d5-4647-8edc-3e1337af3ed2' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='e0d96146-631b-44a7-b4eb-44586eeeb4ec'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(380,'e0d96146-631b-44a7-b4eb-44586eeeb4ec',1629,1629,'00000000-0000-0000-0000-000000000000',10,'WFPrcsId',6,1,'',1,1,0,'','','','</span>
   <span isfield="1" entid="1629" fieldname="WFPrcsId" fldid="380" columntypeid="1" class="form-ctr" style="display: none;">','',-1,103,-1,-1,1,'1629,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=380,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=10,[FieldName]='WFPrcsId',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   <span isfield="1" entid="1629" fieldname="WFPrcsId" fldid="380" columntypeid="1" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1629,' where  [FldUId]='e0d96146-631b-44a7-b4eb-44586eeeb4ec' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='bc98ba95-f3ab-4688-b361-67b609dab169'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'bc98ba95-f3ab-4688-b361-67b609dab169',1629,1629,'00000000-0000-0000-0000-000000000000',3,'WFUserName',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="3023" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowWfCurUserDlg(this);">
   <span isfield="1" entid="1629" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1629,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=2,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='WFUserName',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="3023" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowWfCurUserDlg(this);">
   <span isfield="1" entid="1629" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1629,' where  [FldUId]='bc98ba95-f3ab-4688-b361-67b609dab169' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='36ab69eb-2a68-4c15-bd04-658ef5e4c5e0'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'36ab69eb-2a68-4c15-bd04-658ef5e4c5e0',1629,1629,'00000000-0000-0000-0000-000000000000',11,'申请调动人',8,1,'varchar',2,1,0,'','','','</span>
   </a>
  </div>
</li><li areaid="3024" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1629" fieldname="申请调动人" fldid="3" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1629,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=3,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=11,[FieldName]='申请调动人',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   </a>
  </div>
</li><li areaid="3024" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1629" fieldname="申请调动人" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1629,' where  [FldUId]='36ab69eb-2a68-4c15-bd04-658ef5e4c5e0' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='c42ed3f4-9c4f-4d62-8726-08df98525613'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'c42ed3f4-9c4f-4d62-8726-08df98525613',1629,1629,'00000000-0000-0000-0000-000000000000',12,'申请调动时间',9,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="3025" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1629" fieldname="申请调动时间" fldid="4" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1629,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=4,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=12,[FieldName]='申请调动时间',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="3025" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1629" fieldname="申请调动时间" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1629,' where  [FldUId]='c42ed3f4-9c4f-4d62-8726-08df98525613' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='642268c3-1da1-4c19-9dfe-a7e86e60e78e'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'642268c3-1da1-4c19-9dfe-a7e86e60e78e',1629,1629,'00000000-0000-0000-0000-000000000000',13,'调动理由',10,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="3026" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1629" fieldname="调动理由" fldid="5" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1629,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=5,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=13,[FieldName]='调动理由',[FieldNO]=10,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="3026" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1629" fieldname="调动理由" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1629,' where  [FldUId]='642268c3-1da1-4c19-9dfe-a7e86e60e78e' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='04109119-fd06-4d51-93f0-a695c675fc0e'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'04109119-fd06-4d51-93f0-a695c675fc0e',1629,1629,'00000000-0000-0000-0000-000000000000',14,'申请人姓名',11,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="3027" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1629" fieldname="申请人姓名" fldid="6" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1629,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=6,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=14,[FieldName]='申请人姓名',[FieldNO]=11,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="3027" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1629" fieldname="申请人姓名" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1629,' where  [FldUId]='04109119-fd06-4d51-93f0-a695c675fc0e' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='4ff5d3d4-d660-437b-a2a1-6e80fc870568'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'4ff5d3d4-d660-437b-a2a1-6e80fc870568',1629,1629,'00000000-0000-0000-0000-000000000000',15,'性别',12,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="3028" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1629" fieldname="性别" fldid="7" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1629,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=7,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=15,[FieldName]='性别',[FieldNO]=12,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="3028" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1629" fieldname="性别" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1629,' where  [FldUId]='4ff5d3d4-d660-437b-a2a1-6e80fc870568' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='07a1dd7a-d22e-444c-86aa-5cef722521a1'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'07a1dd7a-d22e-444c-86aa-5cef722521a1',1629,1629,'00000000-0000-0000-0000-000000000000',16,'入职时间',13,4,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="3029" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1629" fieldname="入职时间" fldid="8" columntypeid="4" class="form-ctr">','',-1,103,-1,-1,1,'1629,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=8,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=16,[FieldName]='入职时间',[FieldNO]=13,[ColumnTypeId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="3029" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1629" fieldname="入职时间" fldid="8" columntypeid="4" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1629,' where  [FldUId]='07a1dd7a-d22e-444c-86aa-5cef722521a1' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='1c43b028-4bee-45c0-91f5-1edf18527b9f'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'1c43b028-4bee-45c0-91f5-1edf18527b9f',1629,1629,'00000000-0000-0000-0000-000000000000',17,'原工作部门',14,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="3030" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1629" fieldname="原工作部门" fldid="9" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1629,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=9,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=17,[FieldName]='原工作部门',[FieldNO]=14,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="3030" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1629" fieldname="原工作部门" fldid="9" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1629,' where  [FldUId]='1c43b028-4bee-45c0-91f5-1edf18527b9f' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='cd914f97-c7db-4dbe-8623-5f790c99601e'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'cd914f97-c7db-4dbe-8623-5f790c99601e',1629,1629,'00000000-0000-0000-0000-000000000000',18,'原工作岗位',15,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="3031" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1629" fieldname="原工作岗位" fldid="10" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1629,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=10,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=18,[FieldName]='原工作岗位',[FieldNO]=15,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="3031" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1629" fieldname="原工作岗位" fldid="10" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1629,' where  [FldUId]='cd914f97-c7db-4dbe-8623-5f790c99601e' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='91be64c7-c357-4000-adfd-0931c151e019'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'91be64c7-c357-4000-adfd-0931c151e019',1629,1629,'00000000-0000-0000-0000-000000000000',19,'原工资级别',16,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="3032" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1629" fieldname="原工资级别" fldid="11" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1629,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=11,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=19,[FieldName]='原工资级别',[FieldNO]=16,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="3032" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1629" fieldname="原工资级别" fldid="11" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1629,' where  [FldUId]='91be64c7-c357-4000-adfd-0931c151e019' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='f2e5f7b1-c4fa-42f0-9217-5ca6d7efc801'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(12,'f2e5f7b1-c4fa-42f0-9217-5ca6d7efc801',1629,1629,'00000000-0000-0000-0000-000000000000',20,'原基本工资',17,3,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="3033" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1629" fieldname="原基本工资" fldid="12" columntypeid="3" class="form-ctr">￥','',-1,103,-1,-1,1,'1629,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=12,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=20,[FieldName]='原基本工资',[FieldNO]=17,[ColumnTypeId]=3,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="3033" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1629" fieldname="原基本工资" fldid="12" columntypeid="3" class="form-ctr">￥',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1629,' where  [FldUId]='f2e5f7b1-c4fa-42f0-9217-5ca6d7efc801' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='27d0d17f-5c28-43f5-b6a9-580f553ee246'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(13,'27d0d17f-5c28-43f5-b6a9-580f553ee246',1629,1629,'00000000-0000-0000-0000-000000000000',21,'原考核工资',18,3,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="3034" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1629" fieldname="原考核工资" fldid="13" columntypeid="3" class="form-ctr">￥','',-1,103,-1,-1,1,'1629,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=13,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=21,[FieldName]='原考核工资',[FieldNO]=18,[ColumnTypeId]=3,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="3034" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1629" fieldname="原考核工资" fldid="13" columntypeid="3" class="form-ctr">￥',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1629,' where  [FldUId]='27d0d17f-5c28-43f5-b6a9-580f553ee246' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='55cc84ad-c1fe-4884-97dd-9948463c9b95'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(14,'55cc84ad-c1fe-4884-97dd-9948463c9b95',1629,1629,'00000000-0000-0000-0000-000000000000',22,'调动后的部门',19,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="3035" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1629" fieldname="调动后的部门" fldid="14" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1629,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=14,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=22,[FieldName]='调动后的部门',[FieldNO]=19,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="3035" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1629" fieldname="调动后的部门" fldid="14" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1629,' where  [FldUId]='55cc84ad-c1fe-4884-97dd-9948463c9b95' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='f323c8a5-5f3d-4c28-b121-274359970d32'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(15,'f323c8a5-5f3d-4c28-b121-274359970d32',1629,1629,'00000000-0000-0000-0000-000000000000',23,'调动后的岗位',20,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="3036" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1629" fieldname="调动后的岗位" fldid="15" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1629,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=15,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=23,[FieldName]='调动后的岗位',[FieldNO]=20,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="3036" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1629" fieldname="调动后的岗位" fldid="15" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1629,' where  [FldUId]='f323c8a5-5f3d-4c28-b121-274359970d32' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='5d85ede6-894b-4936-8997-b7da215f770b'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(16,'5d85ede6-894b-4936-8997-b7da215f770b',1629,1629,'00000000-0000-0000-0000-000000000000',24,'调动后的工资级别',21,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="3037" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1629" fieldname="调动后的工资级别" fldid="16" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1629,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=16,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=24,[FieldName]='调动后的工资级别',[FieldNO]=21,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="3037" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1629" fieldname="调动后的工资级别" fldid="16" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1629,' where  [FldUId]='5d85ede6-894b-4936-8997-b7da215f770b' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='e36d10d7-70e4-4b2f-9bc8-fd0af3d6ae3e'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(17,'e36d10d7-70e4-4b2f-9bc8-fd0af3d6ae3e',1629,1629,'00000000-0000-0000-0000-000000000000',25,'调动后的基本工资',22,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="3038" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1629" fieldname="调动后的基本工资" fldid="17" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1629,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=17,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=25,[FieldName]='调动后的基本工资',[FieldNO]=22,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="3038" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1629" fieldname="调动后的基本工资" fldid="17" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1629,' where  [FldUId]='e36d10d7-70e4-4b2f-9bc8-fd0af3d6ae3e' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='41432946-9fe1-4363-aaa7-177d40c75694'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(18,'41432946-9fe1-4363-aaa7-177d40c75694',1629,1629,'00000000-0000-0000-0000-000000000000',26,'调动后的考核工资',23,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="3039" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1629" fieldname="调动后的考核工资" fldid="18" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1629,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=18,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=26,[FieldName]='调动后的考核工资',[FieldNO]=23,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="3039" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1629" fieldname="调动后的考核工资" fldid="18" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1629,' where  [FldUId]='41432946-9fe1-4363-aaa7-177d40c75694' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='675504d2-2ed1-49af-9933-ea0e3bb3687b'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(19,'675504d2-2ed1-49af-9933-ea0e3bb3687b',1629,1629,'00000000-0000-0000-0000-000000000000',27,'调出部门意见',24,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="3040" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1629" fieldname="调出部门意见" fldid="19" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1629,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=19,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=27,[FieldName]='调出部门意见',[FieldNO]=24,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="3040" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1629" fieldname="调出部门意见" fldid="19" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1629,' where  [FldUId]='675504d2-2ed1-49af-9933-ea0e3bb3687b' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='e9a0d7e9-98be-4a6b-b482-3325b780cf82'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(20,'e9a0d7e9-98be-4a6b-b482-3325b780cf82',1629,1629,'00000000-0000-0000-0000-000000000000',28,'调入部门意见',25,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="3041" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1629" fieldname="调入部门意见" fldid="20" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1629,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=20,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=28,[FieldName]='调入部门意见',[FieldNO]=25,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="3041" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1629" fieldname="调入部门意见" fldid="20" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1629,' where  [FldUId]='e9a0d7e9-98be-4a6b-b482-3325b780cf82' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='444437fd-75ad-4d0a-a9ed-d07eb5ba4154'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(21,'444437fd-75ad-4d0a-a9ed-d07eb5ba4154',1629,1629,'00000000-0000-0000-0000-000000000000',29,'人事部意见',26,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="3042" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1629" fieldname="人事部意见" fldid="21" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1629,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=21,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=29,[FieldName]='人事部意见',[FieldNO]=26,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="3042" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1629" fieldname="人事部意见" fldid="21" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1629,' where  [FldUId]='444437fd-75ad-4d0a-a9ed-d07eb5ba4154' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='dede94f5-7e75-468f-a54b-232ef1cd4cf3'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(22,'dede94f5-7e75-468f-a54b-232ef1cd4cf3',1629,1629,'00000000-0000-0000-0000-000000000000',30,'总经理意见',27,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="3043" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1629" fieldname="总经理意见" fldid="22" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1629,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=22,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=30,[FieldName]='总经理意见',[FieldNO]=27,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="3043" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1629" fieldname="总经理意见" fldid="22" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1629,' where  [FldUId]='dede94f5-7e75-468f-a54b-232ef1cd4cf3' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='3fdf6ec0-5e20-408e-ab82-aeba56f87c50'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(23,'3fdf6ec0-5e20-408e-ab82-aeba56f87c50',1629,1629,'00000000-0000-0000-0000-000000000000',31,'申请人编号',28,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="3044" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1629" fieldname="申请人编号" fldid="23" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1629,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=23,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=31,[FieldName]='申请人编号',[FieldNO]=28,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="3044" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1629" fieldname="申请人编号" fldid="23" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1629,' where  [FldUId]='3fdf6ec0-5e20-408e-ab82-aeba56f87c50' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='8be348db-062f-44e1-b38f-988a099d954d'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(155,'8be348db-062f-44e1-b38f-988a099d954d',1629,1629,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',29,1,'',2,21,0,'','','','</span>
  </div>
</li><li areaid="3045" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,1629,''ListR_'',''','',-1,103,-1,-1,1,'1629,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=155,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=29,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="3045" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,1629,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1629,' where  [FldUId]='8be348db-062f-44e1-b38f-988a099d954d' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='ec52cb14-bd10-4f93-bbd2-f6c92cf80798'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(156,'ec52cb14-bd10-4f93-bbd2-f6c92cf80798',1629,1629,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',30,1,'',2,21,0,'','','',''',null,1040,480);">
<span class="i">办理</span></a></div>
</li><li areaid="3046" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1629,''ListR_'',''','',-1,103,-1,-1,1,'1629,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=156,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=30,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">办理</span></a></div>
</li><li areaid="3046" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1629,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1629,' where  [FldUId]='ec52cb14-bd10-4f93-bbd2-f6c92cf80798' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='b10ded5f-a67a-4e93-bfd4-f524d79cf271'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(157,'b10ded5f-a67a-4e93-bfd4-f524d79cf271',1629,1629,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',31,1,'',2,21,0,'','','',''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="3047" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,1629,''ListR_'',''','',-1,103,-1,-1,1,'1629,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=157,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=31,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="3047" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,1629,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1629,' where  [FldUId]='b10ded5f-a67a-4e93-bfd4-f524d79cf271' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='294cec80-fcf4-53f3-bdb1-47195775c990'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(428,'294cec80-fcf4-53f3-bdb1-47195775c990',1629,1629,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',32,-1,'varchar',2,13,0,'','','',''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>','</div>
</div>
<!-- 结束 --></div>',-1,103,-1,-1,1,'1629,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=428,[Report_EntId]=1629,[EntId]=1629,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=32,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>',[LastHtml]='</div>
</div>
<!-- 结束 --></div>',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1629,' where  [FldUId]='294cec80-fcf4-53f3-bdb1-47195775c990' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=1017

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=1017  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(1017,null,'人事_个人调动申请表','人事_个人调动申请表',0,0,0,0,0,1,4,1,3,'admin','2013-12-15 17:32:50',3,'admin','2013-12-15 17:32:50',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='人事_个人调动申请表',[DBTableByName]='人事_个人调动申请表',[IsForbid]=0,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=1,[SystemId]=4,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:50',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:50',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=1017 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1017  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6812,1,4,1017,'int',1,1,1,'人事_个人调动申请表','LD_Id','LD_Id','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_个人调动申请表',[FieldName]='LD_Id',[FieldByname]='LD_Id',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1017  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1017  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6813,2,4,1017,'varchar',2,1,1,'人事_个人调动申请表','WFState','WFState','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_个人调动申请表',[FieldName]='WFState',[FieldByname]='WFState',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1017  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1017  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6814,3,4,1017,'varchar',2,1,1,'人事_个人调动申请表','WFUserName','WFUserName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_个人调动申请表',[FieldName]='WFUserName',[FieldByname]='WFUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1017  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1017  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6815,4,4,1017,'bit',4,1,1,'人事_个人调动申请表','WFIsFinish','WFIsFinish','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_个人调动申请表',[FieldName]='WFIsFinish',[FieldByname]='WFIsFinish',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1017  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1017  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6816,5,4,1017,'bit',4,1,1,'人事_个人调动申请表','WFIsStart','WFIsStart','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_个人调动申请表',[FieldName]='WFIsStart',[FieldByname]='WFIsStart',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1017  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1017  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6817,6,4,1017,'varchar',2,1,1,'人事_个人调动申请表','WFAllUser','WFAllUser','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_个人调动申请表',[FieldName]='WFAllUser',[FieldByname]='WFAllUser',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1017  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1017  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6818,7,4,1017,'varchar',2,1,1,'人事_个人调动申请表','WFOpinion','WFOpinion','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_个人调动申请表',[FieldName]='WFOpinion',[FieldByname]='WFOpinion',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1017  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1017  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6819,8,4,1017,'int',1,1,1,'人事_个人调动申请表','WFRunId','WFRunId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_个人调动申请表',[FieldName]='WFRunId',[FieldByname]='WFRunId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1017  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1017  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6820,9,4,1017,'int',1,1,1,'人事_个人调动申请表','WFFlowId','WFFlowId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_个人调动申请表',[FieldName]='WFFlowId',[FieldByname]='WFFlowId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1017  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1017  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6821,10,4,1017,'int',1,1,1,'人事_个人调动申请表','WFPrcsId','WFPrcsId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_个人调动申请表',[FieldName]='WFPrcsId',[FieldByname]='WFPrcsId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1017  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1017  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6822,11,4,1017,'varchar',2,1,1,'人事_个人调动申请表','申请调动人','申请调动人','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_个人调动申请表',[FieldName]='申请调动人',[FieldByname]='申请调动人',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1017  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1017  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6823,12,4,1017,'datetime',3,1,1,'人事_个人调动申请表','申请调动时间','申请调动时间','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_个人调动申请表',[FieldName]='申请调动时间',[FieldByname]='申请调动时间',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1017  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1017  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6824,13,4,1017,'varchar',2,1,1,'人事_个人调动申请表','调动理由','调动理由','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_个人调动申请表',[FieldName]='调动理由',[FieldByname]='调动理由',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1017  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1017  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6825,14,4,1017,'varchar',2,1,1,'人事_个人调动申请表','申请人姓名','申请人姓名','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_个人调动申请表',[FieldName]='申请人姓名',[FieldByname]='申请人姓名',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1017  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1017  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6826,15,4,1017,'varchar',2,1,1,'人事_个人调动申请表','性别','性别','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_个人调动申请表',[FieldName]='性别',[FieldByname]='性别',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1017  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1017  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6827,16,4,1017,'varchar',2,1,1,'人事_个人调动申请表','入职时间','入职时间','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_个人调动申请表',[FieldName]='入职时间',[FieldByname]='入职时间',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1017  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1017  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6828,17,4,1017,'varchar',2,1,1,'人事_个人调动申请表','原工作部门','原工作部门','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_个人调动申请表',[FieldName]='原工作部门',[FieldByname]='原工作部门',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1017  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1017  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6829,18,4,1017,'varchar',2,1,1,'人事_个人调动申请表','原工作岗位','原工作岗位','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_个人调动申请表',[FieldName]='原工作岗位',[FieldByname]='原工作岗位',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1017  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1017  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6830,19,4,1017,'decimal',7,1,1,'人事_个人调动申请表','原工资级别','原工资级别','',0,0,1,9,18,1,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='decimal',[FieldDataTypeId]=7,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_个人调动申请表',[FieldName]='原工资级别',[FieldByname]='原工资级别',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=9,[Precision]=18,[Scale]=1,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1017  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1017  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6831,20,4,1017,'money',5,1,1,'人事_个人调动申请表','原基本工资','原基本工资','',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_个人调动申请表',[FieldName]='原基本工资',[FieldByname]='原基本工资',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1017  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1017  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6832,21,4,1017,'money',5,1,1,'人事_个人调动申请表','原考核工资','原考核工资','',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_个人调动申请表',[FieldName]='原考核工资',[FieldByname]='原考核工资',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1017  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1017  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6833,22,4,1017,'varchar',2,1,1,'人事_个人调动申请表','调动后的部门','调动后的部门','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_个人调动申请表',[FieldName]='调动后的部门',[FieldByname]='调动后的部门',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1017  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1017  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6834,23,4,1017,'varchar',2,1,1,'人事_个人调动申请表','调动后的岗位','调动后的岗位','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_个人调动申请表',[FieldName]='调动后的岗位',[FieldByname]='调动后的岗位',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1017  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1017  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6835,24,4,1017,'decimal',7,1,1,'人事_个人调动申请表','调动后的工资级别','调动后的工资级别','',0,0,1,9,18,1,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='decimal',[FieldDataTypeId]=7,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_个人调动申请表',[FieldName]='调动后的工资级别',[FieldByname]='调动后的工资级别',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=9,[Precision]=18,[Scale]=1,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1017  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1017  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6836,25,4,1017,'money',5,1,1,'人事_个人调动申请表','调动后的基本工资','调动后的基本工资','',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_个人调动申请表',[FieldName]='调动后的基本工资',[FieldByname]='调动后的基本工资',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1017  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1017  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6837,26,4,1017,'money',5,1,1,'人事_个人调动申请表','调动后的考核工资','调动后的考核工资','',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_个人调动申请表',[FieldName]='调动后的考核工资',[FieldByname]='调动后的考核工资',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1017  and  [FieldId]=26 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1017  and  [FieldId]=27  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6838,27,4,1017,'varchar',2,1,1,'人事_个人调动申请表','调出部门意见','调出部门意见','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_个人调动申请表',[FieldName]='调出部门意见',[FieldByname]='调出部门意见',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1017  and  [FieldId]=27 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1017  and  [FieldId]=28  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6839,28,4,1017,'varchar',2,1,1,'人事_个人调动申请表','调入部门意见','调入部门意见','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_个人调动申请表',[FieldName]='调入部门意见',[FieldByname]='调入部门意见',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1017  and  [FieldId]=28 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1017  and  [FieldId]=29  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6840,29,4,1017,'varchar',2,1,1,'人事_个人调动申请表','人事部意见','人事部意见','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_个人调动申请表',[FieldName]='人事部意见',[FieldByname]='人事部意见',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1017  and  [FieldId]=29 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1017  and  [FieldId]=30  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6841,30,4,1017,'varchar',2,1,1,'人事_个人调动申请表','总经理意见','总经理意见','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_个人调动申请表',[FieldName]='总经理意见',[FieldByname]='总经理意见',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1017  and  [FieldId]=30 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1017  and  [FieldId]=31  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6842,31,4,1017,'varchar',2,1,1,'人事_个人调动申请表','申请人编号','申请人编号','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_个人调动申请表',[FieldName]='申请人编号',[FieldByname]='申请人编号',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1017  and  [FieldId]=31 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--WF_FlowType

     SET IDENTITY_INSERT [WF_FlowType] ON 
      if (select count(1) from [WF_FlowType] where  [FlowId]=30  )<1 
      begin 
           Insert into [WF_FlowType] ([FlowId],[FlowName],[FlowNo],[SortId],[EntId],[EntName],[AutoName],[ManageUsers],[ManageNames],[QueryUsers],[QueryNames],[CanQueryRoles],[CanQueryRolesId],[CanManageRoles],[CanManageRolesId],[CanStartUsers],[CanStartNames],[CanStartRoles],[CanStartRolesId],[AttachMaxSize],[FlowAttach],[IsPigeonhole],[PigeonholedSQL],[IsFreeFlow],[QueryItem],[LaunchIsOpen],[FormUrl],[BrowseUrl],[ListUrl],[Detail],[CreatorId],[Creator],[CreateTime],[EditTime],[Editor],[EditorId],[AccountId])values(30,'员工调动申请',12,25,1629,'调动申请',null,'admin','admin','admin','admin','系统管理员','3','系统管理员','3',null,null,'Public','1',0,0,0,'',null,'',null,null,null,null,'员工调动呈批',0,'admin','2013-11-30 1:06:40',null,null,null,1)
      end
      else 
      begin 
           update [WF_FlowType] set [FlowName]='员工调动申请',[FlowNo]=12,[SortId]=25,[EntId]=1629,[EntName]='调动申请',[AutoName]=null,[ManageUsers]='admin',[ManageNames]='admin',[QueryUsers]='admin',[QueryNames]='admin',[CanQueryRoles]='系统管理员',[CanQueryRolesId]='3',[CanManageRoles]='系统管理员',[CanManageRolesId]='3',[CanStartUsers]=null,[CanStartNames]=null,[CanStartRoles]='Public',[CanStartRolesId]='1',[AttachMaxSize]=0,[FlowAttach]=0,[IsPigeonhole]=0,[PigeonholedSQL]='',[IsFreeFlow]=null,[QueryItem]='',[LaunchIsOpen]=null,[FormUrl]=null,[BrowseUrl]=null,[ListUrl]=null,[Detail]='员工调动呈批',[CreatorId]=0,[Creator]='admin',[CreateTime]='2013-11-30 1:06:40',[EditTime]=null,[Editor]=null,[EditorId]=null,[AccountId]=1 where  [FlowId]=30 
      end

     SET IDENTITY_INSERT [WF_FlowType] OFF 



Delete from [WF_FlowNode]  where isnull([FlowId],0)=30 

--WF_FlowNode

     SET IDENTITY_INSERT [WF_FlowNode] ON 
      if (select count(1) from [WF_FlowNode] where  [NodeId]=109  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(109,30,'申请登记',1,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','110',0,1,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','',null,0,'',20,50,null,null,null,null,null,null,null,null,null,null,'2655,2656,2657,2658,2659,2660,2661,2662,2663,2664,2665,2666,2667,2668,2669,2670,2654',null,null,null,null,null,null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=30,[NodeName]='申请登记',[Step]=1,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='110',[AllowLastNodeBoss]=0,[AllowWorkCreator]=1,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=20,[Pointy]=50,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='2655,2656,2657,2658,2659,2660,2661,2662,2663,2664,2665,2666,2667,2668,2669,2670,2654',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]=null,[PositionDeptNames]=null,[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=109 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=110  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(110,30,'部门领导审核',2,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','111',0,1,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','',null,0,'',20,230,null,null,null,null,null,null,null,null,null,null,'2671',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=30,[NodeName]='部门领导审核',[Step]=2,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='111',[AllowLastNodeBoss]=0,[AllowWorkCreator]=1,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=20,[Pointy]=230,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='2671',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=110 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=111  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(111,30,'人力资源部审核',3,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','112',0,1,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','',null,0,'',200,50,null,null,null,null,null,null,null,null,null,null,'2673',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=30,[NodeName]='人力资源部审核',[Step]=3,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='112',[AllowLastNodeBoss]=0,[AllowWorkCreator]=1,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=200,[Pointy]=50,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='2673',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=111 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=112  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(112,30,'人力资源部办结',4,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','115,114,476',0,1,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','<$462:Begin$>
		--流出到<申请成功，通知申请人>节点时 

		
update 人事_个人调动申请表 set WFIsFinish=1,WFIsStart=1 where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''
Update   工资_员工档案  Set   [岗位级别]= @调动后的工资级别,[部门编号] =(SELECT top 1 [部门编号]  FROM [工资_部门信息]  where ltrim(rtrim([部门名称]))=@调动后的部门),[所在部门]=@调动后的部门,  [员工岗位]=@调动后的岗位 ,  [调动日期]= @申请调动时间, [基本工资]=@调动后的基本工资, [月考核工资]=@调动后的考核工资 where     username= @申请调动人

		</$462:End$>',null,0,'',200,230,null,null,null,null,null,null,null,null,null,null,'2672',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=30,[NodeName]='人力资源部办结',[Step]=4,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='115,114,476',[AllowLastNodeBoss]=0,[AllowWorkCreator]=1,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='<$462:Begin$>
		--流出到<申请成功，通知申请人>节点时 

		
update 人事_个人调动申请表 set WFIsFinish=1,WFIsStart=1 where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''
Update   工资_员工档案  Set   [岗位级别]= @调动后的工资级别,[部门编号] =(SELECT top 1 [部门编号]  FROM [工资_部门信息]  where ltrim(rtrim([部门名称]))=@调动后的部门),[所在部门]=@调动后的部门,  [员工岗位]=@调动后的岗位 ,  [调动日期]= @申请调动时间, [基本工资]=@调动后的基本工资, [月考核工资]=@调动后的考核工资 where     username= @申请调动人

		</$462:End$>',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=200,[Pointy]=230,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='2672',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=112 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=114  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(114,30,'申请成功，通知申请人',6,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','-1',0,1,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','<$462:Begin$>
		--流出到<结束>节点时 

		
update 人事_个人调动申请表 set WFIsFinish=1,WFIsStart=1 where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''

		</$462:End$>',null,0,'',380,230,null,null,null,null,null,null,null,null,null,null,'',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=30,[NodeName]='申请成功，通知申请人',[Step]=6,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='-1',[AllowLastNodeBoss]=0,[AllowWorkCreator]=1,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='<$462:Begin$>
		--流出到<结束>节点时 

		
update 人事_个人调动申请表 set WFIsFinish=1,WFIsStart=1 where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''

		</$462:End$>',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=380,[Pointy]=230,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=114 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=115  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(115,30,'总经理审批',5,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','114,476',0,1,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','<$462:Begin$>
		--流出到<申请成功，通知申请人>节点时 

		
update 人事_个人调动申请表 set WFIsFinish=1,WFIsStart=1 where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''
Update   工资_员工档案  Set   [岗位级别]= @调动后的工资级别,[部门编号] =(SELECT top 1 [部门编号]  FROM [工资_部门信息]  where ltrim(rtrim([部门名称]))=@调动后的部门),[所在部门]=@调动后的部门,  [员工岗位]=@调动后的岗位 ,  [调动日期]= @申请调动时间, [基本工资]=@调动后的基本工资, [月考核工资]=@调动后的考核工资 where     username= @申请调动人

		</$462:End$>',null,0,'',380,50,null,null,null,null,null,null,null,null,null,null,'2674',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=30,[NodeName]='总经理审批',[Step]=5,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='114,476',[AllowLastNodeBoss]=0,[AllowWorkCreator]=1,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='<$462:Begin$>
		--流出到<申请成功，通知申请人>节点时 

		
update 人事_个人调动申请表 set WFIsFinish=1,WFIsStart=1 where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''
Update   工资_员工档案  Set   [岗位级别]= @调动后的工资级别,[部门编号] =(SELECT top 1 [部门编号]  FROM [工资_部门信息]  where ltrim(rtrim([部门名称]))=@调动后的部门),[所在部门]=@调动后的部门,  [员工岗位]=@调动后的岗位 ,  [调动日期]= @申请调动时间, [基本工资]=@调动后的基本工资, [月考核工资]=@调动后的考核工资 where     username= @申请调动人

		</$462:End$>',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=380,[Pointy]=50,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='2674',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=115 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=476  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(476,30,'申请失败，通知申请人',7,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','-1',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','<$462:Begin$>
		--流出到<结束>节点时 

		
update  人事_个人调动申请表  set WFIsFinish=1,WFIsStart=0 where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''

		</$462:End$>',null,0,'',560,50,null,null,null,null,null,null,null,null,null,null,'',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=30,[NodeName]='申请失败，通知申请人',[Step]=7,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='-1',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='<$462:Begin$>
		--流出到<结束>节点时 

		
update  人事_个人调动申请表  set WFIsFinish=1,WFIsStart=0 where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''

		</$462:End$>',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=560,[Pointy]=50,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=476 
      end

     SET IDENTITY_INSERT [WF_FlowNode] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=1304  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1304,30,109,1629,'调动申请',2668,'调动后的工资级别','调动后的工资级别','员工调动申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=30,[NodeId]=109,[EntId]=1629,[EntName]='调动申请',[FldId]=2668,[FieldName]='调动后的工资级别',[CtrlByName]='调动后的工资级别',[FlowName]='员工调动申请',[TypeId]=1 where  [Id]=1304 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1305  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1305,30,109,1629,'调动申请',2669,'调动后的基本工资','调动后的基本工资','员工调动申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=30,[NodeId]=109,[EntId]=1629,[EntName]='调动申请',[FldId]=2669,[FieldName]='调动后的基本工资',[CtrlByName]='调动后的基本工资',[FlowName]='员工调动申请',[TypeId]=1 where  [Id]=1305 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1306  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1306,30,109,1629,'调动申请',2670,'调动后的考核工资','调动后的考核工资','员工调动申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=30,[NodeId]=109,[EntId]=1629,[EntName]='调动申请',[FldId]=2670,[FieldName]='调动后的考核工资',[CtrlByName]='调动后的考核工资',[FlowName]='员工调动申请',[TypeId]=1 where  [Id]=1306 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1307  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1307,30,109,1629,'调动申请',2654,'申请人编号','申请人编号','员工调动申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=30,[NodeId]=109,[EntId]=1629,[EntName]='调动申请',[FldId]=2654,[FieldName]='申请人编号',[CtrlByName]='申请人编号',[FlowName]='员工调动申请',[TypeId]=1 where  [Id]=1307 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1291  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1291,30,109,1629,'调动申请',2655,'申请调动人','申请调动人','员工调动申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=30,[NodeId]=109,[EntId]=1629,[EntName]='调动申请',[FldId]=2655,[FieldName]='申请调动人',[CtrlByName]='申请调动人',[FlowName]='员工调动申请',[TypeId]=1 where  [Id]=1291 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1292  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1292,30,109,1629,'调动申请',2656,'申请调动时间','申请调动时间','员工调动申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=30,[NodeId]=109,[EntId]=1629,[EntName]='调动申请',[FldId]=2656,[FieldName]='申请调动时间',[CtrlByName]='申请调动时间',[FlowName]='员工调动申请',[TypeId]=1 where  [Id]=1292 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1293  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1293,30,109,1629,'调动申请',2657,'调动理由','调动理由','员工调动申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=30,[NodeId]=109,[EntId]=1629,[EntName]='调动申请',[FldId]=2657,[FieldName]='调动理由',[CtrlByName]='调动理由',[FlowName]='员工调动申请',[TypeId]=1 where  [Id]=1293 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1294  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1294,30,109,1629,'调动申请',2658,'申请人姓名','姓名','员工调动申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=30,[NodeId]=109,[EntId]=1629,[EntName]='调动申请',[FldId]=2658,[FieldName]='申请人姓名',[CtrlByName]='姓名',[FlowName]='员工调动申请',[TypeId]=1 where  [Id]=1294 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1295  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1295,30,109,1629,'调动申请',2659,'性别','性别','员工调动申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=30,[NodeId]=109,[EntId]=1629,[EntName]='调动申请',[FldId]=2659,[FieldName]='性别',[CtrlByName]='性别',[FlowName]='员工调动申请',[TypeId]=1 where  [Id]=1295 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1296  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1296,30,109,1629,'调动申请',2660,'入职时间','入职时间','员工调动申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=30,[NodeId]=109,[EntId]=1629,[EntName]='调动申请',[FldId]=2660,[FieldName]='入职时间',[CtrlByName]='入职时间',[FlowName]='员工调动申请',[TypeId]=1 where  [Id]=1296 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1297  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1297,30,109,1629,'调动申请',2661,'原工作部门','原工作部门','员工调动申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=30,[NodeId]=109,[EntId]=1629,[EntName]='调动申请',[FldId]=2661,[FieldName]='原工作部门',[CtrlByName]='原工作部门',[FlowName]='员工调动申请',[TypeId]=1 where  [Id]=1297 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1298  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1298,30,109,1629,'调动申请',2662,'原工作岗位','原工作岗位','员工调动申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=30,[NodeId]=109,[EntId]=1629,[EntName]='调动申请',[FldId]=2662,[FieldName]='原工作岗位',[CtrlByName]='原工作岗位',[FlowName]='员工调动申请',[TypeId]=1 where  [Id]=1298 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1299  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1299,30,109,1629,'调动申请',2663,'原工资级别','原工资级别','员工调动申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=30,[NodeId]=109,[EntId]=1629,[EntName]='调动申请',[FldId]=2663,[FieldName]='原工资级别',[CtrlByName]='原工资级别',[FlowName]='员工调动申请',[TypeId]=1 where  [Id]=1299 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1300  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1300,30,109,1629,'调动申请',2664,'原基本工资','原基本工资','员工调动申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=30,[NodeId]=109,[EntId]=1629,[EntName]='调动申请',[FldId]=2664,[FieldName]='原基本工资',[CtrlByName]='原基本工资',[FlowName]='员工调动申请',[TypeId]=1 where  [Id]=1300 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1301  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1301,30,109,1629,'调动申请',2665,'原考核工资','原考核工资','员工调动申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=30,[NodeId]=109,[EntId]=1629,[EntName]='调动申请',[FldId]=2665,[FieldName]='原考核工资',[CtrlByName]='原考核工资',[FlowName]='员工调动申请',[TypeId]=1 where  [Id]=1301 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1302  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1302,30,109,1629,'调动申请',2666,'调动后的部门','调动后的部门','员工调动申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=30,[NodeId]=109,[EntId]=1629,[EntName]='调动申请',[FldId]=2666,[FieldName]='调动后的部门',[CtrlByName]='调动后的部门',[FlowName]='员工调动申请',[TypeId]=1 where  [Id]=1302 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1303  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1303,30,109,1629,'调动申请',2667,'调动后的岗位','调动后的岗位','员工调动申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=30,[NodeId]=109,[EntId]=1629,[EntName]='调动申请',[FldId]=2667,[FieldName]='调动后的岗位',[CtrlByName]='调动后的岗位',[FlowName]='员工调动申请',[TypeId]=1 where  [Id]=1303 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=1308  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1308,30,110,1629,'调动申请',2671,'调出部门意见','调出部门意见','员工调动申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=30,[NodeId]=110,[EntId]=1629,[EntName]='调动申请',[FldId]=2671,[FieldName]='调出部门意见',[CtrlByName]='调出部门意见',[FlowName]='员工调动申请',[TypeId]=1 where  [Id]=1308 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=1310  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1310,30,111,1629,'调动申请',2673,'人事部意见','申请调动人','员工调动申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=30,[NodeId]=111,[EntId]=1629,[EntName]='调动申请',[FldId]=2673,[FieldName]='人事部意见',[CtrlByName]='申请调动人',[FlowName]='员工调动申请',[TypeId]=1 where  [Id]=1310 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=1311  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1311,30,112,1629,'调动申请',2672,'调入部门意见','调入部门意见','员工调动申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=30,[NodeId]=112,[EntId]=1629,[EntName]='调动申请',[FldId]=2672,[FieldName]='调入部门意见',[CtrlByName]='调入部门意见',[FlowName]='员工调动申请',[TypeId]=1 where  [Id]=1311 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=1312  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1312,30,115,1629,'调动申请',2674,'总经理意见','总经理意见','员工调动申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=30,[NodeId]=115,[EntId]=1629,[EntName]='调动申请',[FldId]=2674,[FieldName]='总经理意见',[CtrlByName]='总经理意见',[FlowName]='员工调动申请',[TypeId]=1 where  [Id]=1312 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=2832  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2832,'7859b826-cae2-4b30-9d87-7cc3a8045e6c','<font color=red>离职申请</font>',2905,'/Template/default/ListReport/ListReport_Tree001.aspx',1,'/images/default.gif','/images/default.gif',16,'',null,0,null,4,0,4,1,1,1,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='7859b826-cae2-4b30-9d87-7cc3a8045e6c',[MenuName]='<font color=red>离职申请</font>',[ParentId]=2905,[ProPath]='/Template/default/ListReport/ListReport_Tree001.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=16,[Target]='',[IsOpen]=null,[IsHidden]=0,[Remark]=null,[SSystemId]=4,[SMenuId]=0,[SystemId]=4,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=2832 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=2832  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(617,2832,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=2832  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=1630  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(1630,2832,'离职申请',1,1043,0,'人事_员工离职申请表',0,0,1,4,1630,null,null,4,null,1,null,39,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=2832,[EntName]='离职申请',[MEnt]=1,[DBTableId]=1043,[DBConnectId]=0,[DBTableName]='人事_员工离职申请表',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=4,[SEntId]=1630,[FSystemId]=null,[FEntId]=null,[SystemId]=4,[Remark]=null,[IsFlow]=1,[IsChecked]=null,[FlowId]=39,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=1630 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=1630

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=1630  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11405,-1,1630,1,1,1,1,0,1,0,0,0,1,0,0,0,0,0,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=0,[CanUpdate]=1,[CanOutPut]=0,[CanInput]=0,[CanCopy]=0,[CanPrint]=1,[CanCheck]=0,[CanClean]=0,[CanRecycle]=0,[CanExecute]=0,[CanDesign]=0,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=1630  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=1630  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(10764,2832,1630,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=2832,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=1630  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=1630

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1630  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(19000,4,2832,1630,13,1,1,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=4,[MenuId]=2832,[TemplateId]=13,[ModuleId]=1,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1630  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1630  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(19001,4,2832,1630,13,2,9,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=4,[MenuId]=2832,[TemplateId]=13,[ModuleId]=9,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1630  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1630  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(19002,4,2832,1630,13,3,14,1,4,2,'/Template/Default/Form/AjaxForm/AjaxForm008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=4,[MenuId]=2832,[TemplateId]=13,[ModuleId]=14,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='/Template/Default/Form/AjaxForm/AjaxForm008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1630  and  [ModuleTypeId]=3 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1630  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(19003,4,2832,1630,13,16,31,1,5,2,'/Template/Default/Browse/Browse008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=4,[MenuId]=2832,[TemplateId]=13,[ModuleId]=31,[GroupId]=1,[AreaId]=5,[ShowMode]=2,[AreaUrl]='/Template/Default/Browse/Browse008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1630  and  [ModuleTypeId]=16 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_AjaxForm_Run]  where [EntId]=1630

--Dcx_AjaxForm_Run
      if (select count(1) from [Dcx_AjaxForm_Run] where  [EntId]=1630  )<1 
      begin 
           Insert into [Dcx_AjaxForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('102e22a5-2f42-4706-a95b-2dc5b46bcb96','离职申请',1630,14,'','',0,'<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>','','DcxRun.AjaxF_1630= {"MenuId":2832,"MEntId":1630,"EntName":"离职申请","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":true,"EntMsg":{"E1630":{"EntId":1630,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{
DcxForm.CreateHtmlEditor(''d1630_离职原因'',1630,''AjaxF_'',''离职原因'',600,350,false,1,false);

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_1630.EntMsg.E1630.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"人事_员工离职申请表","EntId":1630,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"员工编号":{"DtId":2,"DB":1,"CId":4,"FL":-1},"员工姓名":{"DtId":2,"DB":1,"CId":4,"FL":-1},"所在部门":{"DtId":2,"DB":1,"CId":4,"FL":-1},"职务":{"DtId":2,"DB":1,"CId":4,"FL":-1},"申请日期":{"DtId":3,"DB":1,"CId":4,"FL":-1},"合同起始日期":{"DtId":3,"DB":1,"CId":5,"FL":0},"合同终止日期":{"DtId":3,"DB":1,"CId":5,"FL":0},"拟离职日期":{"DtId":3,"DB":1,"CId":5,"FL":-1},"离职类型":{"DtId":2,"DB":1,"CId":3,"FL":-1},"离职原因":{"DtId":2,"DB":1,"CId":23,"FL":-1},"直属部门意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"人力资源部意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"领导意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"办结意见":{"DtId":2,"DB":1,"CId":2,"FL":-1}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_1630.EntMsg.E1630.GetDataRowModel=function()
{
    return {"员工编号":"","员工姓名":"","所在部门":"","职务":"","申请日期":new Date(),"合同起始日期":new Date(),"合同终止日期":new Date(),"拟离职日期":new Date(),"离职类型":"","离职原因":"","直属部门意见":"","人力资源部意见":"","领导意见":"","办结意见":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_AjaxF_1630_161(obj,curFieldName){
 var EntId=1630;
 var FldId=2678;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''职务'';
 var $formContainer=DcxForm.GetHtmlContainer(1630,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1630,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"职务\",FldId:"+FldId+",EntId:1630,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1630,''AjaxF_'',''员工编号'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1630_职务");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1630_162(obj,curFieldName){
 var EntId=1630;
 var FldId=2680;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''合同起始日期'';
 var $formContainer=DcxForm.GetHtmlContainer(1630,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1630,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"合同起始日期\",FldId:"+FldId+",EntId:1630,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:5,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1630,''AjaxF_'',''员工编号'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1630_合同起始日期");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1630_163(obj,curFieldName){
 var EntId=1630;
 var FldId=2681;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''合同终止日期'';
 var $formContainer=DcxForm.GetHtmlContainer(1630,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1630,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"合同终止日期\",FldId:"+FldId+",EntId:1630,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:5,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1630,''AjaxF_'',''员工编号'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1630_合同终止日期");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_1630.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1630,''AjaxF_'',buildNew,closeDlg);

}','<$1630$>select [员工编号],[员工姓名],[所在部门],[职务],[申请日期],[合同起始日期],[合同终止日期],[拟离职日期],[离职类型],[离职原因],[直属部门意见],[人力资源部意见],[领导意见],[办结意见],[LD_Id] from 人事_员工离职申请表 where [LD_Id]=''{$keyfieldvalue}''</$1630$>',20,'','','','1630*LD_Id*2**2*人事_员工离职申请表*离职申请',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 7:02:48',3,'admin','2013-11-30 6:17:12',1)
      end
      else 
      begin 
           update [Dcx_AjaxForm_Run] set [FormId]='102e22a5-2f42-4706-a95b-2dc5b46bcb96',[FormName]='离职申请',[ModuleId]=14,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.AjaxF_1630= {"MenuId":2832,"MEntId":1630,"EntName":"离职申请","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":true,"EntMsg":{"E1630":{"EntId":1630,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{
DcxForm.CreateHtmlEditor(''d1630_离职原因'',1630,''AjaxF_'',''离职原因'',600,350,false,1,false);

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_1630.EntMsg.E1630.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"人事_员工离职申请表","EntId":1630,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"员工编号":{"DtId":2,"DB":1,"CId":4,"FL":-1},"员工姓名":{"DtId":2,"DB":1,"CId":4,"FL":-1},"所在部门":{"DtId":2,"DB":1,"CId":4,"FL":-1},"职务":{"DtId":2,"DB":1,"CId":4,"FL":-1},"申请日期":{"DtId":3,"DB":1,"CId":4,"FL":-1},"合同起始日期":{"DtId":3,"DB":1,"CId":5,"FL":0},"合同终止日期":{"DtId":3,"DB":1,"CId":5,"FL":0},"拟离职日期":{"DtId":3,"DB":1,"CId":5,"FL":-1},"离职类型":{"DtId":2,"DB":1,"CId":3,"FL":-1},"离职原因":{"DtId":2,"DB":1,"CId":23,"FL":-1},"直属部门意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"人力资源部意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"领导意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"办结意见":{"DtId":2,"DB":1,"CId":2,"FL":-1}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_1630.EntMsg.E1630.GetDataRowModel=function()
{
    return {"员工编号":"","员工姓名":"","所在部门":"","职务":"","申请日期":new Date(),"合同起始日期":new Date(),"合同终止日期":new Date(),"拟离职日期":new Date(),"离职类型":"","离职原因":"","直属部门意见":"","人力资源部意见":"","领导意见":"","办结意见":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_AjaxF_1630_161(obj,curFieldName){
 var EntId=1630;
 var FldId=2678;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''职务'';
 var $formContainer=DcxForm.GetHtmlContainer(1630,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1630,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"职务\",FldId:"+FldId+",EntId:1630,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1630,''AjaxF_'',''员工编号'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1630_职务");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1630_162(obj,curFieldName){
 var EntId=1630;
 var FldId=2680;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''合同起始日期'';
 var $formContainer=DcxForm.GetHtmlContainer(1630,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1630,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"合同起始日期\",FldId:"+FldId+",EntId:1630,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:5,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1630,''AjaxF_'',''员工编号'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1630_合同起始日期");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1630_163(obj,curFieldName){
 var EntId=1630;
 var FldId=2681;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''合同终止日期'';
 var $formContainer=DcxForm.GetHtmlContainer(1630,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1630,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"合同终止日期\",FldId:"+FldId+",EntId:1630,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:5,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1630,''AjaxF_'',''员工编号'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1630_合同终止日期");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_1630.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1630,''AjaxF_'',buildNew,closeDlg);

}',[LoadingSql]='<$1630$>select [员工编号],[员工姓名],[所在部门],[职务],[申请日期],[合同起始日期],[合同终止日期],[拟离职日期],[离职类型],[离职原因],[直属部门意见],[人力资源部意见],[领导意见],[办结意见],[LD_Id] from 人事_员工离职申请表 where [LD_Id]=''{$keyfieldvalue}''</$1630$>',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='1630*LD_Id*2**2*人事_员工离职申请表*离职申请',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 7:02:48',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-30 6:17:12',[AccountId]=1 where  [EntId]=1630 
      end




--Dcx_AjaxFormField_Run
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='fc1892e3-b0db-3366-e31f-792c58b769ff'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2675,'fc1892e3-b0db-3366-e31f-792c58b769ff',1630,1630,'00000000-0000-0000-0000-000000000000','员工编号',2,2,11,'{$staffNO}',0,9,null,0,4,1,0,1,-1,0,0,'','','','{$staffNO},','<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="1630" groupid="176" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="717" class="li-area-title" scroll="no" style="width: 77px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">离职申请</span></div>
</li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="177" entid="1630" class="ul-mform" ctrlprex="AjaxF_" isrple="1">
<li areaid="718" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2675" istitle="1">员工编号 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d1630_员工编号" class="form-lbl" style="width:201px;" IsForField=1 EntId="1630" CId="4" FId="2675" Vtp="0"  CBack=1  >','</span><input id="d1630_员工编号_hid" type="hidden"  EntId="1630" IsField=1 DBField=1 IsPost=1 FieldName="员工编号" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="2675" vlk=0    value="','" />',-1,-1,-1,-1,0,'1630,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2675,[Form_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='员工编号',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=11,[DefaultValue]='{$staffNO}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$staffNO},',[BeforeHtml]='<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="1630" groupid="176" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="717" class="li-area-title" scroll="no" style="width: 77px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">离职申请</span></div>
</li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="177" entid="1630" class="ul-mform" ctrlprex="AjaxF_" isrple="1">
<li areaid="718" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2675" istitle="1">员工编号 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1630_员工编号" class="form-lbl" style="width:201px;" IsForField=1 EntId="1630" CId="4" FId="2675" Vtp="0"  CBack=1  >',[CtrlbackHtml]='</span><input id="d1630_员工编号_hid" type="hidden"  EntId="1630" IsField=1 DBField=1 IsPost=1 FieldName="员工编号" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="2675" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1630,' where  [FldUId]='fc1892e3-b0db-3366-e31f-792c58b769ff' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='4d461dd7-1d09-f8fb-6612-da1a2477c787'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2676,'4d461dd7-1d09-f8fb-6612-da1a2477c787',1630,1630,'00000000-0000-0000-0000-000000000000','员工姓名',2,2,12,'{$realname}',0,9,null,0,4,1,0,2,-1,0,0,'','','','{$realname},','</span>
</div>
</li>
<li areaid="719" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2676" istitle="1">员工姓名 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d1630_员工姓名" class="form-lbl" style="width:201px;" IsForField=1 EntId="1630" CId="4" FId="2676" Vtp="0"  >','</span><input id="d1630_员工姓名_hid" type="hidden"  EntId="1630" IsField=1 DBField=1 IsPost=1 FieldName="员工姓名" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="2676" vlk=0    value="','" />',-1,-1,-1,-1,0,'1630,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2676,[Form_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='员工姓名',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=12,[DefaultValue]='{$realname}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=2,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$realname},',[BeforeHtml]='</span>
</div>
</li>
<li areaid="719" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2676" istitle="1">员工姓名 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1630_员工姓名" class="form-lbl" style="width:201px;" IsForField=1 EntId="1630" CId="4" FId="2676" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d1630_员工姓名_hid" type="hidden"  EntId="1630" IsField=1 DBField=1 IsPost=1 FieldName="员工姓名" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="2676" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1630,' where  [FldUId]='4d461dd7-1d09-f8fb-6612-da1a2477c787' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='35e87df1-cf98-a4f5-696e-8c8bb89e13d4'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2677,'35e87df1-cf98-a4f5-696e-8c8bb89e13d4',1630,1630,'00000000-0000-0000-0000-000000000000','所在部门',2,2,13,'{$deptname}',0,9,null,0,4,1,0,3,-1,0,0,'','','','{$deptname},','</span>
</div>
</li>
<li areaid="720" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2677">所在部门  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d1630_所在部门" class="form-lbl" style="width:201px;" IsForField=1 EntId="1630" CId="4" FId="2677" Vtp="0"  >','</span><input id="d1630_所在部门_hid" type="hidden"  EntId="1630" IsField=1 DBField=1 IsPost=1 FieldName="所在部门" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="2677" vlk=0    value="','" />',-1,-1,-1,-1,0,'1630,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2677,[Form_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='所在部门',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=13,[DefaultValue]='{$deptname}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=3,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$deptname},',[BeforeHtml]='</span>
</div>
</li>
<li areaid="720" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2677">所在部门  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1630_所在部门" class="form-lbl" style="width:201px;" IsForField=1 EntId="1630" CId="4" FId="2677" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d1630_所在部门_hid" type="hidden"  EntId="1630" IsField=1 DBField=1 IsPost=1 FieldName="所在部门" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="2677" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1630,' where  [FldUId]='35e87df1-cf98-a4f5-696e-8c8bb89e13d4' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='82f33e6e-bf70-bfc7-25b8-b20ec0234177'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2678,'82f33e6e-bf70-bfc7-25b8-b20ec0234177',1630,1630,'00000000-0000-0000-0000-000000000000','职务',2,2,14,'Select  [Dcx_Employee].[PositionName]  from  [Dcx_Employee] where [EmployeeCode]=''{@员工编号}''',2,9,null,0,4,1,0,4,-1,0,0,'','','员工编号,','','</span>
  </div>
</li>
<li areaid="721" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2678">职务  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d1630_职务" class="form-lbl" style="width:201px;" IsForField=1 EntId="1630" CId="4" FId="2678" Vtp="2"  >','</span><input id="d1630_职务_hid" type="hidden"  EntId="1630" IsField=1 DBField=1 IsPost=1 FieldName="职务" dType="2" Vtp="2" RDT="2" Isc="0" RId="9" CId="4" FId="2678" vlk=0    value="','" />',-1,-1,-1,-1,0,'1630,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2678,[Form_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='职务',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=14,[DefaultValue]='Select  [Dcx_Employee].[PositionName]  from  [Dcx_Employee] where [EmployeeCode]=''{@员工编号}''',[ValueType]=2,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=4,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='员工编号,',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="721" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2678">职务  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1630_职务" class="form-lbl" style="width:201px;" IsForField=1 EntId="1630" CId="4" FId="2678" Vtp="2"  >',[CtrlbackHtml]='</span><input id="d1630_职务_hid" type="hidden"  EntId="1630" IsField=1 DBField=1 IsPost=1 FieldName="职务" dType="2" Vtp="2" RDT="2" Isc="0" RId="9" CId="4" FId="2678" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1630,' where  [FldUId]='82f33e6e-bf70-bfc7-25b8-b20ec0234177' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='908c307e-6e5f-2e0f-d37c-4411350909cb'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2679,'908c307e-6e5f-2e0f-d37c-4411350909cb',1630,1630,'00000000-0000-0000-0000-000000000000','申请日期',3,3,20,'{$date}',0,9,null,0,4,1,0,5,-1,0,0,'','','','{$date},','</span>
  </div>
</li>
<li areaid="722" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2679">申请日期  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d1630_申请日期" class="form-lbl" style="width:201px;" IsForField=1 EntId="1630" CId="4" FId="2679" Vtp="0"  >','</span><input id="d1630_申请日期_hid" type="hidden"  EntId="1630" IsField=1 DBField=1 IsPost=1 FieldName="申请日期" dType="3" Vtp="0" RDT="3" Isc="0" RId="9" CId="4" FId="2679" vlk=0    value="','" />',-1,-1,-1,-1,0,'1630,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2679,[Form_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='申请日期',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=20,[DefaultValue]='{$date}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=5,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$date},',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="722" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2679">申请日期  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1630_申请日期" class="form-lbl" style="width:201px;" IsForField=1 EntId="1630" CId="4" FId="2679" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d1630_申请日期_hid" type="hidden"  EntId="1630" IsField=1 DBField=1 IsPost=1 FieldName="申请日期" dType="3" Vtp="0" RDT="3" Isc="0" RId="9" CId="4" FId="2679" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1630,' where  [FldUId]='908c307e-6e5f-2e0f-d37c-4411350909cb' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='2b0db425-8245-a2a0-a920-13b6b60dd40d'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2680,'2b0db425-8245-a2a0-a920-13b6b60dd40d',1630,1630,'00000000-0000-0000-0000-000000000000','合同起始日期',3,3,15,'Select  [Dcx_Employee].[ContractDate]  from  [Dcx_Employee] where [EmployeeCode] =''{@员工编号}''',2,1,1,0,5,1,1,6,-1,0,0,'','','员工编号,','','</span>
  </div>
</li>
<li areaid="723" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2680">合同起始日期</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<div class="form-ddl"><input  id="d1630_合同起始日期"   type="text" class="form-ddl-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1630,''AjaxF_'',1630,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1630,''AjaxF_'',1630);DcxDTime.ShowCalendar(this);" EntId="1630" IsField=1 DBField=1 IsPost=1 FieldName="合同起始日期" dType="3" Vtp="2" RDT="3" Isc="1" RId="1" CId="5" FId="2680" vlk=0    value="','"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>','',-1,-1,-1,-1,0,'1630,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2680,[Form_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='合同起始日期',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=15,[DefaultValue]='Select  [Dcx_Employee].[ContractDate]  from  [Dcx_Employee] where [EmployeeCode] =''{@员工编号}''',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=5,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=6,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='员工编号,',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="723" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2680">合同起始日期</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-ddl"><input  id="d1630_合同起始日期"   type="text" class="form-ddl-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1630,''AjaxF_'',1630,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1630,''AjaxF_'',1630);DcxDTime.ShowCalendar(this);" EntId="1630" IsField=1 DBField=1 IsPost=1 FieldName="合同起始日期" dType="3" Vtp="2" RDT="3" Isc="1" RId="1" CId="5" FId="2680" vlk=0    value="',[CtrlbackHtml]='"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1630,' where  [FldUId]='2b0db425-8245-a2a0-a920-13b6b60dd40d' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='7156bb68-7a04-4019-08a8-1b673128fb82'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2681,'7156bb68-7a04-4019-08a8-1b673128fb82',1630,1630,'00000000-0000-0000-0000-000000000000','合同终止日期',3,3,16,'Select  [Dcx_Employee].[MaturityDate]  from  [Dcx_Employee] where [EmployeeCode] Like ''{@员工编号}%''',2,1,1,0,5,1,1,7,-1,0,0,'','','员工编号,','','</span>
  </div>
</li>
<li areaid="724" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2681">合同终止日期</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<div class="form-ddl"><input  id="d1630_合同终止日期"   type="text" class="form-ddl-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1630,''AjaxF_'',1630,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1630,''AjaxF_'',1630);DcxDTime.ShowCalendar(this);" EntId="1630" IsField=1 DBField=1 IsPost=1 FieldName="合同终止日期" dType="3" Vtp="2" RDT="3" Isc="1" RId="1" CId="5" FId="2681" vlk=0    value="','"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>','',-1,-1,-1,-1,0,'1630,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2681,[Form_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='合同终止日期',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=16,[DefaultValue]='Select  [Dcx_Employee].[MaturityDate]  from  [Dcx_Employee] where [EmployeeCode] Like ''{@员工编号}%''',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=5,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=7,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='员工编号,',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="724" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2681">合同终止日期</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-ddl"><input  id="d1630_合同终止日期"   type="text" class="form-ddl-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1630,''AjaxF_'',1630,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1630,''AjaxF_'',1630);DcxDTime.ShowCalendar(this);" EntId="1630" IsField=1 DBField=1 IsPost=1 FieldName="合同终止日期" dType="3" Vtp="2" RDT="3" Isc="1" RId="1" CId="5" FId="2681" vlk=0    value="',[CtrlbackHtml]='"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1630,' where  [FldUId]='7156bb68-7a04-4019-08a8-1b673128fb82' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='46735d10-d444-bbbb-72ac-ec2bbd9a555f'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2682,'46735d10-d444-bbbb-72ac-ec2bbd9a555f',1630,1630,'00000000-0000-0000-0000-000000000000','拟离职日期',3,3,17,'{$date}',0,1,null,0,5,1,0,8,-1,0,0,'','','','{$date},','</span>
  </div>
</li>
<li areaid="725" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2682">拟离职日期  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<div class="form-ddl"><input  id="d1630_拟离职日期"   type="text" class="form-ddl-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1630,''AjaxF_'',1630,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1630,''AjaxF_'',1630);DcxDTime.ShowCalendar(this);" EntId="1630" IsField=1 DBField=1 IsPost=1 FieldName="拟离职日期" dType="3" Vtp="0" RDT="3" Isc="0" RId="1" CId="5" FId="2682" vlk=0    value="','"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>','',-1,-1,-1,-1,0,'1630,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2682,[Form_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='拟离职日期',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=17,[DefaultValue]='{$date}',[ValueType]=0,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=5,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=8,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$date},',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="725" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2682">拟离职日期  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-ddl"><input  id="d1630_拟离职日期"   type="text" class="form-ddl-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1630,''AjaxF_'',1630,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1630,''AjaxF_'',1630);DcxDTime.ShowCalendar(this);" EntId="1630" IsField=1 DBField=1 IsPost=1 FieldName="拟离职日期" dType="3" Vtp="0" RDT="3" Isc="0" RId="1" CId="5" FId="2682" vlk=0    value="',[CtrlbackHtml]='"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1630,' where  [FldUId]='46735d10-d444-bbbb-72ac-ec2bbd9a555f' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='89ec271a-1b77-3e77-36d9-fcf8bbbc011b'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2683,'89ec271a-1b77-3e77-36d9-fcf8bbbc011b',1630,1630,'00000000-0000-0000-0000-000000000000','离职类型',2,2,18,'',1,1,null,0,3,1,0,9,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="726" style="height: 38px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2683">离职类型  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<select id="d1630_离职类型" name="d1630_离职类型" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1630,''AjaxF_'',1630,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1630,''AjaxF_'',1630);" EntId="1630" IsField=1 DBField=1 IsPost=1 FieldName="离职类型" dType="2" Vtp="1" RDT="2" Isc="0" RId="1" CId="3" FId="2683" vlk=0    style="width:201px;">','<option  value="合同期满，公司要求解除劳动合同"  >合同期满，公司要求解除劳动合同</option>
<option  value="合同期满，个人要求解除劳动合同"  >合同期满，个人要求解除劳动合同</option>
<option  value="合同未到期，公司要求解除劳动合同"  >合同未到期，公司要求解除劳动合同</option>
<option  value="合同未到期，个人要求解除劳动合同"  >合同未到期，个人要求解除劳动合同</option>
<option  value="试用期内公司要求解除劳动合同"  >试用期内公司要求解除劳动合同</option>
<option  value="试用期内个人要求解除劳动合同"  >试用期内个人要求解除劳动合同</option>
</select>','',-1,-1,-1,-1,0,'1630,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2683,[Form_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='离职类型',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=18,[DefaultValue]='',[ValueType]=1,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=9,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="726" style="height: 38px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2683">离职类型  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1630_离职类型" name="d1630_离职类型" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1630,''AjaxF_'',1630,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1630,''AjaxF_'',1630);" EntId="1630" IsField=1 DBField=1 IsPost=1 FieldName="离职类型" dType="2" Vtp="1" RDT="2" Isc="0" RId="1" CId="3" FId="2683" vlk=0    style="width:201px;">',[CtrlbackHtml]='<option  value="合同期满，公司要求解除劳动合同"  >合同期满，公司要求解除劳动合同</option>
<option  value="合同期满，个人要求解除劳动合同"  >合同期满，个人要求解除劳动合同</option>
<option  value="合同未到期，公司要求解除劳动合同"  >合同未到期，公司要求解除劳动合同</option>
<option  value="合同未到期，个人要求解除劳动合同"  >合同未到期，个人要求解除劳动合同</option>
<option  value="试用期内公司要求解除劳动合同"  >试用期内公司要求解除劳动合同</option>
<option  value="试用期内个人要求解除劳动合同"  >试用期内个人要求解除劳动合同</option>
</select>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1630,' where  [FldUId]='89ec271a-1b77-3e77-36d9-fcf8bbbc011b' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='1e849ee2-22c3-25cf-a272-034acea6090f'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2684,'1e849ee2-22c3-25cf-a272-034acea6090f',1630,1630,'00000000-0000-0000-0000-000000000000','离职原因',2,2,19,'',5,1,null,0,23,1,0,10,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="727" style="height: 470px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2684">离职原因  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1630_离职原因" class="form-txts"  style="width:600px;height:350px;" EntId="1630" IsField=1 DBField=1 IsPost=1 FieldName="离职原因" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="23" FId="2684" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1630,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2684,[Form_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='离职原因',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=19,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=23,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=10,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="727" style="height: 470px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2684">离职原因  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1630_离职原因" class="form-txts"  style="width:600px;height:350px;" EntId="1630" IsField=1 DBField=1 IsPost=1 FieldName="离职原因" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="23" FId="2684" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1630,' where  [FldUId]='1e849ee2-22c3-25cf-a272-034acea6090f' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='72d5a814-b7e8-5c8d-a2ca-3c81528545d3'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2685,'72d5a814-b7e8-5c8d-a2ca-3c81528545d3',1630,1630,'00000000-0000-0000-0000-000000000000','直属部门意见',2,2,21,'',5,1,null,0,2,1,0,11,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="728" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2685">直属部门意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1630_直属部门意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1630,''AjaxF_'',1630,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1630,''AjaxF_'',1630);" EntId="1630" IsField=1 DBField=1 IsPost=1 FieldName="直属部门意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="2685" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1630,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2685,[Form_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='直属部门意见',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=21,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=11,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="728" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2685">直属部门意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1630_直属部门意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1630,''AjaxF_'',1630,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1630,''AjaxF_'',1630);" EntId="1630" IsField=1 DBField=1 IsPost=1 FieldName="直属部门意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="2685" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1630,' where  [FldUId]='72d5a814-b7e8-5c8d-a2ca-3c81528545d3' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='43499e08-99f5-d764-c9fd-e88b8164d148'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2686,'43499e08-99f5-d764-c9fd-e88b8164d148',1630,1630,'00000000-0000-0000-0000-000000000000','人力资源部意见',2,2,22,'',5,1,null,0,2,1,0,12,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="729" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2686">人力资源部意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1630_人力资源部意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1630,''AjaxF_'',1630,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1630,''AjaxF_'',1630);" EntId="1630" IsField=1 DBField=1 IsPost=1 FieldName="人力资源部意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="2686" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1630,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2686,[Form_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='人力资源部意见',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=22,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=12,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="729" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2686">人力资源部意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1630_人力资源部意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1630,''AjaxF_'',1630,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1630,''AjaxF_'',1630);" EntId="1630" IsField=1 DBField=1 IsPost=1 FieldName="人力资源部意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="2686" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1630,' where  [FldUId]='43499e08-99f5-d764-c9fd-e88b8164d148' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='437d261a-94fd-88e5-2355-9f779dba1df5'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2687,'437d261a-94fd-88e5-2355-9f779dba1df5',1630,1630,'00000000-0000-0000-0000-000000000000','领导意见',2,2,23,'',5,1,null,0,2,1,0,13,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="730" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2687">领导意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1630_领导意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1630,''AjaxF_'',1630,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1630,''AjaxF_'',1630);" EntId="1630" IsField=1 DBField=1 IsPost=1 FieldName="领导意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="2687" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1630,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2687,[Form_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='领导意见',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=23,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=13,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="730" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2687">领导意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1630_领导意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1630,''AjaxF_'',1630,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1630,''AjaxF_'',1630);" EntId="1630" IsField=1 DBField=1 IsPost=1 FieldName="领导意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="2687" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1630,' where  [FldUId]='437d261a-94fd-88e5-2355-9f779dba1df5' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='ef2756fa-acd0-109f-f4d6-9f6d320b121e'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2688,'ef2756fa-acd0-109f-f4d6-9f6d320b121e',1630,1630,'00000000-0000-0000-0000-000000000000','办结意见',2,2,24,'',5,1,null,0,2,1,0,14,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="731" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2688">办结意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','</span>
  </div>
</li>
</ul>
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="178" entid="1630" class="tab_ul" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="732" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li areaid="733" istab="1" tabid="2" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1" style="">
<ul isgroup="1" groupid="179" entid="1630" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="734" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="180" entid="1630" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="735" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="1630" groupid="181" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="736" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
<li areaid="737" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>','','','<textarea  id="d1630_办结意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1630,''AjaxF_'',1630,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1630,''AjaxF_'',1630);" EntId="1630" IsField=1 DBField=1 IsPost=1 FieldName="办结意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="2688" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1630,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2688,[Form_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='办结意见',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=24,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=14,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="731" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2688">办结意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
  </div>
</li>
</ul>
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="178" entid="1630" class="tab_ul" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="732" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li areaid="733" istab="1" tabid="2" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1" style="">
<ul isgroup="1" groupid="179" entid="1630" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="734" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="180" entid="1630" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="735" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="1630" groupid="181" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="736" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
<li areaid="737" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1630_办结意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1630,''AjaxF_'',1630,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1630,''AjaxF_'',1630);" EntId="1630" IsField=1 DBField=1 IsPost=1 FieldName="办结意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="2688" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1630,' where  [FldUId]='ef2756fa-acd0-109f-f4d6-9f6d320b121e' 
      end



Delete from [Dcx_SearchForm_Run]  where [EntId]=1630

--Dcx_SearchForm_Run
      if (select count(1) from [Dcx_SearchForm_Run] where  [EntId]=1630  )<1 
      begin 
           Insert into [Dcx_SearchForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('7c572af0-aa61-4481-8163-d718683a4cd1','离职申请',1630,9,'','',0,'<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>','','DcxRun.SearchF_1630= {"MenuId":2832,"MEntId":1630,"EntName":"离职申请","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1630":{"EntId":1630,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_1630.EntMsg.E1630.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"人事_员工离职申请表","EntId":1630,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"员工姓名":{"DtId":2,"DB":1,"CId":1,"FL":100},"所在部门":{"DtId":2,"DB":1,"CId":3,"FL":100},"申请日期":{"DtId":3,"DB":1,"CId":5,"FL":100},"流程是否已结束":{"DtId":4,"DB":0,"CId":3,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.SearchF_1630.EntMsg.E1630.GetDataRowModel=function()
{
    return {"员工姓名":"","所在部门":"","申请日期":new Date(),"流程是否已结束":false,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_1630.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1630,''SearchF_'',buildNew,closeDlg);

}','',20,'','','','1630*LD_Id*2**2*人事_员工离职申请表*离职申请',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 5:45:57',3,'admin','2013-11-16 17:38:14',1)
      end
      else 
      begin 
           update [Dcx_SearchForm_Run] set [FormId]='7c572af0-aa61-4481-8163-d718683a4cd1',[FormName]='离职申请',[ModuleId]=9,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.SearchF_1630= {"MenuId":2832,"MEntId":1630,"EntName":"离职申请","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1630":{"EntId":1630,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_1630.EntMsg.E1630.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"人事_员工离职申请表","EntId":1630,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"员工姓名":{"DtId":2,"DB":1,"CId":1,"FL":100},"所在部门":{"DtId":2,"DB":1,"CId":3,"FL":100},"申请日期":{"DtId":3,"DB":1,"CId":5,"FL":100},"流程是否已结束":{"DtId":4,"DB":0,"CId":3,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.SearchF_1630.EntMsg.E1630.GetDataRowModel=function()
{
    return {"员工姓名":"","所在部门":"","申请日期":new Date(),"流程是否已结束":false,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_1630.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1630,''SearchF_'',buildNew,closeDlg);

}',[LoadingSql]='',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='1630*LD_Id*2**2*人事_员工离职申请表*离职申请',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 5:45:57',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-16 17:38:14',[AccountId]=1 where  [EntId]=1630 
      end




--Dcx_SearchFormField_Run
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='52239c95-da80-40d2-b9d7-cee851bff744'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'52239c95-da80-40d2-b9d7-cee851bff744',1630,1630,'00000000-0000-0000-0000-000000000000',1,'Like','员工姓名',2,2,12,'',5,1,1,0,1,1,0,-1,1,0,'','','','','<div class="searchform">
<ul isgroup="1" groupid="27" entid="1630" class="search-block w920" ctrlprex="SearchF_" isrple="1">
<li areaid="131" class="search-li w240 h32" scroll="no" style="width: 241px; position: static;">
<label class="search-title pad7" istitle="1" fldid="1">员工姓名</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">','','','','<input  id="d1630_员工姓名"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1630,''SearchF_'',1630,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1630,''SearchF_'',1630);" EntId="1630" IsField=1 DBField=1 IsPost=1 FieldName="员工姓名" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'1630,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=1,[Form_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[CompareOperatorType]='Like',[FieldName]='员工姓名',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=12,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="searchform">
<ul isgroup="1" groupid="27" entid="1630" class="search-block w920" ctrlprex="SearchF_" isrple="1">
<li areaid="131" class="search-li w240 h32" scroll="no" style="width: 241px; position: static;">
<label class="search-title pad7" istitle="1" fldid="1">员工姓名</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1630_员工姓名"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1630,''SearchF_'',1630,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1630,''SearchF_'',1630);" EntId="1630" IsField=1 DBField=1 IsPost=1 FieldName="员工姓名" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1630,' where  [FldUId]='52239c95-da80-40d2-b9d7-cee851bff744' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='d7843e74-0177-4f85-ad6c-8b1359e8bc64'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'d7843e74-0177-4f85-ad6c-8b1359e8bc64',1630,1630,'00000000-0000-0000-0000-000000000000',2,'Like','所在部门',2,2,13,'select '''' union SELECT [DeptName]  FROM [Dcx_Dept]',2,1,1,0,3,1,0,-1,1,0,'','','','','</span>
  </div>
</li>
<li areaid="132" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="2">所在部门</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">','','','','<select id="d1630_所在部门" name="d1630_所在部门" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1630,''SearchF_'',1630,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1630,''SearchF_'',1630);" EntId="1630" IsField=1 DBField=1 IsPost=1 FieldName="所在部门" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="3" FId="2" vlk=0    Cpre="Like"  style="width:150px;">','</select>','',1,-1,-1,-1,-1,0,'1630,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=2,[Form_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[CompareOperatorType]='Like',[FieldName]='所在部门',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=13,[DefaultValue]='select '''' union SELECT [DeptName]  FROM [Dcx_Dept]',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="132" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="2">所在部门</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1630_所在部门" name="d1630_所在部门" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1630,''SearchF_'',1630,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1630,''SearchF_'',1630);" EntId="1630" IsField=1 DBField=1 IsPost=1 FieldName="所在部门" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="3" FId="2" vlk=0    Cpre="Like"  style="width:150px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1630,' where  [FldUId]='d7843e74-0177-4f85-ad6c-8b1359e8bc64' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='da3eada6-abda-4ee4-8a3b-a99d4556a6d9'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'da3eada6-abda-4ee4-8a3b-a99d4556a6d9',1630,1630,'00000000-0000-0000-0000-000000000000',3,'Like','申请日期',3,3,20,'',5,1,1,0,5,1,0,-1,1,0,'','','','','</span>
  </div>
</li>
<li areaid="133" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="3">申请日期</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">','','','','<div class="form-ddl"><input  id="d1630_申请日期"   type="text" class="form-ddl-txt"  style="width:130px;" onblur ="javascript:if(!DcxVld.Validate(this,1630,''SearchF_'',1630,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1630,''SearchF_'',1630);DcxDTime.ShowCalendar(this);" EntId="1630" IsField=1 DBField=1 IsPost=1 FieldName="申请日期" dType="3" Vtp="5" RDT="3" Isc="1" RId="1" CId="5" FId="3" vlk=0    Cpre="Like"  value="','"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>','',1,-1,-1,-1,-1,0,'1630,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=3,[Form_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[CompareOperatorType]='Like',[FieldName]='申请日期',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=20,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=5,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="133" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="3">申请日期</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-ddl"><input  id="d1630_申请日期"   type="text" class="form-ddl-txt"  style="width:130px;" onblur ="javascript:if(!DcxVld.Validate(this,1630,''SearchF_'',1630,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1630,''SearchF_'',1630);DcxDTime.ShowCalendar(this);" EntId="1630" IsField=1 DBField=1 IsPost=1 FieldName="申请日期" dType="3" Vtp="5" RDT="3" Isc="1" RId="1" CId="5" FId="3" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1630,' where  [FldUId]='da3eada6-abda-4ee4-8a3b-a99d4556a6d9' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='d9f89004-544a-471d-8d55-d04d49b0751e'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'d9f89004-544a-471d-8d55-d04d49b0751e',1630,1630,'00000000-0000-0000-0000-000000000000',4,'=','流程是否已结束',4,4,-1,'',1,1,1,0,3,1,0,-1,1,0,'','','','','</span>
  </div>
</li>
<li areaid="134" class="search-li w270 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="4">流程已结束</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">','</span>
  </div>
</li>
<li areaid="135" class="search-li w100 h32" scroll="no" style="position: static;">
<div class="searchform-button" onclick="javascript:return VL_Search(1630);">
<div class="search-btn">&nbsp;</div>
<a href="javascript:void(0);" id="1630_searchBT">搜索</a>
</div>
</li>
</ul>
</div>','','','<select id="d1630_流程是否已结束" name="d1630_流程是否已结束" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1630,''SearchF_'',1630,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1630,''SearchF_'',1630);" EntId="1630" IsField=1 DBField=0 IsPost=1 FieldName="流程是否已结束" dType="4" Vtp="1" RDT="4" Isc="1" RId="1" CId="3" FId="4" vlk=0    Cpre="="  style="width:150px;">','<option  value="False"  >否</option>
<option  value="True"  >是</option>
</select>','',1,-1,-1,-1,-1,0,'1630,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=4,[Form_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=4,[CompareOperatorType]='=',[FieldName]='流程是否已结束',[FieldDataTypeId]=4,[RunDataTypeId]=4,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=1,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="134" class="search-li w270 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="4">流程已结束</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
  </div>
</li>
<li areaid="135" class="search-li w100 h32" scroll="no" style="position: static;">
<div class="searchform-button" onclick="javascript:return VL_Search(1630);">
<div class="search-btn">&nbsp;</div>
<a href="javascript:void(0);" id="1630_searchBT">搜索</a>
</div>
</li>
</ul>
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1630_流程是否已结束" name="d1630_流程是否已结束" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1630,''SearchF_'',1630,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1630,''SearchF_'',1630);" EntId="1630" IsField=1 DBField=0 IsPost=1 FieldName="流程是否已结束" dType="4" Vtp="1" RDT="4" Isc="1" RId="1" CId="3" FId="4" vlk=0    Cpre="="  style="width:150px;">',[CtrlbackHtml]='<option  value="False"  >否</option>
<option  value="True"  >是</option>
</select>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1630,' where  [FldUId]='d9f89004-544a-471d-8d55-d04d49b0751e' 
      end



Delete from [Dcx_BrowseReport_Run]  where [EntId]=1630

--Dcx_BrowseReport_Run
      if (select count(1) from [Dcx_BrowseReport_Run] where  [EntId]=1630  )<1 
      begin 
           Insert into [Dcx_BrowseReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[DIYJsCss],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('4fd8ef3a-dc58-4d13-9116-6bd1547d4f05','离职申请',1630,31,'','<$1630$>select [WFState],[WFUserName],[员工编号],[员工姓名],[所在部门],[职务],[合同起始日期],[合同终止日期],[拟离职日期],[离职类型],[离职原因],[申请日期],[直属部门意见],[人力资源部意见],[领导意见],[办结意见],[LD_Id] from 人事_员工离职申请表 where [LD_Id]=''{$keyfieldvalue}''</$1630$>',1,1,20,'','DcxRun.MChildR_1630= {"MenuId":2832,"MEntId":1630,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"离职申请","EntMsg":{"E1630":{"EntId":1630,"EntName":"离职申请","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":39,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1630*LD_Id*2**2*人事_员工离职申请表*离职申请',3,'','2012-12-21 11:03:02',3,'','2013-11-17 3:03:44',1)
      end
      else 
      begin 
           update [Dcx_BrowseReport_Run] set [ReportId]='4fd8ef3a-dc58-4d13-9116-6bd1547d4f05',[ReportName]='离职申请',[ModuleId]=31,[StaticHtml]='',[LoadingSql]='<$1630$>select [WFState],[WFUserName],[员工编号],[员工姓名],[所在部门],[职务],[合同起始日期],[合同终止日期],[拟离职日期],[离职类型],[离职原因],[申请日期],[直属部门意见],[人力资源部意见],[领导意见],[办结意见],[LD_Id] from 人事_员工离职申请表 where [LD_Id]=''{$keyfieldvalue}''</$1630$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[DIYJsCss]='',[AutoPublicJs]='DcxRun.MChildR_1630= {"MenuId":2832,"MEntId":1630,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"离职申请","EntMsg":{"E1630":{"EntId":1630,"EntName":"离职申请","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":39,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1630*LD_Id*2**2*人事_员工离职申请表*离职申请',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-21 11:03:02',[EditorId]=3,[Editor]='',[EditTime]='2013-11-17 3:03:44',[AccountId]=1 where  [EntId]=1630 
      end




--Dcx_BrowseReportField_Run
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='791a9eb0-1f47-442a-840a-21d76a769662'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'791a9eb0-1f47-442a-840a-21d76a769662',1630,1630,'00000000-0000-0000-0000-000000000000',2,'WFState',1,1,'varchar',2,1,0,'','','','<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1630" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="651" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">离职申请</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1630" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="652" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">当前状态  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1630" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1630,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=1,[Report_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='WFState',[FieldNO]=1,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1630" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="651" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">离职申请</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1630" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="652" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">当前状态  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1630" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1630,' where  [FldUId]='791a9eb0-1f47-442a-840a-21d76a769662' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='b23b3b30-bdfe-4f7e-aa86-a0d9068cadf0'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'b23b3b30-bdfe-4f7e-aa86-a0d9068cadf0',1630,1630,'00000000-0000-0000-0000-000000000000',3,'WFUserName',2,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="653" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">当前办理人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1630" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1630,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=2,[Report_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='WFUserName',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="653" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">当前办理人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1630" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1630,' where  [FldUId]='b23b3b30-bdfe-4f7e-aa86-a0d9068cadf0' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='bd88daba-b74a-443b-b92e-6b6ed41e5a32'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'bd88daba-b74a-443b-b92e-6b6ed41e5a32',1630,1630,'00000000-0000-0000-0000-000000000000',11,'员工编号',3,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="654" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">员工编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1630" fieldname="员工编号" fldid="3" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1630,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=3,[Report_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=11,[FieldName]='员工编号',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="654" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">员工编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1630" fieldname="员工编号" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1630,' where  [FldUId]='bd88daba-b74a-443b-b92e-6b6ed41e5a32' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='4697f9cd-2d47-4465-896e-ae6951bad834'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'4697f9cd-2d47-4465-896e-ae6951bad834',1630,1630,'00000000-0000-0000-0000-000000000000',12,'员工姓名',4,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="655" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">员工姓名  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1630" fieldname="员工姓名" fldid="4" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1630,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=4,[Report_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=12,[FieldName]='员工姓名',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="655" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">员工姓名  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1630" fieldname="员工姓名" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1630,' where  [FldUId]='4697f9cd-2d47-4465-896e-ae6951bad834' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='b1fc31ab-2a67-4b0f-aafb-90ca5c412351'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'b1fc31ab-2a67-4b0f-aafb-90ca5c412351',1630,1630,'00000000-0000-0000-0000-000000000000',13,'所在部门',5,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="656" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">所在部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1630" fieldname="所在部门" fldid="5" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1630,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=5,[Report_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=13,[FieldName]='所在部门',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="656" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">所在部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1630" fieldname="所在部门" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1630,' where  [FldUId]='b1fc31ab-2a67-4b0f-aafb-90ca5c412351' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='a9c7be35-a1ed-4f2b-930d-958270087ee9'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'a9c7be35-a1ed-4f2b-930d-958270087ee9',1630,1630,'00000000-0000-0000-0000-000000000000',14,'职务',6,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="657" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">职务  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1630" fieldname="职务" fldid="6" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1630,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=6,[Report_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=14,[FieldName]='职务',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="657" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">职务  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1630" fieldname="职务" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1630,' where  [FldUId]='a9c7be35-a1ed-4f2b-930d-958270087ee9' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='9e04051c-7010-4fb5-a6dc-4436892b09e0'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'9e04051c-7010-4fb5-a6dc-4436892b09e0',1630,1630,'00000000-0000-0000-0000-000000000000',15,'合同起始日期',7,4,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="658" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">合同起始日期  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1630" fieldname="合同起始日期" fldid="7" columntypeid="4" class="form-ctr">','',-1,-1,-1,-1,0,'1630,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=7,[Report_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=15,[FieldName]='合同起始日期',[FieldNO]=7,[ColumnTypeId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="658" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">合同起始日期  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1630" fieldname="合同起始日期" fldid="7" columntypeid="4" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1630,' where  [FldUId]='9e04051c-7010-4fb5-a6dc-4436892b09e0' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='580a9b89-5069-4563-a470-fa6c368482de'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'580a9b89-5069-4563-a470-fa6c368482de',1630,1630,'00000000-0000-0000-0000-000000000000',16,'合同终止日期',8,4,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="659" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="8">合同终止日期  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1630" fieldname="合同终止日期" fldid="8" columntypeid="4" class="form-ctr">','',-1,-1,-1,-1,0,'1630,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=8,[Report_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=16,[FieldName]='合同终止日期',[FieldNO]=8,[ColumnTypeId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="659" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="8">合同终止日期  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1630" fieldname="合同终止日期" fldid="8" columntypeid="4" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1630,' where  [FldUId]='580a9b89-5069-4563-a470-fa6c368482de' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='812ab16b-eb1c-4824-8b26-351cb63db7c9'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'812ab16b-eb1c-4824-8b26-351cb63db7c9',1630,1630,'00000000-0000-0000-0000-000000000000',17,'拟离职日期',9,4,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="660" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="9">拟离职日期  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1630" fieldname="拟离职日期" fldid="9" columntypeid="4" class="form-ctr">','',-1,-1,-1,-1,0,'1630,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=9,[Report_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=17,[FieldName]='拟离职日期',[FieldNO]=9,[ColumnTypeId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="660" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="9">拟离职日期  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1630" fieldname="拟离职日期" fldid="9" columntypeid="4" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1630,' where  [FldUId]='812ab16b-eb1c-4824-8b26-351cb63db7c9' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='8e9131d8-75dd-4053-b074-3f7701a0a592'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'8e9131d8-75dd-4053-b074-3f7701a0a592',1630,1630,'00000000-0000-0000-0000-000000000000',18,'离职类型',10,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="661" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="10">离职类型  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1630" fieldname="离职类型" fldid="10" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1630,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=10,[Report_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=18,[FieldName]='离职类型',[FieldNO]=10,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="661" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="10">离职类型  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1630" fieldname="离职类型" fldid="10" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1630,' where  [FldUId]='8e9131d8-75dd-4053-b074-3f7701a0a592' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='025c9c71-fc6d-4cc7-8b16-46419db76d62'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'025c9c71-fc6d-4cc7-8b16-46419db76d62',1630,1630,'00000000-0000-0000-0000-000000000000',19,'离职原因',11,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="662" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="11">离职原因  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1630" fieldname="离职原因" fldid="11" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1630,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=11,[Report_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=19,[FieldName]='离职原因',[FieldNO]=11,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="662" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="11">离职原因  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1630" fieldname="离职原因" fldid="11" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1630,' where  [FldUId]='025c9c71-fc6d-4cc7-8b16-46419db76d62' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='8f968172-f398-4675-bd17-385de2d92a59'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(12,'8f968172-f398-4675-bd17-385de2d92a59',1630,1630,'00000000-0000-0000-0000-000000000000',20,'申请日期',12,4,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="663" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="12">申请日期  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1630" fieldname="申请日期" fldid="12" columntypeid="4" class="form-ctr">','',-1,-1,-1,-1,0,'1630,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=12,[Report_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=20,[FieldName]='申请日期',[FieldNO]=12,[ColumnTypeId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="663" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="12">申请日期  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1630" fieldname="申请日期" fldid="12" columntypeid="4" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1630,' where  [FldUId]='8f968172-f398-4675-bd17-385de2d92a59' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='e624e4fe-3664-463d-a942-138383fecaa0'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(13,'e624e4fe-3664-463d-a942-138383fecaa0',1630,1630,'00000000-0000-0000-0000-000000000000',21,'直属部门意见',13,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="664" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="13">直属部门意见  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1630" fieldname="直属部门意见" fldid="13" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1630,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=13,[Report_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=21,[FieldName]='直属部门意见',[FieldNO]=13,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="664" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="13">直属部门意见  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1630" fieldname="直属部门意见" fldid="13" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1630,' where  [FldUId]='e624e4fe-3664-463d-a942-138383fecaa0' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='284254d2-a227-4f70-91b7-a6c988367194'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(14,'284254d2-a227-4f70-91b7-a6c988367194',1630,1630,'00000000-0000-0000-0000-000000000000',22,'人力资源部意见',14,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="665" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="14">人力资源部意见  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1630" fieldname="人力资源部意见" fldid="14" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1630,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=14,[Report_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=22,[FieldName]='人力资源部意见',[FieldNO]=14,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="665" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="14">人力资源部意见  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1630" fieldname="人力资源部意见" fldid="14" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1630,' where  [FldUId]='284254d2-a227-4f70-91b7-a6c988367194' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='5e1ce755-733f-4c2e-9023-430b53c9dd09'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(15,'5e1ce755-733f-4c2e-9023-430b53c9dd09',1630,1630,'00000000-0000-0000-0000-000000000000',23,'领导意见',15,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="666" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="15">领导意见  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1630" fieldname="领导意见" fldid="15" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1630,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=15,[Report_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=23,[FieldName]='领导意见',[FieldNO]=15,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="666" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="15">领导意见  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1630" fieldname="领导意见" fldid="15" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1630,' where  [FldUId]='5e1ce755-733f-4c2e-9023-430b53c9dd09' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='c19943ba-0c6e-4b72-8766-533a739e8e98'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(16,'c19943ba-0c6e-4b72-8766-533a739e8e98',1630,1630,'00000000-0000-0000-0000-000000000000',24,'办结意见',16,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="667" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="16">办结意见  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1630" fieldname="办结意见" fldid="16" columntypeid="1" class="form-ctr">','</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1630" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="672" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="673" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1630" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="674" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1630" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="675" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1630" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="676" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="677" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',-1,-1,-1,-1,0,'1630,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=16,[Report_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=24,[FieldName]='办结意见',[FieldNO]=16,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="667" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="16">办结意见  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1630" fieldname="办结意见" fldid="16" columntypeid="1" class="form-ctr">',[LastHtml]='</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1630" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="672" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="673" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1630" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="674" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1630" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="675" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1630" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="676" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="677" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1630,' where  [FldUId]='c19943ba-0c6e-4b72-8766-533a739e8e98' 
      end



Delete from [Dcx_ListReport_Run]  where [EntId]=1630

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=1630  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('f51f4076-be07-4508-bbdc-5c926545ff37','离职申请',1630,1,'','','<$1630$>select *  from (select row_number() over( order by [LD_Id])as dcx_rowid,[WFState],[WFFlowId],[WFRunId],[WFPrcsId],[WFUserName],[员工编号],[员工姓名],[所在部门],[职务],[合同起始日期],[合同终止日期],[拟离职日期],[离职类型],[离职原因],[申请日期],[直属部门意见],[人力资源部意见],[领导意见],[办结意见],[LD_Id] from 人事_员工离职申请表  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1630$><$1630:Count$>select count([LD_Id]) from 人事_员工离职申请表 where {$SearchArea}</$1630:Count$>',1,1,20,'DcxRun.ListR_1630= {"MenuId":2832,"MEntId":1630,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"离职申请","EntMsg":{"E1630":{"EntId":1630,"EntName":"离职申请","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":39,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1630*LD_Id*2**2*人事_员工离职申请表*离职申请',3,'','2012-12-22 5:16:19',3,'','2013-11-16 20:11:36',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='f51f4076-be07-4508-bbdc-5c926545ff37',[ReportName]='离职申请',[ModuleId]=1,[StaticHtml]='',[DIYJsCss]='',[LoadingSql]='<$1630$>select *  from (select row_number() over( order by [LD_Id])as dcx_rowid,[WFState],[WFFlowId],[WFRunId],[WFPrcsId],[WFUserName],[员工编号],[员工姓名],[所在部门],[职务],[合同起始日期],[合同终止日期],[拟离职日期],[离职类型],[离职原因],[申请日期],[直属部门意见],[人力资源部意见],[领导意见],[办结意见],[LD_Id] from 人事_员工离职申请表  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1630$><$1630:Count$>select count([LD_Id]) from 人事_员工离职申请表 where {$SearchArea}</$1630:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[AutoPublicJs]='DcxRun.ListR_1630= {"MenuId":2832,"MEntId":1630,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"离职申请","EntMsg":{"E1630":{"EntId":1630,"EntName":"离职申请","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":39,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1630*LD_Id*2**2*人事_员工离职申请表*离职申请',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-22 5:16:19',[EditorId]=3,[Editor]='',[EditTime]='2013-11-16 20:11:36',[AccountId]=1 where  [EntId]=1630 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='d1cf2b18-3698-d1c6-14a5-76c9633b6c68'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(440,'d1cf2b18-3698-d1c6-14a5-76c9633b6c68',1630,1630,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="101" entid="1630" style="width: 1940px;" ctrlprex="ListR_" isrple="1"> <li areaid="2289" class="tool-li" style="position: static;">
</li><li areaid="2290" class="tool-li" style="position: static;"><a id="ListR_1630_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1630,''ListR_'');">删   除</a></li>
<li areaid="2291" class="tool-li" style="position: static;"><a id="ListR_1630_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1630,''ListR_'');">导   出</a></li>
<li areaid="2292" class="tool-li" style="position: static;"><a id="ListR_1630_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1630,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1630" style="position: static;">
<a id="ListR_1630_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1630,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1630_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1630,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1630_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1630,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1630_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="102" entid="1630" class="list-head-ul" style="width: 2024px;" ctrlprex="ListR_" isrple="1">
<li areaid="2294" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1630" onclick="javascript:DcxCom.CheckedAll(this,1630,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="2295" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">当前状态 </label></li><li areaid="2296" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">当前办理人 </label></li><li areaid="2297" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">员工编号 </label></li><li areaid="2298" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">员工姓名 </label></li><li areaid="2299" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">所在部门 </label></li><li areaid="2300" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">职务 </label></li><li areaid="2301" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">合同起始日期 </label></li><li areaid="2302" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">合同终止日期 </label></li><li areaid="2303" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">拟离职日期 </label></li><li areaid="2304" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">离职类型 </label></li><li areaid="2305" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">离职原因 </label></li><li areaid="2306" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请日期 </label></li><li areaid="2307" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">直属部门意见 </label></li><li areaid="2308" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">人力资源部意见 </label></li><li areaid="2309" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">领导意见 </label></li><li areaid="2310" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">办结意见 </label></li><li areaid="2311" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="办理"><span class="i">办理</span></a></div></li><li areaid="2312" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="2313" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">','',-1,103,-1,-1,1,'1630,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=440,[Report_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="101" entid="1630" style="width: 1940px;" ctrlprex="ListR_" isrple="1"> <li areaid="2289" class="tool-li" style="position: static;">
</li><li areaid="2290" class="tool-li" style="position: static;"><a id="ListR_1630_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1630,''ListR_'');">删   除</a></li>
<li areaid="2291" class="tool-li" style="position: static;"><a id="ListR_1630_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1630,''ListR_'');">导   出</a></li>
<li areaid="2292" class="tool-li" style="position: static;"><a id="ListR_1630_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1630,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1630" style="position: static;">
<a id="ListR_1630_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1630,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1630_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1630,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1630_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1630,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1630_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="102" entid="1630" class="list-head-ul" style="width: 2024px;" ctrlprex="ListR_" isrple="1">
<li areaid="2294" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1630" onclick="javascript:DcxCom.CheckedAll(this,1630,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="2295" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">当前状态 </label></li><li areaid="2296" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">当前办理人 </label></li><li areaid="2297" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">员工编号 </label></li><li areaid="2298" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">员工姓名 </label></li><li areaid="2299" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">所在部门 </label></li><li areaid="2300" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">职务 </label></li><li areaid="2301" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">合同起始日期 </label></li><li areaid="2302" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">合同终止日期 </label></li><li areaid="2303" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">拟离职日期 </label></li><li areaid="2304" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">离职类型 </label></li><li areaid="2305" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">离职原因 </label></li><li areaid="2306" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请日期 </label></li><li areaid="2307" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">直属部门意见 </label></li><li areaid="2308" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">人力资源部意见 </label></li><li areaid="2309" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">领导意见 </label></li><li areaid="2310" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">办结意见 </label></li><li areaid="2311" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="办理"><span class="i">办理</span></a></div></li><li areaid="2312" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="2313" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1630,' where  [FldUId]='d1cf2b18-3698-d1c6-14a5-76c9633b6c68' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='99eaea36-a950-4f24-8320-8825433cdd7e'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(154,'99eaea36-a950-4f24-8320-8825433cdd7e',1630,1630,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',2,1,'',2,21,0,'','','','islonly="1" isgroup="1" groupid="103" class="list-body-ul" style="width: 2024px;" isrple="1">
<li areaid="2314" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1630" issyscheck="1" keyvalue="','',-1,103,-1,-1,1,'1630,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=154,[Report_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='islonly="1" isgroup="1" groupid="103" class="list-body-ul" style="width: 2024px;" isrple="1">
<li areaid="2314" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1630" issyscheck="1" keyvalue="',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1630,' where  [FldUId]='99eaea36-a950-4f24-8320-8825433cdd7e' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='095c657f-97c1-40f8-afd3-c67e5d67f979'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'095c657f-97c1-40f8-afd3-c67e5d67f979',1630,1630,'00000000-0000-0000-0000-000000000000',2,'WFState',3,1,'varchar',2,1,0,'','','','" type="checkbox"></li><li areaid="2315" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowCurWfDlg(this);">
   <span isfield="1" entid="1630" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1630,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=1,[Report_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='WFState',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='" type="checkbox"></li><li areaid="2315" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowCurWfDlg(this);">
   <span isfield="1" entid="1630" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1630,' where  [FldUId]='095c657f-97c1-40f8-afd3-c67e5d67f979' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='027d194e-f2bb-4213-a71b-d3bb5fc7bbef'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(381,'027d194e-f2bb-4213-a71b-d3bb5fc7bbef',1630,1630,'00000000-0000-0000-0000-000000000000',9,'WFFlowId',4,1,'',1,1,0,'','','','</span>
   </a>
   <span isfield="1" entid="1630" fieldname="WFFlowId" fldid="381" columntypeid="1" class="form-ctr" style="display: none;">','',-1,103,-1,-1,1,'1630,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=381,[Report_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=9,[FieldName]='WFFlowId',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   </a>
   <span isfield="1" entid="1630" fieldname="WFFlowId" fldid="381" columntypeid="1" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1630,' where  [FldUId]='027d194e-f2bb-4213-a71b-d3bb5fc7bbef' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='f438ac7c-6008-45ae-b9cc-1c6e670b6fe1'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(382,'f438ac7c-6008-45ae-b9cc-1c6e670b6fe1',1630,1630,'00000000-0000-0000-0000-000000000000',8,'WFRunId',5,1,'',1,1,0,'','','','</span>
   <span isfield="1" entid="1630" fieldname="WFRunId" fldid="382" columntypeid="1" class="form-ctr" style="display: none;">','',-1,103,-1,-1,1,'1630,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=382,[Report_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=8,[FieldName]='WFRunId',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   <span isfield="1" entid="1630" fieldname="WFRunId" fldid="382" columntypeid="1" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1630,' where  [FldUId]='f438ac7c-6008-45ae-b9cc-1c6e670b6fe1' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='8662c8b8-38ff-4c54-a8c0-211a42e92d84'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(383,'8662c8b8-38ff-4c54-a8c0-211a42e92d84',1630,1630,'00000000-0000-0000-0000-000000000000',10,'WFPrcsId',6,1,'',1,1,0,'','','','</span>
   <span isfield="1" entid="1630" fieldname="WFPrcsId" fldid="383" columntypeid="1" class="form-ctr" style="display: none;">','',-1,103,-1,-1,1,'1630,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=383,[Report_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=10,[FieldName]='WFPrcsId',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   <span isfield="1" entid="1630" fieldname="WFPrcsId" fldid="383" columntypeid="1" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1630,' where  [FldUId]='8662c8b8-38ff-4c54-a8c0-211a42e92d84' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='3e168bd6-e913-48bf-a6ba-53f2a45328d0'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'3e168bd6-e913-48bf-a6ba-53f2a45328d0',1630,1630,'00000000-0000-0000-0000-000000000000',3,'WFUserName',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2316" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowWfCurUserDlg(this);">
   <span isfield="1" entid="1630" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1630,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=2,[Report_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='WFUserName',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2316" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowWfCurUserDlg(this);">
   <span isfield="1" entid="1630" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1630,' where  [FldUId]='3e168bd6-e913-48bf-a6ba-53f2a45328d0' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='472a22ce-3bb1-458b-90ea-06c15ebc3ce7'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'472a22ce-3bb1-458b-90ea-06c15ebc3ce7',1630,1630,'00000000-0000-0000-0000-000000000000',11,'员工编号',8,1,'varchar',2,1,0,'','','','</span>
   </a>
  </div>
</li><li areaid="2317" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1630" fieldname="员工编号" fldid="3" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1630,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=3,[Report_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=11,[FieldName]='员工编号',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   </a>
  </div>
</li><li areaid="2317" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1630" fieldname="员工编号" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1630,' where  [FldUId]='472a22ce-3bb1-458b-90ea-06c15ebc3ce7' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='67e1be1e-abf9-4c9c-9def-029f8f5b6833'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'67e1be1e-abf9-4c9c-9def-029f8f5b6833',1630,1630,'00000000-0000-0000-0000-000000000000',12,'员工姓名',9,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2318" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1630" fieldname="员工姓名" fldid="4" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1630,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=4,[Report_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=12,[FieldName]='员工姓名',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2318" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1630" fieldname="员工姓名" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1630,' where  [FldUId]='67e1be1e-abf9-4c9c-9def-029f8f5b6833' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='e8a2c05c-593a-4bd1-aae1-a391835b2c5a'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'e8a2c05c-593a-4bd1-aae1-a391835b2c5a',1630,1630,'00000000-0000-0000-0000-000000000000',13,'所在部门',10,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2319" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1630" fieldname="所在部门" fldid="5" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1630,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=5,[Report_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=13,[FieldName]='所在部门',[FieldNO]=10,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2319" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1630" fieldname="所在部门" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1630,' where  [FldUId]='e8a2c05c-593a-4bd1-aae1-a391835b2c5a' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='c0e4e18b-968a-463e-9309-4cc7c4c0a24f'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'c0e4e18b-968a-463e-9309-4cc7c4c0a24f',1630,1630,'00000000-0000-0000-0000-000000000000',14,'职务',11,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2320" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1630" fieldname="职务" fldid="6" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1630,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=6,[Report_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=14,[FieldName]='职务',[FieldNO]=11,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2320" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1630" fieldname="职务" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1630,' where  [FldUId]='c0e4e18b-968a-463e-9309-4cc7c4c0a24f' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='5ede201b-fd37-46ab-97ed-e7176d5999f5'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'5ede201b-fd37-46ab-97ed-e7176d5999f5',1630,1630,'00000000-0000-0000-0000-000000000000',15,'合同起始日期',12,4,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2321" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1630" fieldname="合同起始日期" fldid="7" columntypeid="4" class="form-ctr">','',-1,103,-1,-1,1,'1630,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=7,[Report_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=15,[FieldName]='合同起始日期',[FieldNO]=12,[ColumnTypeId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2321" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1630" fieldname="合同起始日期" fldid="7" columntypeid="4" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1630,' where  [FldUId]='5ede201b-fd37-46ab-97ed-e7176d5999f5' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='2507059e-ce94-480d-b7c7-f9ce86f37e67'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'2507059e-ce94-480d-b7c7-f9ce86f37e67',1630,1630,'00000000-0000-0000-0000-000000000000',16,'合同终止日期',13,4,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2322" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1630" fieldname="合同终止日期" fldid="8" columntypeid="4" class="form-ctr">','',-1,103,-1,-1,1,'1630,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=8,[Report_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=16,[FieldName]='合同终止日期',[FieldNO]=13,[ColumnTypeId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2322" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1630" fieldname="合同终止日期" fldid="8" columntypeid="4" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1630,' where  [FldUId]='2507059e-ce94-480d-b7c7-f9ce86f37e67' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='85f991bf-9c6d-445a-9389-49413931cf13'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'85f991bf-9c6d-445a-9389-49413931cf13',1630,1630,'00000000-0000-0000-0000-000000000000',17,'拟离职日期',14,4,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2323" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1630" fieldname="拟离职日期" fldid="9" columntypeid="4" class="form-ctr">','',-1,103,-1,-1,1,'1630,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=9,[Report_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=17,[FieldName]='拟离职日期',[FieldNO]=14,[ColumnTypeId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2323" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1630" fieldname="拟离职日期" fldid="9" columntypeid="4" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1630,' where  [FldUId]='85f991bf-9c6d-445a-9389-49413931cf13' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='55409870-4d52-409d-a6dc-057b81e30e01'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'55409870-4d52-409d-a6dc-057b81e30e01',1630,1630,'00000000-0000-0000-0000-000000000000',18,'离职类型',15,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2324" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1630" fieldname="离职类型" fldid="10" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1630,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=10,[Report_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=18,[FieldName]='离职类型',[FieldNO]=15,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2324" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1630" fieldname="离职类型" fldid="10" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1630,' where  [FldUId]='55409870-4d52-409d-a6dc-057b81e30e01' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='3d2f6ec1-39ea-415a-ac68-1e2ed23bb6f0'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'3d2f6ec1-39ea-415a-ac68-1e2ed23bb6f0',1630,1630,'00000000-0000-0000-0000-000000000000',19,'离职原因',16,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2325" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1630" fieldname="离职原因" fldid="11" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1630,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=11,[Report_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=19,[FieldName]='离职原因',[FieldNO]=16,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2325" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1630" fieldname="离职原因" fldid="11" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1630,' where  [FldUId]='3d2f6ec1-39ea-415a-ac68-1e2ed23bb6f0' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='bda6c51c-b254-4e21-80fc-fb3f4d252dce'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(12,'bda6c51c-b254-4e21-80fc-fb3f4d252dce',1630,1630,'00000000-0000-0000-0000-000000000000',20,'申请日期',17,4,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2326" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1630" fieldname="申请日期" fldid="12" columntypeid="4" class="form-ctr">','',-1,103,-1,-1,1,'1630,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=12,[Report_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=20,[FieldName]='申请日期',[FieldNO]=17,[ColumnTypeId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2326" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1630" fieldname="申请日期" fldid="12" columntypeid="4" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1630,' where  [FldUId]='bda6c51c-b254-4e21-80fc-fb3f4d252dce' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='7fd25a4a-cae0-4e71-bbe6-07919fa7a941'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(13,'7fd25a4a-cae0-4e71-bbe6-07919fa7a941',1630,1630,'00000000-0000-0000-0000-000000000000',21,'直属部门意见',18,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2327" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1630" fieldname="直属部门意见" fldid="13" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1630,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=13,[Report_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=21,[FieldName]='直属部门意见',[FieldNO]=18,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2327" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1630" fieldname="直属部门意见" fldid="13" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1630,' where  [FldUId]='7fd25a4a-cae0-4e71-bbe6-07919fa7a941' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='20671abb-f484-4c61-975a-43b26dcf32cc'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(14,'20671abb-f484-4c61-975a-43b26dcf32cc',1630,1630,'00000000-0000-0000-0000-000000000000',22,'人力资源部意见',19,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2328" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1630" fieldname="人力资源部意见" fldid="14" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1630,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=14,[Report_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=22,[FieldName]='人力资源部意见',[FieldNO]=19,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2328" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1630" fieldname="人力资源部意见" fldid="14" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1630,' where  [FldUId]='20671abb-f484-4c61-975a-43b26dcf32cc' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='897eb617-8b28-4130-b09d-def696c620bf'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(15,'897eb617-8b28-4130-b09d-def696c620bf',1630,1630,'00000000-0000-0000-0000-000000000000',23,'领导意见',20,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2329" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1630" fieldname="领导意见" fldid="15" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1630,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=15,[Report_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=23,[FieldName]='领导意见',[FieldNO]=20,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2329" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1630" fieldname="领导意见" fldid="15" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1630,' where  [FldUId]='897eb617-8b28-4130-b09d-def696c620bf' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='129d40bf-a17b-4cb7-bf31-2c9e71ca76f1'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(16,'129d40bf-a17b-4cb7-bf31-2c9e71ca76f1',1630,1630,'00000000-0000-0000-0000-000000000000',24,'办结意见',21,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2330" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1630" fieldname="办结意见" fldid="16" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1630,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=16,[Report_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=24,[FieldName]='办结意见',[FieldNO]=21,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2330" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1630" fieldname="办结意见" fldid="16" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1630,' where  [FldUId]='129d40bf-a17b-4cb7-bf31-2c9e71ca76f1' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='76db77f6-5784-4bf6-8dd9-401038152c34'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(155,'76db77f6-5784-4bf6-8dd9-401038152c34',1630,1630,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',22,1,'',2,21,0,'','','','</span>
  </div>
</li><li areaid="2331" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,1630,''ListR_'',''','',-1,103,-1,-1,1,'1630,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=155,[Report_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=22,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2331" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,1630,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1630,' where  [FldUId]='76db77f6-5784-4bf6-8dd9-401038152c34' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='e23862e5-85e5-48c3-8e2b-263f02bfc57d'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(156,'e23862e5-85e5-48c3-8e2b-263f02bfc57d',1630,1630,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',23,1,'',2,21,0,'','','',''',null,1040,480);">
<span class="i">办理</span></a></div>
</li><li areaid="2332" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1630,''ListR_'',''','',-1,103,-1,-1,1,'1630,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=156,[Report_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=23,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">办理</span></a></div>
</li><li areaid="2332" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1630,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1630,' where  [FldUId]='e23862e5-85e5-48c3-8e2b-263f02bfc57d' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='22c23320-e3d6-46da-a8a1-c90e8ffd4fea'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(157,'22c23320-e3d6-46da-a8a1-c90e8ffd4fea',1630,1630,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',24,1,'',2,21,0,'','','',''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="2333" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,1630,''ListR_'',''','',-1,103,-1,-1,1,'1630,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=157,[Report_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=24,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="2333" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,1630,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1630,' where  [FldUId]='22c23320-e3d6-46da-a8a1-c90e8ffd4fea' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='b53c5f33-3bb4-4c86-f96d-83e3ef45a228'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(441,'b53c5f33-3bb4-4c86-f96d-83e3ef45a228',1630,1630,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',25,-1,'varchar',2,13,0,'','','',''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>','</div>
</div>
<!-- 结束 --></div>',-1,103,-1,-1,1,'1630,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=441,[Report_EntId]=1630,[EntId]=1630,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=25,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>',[LastHtml]='</div>
</div>
<!-- 结束 --></div>',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1630,' where  [FldUId]='b53c5f33-3bb4-4c86-f96d-83e3ef45a228' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=1043

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=1043  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(1043,null,'人事_员工离职申请表','人事_员工离职申请表',0,0,0,0,0,1,4,1,3,'admin','2013-12-15 17:32:51',3,'admin','2013-12-15 17:32:51',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='人事_员工离职申请表',[DBTableByName]='人事_员工离职申请表',[IsForbid]=0,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=1,[SystemId]=4,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:51',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:51',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=1043 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1043  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7449,1,4,1043,'int',1,1,1,'人事_员工离职申请表','LD_Id','LD_Id','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工离职申请表',[FieldName]='LD_Id',[FieldByname]='LD_Id',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1043  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1043  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7450,2,4,1043,'varchar',2,1,1,'人事_员工离职申请表','WFState','WFState','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工离职申请表',[FieldName]='WFState',[FieldByname]='WFState',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1043  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1043  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7451,3,4,1043,'varchar',2,1,1,'人事_员工离职申请表','WFUserName','WFUserName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工离职申请表',[FieldName]='WFUserName',[FieldByname]='WFUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1043  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1043  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7452,4,4,1043,'bit',4,1,1,'人事_员工离职申请表','WFIsFinish','WFIsFinish','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工离职申请表',[FieldName]='WFIsFinish',[FieldByname]='WFIsFinish',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1043  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1043  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7453,5,4,1043,'bit',4,1,1,'人事_员工离职申请表','WFIsStart','WFIsStart','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工离职申请表',[FieldName]='WFIsStart',[FieldByname]='WFIsStart',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1043  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1043  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7454,6,4,1043,'varchar',2,1,1,'人事_员工离职申请表','WFAllUser','WFAllUser','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工离职申请表',[FieldName]='WFAllUser',[FieldByname]='WFAllUser',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1043  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1043  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7455,7,4,1043,'varchar',2,1,1,'人事_员工离职申请表','WFOpinion','WFOpinion','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工离职申请表',[FieldName]='WFOpinion',[FieldByname]='WFOpinion',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1043  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1043  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7456,8,4,1043,'int',1,1,1,'人事_员工离职申请表','WFRunId','WFRunId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工离职申请表',[FieldName]='WFRunId',[FieldByname]='WFRunId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1043  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1043  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7457,9,4,1043,'int',1,1,1,'人事_员工离职申请表','WFFlowId','WFFlowId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工离职申请表',[FieldName]='WFFlowId',[FieldByname]='WFFlowId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1043  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1043  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7458,10,4,1043,'int',1,1,1,'人事_员工离职申请表','WFPrcsId','WFPrcsId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工离职申请表',[FieldName]='WFPrcsId',[FieldByname]='WFPrcsId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1043  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1043  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7459,11,4,1043,'varchar',2,1,1,'人事_员工离职申请表','员工编号','员工编号','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工离职申请表',[FieldName]='员工编号',[FieldByname]='员工编号',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1043  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1043  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7460,12,4,1043,'varchar',2,1,1,'人事_员工离职申请表','员工姓名','员工姓名','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工离职申请表',[FieldName]='员工姓名',[FieldByname]='员工姓名',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1043  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1043  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7461,13,4,1043,'varchar',2,1,1,'人事_员工离职申请表','所在部门','所在部门','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工离职申请表',[FieldName]='所在部门',[FieldByname]='所在部门',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1043  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1043  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7462,14,4,1043,'varchar',2,1,1,'人事_员工离职申请表','职务','职务','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工离职申请表',[FieldName]='职务',[FieldByname]='职务',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1043  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1043  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7463,15,4,1043,'datetime',3,1,1,'人事_员工离职申请表','合同起始日期','合同起始日期','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工离职申请表',[FieldName]='合同起始日期',[FieldByname]='合同起始日期',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1043  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1043  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7464,16,4,1043,'datetime',3,1,1,'人事_员工离职申请表','合同终止日期','合同终止日期','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工离职申请表',[FieldName]='合同终止日期',[FieldByname]='合同终止日期',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1043  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1043  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7465,17,4,1043,'datetime',3,1,1,'人事_员工离职申请表','拟离职日期','拟离职日期','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工离职申请表',[FieldName]='拟离职日期',[FieldByname]='拟离职日期',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1043  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1043  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7466,18,4,1043,'varchar',2,1,1,'人事_员工离职申请表','离职类型','离职类型','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工离职申请表',[FieldName]='离职类型',[FieldByname]='离职类型',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1043  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1043  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7467,19,4,1043,'varchar',2,1,1,'人事_员工离职申请表','离职原因','离职原因','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工离职申请表',[FieldName]='离职原因',[FieldByname]='离职原因',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1043  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1043  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7468,20,4,1043,'datetime',3,1,1,'人事_员工离职申请表','申请日期','申请日期','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工离职申请表',[FieldName]='申请日期',[FieldByname]='申请日期',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1043  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1043  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7469,21,4,1043,'varchar',2,1,1,'人事_员工离职申请表','直属部门意见','直属部门意见','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工离职申请表',[FieldName]='直属部门意见',[FieldByname]='直属部门意见',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1043  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1043  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7470,22,4,1043,'varchar',2,1,1,'人事_员工离职申请表','人力资源部意见','人力资源部意见','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工离职申请表',[FieldName]='人力资源部意见',[FieldByname]='人力资源部意见',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1043  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1043  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7471,23,4,1043,'varchar',2,1,1,'人事_员工离职申请表','领导意见','领导意见','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工离职申请表',[FieldName]='领导意见',[FieldByname]='领导意见',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1043  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1043  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7472,24,4,1043,'varchar',2,1,1,'人事_员工离职申请表','办结意见','办结意见','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工离职申请表',[FieldName]='办结意见',[FieldByname]='办结意见',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1043  and  [FieldId]=24 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--WF_FlowType

     SET IDENTITY_INSERT [WF_FlowType] ON 
      if (select count(1) from [WF_FlowType] where  [FlowId]=39  )<1 
      begin 
           Insert into [WF_FlowType] ([FlowId],[FlowName],[FlowNo],[SortId],[EntId],[EntName],[AutoName],[ManageUsers],[ManageNames],[QueryUsers],[QueryNames],[CanQueryRoles],[CanQueryRolesId],[CanManageRoles],[CanManageRolesId],[CanStartUsers],[CanStartNames],[CanStartRoles],[CanStartRolesId],[AttachMaxSize],[FlowAttach],[IsPigeonhole],[PigeonholedSQL],[IsFreeFlow],[QueryItem],[LaunchIsOpen],[FormUrl],[BrowseUrl],[ListUrl],[Detail],[CreatorId],[Creator],[CreateTime],[EditTime],[Editor],[EditorId],[AccountId])values(39,'员工离职申请',14,25,1630,'离职申请',null,'admin','admin','admin','admin','系统管理员','3','系统管理员','3',null,null,'Public','1',1,1,0,'',null,null,null,null,null,null,'员工离职呈批',0,'admin','2013-11-30 1:06:40',null,null,null,1)
      end
      else 
      begin 
           update [WF_FlowType] set [FlowName]='员工离职申请',[FlowNo]=14,[SortId]=25,[EntId]=1630,[EntName]='离职申请',[AutoName]=null,[ManageUsers]='admin',[ManageNames]='admin',[QueryUsers]='admin',[QueryNames]='admin',[CanQueryRoles]='系统管理员',[CanQueryRolesId]='3',[CanManageRoles]='系统管理员',[CanManageRolesId]='3',[CanStartUsers]=null,[CanStartNames]=null,[CanStartRoles]='Public',[CanStartRolesId]='1',[AttachMaxSize]=1,[FlowAttach]=1,[IsPigeonhole]=0,[PigeonholedSQL]='',[IsFreeFlow]=null,[QueryItem]=null,[LaunchIsOpen]=null,[FormUrl]=null,[BrowseUrl]=null,[ListUrl]=null,[Detail]='员工离职呈批',[CreatorId]=0,[Creator]='admin',[CreateTime]='2013-11-30 1:06:40',[EditTime]=null,[Editor]=null,[EditorId]=null,[AccountId]=1 where  [FlowId]=39 
      end

     SET IDENTITY_INSERT [WF_FlowType] OFF 



Delete from [WF_FlowNode]  where isnull([FlowId],0)=39 

--WF_FlowNode

     SET IDENTITY_INSERT [WF_FlowNode] ON 
      if (select count(1) from [WF_FlowNode] where  [NodeId]=117  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(117,39,'申请登记',1,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','131',0,1,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','',null,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'2675,2676,2677,2678,2680,2681,2682,2683,2684,2679',null,null,null,'8,112,',null,null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=39,[NodeName]='申请登记',[Step]=1,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='131',[AllowLastNodeBoss]=0,[AllowWorkCreator]=1,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='2675,2676,2677,2678,2680,2681,2682,2683,2684,2679',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='8,112,',[PositionDeptNames]=null,[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=117 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=131  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(131,39,'部门领导审核',2,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','132',0,1,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','',null,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'2685',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=39,[NodeName]='部门领导审核',[Step]=2,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='132',[AllowLastNodeBoss]=0,[AllowWorkCreator]=1,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='2685',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=131 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=132  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(132,39,'人力资源部审核',3,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','133,134',0,1,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','',null,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'2686',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=39,[NodeName]='人力资源部审核',[Step]=3,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='133,134',[AllowLastNodeBoss]=0,[AllowWorkCreator]=1,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='2686',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=132 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=133  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(133,39,'总经理审批',4,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','134',0,1,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','',null,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'2687',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=39,[NodeName]='总经理审批',[Step]=4,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='134',[AllowLastNodeBoss]=0,[AllowWorkCreator]=1,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='2687',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=133 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=134  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(134,39,'人力资源部办结',5,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','135,136',0,1,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','<$462:Begin$>
		--流出到<申请成功，通知提交人>节点时 

		
update 人事_员工离职申请表  set WFIsFinish=1,WFIsStart=1 where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''
Update   工资_员工档案  Set   [员工状态]=''离职'' , [离职日期]= @拟离职日期  where   工资_员工档案.[员工编号] = @员工编号

		</$462:End$>',null,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'2688',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=39,[NodeName]='人力资源部办结',[Step]=5,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='135,136',[AllowLastNodeBoss]=0,[AllowWorkCreator]=1,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='<$462:Begin$>
		--流出到<申请成功，通知提交人>节点时 

		
update 人事_员工离职申请表  set WFIsFinish=1,WFIsStart=1 where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''
Update   工资_员工档案  Set   [员工状态]=''离职'' , [离职日期]= @拟离职日期  where   工资_员工档案.[员工编号] = @员工编号

		</$462:End$>',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='2688',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=134 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=135  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(135,39,'申请成功，通知提交人',6,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','-1',0,1,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','<$462:Begin$>
		--流出到<结束>节点时 

		
update 人事_员工离职申请表  set WFIsFinish=1,WFIsStart=1 where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''

		</$462:End$>',null,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=39,[NodeName]='申请成功，通知提交人',[Step]=6,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='-1',[AllowLastNodeBoss]=0,[AllowWorkCreator]=1,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='<$462:Begin$>
		--流出到<结束>节点时 

		
update 人事_员工离职申请表  set WFIsFinish=1,WFIsStart=1 where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''

		</$462:End$>',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=135 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=136  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(136,39,'申请失败，通知申请人',7,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','-1',0,1,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','<$462:Begin$>
		--流出到<结束>节点时 

		
update 人事_员工离职申请表  set WFIsFinish=1,WFIsStart=0 where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''

		</$462:End$>',null,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=39,[NodeName]='申请失败，通知申请人',[Step]=7,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='-1',[AllowLastNodeBoss]=0,[AllowWorkCreator]=1,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='<$462:Begin$>
		--流出到<结束>节点时 

		
update 人事_员工离职申请表  set WFIsFinish=1,WFIsStart=0 where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''

		</$462:End$>',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=136 
      end

     SET IDENTITY_INSERT [WF_FlowNode] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=1240  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1240,39,117,1630,'离职申请',2675,'员工编号','员工编号','员工离职申请流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=39,[NodeId]=117,[EntId]=1630,[EntName]='离职申请',[FldId]=2675,[FieldName]='员工编号',[CtrlByName]='员工编号',[FlowName]='员工离职申请流程',[TypeId]=1 where  [Id]=1240 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1241  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1241,39,117,1630,'离职申请',2676,'员工姓名','员工姓名','员工离职申请流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=39,[NodeId]=117,[EntId]=1630,[EntName]='离职申请',[FldId]=2676,[FieldName]='员工姓名',[CtrlByName]='员工姓名',[FlowName]='员工离职申请流程',[TypeId]=1 where  [Id]=1241 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1242  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1242,39,117,1630,'离职申请',2677,'所在部门','所在部门','员工离职申请流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=39,[NodeId]=117,[EntId]=1630,[EntName]='离职申请',[FldId]=2677,[FieldName]='所在部门',[CtrlByName]='所在部门',[FlowName]='员工离职申请流程',[TypeId]=1 where  [Id]=1242 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1243  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1243,39,117,1630,'离职申请',2678,'职务','职务','员工离职申请流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=39,[NodeId]=117,[EntId]=1630,[EntName]='离职申请',[FldId]=2678,[FieldName]='职务',[CtrlByName]='职务',[FlowName]='员工离职申请流程',[TypeId]=1 where  [Id]=1243 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1244  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1244,39,117,1630,'离职申请',2680,'合同起始日期','合同起始日期','员工离职申请流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=39,[NodeId]=117,[EntId]=1630,[EntName]='离职申请',[FldId]=2680,[FieldName]='合同起始日期',[CtrlByName]='合同起始日期',[FlowName]='员工离职申请流程',[TypeId]=1 where  [Id]=1244 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1245  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1245,39,117,1630,'离职申请',2681,'合同终止日期','合同终止日期','员工离职申请流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=39,[NodeId]=117,[EntId]=1630,[EntName]='离职申请',[FldId]=2681,[FieldName]='合同终止日期',[CtrlByName]='合同终止日期',[FlowName]='员工离职申请流程',[TypeId]=1 where  [Id]=1245 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1246  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1246,39,117,1630,'离职申请',2682,'拟离职日期','拟离职日期','员工离职申请流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=39,[NodeId]=117,[EntId]=1630,[EntName]='离职申请',[FldId]=2682,[FieldName]='拟离职日期',[CtrlByName]='拟离职日期',[FlowName]='员工离职申请流程',[TypeId]=1 where  [Id]=1246 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1247  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1247,39,117,1630,'离职申请',2683,'离职类型','离职类型','员工离职申请流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=39,[NodeId]=117,[EntId]=1630,[EntName]='离职申请',[FldId]=2683,[FieldName]='离职类型',[CtrlByName]='离职类型',[FlowName]='员工离职申请流程',[TypeId]=1 where  [Id]=1247 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1248  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1248,39,117,1630,'离职申请',2684,'离职原因','离职原因','员工离职申请流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=39,[NodeId]=117,[EntId]=1630,[EntName]='离职申请',[FldId]=2684,[FieldName]='离职原因',[CtrlByName]='离职原因',[FlowName]='员工离职申请流程',[TypeId]=1 where  [Id]=1248 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1249  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1249,39,117,1630,'离职申请',2679,'申请日期','申请日期','员工离职申请流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=39,[NodeId]=117,[EntId]=1630,[EntName]='离职申请',[FldId]=2679,[FieldName]='申请日期',[CtrlByName]='申请日期',[FlowName]='员工离职申请流程',[TypeId]=1 where  [Id]=1249 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=1239  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1239,39,131,1630,'离职申请',2685,'直属部门意见','直属部门意见','员工离职申请流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=39,[NodeId]=131,[EntId]=1630,[EntName]='离职申请',[FldId]=2685,[FieldName]='直属部门意见',[CtrlByName]='直属部门意见',[FlowName]='员工离职申请流程',[TypeId]=1 where  [Id]=1239 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=1267  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1267,39,132,1630,'离职申请',2686,'人力资源部意见','人力资源部意见','员工离职申请流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=39,[NodeId]=132,[EntId]=1630,[EntName]='离职申请',[FldId]=2686,[FieldName]='人力资源部意见',[CtrlByName]='人力资源部意见',[FlowName]='员工离职申请流程',[TypeId]=1 where  [Id]=1267 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=1265  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1265,39,133,1630,'离职申请',2687,'领导意见','领导意见','员工离职申请流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=39,[NodeId]=133,[EntId]=1630,[EntName]='离职申请',[FldId]=2687,[FieldName]='领导意见',[CtrlByName]='领导意见',[FlowName]='员工离职申请流程',[TypeId]=1 where  [Id]=1265 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=1250  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1250,39,134,1630,'离职申请',2688,'办结意见','办结意见','员工离职申请流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=39,[NodeId]=134,[EntId]=1630,[EntName]='离职申请',[FldId]=2688,[FieldName]='办结意见',[CtrlByName]='办结意见',[FlowName]='员工离职申请流程',[TypeId]=1 where  [Id]=1250 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=2833  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2833,'a205ea44-5d32-4719-87cc-633d57a6bc44','<font color=red>调薪申请</font>',2905,'/Template/default/ListReport/ListReport_Tree001.aspx',1,'/images/default.gif','/images/default.gif',6,'',0,0,'',4,0,4,1,1,1,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='a205ea44-5d32-4719-87cc-633d57a6bc44',[MenuName]='<font color=red>调薪申请</font>',[ParentId]=2905,[ProPath]='/Template/default/ListReport/ListReport_Tree001.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=6,[Target]='',[IsOpen]=0,[IsHidden]=0,[Remark]='',[SSystemId]=4,[SMenuId]=0,[SystemId]=4,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=2833 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=2833  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(618,2833,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=2833  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=1631  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(1631,2833,'调薪申请',1,1033,0,'人事_员工调薪申请表',0,0,1,4,1631,null,null,4,null,1,null,40,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=2833,[EntName]='调薪申请',[MEnt]=1,[DBTableId]=1033,[DBConnectId]=0,[DBTableName]='人事_员工调薪申请表',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=4,[SEntId]=1631,[FSystemId]=null,[FEntId]=null,[SystemId]=4,[Remark]=null,[IsFlow]=1,[IsChecked]=null,[FlowId]=40,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=1631 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=1631

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=1631  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11406,-1,1631,1,1,1,1,0,1,0,0,0,1,0,0,0,0,0,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=0,[CanUpdate]=1,[CanOutPut]=0,[CanInput]=0,[CanCopy]=0,[CanPrint]=1,[CanCheck]=0,[CanClean]=0,[CanRecycle]=0,[CanExecute]=0,[CanDesign]=0,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=1631  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=1631  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(10765,2833,1631,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=2833,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=1631  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=1631

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1631  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(19004,4,2833,1631,13,1,1,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=4,[MenuId]=2833,[TemplateId]=13,[ModuleId]=1,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1631  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1631  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(19005,4,2833,1631,13,2,9,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=4,[MenuId]=2833,[TemplateId]=13,[ModuleId]=9,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1631  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1631  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(19006,4,2833,1631,13,3,14,1,4,2,'/Template/Default/Form/AjaxForm/AjaxForm008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=4,[MenuId]=2833,[TemplateId]=13,[ModuleId]=14,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='/Template/Default/Form/AjaxForm/AjaxForm008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1631  and  [ModuleTypeId]=3 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1631  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(19007,4,2833,1631,13,16,31,1,5,2,'/Template/Default/Browse/Browse008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=4,[MenuId]=2833,[TemplateId]=13,[ModuleId]=31,[GroupId]=1,[AreaId]=5,[ShowMode]=2,[AreaUrl]='/Template/Default/Browse/Browse008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1631  and  [ModuleTypeId]=16 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_AjaxForm_Run]  where [EntId]=1631

--Dcx_AjaxForm_Run
      if (select count(1) from [Dcx_AjaxForm_Run] where  [EntId]=1631  )<1 
      begin 
           Insert into [Dcx_AjaxForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('027fe4df-3058-46dd-8760-572384a08ad7','调薪申请',1631,14,'','',0,'<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>','','DcxRun.AjaxF_1631= {"MenuId":2833,"MEntId":1631,"EntName":"调薪申请","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":true,"EntMsg":{"E1631":{"EntId":1631,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{
DcxForm.CreateHtmlEditor(''d1631_调薪理由'',1631,''AjaxF_'',''调薪理由'',600,350,false,1,false);

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_1631.EntMsg.E1631.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"人事_员工调薪申请表","EntId":1631,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"员工编号":{"DtId":2,"DB":1,"CId":4,"FL":-1},"员工姓名":{"DtId":2,"DB":1,"CId":4,"FL":-1},"所在部门":{"DtId":2,"DB":1,"CId":4,"FL":-1},"性别":{"DtId":2,"DB":1,"CId":4,"FL":-1},"岗位":{"DtId":2,"DB":1,"CId":4,"FL":-1},"入职日期":{"DtId":3,"DB":1,"CId":5,"FL":0},"转正日期":{"DtId":3,"DB":1,"CId":5,"FL":0},"调薪次数":{"DtId":1,"DB":1,"CId":4,"FL":0},"调薪生效日期":{"DtId":3,"DB":1,"CId":5,"FL":-1},"申请类别":{"DtId":2,"DB":1,"CId":34,"FL":0},"申请日期":{"DtId":3,"DB":1,"CId":4,"FL":-1},"调薪前的基本工资":{"DtId":5,"DB":1,"CId":1,"FL":-1},"调薪前的考核工资":{"DtId":5,"DB":1,"CId":1,"FL":-1},"调薪后的基本工资":{"DtId":5,"DB":1,"CId":1,"FL":-1},"调薪后的考核工资":{"DtId":5,"DB":1,"CId":1,"FL":-1},"调薪后的岗位":{"DtId":2,"DB":1,"CId":3,"FL":-1},"调薪理由":{"DtId":2,"DB":1,"CId":23,"FL":-1},"直属部门意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"人力资源部意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"领导意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"办结意见":{"DtId":2,"DB":1,"CId":2,"FL":-1}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_1631.EntMsg.E1631.GetDataRowModel=function()
{
    return {"员工编号":"","员工姓名":"","所在部门":"","性别":"","岗位":"","入职日期":new Date(),"转正日期":new Date(),"调薪次数":-1,"调薪生效日期":new Date(),"申请类别":"","申请日期":new Date(),"调薪前的基本工资":"0","调薪前的考核工资":"0","调薪后的基本工资":"0","调薪后的考核工资":"0","调薪后的岗位":"","调薪理由":"","直属部门意见":"","人力资源部意见":"","领导意见":"","办结意见":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_AjaxF_1631_73(obj,curFieldName){
 var EntId=1631;
 var FldId=2692;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''性别'';
 var $formContainer=DcxForm.GetHtmlContainer(1631,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1631,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"性别\",FldId:"+FldId+",EntId:1631,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1631,''AjaxF_'',''员工编号'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1631_性别");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1631_74(obj,curFieldName){
 var EntId=1631;
 var FldId=2693;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''岗位'';
 var $formContainer=DcxForm.GetHtmlContainer(1631,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1631,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"岗位\",FldId:"+FldId+",EntId:1631,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1631,''AjaxF_'',''员工编号'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1631_岗位");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1631_75(obj,curFieldName){
 var EntId=1631;
 var FldId=2694;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''入职日期'';
 var $formContainer=DcxForm.GetHtmlContainer(1631,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1631,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"入职日期\",FldId:"+FldId+",EntId:1631,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:5,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1631,''AjaxF_'',''员工编号'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1631_入职日期");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1631_76(obj,curFieldName){
 var EntId=1631;
 var FldId=2695;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''转正日期'';
 var $formContainer=DcxForm.GetHtmlContainer(1631,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1631,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"转正日期\",FldId:"+FldId+",EntId:1631,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:5,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1631,''AjaxF_'',''员工编号'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1631_转正日期");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1631_77(obj,curFieldName){
 var EntId=1631;
 var FldId=2696;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''调薪次数'';
 var $formContainer=DcxForm.GetHtmlContainer(1631,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1631,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"调薪次数\",FldId:"+FldId+",EntId:1631,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1631,''AjaxF_'',''员工编号'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1631_调薪次数");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1631_78(obj,curFieldName){
 var EntId=1631;
 var FldId=2700;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''调薪前的基本工资'';
 var $formContainer=DcxForm.GetHtmlContainer(1631,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1631,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"调薪前的基本工资\",FldId:"+FldId+",EntId:1631,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:1,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1631,''AjaxF_'',''员工编号'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1631_调薪前的基本工资");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1631_79(obj,curFieldName){
 var EntId=1631;
 var FldId=2701;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''调薪前的考核工资'';
 var $formContainer=DcxForm.GetHtmlContainer(1631,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1631,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"调薪前的考核工资\",FldId:"+FldId+",EntId:1631,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:1,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1631,''AjaxF_'',''员工编号'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1631_调薪前的考核工资");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_1631.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1631,''AjaxF_'',buildNew,closeDlg);

}','<$1631$>select [员工编号],[员工姓名],[所在部门],[性别],[岗位],[入职日期],[转正日期],[调薪次数],[调薪生效日期],[申请类别],[申请日期],[调薪前的基本工资],[调薪前的考核工资],[调薪后的基本工资],[调薪后的考核工资],[调薪后的岗位],[调薪理由],[直属部门意见],[人力资源部意见],[领导意见],[办结意见],[LD_Id] from 人事_员工调薪申请表 where [LD_Id]=''{$keyfieldvalue}''</$1631$>',20,'','','','1631*LD_Id*2**2*人事_员工调薪申请表*调薪申请',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 7:02:48',3,'admin','2013-11-30 6:30:02',1)
      end
      else 
      begin 
           update [Dcx_AjaxForm_Run] set [FormId]='027fe4df-3058-46dd-8760-572384a08ad7',[FormName]='调薪申请',[ModuleId]=14,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.AjaxF_1631= {"MenuId":2833,"MEntId":1631,"EntName":"调薪申请","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":true,"EntMsg":{"E1631":{"EntId":1631,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{
DcxForm.CreateHtmlEditor(''d1631_调薪理由'',1631,''AjaxF_'',''调薪理由'',600,350,false,1,false);

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_1631.EntMsg.E1631.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"人事_员工调薪申请表","EntId":1631,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"员工编号":{"DtId":2,"DB":1,"CId":4,"FL":-1},"员工姓名":{"DtId":2,"DB":1,"CId":4,"FL":-1},"所在部门":{"DtId":2,"DB":1,"CId":4,"FL":-1},"性别":{"DtId":2,"DB":1,"CId":4,"FL":-1},"岗位":{"DtId":2,"DB":1,"CId":4,"FL":-1},"入职日期":{"DtId":3,"DB":1,"CId":5,"FL":0},"转正日期":{"DtId":3,"DB":1,"CId":5,"FL":0},"调薪次数":{"DtId":1,"DB":1,"CId":4,"FL":0},"调薪生效日期":{"DtId":3,"DB":1,"CId":5,"FL":-1},"申请类别":{"DtId":2,"DB":1,"CId":34,"FL":0},"申请日期":{"DtId":3,"DB":1,"CId":4,"FL":-1},"调薪前的基本工资":{"DtId":5,"DB":1,"CId":1,"FL":-1},"调薪前的考核工资":{"DtId":5,"DB":1,"CId":1,"FL":-1},"调薪后的基本工资":{"DtId":5,"DB":1,"CId":1,"FL":-1},"调薪后的考核工资":{"DtId":5,"DB":1,"CId":1,"FL":-1},"调薪后的岗位":{"DtId":2,"DB":1,"CId":3,"FL":-1},"调薪理由":{"DtId":2,"DB":1,"CId":23,"FL":-1},"直属部门意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"人力资源部意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"领导意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"办结意见":{"DtId":2,"DB":1,"CId":2,"FL":-1}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_1631.EntMsg.E1631.GetDataRowModel=function()
{
    return {"员工编号":"","员工姓名":"","所在部门":"","性别":"","岗位":"","入职日期":new Date(),"转正日期":new Date(),"调薪次数":-1,"调薪生效日期":new Date(),"申请类别":"","申请日期":new Date(),"调薪前的基本工资":"0","调薪前的考核工资":"0","调薪后的基本工资":"0","调薪后的考核工资":"0","调薪后的岗位":"","调薪理由":"","直属部门意见":"","人力资源部意见":"","领导意见":"","办结意见":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_AjaxF_1631_73(obj,curFieldName){
 var EntId=1631;
 var FldId=2692;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''性别'';
 var $formContainer=DcxForm.GetHtmlContainer(1631,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1631,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"性别\",FldId:"+FldId+",EntId:1631,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1631,''AjaxF_'',''员工编号'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1631_性别");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1631_74(obj,curFieldName){
 var EntId=1631;
 var FldId=2693;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''岗位'';
 var $formContainer=DcxForm.GetHtmlContainer(1631,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1631,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"岗位\",FldId:"+FldId+",EntId:1631,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1631,''AjaxF_'',''员工编号'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1631_岗位");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1631_75(obj,curFieldName){
 var EntId=1631;
 var FldId=2694;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''入职日期'';
 var $formContainer=DcxForm.GetHtmlContainer(1631,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1631,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"入职日期\",FldId:"+FldId+",EntId:1631,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:5,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1631,''AjaxF_'',''员工编号'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1631_入职日期");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1631_76(obj,curFieldName){
 var EntId=1631;
 var FldId=2695;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''转正日期'';
 var $formContainer=DcxForm.GetHtmlContainer(1631,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1631,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"转正日期\",FldId:"+FldId+",EntId:1631,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:5,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1631,''AjaxF_'',''员工编号'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1631_转正日期");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1631_77(obj,curFieldName){
 var EntId=1631;
 var FldId=2696;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''调薪次数'';
 var $formContainer=DcxForm.GetHtmlContainer(1631,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1631,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"调薪次数\",FldId:"+FldId+",EntId:1631,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1631,''AjaxF_'',''员工编号'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1631_调薪次数");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1631_78(obj,curFieldName){
 var EntId=1631;
 var FldId=2700;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''调薪前的基本工资'';
 var $formContainer=DcxForm.GetHtmlContainer(1631,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1631,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"调薪前的基本工资\",FldId:"+FldId+",EntId:1631,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:1,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1631,''AjaxF_'',''员工编号'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1631_调薪前的基本工资");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1631_79(obj,curFieldName){
 var EntId=1631;
 var FldId=2701;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''调薪前的考核工资'';
 var $formContainer=DcxForm.GetHtmlContainer(1631,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1631,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"调薪前的考核工资\",FldId:"+FldId+",EntId:1631,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:1,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1631,''AjaxF_'',''员工编号'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1631_调薪前的考核工资");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_1631.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1631,''AjaxF_'',buildNew,closeDlg);

}',[LoadingSql]='<$1631$>select [员工编号],[员工姓名],[所在部门],[性别],[岗位],[入职日期],[转正日期],[调薪次数],[调薪生效日期],[申请类别],[申请日期],[调薪前的基本工资],[调薪前的考核工资],[调薪后的基本工资],[调薪后的考核工资],[调薪后的岗位],[调薪理由],[直属部门意见],[人力资源部意见],[领导意见],[办结意见],[LD_Id] from 人事_员工调薪申请表 where [LD_Id]=''{$keyfieldvalue}''</$1631$>',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='1631*LD_Id*2**2*人事_员工调薪申请表*调薪申请',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 7:02:48',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-30 6:30:02',[AccountId]=1 where  [EntId]=1631 
      end




--Dcx_AjaxFormField_Run
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='dd0b9d0b-4023-17eb-9c7d-950f67546e3e'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2689,'dd0b9d0b-4023-17eb-9c7d-950f67546e3e',1631,1631,'00000000-0000-0000-0000-000000000000','员工编号',2,2,11,'{$staffNO}',0,9,null,0,4,1,0,1,-1,0,0,'','','','{$staffNO},','<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="1631" groupid="176" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="962" class="li-area-title" scroll="no" style="width: 77px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">调薪申请</span></div>
</li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="177" entid="1631" class="ul-mform" ctrlprex="AjaxF_" isrple="1">
<li areaid="963" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2689" istitle="1">员工编号 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d1631_员工编号" class="form-lbl" style="width:201px;" IsForField=1 EntId="1631" CId="4" FId="2689" Vtp="0"  CBack=1  >','</span><input id="d1631_员工编号_hid" type="hidden"  EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="员工编号" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="2689" vlk=0    value="','" />',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2689,[Form_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='员工编号',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=11,[DefaultValue]='{$staffNO}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$staffNO},',[BeforeHtml]='<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="1631" groupid="176" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="962" class="li-area-title" scroll="no" style="width: 77px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">调薪申请</span></div>
</li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="177" entid="1631" class="ul-mform" ctrlprex="AjaxF_" isrple="1">
<li areaid="963" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2689" istitle="1">员工编号 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1631_员工编号" class="form-lbl" style="width:201px;" IsForField=1 EntId="1631" CId="4" FId="2689" Vtp="0"  CBack=1  >',[CtrlbackHtml]='</span><input id="d1631_员工编号_hid" type="hidden"  EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="员工编号" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="2689" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='dd0b9d0b-4023-17eb-9c7d-950f67546e3e' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='55f09384-30ff-2b62-b1f9-9f6149efaa3d'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2690,'55f09384-30ff-2b62-b1f9-9f6149efaa3d',1631,1631,'00000000-0000-0000-0000-000000000000','员工姓名',2,2,12,'{$realname}',0,9,null,0,4,1,0,2,-1,0,0,'','','','{$realname},','</span>
</div>
</li>
<li areaid="964" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2690" istitle="1">员工姓名 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d1631_员工姓名" class="form-lbl" style="width:201px;" IsForField=1 EntId="1631" CId="4" FId="2690" Vtp="0"  >','</span><input id="d1631_员工姓名_hid" type="hidden"  EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="员工姓名" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="2690" vlk=0    value="','" />',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2690,[Form_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='员工姓名',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=12,[DefaultValue]='{$realname}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=2,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$realname},',[BeforeHtml]='</span>
</div>
</li>
<li areaid="964" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2690" istitle="1">员工姓名 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1631_员工姓名" class="form-lbl" style="width:201px;" IsForField=1 EntId="1631" CId="4" FId="2690" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d1631_员工姓名_hid" type="hidden"  EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="员工姓名" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="2690" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='55f09384-30ff-2b62-b1f9-9f6149efaa3d' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='bab99aa4-80d3-dc61-844e-872f2267ade2'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2691,'bab99aa4-80d3-dc61-844e-872f2267ade2',1631,1631,'00000000-0000-0000-0000-000000000000','所在部门',2,2,13,'{$deptname}',0,9,null,0,4,1,0,3,-1,0,0,'','','','{$deptname},','</span>
</div>
</li>
<li areaid="965" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2691">所在部门  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d1631_所在部门" class="form-lbl" style="width:201px;" IsForField=1 EntId="1631" CId="4" FId="2691" Vtp="0"  >','</span><input id="d1631_所在部门_hid" type="hidden"  EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="所在部门" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="2691" vlk=0    value="','" />',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2691,[Form_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='所在部门',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=13,[DefaultValue]='{$deptname}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=3,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$deptname},',[BeforeHtml]='</span>
</div>
</li>
<li areaid="965" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2691">所在部门  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1631_所在部门" class="form-lbl" style="width:201px;" IsForField=1 EntId="1631" CId="4" FId="2691" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d1631_所在部门_hid" type="hidden"  EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="所在部门" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="2691" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='bab99aa4-80d3-dc61-844e-872f2267ade2' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='7d216032-5785-d563-8a67-409d5e522966'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2692,'7d216032-5785-d563-8a67-409d5e522966',1631,1631,'00000000-0000-0000-0000-000000000000','性别',2,2,14,'Select  [Dcx_Employee].[Sex]  from  [Dcx_Employee] where [EmployeeCode] =''{@员工编号}''',2,9,null,0,4,1,0,4,-1,0,0,'','','员工编号,','','</span>
  </div>
</li>
<li areaid="966" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2692">性别  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d1631_性别" class="form-lbl" style="width:201px;" IsForField=1 EntId="1631" CId="4" FId="2692" Vtp="2"  >','</span><input id="d1631_性别_hid" type="hidden"  EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="性别" dType="2" Vtp="2" RDT="2" Isc="0" RId="9" CId="4" FId="2692" vlk=0    value="','" />',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2692,[Form_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='性别',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=14,[DefaultValue]='Select  [Dcx_Employee].[Sex]  from  [Dcx_Employee] where [EmployeeCode] =''{@员工编号}''',[ValueType]=2,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=4,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='员工编号,',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="966" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2692">性别  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1631_性别" class="form-lbl" style="width:201px;" IsForField=1 EntId="1631" CId="4" FId="2692" Vtp="2"  >',[CtrlbackHtml]='</span><input id="d1631_性别_hid" type="hidden"  EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="性别" dType="2" Vtp="2" RDT="2" Isc="0" RId="9" CId="4" FId="2692" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='7d216032-5785-d563-8a67-409d5e522966' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='353668d0-715d-d82e-1138-628649c0a227'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2693,'353668d0-715d-d82e-1138-628649c0a227',1631,1631,'00000000-0000-0000-0000-000000000000','岗位',2,2,15,'Select  [Dcx_Employee].[PositionName]  from  [Dcx_Employee] where [EmployeeCode] =''{@员工编号}''',2,9,null,0,4,1,0,5,-1,0,0,'','','员工编号,','','</span>
  </div>
</li>
<li areaid="967" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2693">岗位  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d1631_岗位" class="form-lbl" style="width:201px;" IsForField=1 EntId="1631" CId="4" FId="2693" Vtp="2"  >','</span><input id="d1631_岗位_hid" type="hidden"  EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="岗位" dType="2" Vtp="2" RDT="2" Isc="0" RId="9" CId="4" FId="2693" vlk=0    value="','" />',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2693,[Form_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='岗位',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=15,[DefaultValue]='Select  [Dcx_Employee].[PositionName]  from  [Dcx_Employee] where [EmployeeCode] =''{@员工编号}''',[ValueType]=2,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=5,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='员工编号,',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="967" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2693">岗位  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1631_岗位" class="form-lbl" style="width:201px;" IsForField=1 EntId="1631" CId="4" FId="2693" Vtp="2"  >',[CtrlbackHtml]='</span><input id="d1631_岗位_hid" type="hidden"  EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="岗位" dType="2" Vtp="2" RDT="2" Isc="0" RId="9" CId="4" FId="2693" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='353668d0-715d-d82e-1138-628649c0a227' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='61d9fd03-02c0-dedb-aa77-4a8f49f66290'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2694,'61d9fd03-02c0-dedb-aa77-4a8f49f66290',1631,1631,'00000000-0000-0000-0000-000000000000','入职日期',3,3,16,'Select  [Dcx_Employee].EntryDate  from  [Dcx_Employee] where [EmployeeCode] =''{@员工编号}''',2,1,1,0,5,1,1,6,-1,0,0,'','','员工编号,','','</span>
  </div>
</li>
<li areaid="968" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2694">入职日期</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<div class="form-ddl"><input  id="d1631_入职日期"   type="text" class="form-ddl-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1631,''AjaxF_'',1631,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1631,''AjaxF_'',1631);DcxDTime.ShowCalendar(this);" EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="入职日期" dType="3" Vtp="2" RDT="3" Isc="1" RId="1" CId="5" FId="2694" vlk=0    value="','"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>','',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2694,[Form_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='入职日期',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=16,[DefaultValue]='Select  [Dcx_Employee].EntryDate  from  [Dcx_Employee] where [EmployeeCode] =''{@员工编号}''',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=5,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=6,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='员工编号,',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="968" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2694">入职日期</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-ddl"><input  id="d1631_入职日期"   type="text" class="form-ddl-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1631,''AjaxF_'',1631,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1631,''AjaxF_'',1631);DcxDTime.ShowCalendar(this);" EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="入职日期" dType="3" Vtp="2" RDT="3" Isc="1" RId="1" CId="5" FId="2694" vlk=0    value="',[CtrlbackHtml]='"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='61d9fd03-02c0-dedb-aa77-4a8f49f66290' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='9d000a26-46cc-0671-707e-fa5055d8571f'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2695,'9d000a26-46cc-0671-707e-fa5055d8571f',1631,1631,'00000000-0000-0000-0000-000000000000','转正日期',3,3,17,'Select  [Dcx_Employee].[PermanentDate]  from  [Dcx_Employee] where [EmployeeCode] =''{@员工编号}''',2,1,1,0,5,1,1,7,-1,0,0,'','','员工编号,','','</span>
  </div>
</li>
<li areaid="969" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2695">转正日期</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<div class="form-ddl"><input  id="d1631_转正日期"   type="text" class="form-ddl-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1631,''AjaxF_'',1631,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1631,''AjaxF_'',1631);DcxDTime.ShowCalendar(this);" EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="转正日期" dType="3" Vtp="2" RDT="3" Isc="1" RId="1" CId="5" FId="2695" vlk=0    value="','"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>','',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2695,[Form_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='转正日期',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=17,[DefaultValue]='Select  [Dcx_Employee].[PermanentDate]  from  [Dcx_Employee] where [EmployeeCode] =''{@员工编号}''',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=5,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=7,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='员工编号,',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="969" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2695">转正日期</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-ddl"><input  id="d1631_转正日期"   type="text" class="form-ddl-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1631,''AjaxF_'',1631,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1631,''AjaxF_'',1631);DcxDTime.ShowCalendar(this);" EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="转正日期" dType="3" Vtp="2" RDT="3" Isc="1" RId="1" CId="5" FId="2695" vlk=0    value="',[CtrlbackHtml]='"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='9d000a26-46cc-0671-707e-fa5055d8571f' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='33c8b7df-36a1-dad4-be2d-4712403f6f2a'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2696,'33c8b7df-36a1-dad4-be2d-4712403f6f2a',1631,1631,'00000000-0000-0000-0000-000000000000','调薪次数',1,1,18,'Select  count(*)  from  工资_调薪记录  Where   员工编号 =''{@员工编号}''',2,9,1,0,4,1,1,8,-1,0,0,'','','员工编号,','','</span>
  </div>
</li>
<li areaid="970" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2696">调薪次数</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d1631_调薪次数" class="form-lbl" style="width:201px;" IsForField=1 EntId="1631" CId="4" FId="2696" Vtp="2"  >','</span><input id="d1631_调薪次数_hid" type="hidden"  EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="调薪次数" dType="1" Vtp="2" RDT="1" Isc="1" RId="9" CId="4" FId="2696" vlk=0    value="','" />',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2696,[Form_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='调薪次数',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=18,[DefaultValue]='Select  count(*)  from  工资_调薪记录  Where   员工编号 =''{@员工编号}''',[ValueType]=2,[RunValueType]=9,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=8,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='员工编号,',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="970" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2696">调薪次数</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1631_调薪次数" class="form-lbl" style="width:201px;" IsForField=1 EntId="1631" CId="4" FId="2696" Vtp="2"  >',[CtrlbackHtml]='</span><input id="d1631_调薪次数_hid" type="hidden"  EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="调薪次数" dType="1" Vtp="2" RDT="1" Isc="1" RId="9" CId="4" FId="2696" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='33c8b7df-36a1-dad4-be2d-4712403f6f2a' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='dadace5d-31e3-2d93-ac8d-0f507af96ba0'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2697,'dadace5d-31e3-2d93-ac8d-0f507af96ba0',1631,1631,'00000000-0000-0000-0000-000000000000','调薪生效日期',3,3,19,'',5,1,null,0,5,1,0,9,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="971" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2697">调薪生效日期  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<div class="form-ddl"><input  id="d1631_调薪生效日期"   type="text" class="form-ddl-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1631,''AjaxF_'',1631,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1631,''AjaxF_'',1631);DcxDTime.ShowCalendar(this);" EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="调薪生效日期" dType="3" Vtp="5" RDT="3" Isc="1" RId="1" CId="5" FId="2697" vlk=0    value="','"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>','',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2697,[Form_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='调薪生效日期',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=19,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=5,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=9,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="971" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2697">调薪生效日期  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-ddl"><input  id="d1631_调薪生效日期"   type="text" class="form-ddl-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1631,''AjaxF_'',1631,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1631,''AjaxF_'',1631);DcxDTime.ShowCalendar(this);" EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="调薪生效日期" dType="3" Vtp="5" RDT="3" Isc="1" RId="1" CId="5" FId="2697" vlk=0    value="',[CtrlbackHtml]='"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='dadace5d-31e3-2d93-ac8d-0f507af96ba0' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='f91c5214-69d7-ce0e-2f1f-9b5a83ef86cf'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2698,'f91c5214-69d7-ce0e-2f1f-9b5a83ef86cf',1631,1631,'00000000-0000-0000-0000-000000000000','申请类别',2,2,20,'加薪|',1,2,1,0,34,1,1,10,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="972" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2698">申请类别</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','<!--dds_1631_申请类别_begin-->
<div style="display: none;" id="dds_d1631_申请类别" class="selector-ddl">
<div id="dds_d1631_申请类别_title" class="sel_title">请选择</div>
<div id="dds_d1631_申请类别_content" class="sel_list"><ul id="dds_d1631_申请类别_ul">
<li onclick="javascript:DcxDdl.GetValueAf(this,0);" id="dds_d1631_申请类别_li0" class="sel_li">
<a class="op_a" id="d1631_申请类别a" href="javascript:void(0);"><span id="d1631_申请类别s" IsT=1>加薪</span><em id="d1631_申请类别e" IsV=1></em></a>
</li>
<li onclick="javascript:DcxDdl.GetValueAf(this,1);" id="dds_d1631_申请类别_li1" class="sel_li">
<a class="op_a" id="d1631_申请类别a" href="javascript:void(0);"><span id="d1631_申请类别s" IsT=1>降薪</span><em id="d1631_申请类别e" IsV=1>降薪</em></a>
</li>
<li onclick="javascript:DcxDdl.GetValueAf(this,2);" id="dds_d1631_申请类别_li2" class="sel_li">
<a class="op_a" id="d1631_申请类别a" href="javascript:void(0);"><span id="d1631_申请类别s" IsT=1>增加初助</span><em id="d1631_申请类别e" IsV=1>增加初助</em></a>
</li>
<li onclick="javascript:DcxDdl.GetValueAf(this,3);" id="dds_d1631_申请类别_li3" class="sel_li">
<a class="op_a" id="d1631_申请类别a" href="javascript:void(0);"><span id="d1631_申请类别s" IsT=1>岗位晋升</span><em id="d1631_申请类别e" IsV=1>岗位晋升</em></a>
</li>
<li onclick="javascript:DcxDdl.GetValueAf(this,4);" id="dds_d1631_申请类别_li4" class="sel_li">
<a class="op_a" id="d1631_申请类别a" href="javascript:void(0);"><span id="d1631_申请类别s" IsT=1>其他</span><em id="d1631_申请类别e" IsV=1>其他</em></a>
</li>
</ul>
<ul id="dds_d1631_申请类别_search_ul"></ul>
</div>
<iframe style="z-index: -1; border-bottom: 0px; position: absolute; filter: alpha(opacity = 0);
border-left: 0px; width: 106px; background: #fff; overflow: hidden; border-top: 0px;
top: -8px; border-right: 0px; left: -8px; opacity: 0" id="mgiframe" marginheight="0"
frameborder="0" marginwidth="0" src=""></iframe>
</div>

<!--dds_1631_申请类别_end-->','','<div id="d1631_申请类别" class="form-ddl" style="-width:231px;" IsForField=1 EntId="1631" FId="2698" Vtp="1" RId="2" Isc="1" CId="34" FieldName="申请类别" ><input  id="d1631_申请类别_Text" type="text" class="form-ddl-txt" readonly="readOnly"  CId="34" FId="2698" Vtp="1"  RId="2" Isc="1"  style="width:201px;" onclick ="javascript:DcxDdl.ShowDialogAf(this,1631,''申请类别'',false);" onchange ="javascript:if(!DcxVld.Validate(this,1631,''AjaxF_'',1631,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1631,''AjaxF_'',1631);" onkeyup ="javascript:DcxDdl.ShowDialogAf(this,1631,''申请类别'',true);" value="','" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d1631_申请类别_hid" type="hidden"  EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="申请类别" dType="2" Vtp="1" RDT="2" Isc="1" RId="2" CId="34" FId="2698" vlk=0    value="','"/>',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2698,[Form_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='申请类别',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=20,[DefaultValue]='加薪|',[ValueType]=1,[RunValueType]=2,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=34,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=10,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="972" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2698">申请类别</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='<!--dds_1631_申请类别_begin-->
<div style="display: none;" id="dds_d1631_申请类别" class="selector-ddl">
<div id="dds_d1631_申请类别_title" class="sel_title">请选择</div>
<div id="dds_d1631_申请类别_content" class="sel_list"><ul id="dds_d1631_申请类别_ul">
<li onclick="javascript:DcxDdl.GetValueAf(this,0);" id="dds_d1631_申请类别_li0" class="sel_li">
<a class="op_a" id="d1631_申请类别a" href="javascript:void(0);"><span id="d1631_申请类别s" IsT=1>加薪</span><em id="d1631_申请类别e" IsV=1></em></a>
</li>
<li onclick="javascript:DcxDdl.GetValueAf(this,1);" id="dds_d1631_申请类别_li1" class="sel_li">
<a class="op_a" id="d1631_申请类别a" href="javascript:void(0);"><span id="d1631_申请类别s" IsT=1>降薪</span><em id="d1631_申请类别e" IsV=1>降薪</em></a>
</li>
<li onclick="javascript:DcxDdl.GetValueAf(this,2);" id="dds_d1631_申请类别_li2" class="sel_li">
<a class="op_a" id="d1631_申请类别a" href="javascript:void(0);"><span id="d1631_申请类别s" IsT=1>增加初助</span><em id="d1631_申请类别e" IsV=1>增加初助</em></a>
</li>
<li onclick="javascript:DcxDdl.GetValueAf(this,3);" id="dds_d1631_申请类别_li3" class="sel_li">
<a class="op_a" id="d1631_申请类别a" href="javascript:void(0);"><span id="d1631_申请类别s" IsT=1>岗位晋升</span><em id="d1631_申请类别e" IsV=1>岗位晋升</em></a>
</li>
<li onclick="javascript:DcxDdl.GetValueAf(this,4);" id="dds_d1631_申请类别_li4" class="sel_li">
<a class="op_a" id="d1631_申请类别a" href="javascript:void(0);"><span id="d1631_申请类别s" IsT=1>其他</span><em id="d1631_申请类别e" IsV=1>其他</em></a>
</li>
</ul>
<ul id="dds_d1631_申请类别_search_ul"></ul>
</div>
<iframe style="z-index: -1; border-bottom: 0px; position: absolute; filter: alpha(opacity = 0);
border-left: 0px; width: 106px; background: #fff; overflow: hidden; border-top: 0px;
top: -8px; border-right: 0px; left: -8px; opacity: 0" id="mgiframe" marginheight="0"
frameborder="0" marginwidth="0" src=""></iframe>
</div>

<!--dds_1631_申请类别_end-->',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d1631_申请类别" class="form-ddl" style="-width:231px;" IsForField=1 EntId="1631" FId="2698" Vtp="1" RId="2" Isc="1" CId="34" FieldName="申请类别" ><input  id="d1631_申请类别_Text" type="text" class="form-ddl-txt" readonly="readOnly"  CId="34" FId="2698" Vtp="1"  RId="2" Isc="1"  style="width:201px;" onclick ="javascript:DcxDdl.ShowDialogAf(this,1631,''申请类别'',false);" onchange ="javascript:if(!DcxVld.Validate(this,1631,''AjaxF_'',1631,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1631,''AjaxF_'',1631);" onkeyup ="javascript:DcxDdl.ShowDialogAf(this,1631,''申请类别'',true);" value="',[CtrlbackHtml]='" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d1631_申请类别_hid" type="hidden"  EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="申请类别" dType="2" Vtp="1" RDT="2" Isc="1" RId="2" CId="34" FId="2698" vlk=0    value="',[CtrlLastHtml]='"/>',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='f91c5214-69d7-ce0e-2f1f-9b5a83ef86cf' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='77e1149e-7beb-69e2-3248-28fcd8e632bd'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2699,'77e1149e-7beb-69e2-3248-28fcd8e632bd',1631,1631,'00000000-0000-0000-0000-000000000000','申请日期',3,3,21,'{$date}',0,9,null,0,4,1,0,11,-1,0,0,'','','','{$date},','</span>
  </div>
</li>
<li areaid="973" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2699">申请日期  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d1631_申请日期" class="form-lbl" style="width:201px;" IsForField=1 EntId="1631" CId="4" FId="2699" Vtp="0"  >','</span><input id="d1631_申请日期_hid" type="hidden"  EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="申请日期" dType="3" Vtp="0" RDT="3" Isc="0" RId="9" CId="4" FId="2699" vlk=0    value="','" />',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2699,[Form_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='申请日期',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=21,[DefaultValue]='{$date}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=11,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$date},',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="973" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2699">申请日期  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1631_申请日期" class="form-lbl" style="width:201px;" IsForField=1 EntId="1631" CId="4" FId="2699" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d1631_申请日期_hid" type="hidden"  EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="申请日期" dType="3" Vtp="0" RDT="3" Isc="0" RId="9" CId="4" FId="2699" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='77e1149e-7beb-69e2-3248-28fcd8e632bd' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='26494a19-08dc-f71d-3d02-ccf88d74b9d0'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2700,'26494a19-08dc-f71d-3d02-ccf88d74b9d0',1631,1631,'00000000-0000-0000-0000-000000000000','调薪前的基本工资',5,5,22,'Select  [Dcx_Employee].[BaseWage]  from  [Dcx_Employee] where [EmployeeCode] =''{@员工编号}''',2,1,null,0,1,1,0,12,-1,0,0,'','','员工编号,','','</span>
  </div>
</li>
<li areaid="974" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2700">调薪前的基本工资  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1631_调薪前的基本工资"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,1631,''AjaxF_'',1631,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1631,''AjaxF_'',1631); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="调薪前的基本工资" dType="5" Vtp="2" RDT="5" Isc="0" RId="1" CId="1" FId="2700" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2700,[Form_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='调薪前的基本工资',[FieldDataTypeId]=5,[RunDataTypeId]=5,[DBFieldId]=22,[DefaultValue]='Select  [Dcx_Employee].[BaseWage]  from  [Dcx_Employee] where [EmployeeCode] =''{@员工编号}''',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=12,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='员工编号,',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="974" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2700">调薪前的基本工资  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1631_调薪前的基本工资"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,1631,''AjaxF_'',1631,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1631,''AjaxF_'',1631); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="调薪前的基本工资" dType="5" Vtp="2" RDT="5" Isc="0" RId="1" CId="1" FId="2700" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='26494a19-08dc-f71d-3d02-ccf88d74b9d0' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='117cdfd4-f20e-536b-4c0b-cc746a6516bf'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2701,'117cdfd4-f20e-536b-4c0b-cc746a6516bf',1631,1631,'00000000-0000-0000-0000-000000000000','调薪前的考核工资',5,5,23,'Select  [Dcx_Employee].MeritWage  from  [Dcx_Employee] where [EmployeeCode] =''{@员工编号}''',2,1,null,0,1,1,0,13,-1,0,0,'','','员工编号,','','</span>
  </div>
</li>
<li areaid="975" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2701">调薪前的考核工资  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1631_调薪前的考核工资"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,1631,''AjaxF_'',1631,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1631,''AjaxF_'',1631); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="调薪前的考核工资" dType="5" Vtp="2" RDT="5" Isc="0" RId="1" CId="1" FId="2701" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2701,[Form_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='调薪前的考核工资',[FieldDataTypeId]=5,[RunDataTypeId]=5,[DBFieldId]=23,[DefaultValue]='Select  [Dcx_Employee].MeritWage  from  [Dcx_Employee] where [EmployeeCode] =''{@员工编号}''',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=13,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='员工编号,',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="975" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2701">调薪前的考核工资  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1631_调薪前的考核工资"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,1631,''AjaxF_'',1631,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1631,''AjaxF_'',1631); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="调薪前的考核工资" dType="5" Vtp="2" RDT="5" Isc="0" RId="1" CId="1" FId="2701" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='117cdfd4-f20e-536b-4c0b-cc746a6516bf' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='7e53a19c-82be-cb8a-5ead-448e4e39fe56'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2702,'7e53a19c-82be-cb8a-5ead-448e4e39fe56',1631,1631,'00000000-0000-0000-0000-000000000000','调薪后的基本工资',5,5,25,'',5,1,null,0,1,1,0,14,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="976" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2702">调薪后的基本工资  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1631_调薪后的基本工资"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,1631,''AjaxF_'',1631,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1631,''AjaxF_'',1631); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="调薪后的基本工资" dType="5" Vtp="5" RDT="5" Isc="0" RId="1" CId="1" FId="2702" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2702,[Form_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='调薪后的基本工资',[FieldDataTypeId]=5,[RunDataTypeId]=5,[DBFieldId]=25,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=14,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="976" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2702">调薪后的基本工资  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1631_调薪后的基本工资"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,1631,''AjaxF_'',1631,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1631,''AjaxF_'',1631); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="调薪后的基本工资" dType="5" Vtp="5" RDT="5" Isc="0" RId="1" CId="1" FId="2702" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='7e53a19c-82be-cb8a-5ead-448e4e39fe56' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='9aea900f-93c0-ea18-3587-d6bd9aa37cf6'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2703,'9aea900f-93c0-ea18-3587-d6bd9aa37cf6',1631,1631,'00000000-0000-0000-0000-000000000000','调薪后的考核工资',5,5,26,'',5,1,null,0,1,1,0,15,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="977" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2703">调薪后的考核工资  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1631_调薪后的考核工资"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,1631,''AjaxF_'',1631,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1631,''AjaxF_'',1631); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="调薪后的考核工资" dType="5" Vtp="5" RDT="5" Isc="0" RId="1" CId="1" FId="2703" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2703,[Form_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='调薪后的考核工资',[FieldDataTypeId]=5,[RunDataTypeId]=5,[DBFieldId]=26,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=15,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="977" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2703">调薪后的考核工资  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1631_调薪后的考核工资"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,1631,''AjaxF_'',1631,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1631,''AjaxF_'',1631); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="调薪后的考核工资" dType="5" Vtp="5" RDT="5" Isc="0" RId="1" CId="1" FId="2703" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='9aea900f-93c0-ea18-3587-d6bd9aa37cf6' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='532c1f4a-d7a2-5c5a-6178-b702636c160b'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2704,'532c1f4a-d7a2-5c5a-6178-b702636c160b',1631,1631,'00000000-0000-0000-0000-000000000000','调薪后的岗位',2,2,27,'SELECT [PositionName] FROM [Dcx_Position]',2,1,null,0,3,1,0,16,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="978" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2704">调薪后的岗位  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<select id="d1631_调薪后的岗位" name="d1631_调薪后的岗位" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1631,''AjaxF_'',1631,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1631,''AjaxF_'',1631);" EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="调薪后的岗位" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="3" FId="2704" vlk=0    style="width:201px;">','</select>','',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2704,[Form_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='调薪后的岗位',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=27,[DefaultValue]='SELECT [PositionName] FROM [Dcx_Position]',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=16,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="978" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2704">调薪后的岗位  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1631_调薪后的岗位" name="d1631_调薪后的岗位" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1631,''AjaxF_'',1631,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1631,''AjaxF_'',1631);" EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="调薪后的岗位" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="3" FId="2704" vlk=0    style="width:201px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='532c1f4a-d7a2-5c5a-6178-b702636c160b' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='d6e2ad3d-5135-a41a-1285-3f02969dc2ff'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2705,'d6e2ad3d-5135-a41a-1285-3f02969dc2ff',1631,1631,'00000000-0000-0000-0000-000000000000','调薪理由',2,2,29,'',5,1,null,0,23,1,0,17,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="979" style="height: 470px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2705">调薪理由  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1631_调薪理由" class="form-txts"  style="width:600px;height:350px;" EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="调薪理由" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="23" FId="2705" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2705,[Form_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='调薪理由',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=29,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=23,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=17,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="979" style="height: 470px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2705">调薪理由  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1631_调薪理由" class="form-txts"  style="width:600px;height:350px;" EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="调薪理由" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="23" FId="2705" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='d6e2ad3d-5135-a41a-1285-3f02969dc2ff' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='b540ebac-60dd-caed-23ad-3b37bac915ad'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2706,'b540ebac-60dd-caed-23ad-3b37bac915ad',1631,1631,'00000000-0000-0000-0000-000000000000','直属部门意见',2,2,30,'',5,1,null,0,2,1,0,18,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="980" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2706">直属部门意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1631_直属部门意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1631,''AjaxF_'',1631,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1631,''AjaxF_'',1631);" EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="直属部门意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="2706" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2706,[Form_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='直属部门意见',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=30,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=18,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="980" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2706">直属部门意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1631_直属部门意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1631,''AjaxF_'',1631,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1631,''AjaxF_'',1631);" EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="直属部门意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="2706" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='b540ebac-60dd-caed-23ad-3b37bac915ad' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='75543cc7-591d-b1cb-3819-f6faf2fe7a58'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2707,'75543cc7-591d-b1cb-3819-f6faf2fe7a58',1631,1631,'00000000-0000-0000-0000-000000000000','人力资源部意见',2,2,31,'',5,1,null,0,2,1,0,19,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="981" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2707">人力资源部意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1631_人力资源部意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1631,''AjaxF_'',1631,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1631,''AjaxF_'',1631);" EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="人力资源部意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="2707" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2707,[Form_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='人力资源部意见',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=31,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=19,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="981" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2707">人力资源部意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1631_人力资源部意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1631,''AjaxF_'',1631,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1631,''AjaxF_'',1631);" EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="人力资源部意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="2707" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='75543cc7-591d-b1cb-3819-f6faf2fe7a58' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='3ed57174-362d-3389-e291-8200961acbf2'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2708,'3ed57174-362d-3389-e291-8200961acbf2',1631,1631,'00000000-0000-0000-0000-000000000000','领导意见',2,2,32,'',5,1,null,0,2,1,0,20,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="982" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2708">领导意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1631_领导意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1631,''AjaxF_'',1631,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1631,''AjaxF_'',1631);" EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="领导意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="2708" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2708,[Form_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='领导意见',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=32,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=20,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="982" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2708">领导意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1631_领导意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1631,''AjaxF_'',1631,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1631,''AjaxF_'',1631);" EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="领导意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="2708" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='3ed57174-362d-3389-e291-8200961acbf2' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='fa57a36f-93e0-b1c0-42fb-cbfaf267ad5f'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2709,'fa57a36f-93e0-b1c0-42fb-cbfaf267ad5f',1631,1631,'00000000-0000-0000-0000-000000000000','办结意见',2,2,33,'',5,1,null,0,2,1,0,21,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="983" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2709">办结意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','</span>
  </div>
</li>
</ul>
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="178" entid="1631" class="tab_ul" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="984" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li areaid="985" istab="1" tabid="2" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1" style="">
<ul isgroup="1" groupid="179" entid="1631" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="986" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="180" entid="1631" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="987" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="1631" groupid="181" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="988" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
<li areaid="989" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>','','','<textarea  id="d1631_办结意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1631,''AjaxF_'',1631,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1631,''AjaxF_'',1631);" EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="办结意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="2709" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2709,[Form_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='办结意见',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=33,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=21,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="983" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2709">办结意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
  </div>
</li>
</ul>
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="178" entid="1631" class="tab_ul" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="984" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li areaid="985" istab="1" tabid="2" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1" style="">
<ul isgroup="1" groupid="179" entid="1631" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="986" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="180" entid="1631" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="987" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="1631" groupid="181" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="988" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
<li areaid="989" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1631_办结意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1631,''AjaxF_'',1631,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1631,''AjaxF_'',1631);" EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="办结意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="2709" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='fa57a36f-93e0-b1c0-42fb-cbfaf267ad5f' 
      end



Delete from [Dcx_SearchForm_Run]  where [EntId]=1631

--Dcx_SearchForm_Run
      if (select count(1) from [Dcx_SearchForm_Run] where  [EntId]=1631  )<1 
      begin 
           Insert into [Dcx_SearchForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('72517ddc-07d6-4e90-9905-2f018550eaca','调薪申请',1631,9,'','',0,'<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>','','DcxRun.SearchF_1631= {"MenuId":2833,"MEntId":1631,"EntName":"调薪申请","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1631":{"EntId":1631,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_1631.EntMsg.E1631.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"人事_员工调薪申请表","EntId":1631,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"岗位":{"DtId":2,"DB":1,"CId":3,"FL":100},"所在部门":{"DtId":2,"DB":1,"CId":3,"FL":100},"流程是否已结束":{"DtId":4,"DB":0,"CId":3,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.SearchF_1631.EntMsg.E1631.GetDataRowModel=function()
{
    return {"岗位":"","所在部门":"","流程是否已结束":false,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_1631.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1631,''SearchF_'',buildNew,closeDlg);

}','',20,'','','','1631*LD_Id*2**2*人事_员工调薪申请表*调薪申请',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 5:45:57',3,'admin','2013-11-16 17:38:15',1)
      end
      else 
      begin 
           update [Dcx_SearchForm_Run] set [FormId]='72517ddc-07d6-4e90-9905-2f018550eaca',[FormName]='调薪申请',[ModuleId]=9,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.SearchF_1631= {"MenuId":2833,"MEntId":1631,"EntName":"调薪申请","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1631":{"EntId":1631,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_1631.EntMsg.E1631.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"人事_员工调薪申请表","EntId":1631,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"岗位":{"DtId":2,"DB":1,"CId":3,"FL":100},"所在部门":{"DtId":2,"DB":1,"CId":3,"FL":100},"流程是否已结束":{"DtId":4,"DB":0,"CId":3,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.SearchF_1631.EntMsg.E1631.GetDataRowModel=function()
{
    return {"岗位":"","所在部门":"","流程是否已结束":false,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_1631.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1631,''SearchF_'',buildNew,closeDlg);

}',[LoadingSql]='',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='1631*LD_Id*2**2*人事_员工调薪申请表*调薪申请',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 5:45:57',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-16 17:38:15',[AccountId]=1 where  [EntId]=1631 
      end




--Dcx_SearchFormField_Run
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='9b7b9088-aa11-4694-940a-fb8d04f7c9ef'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'9b7b9088-aa11-4694-940a-fb8d04f7c9ef',1631,1631,'00000000-0000-0000-0000-000000000000',1,'Like','岗位',2,2,15,'select '''' union SELECT [Position_Name] FROM [Dcx_Position]',2,1,1,0,3,1,0,-1,1,0,'','','','','<div class="searchform">
<ul isgroup="1" groupid="27" entid="1631" class="search-block w920" ctrlprex="SearchF_" isrple="1">
<li areaid="105" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="1">岗位</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">','','','','<select id="d1631_岗位" name="d1631_岗位" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1631,''SearchF_'',1631,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1631,''SearchF_'',1631);" EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="岗位" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="3" FId="1" vlk=0    Cpre="Like"  style="width:150px;">','</select>','',1,-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=1,[Form_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[CompareOperatorType]='Like',[FieldName]='岗位',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=15,[DefaultValue]='select '''' union SELECT [Position_Name] FROM [Dcx_Position]',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="searchform">
<ul isgroup="1" groupid="27" entid="1631" class="search-block w920" ctrlprex="SearchF_" isrple="1">
<li areaid="105" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="1">岗位</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1631_岗位" name="d1631_岗位" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1631,''SearchF_'',1631,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1631,''SearchF_'',1631);" EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="岗位" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="3" FId="1" vlk=0    Cpre="Like"  style="width:150px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='9b7b9088-aa11-4694-940a-fb8d04f7c9ef' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='c8d005b0-6491-4143-8b0f-035f45ce24cd'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'c8d005b0-6491-4143-8b0f-035f45ce24cd',1631,1631,'00000000-0000-0000-0000-000000000000',2,'Like','所在部门',2,2,13,'select '''' union SELECT [DeptName] FROM [Dcx_Dept]',2,1,1,0,3,1,0,-1,1,0,'','','','','</span>
  </div>
</li>
<li areaid="106" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="2">所在部门</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">','','','','<select id="d1631_所在部门" name="d1631_所在部门" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1631,''SearchF_'',1631,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1631,''SearchF_'',1631);" EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="所在部门" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="3" FId="2" vlk=0    Cpre="Like"  style="width:150px;">','</select>','',1,-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=2,[Form_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[CompareOperatorType]='Like',[FieldName]='所在部门',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=13,[DefaultValue]='select '''' union SELECT [DeptName] FROM [Dcx_Dept]',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="106" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="2">所在部门</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1631_所在部门" name="d1631_所在部门" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1631,''SearchF_'',1631,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1631,''SearchF_'',1631);" EntId="1631" IsField=1 DBField=1 IsPost=1 FieldName="所在部门" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="3" FId="2" vlk=0    Cpre="Like"  style="width:150px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='c8d005b0-6491-4143-8b0f-035f45ce24cd' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='0d8d6ebb-d952-419c-84de-63aa283711a0'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'0d8d6ebb-d952-419c-84de-63aa283711a0',1631,1631,'00000000-0000-0000-0000-000000000000',3,'=','流程是否已结束',4,4,-1,'',1,1,1,0,3,1,0,-1,1,0,'','','','','</span>
  </div>
</li>
<li areaid="107" class="search-li w270 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="3">流程已结束</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">','</span>
  </div>
</li>
<li areaid="108" class="search-li w100 h32" scroll="no" style="position: static;">
<div class="searchform-button" onclick="javascript:return VL_Search(1631);">
<div class="search-btn">&nbsp;</div>
<a href="javascript:void(0);" id="1631_searchBT">搜索</a>
</div>
</li>
</ul>
</div>','','','<select id="d1631_流程是否已结束" name="d1631_流程是否已结束" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1631,''SearchF_'',1631,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1631,''SearchF_'',1631);" EntId="1631" IsField=1 DBField=0 IsPost=1 FieldName="流程是否已结束" dType="4" Vtp="1" RDT="4" Isc="1" RId="1" CId="3" FId="3" vlk=0    Cpre="="  style="width:150px;">','<option  value="False"  >否</option>
<option  value="True"  >是</option>
</select>','',1,-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=3,[Form_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[CompareOperatorType]='=',[FieldName]='流程是否已结束',[FieldDataTypeId]=4,[RunDataTypeId]=4,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=1,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="107" class="search-li w270 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="3">流程已结束</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
  </div>
</li>
<li areaid="108" class="search-li w100 h32" scroll="no" style="position: static;">
<div class="searchform-button" onclick="javascript:return VL_Search(1631);">
<div class="search-btn">&nbsp;</div>
<a href="javascript:void(0);" id="1631_searchBT">搜索</a>
</div>
</li>
</ul>
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1631_流程是否已结束" name="d1631_流程是否已结束" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1631,''SearchF_'',1631,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1631,''SearchF_'',1631);" EntId="1631" IsField=1 DBField=0 IsPost=1 FieldName="流程是否已结束" dType="4" Vtp="1" RDT="4" Isc="1" RId="1" CId="3" FId="3" vlk=0    Cpre="="  style="width:150px;">',[CtrlbackHtml]='<option  value="False"  >否</option>
<option  value="True"  >是</option>
</select>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='0d8d6ebb-d952-419c-84de-63aa283711a0' 
      end



Delete from [Dcx_BrowseReport_Run]  where [EntId]=1631

--Dcx_BrowseReport_Run
      if (select count(1) from [Dcx_BrowseReport_Run] where  [EntId]=1631  )<1 
      begin 
           Insert into [Dcx_BrowseReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[DIYJsCss],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('d5533da4-407f-4b8f-94c0-c8c8bfaaf2cd','调薪申请',1631,31,'','<$1631$>select [WFState],[WFUserName],[员工编号],[员工姓名],[所在部门],[岗位],[入职日期],[转正日期],[调薪次数],[调薪生效日期],[申请类别],[申请日期],[调薪前的基本工资],[调薪前的考核工资],[调薪后的基本工资],[调薪后的考核工资],[调薪后的岗位],[调薪理由],[直属部门意见],[人力资源部意见],[领导意见],[办结意见],[LD_Id] from 人事_员工调薪申请表 where [LD_Id]=''{$keyfieldvalue}''</$1631$>',1,1,20,'','DcxRun.MChildR_1631= {"MenuId":2833,"MEntId":1631,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"调薪申请","EntMsg":{"E1631":{"EntId":1631,"EntName":"调薪申请","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":40,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1631*LD_Id*2**2*人事_员工调薪申请表*调薪申请',3,'','2012-12-21 11:03:02',3,'','2013-11-17 3:03:46',1)
      end
      else 
      begin 
           update [Dcx_BrowseReport_Run] set [ReportId]='d5533da4-407f-4b8f-94c0-c8c8bfaaf2cd',[ReportName]='调薪申请',[ModuleId]=31,[StaticHtml]='',[LoadingSql]='<$1631$>select [WFState],[WFUserName],[员工编号],[员工姓名],[所在部门],[岗位],[入职日期],[转正日期],[调薪次数],[调薪生效日期],[申请类别],[申请日期],[调薪前的基本工资],[调薪前的考核工资],[调薪后的基本工资],[调薪后的考核工资],[调薪后的岗位],[调薪理由],[直属部门意见],[人力资源部意见],[领导意见],[办结意见],[LD_Id] from 人事_员工调薪申请表 where [LD_Id]=''{$keyfieldvalue}''</$1631$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[DIYJsCss]='',[AutoPublicJs]='DcxRun.MChildR_1631= {"MenuId":2833,"MEntId":1631,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"调薪申请","EntMsg":{"E1631":{"EntId":1631,"EntName":"调薪申请","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":40,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1631*LD_Id*2**2*人事_员工调薪申请表*调薪申请',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-21 11:03:02',[EditorId]=3,[Editor]='',[EditTime]='2013-11-17 3:03:46',[AccountId]=1 where  [EntId]=1631 
      end




--Dcx_BrowseReportField_Run
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='fbd494ea-3cb1-4573-8a66-b25d5b5a21e9'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'fbd494ea-3cb1-4573-8a66-b25d5b5a21e9',1631,1631,'00000000-0000-0000-0000-000000000000',2,'WFState',1,1,'varchar',2,1,0,'','','','<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1631" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="807" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">调薪申请</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1631" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="808" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">当前状态  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=1,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='WFState',[FieldNO]=1,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1631" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="807" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">调薪申请</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1631" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="808" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">当前状态  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='fbd494ea-3cb1-4573-8a66-b25d5b5a21e9' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='532afa69-9586-4206-b4a8-47525e09c5c8'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'532afa69-9586-4206-b4a8-47525e09c5c8',1631,1631,'00000000-0000-0000-0000-000000000000',3,'WFUserName',2,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="809" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">当前办理人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=2,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='WFUserName',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="809" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">当前办理人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='532afa69-9586-4206-b4a8-47525e09c5c8' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='c8c3b07a-86c2-4bce-9f78-e9bcc50a98c1'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'c8c3b07a-86c2-4bce-9f78-e9bcc50a98c1',1631,1631,'00000000-0000-0000-0000-000000000000',11,'员工编号',3,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="810" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">员工编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="员工编号" fldid="3" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=3,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=11,[FieldName]='员工编号',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="810" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">员工编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="员工编号" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='c8c3b07a-86c2-4bce-9f78-e9bcc50a98c1' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='e645ef81-6f5d-4924-aceb-22b84ed0e9dd'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'e645ef81-6f5d-4924-aceb-22b84ed0e9dd',1631,1631,'00000000-0000-0000-0000-000000000000',12,'员工姓名',4,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="811" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">员工姓名  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="员工姓名" fldid="4" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=4,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=12,[FieldName]='员工姓名',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="811" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">员工姓名  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="员工姓名" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='e645ef81-6f5d-4924-aceb-22b84ed0e9dd' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='8beabca6-513b-4880-83ad-60db6ce030af'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'8beabca6-513b-4880-83ad-60db6ce030af',1631,1631,'00000000-0000-0000-0000-000000000000',13,'所在部门',5,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="812" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">所在部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="所在部门" fldid="5" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=5,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=13,[FieldName]='所在部门',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="812" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">所在部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="所在部门" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='8beabca6-513b-4880-83ad-60db6ce030af' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='3ea43691-5cce-441f-b810-1d63b8810377'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'3ea43691-5cce-441f-b810-1d63b8810377',1631,1631,'00000000-0000-0000-0000-000000000000',15,'岗位',6,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="813" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">岗位  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="岗位" fldid="6" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=6,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=15,[FieldName]='岗位',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="813" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">岗位  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="岗位" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='3ea43691-5cce-441f-b810-1d63b8810377' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='f4fdd143-4fdd-492f-b014-1249466a9b43'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'f4fdd143-4fdd-492f-b014-1249466a9b43',1631,1631,'00000000-0000-0000-0000-000000000000',16,'入职日期',7,4,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="814" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">入职日期  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="入职日期" fldid="7" columntypeid="4" class="form-ctr">','',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=7,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=16,[FieldName]='入职日期',[FieldNO]=7,[ColumnTypeId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="814" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">入职日期  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="入职日期" fldid="7" columntypeid="4" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='f4fdd143-4fdd-492f-b014-1249466a9b43' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='08a70e60-b954-4d14-97f7-ca7386bb9f5c'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'08a70e60-b954-4d14-97f7-ca7386bb9f5c',1631,1631,'00000000-0000-0000-0000-000000000000',17,'转正日期',8,4,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="815" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="8">转正日期  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="转正日期" fldid="8" columntypeid="4" class="form-ctr">','',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=8,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=17,[FieldName]='转正日期',[FieldNO]=8,[ColumnTypeId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="815" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="8">转正日期  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="转正日期" fldid="8" columntypeid="4" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='08a70e60-b954-4d14-97f7-ca7386bb9f5c' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='35442a28-1168-43a2-9172-ad2f2a62ced5'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'35442a28-1168-43a2-9172-ad2f2a62ced5',1631,1631,'00000000-0000-0000-0000-000000000000',18,'调薪次数',9,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="816" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="9">调薪次数  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="调薪次数" fldid="9" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=9,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=18,[FieldName]='调薪次数',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="816" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="9">调薪次数  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="调薪次数" fldid="9" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='35442a28-1168-43a2-9172-ad2f2a62ced5' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='791b2918-6aa3-443e-97b1-d654796b091d'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'791b2918-6aa3-443e-97b1-d654796b091d',1631,1631,'00000000-0000-0000-0000-000000000000',19,'调薪生效日期',10,4,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="817" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="10">调薪生效日期  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="调薪生效日期" fldid="10" columntypeid="4" class="form-ctr">','',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=10,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=19,[FieldName]='调薪生效日期',[FieldNO]=10,[ColumnTypeId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="817" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="10">调薪生效日期  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="调薪生效日期" fldid="10" columntypeid="4" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='791b2918-6aa3-443e-97b1-d654796b091d' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='43bbb136-f02a-4cbc-ae2c-479d685a2d47'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'43bbb136-f02a-4cbc-ae2c-479d685a2d47',1631,1631,'00000000-0000-0000-0000-000000000000',20,'申请类别',11,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="818" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="11">申请类别  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="申请类别" fldid="11" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=11,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=20,[FieldName]='申请类别',[FieldNO]=11,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="818" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="11">申请类别  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="申请类别" fldid="11" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='43bbb136-f02a-4cbc-ae2c-479d685a2d47' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='f386b88d-3905-4bdb-9ae4-cf2ef3e6ce7a'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(12,'f386b88d-3905-4bdb-9ae4-cf2ef3e6ce7a',1631,1631,'00000000-0000-0000-0000-000000000000',21,'申请日期',12,4,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="819" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="12">申请日期  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="申请日期" fldid="12" columntypeid="4" class="form-ctr">','',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=12,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=21,[FieldName]='申请日期',[FieldNO]=12,[ColumnTypeId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="819" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="12">申请日期  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="申请日期" fldid="12" columntypeid="4" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='f386b88d-3905-4bdb-9ae4-cf2ef3e6ce7a' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='6f82de13-4ac2-4acc-9fe7-e2332c28ee5d'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(13,'6f82de13-4ac2-4acc-9fe7-e2332c28ee5d',1631,1631,'00000000-0000-0000-0000-000000000000',22,'调薪前的基本工资',13,3,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="820" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="13">调薪前的基本工资  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="调薪前的基本工资" fldid="13" columntypeid="3" class="form-ctr">￥','',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=13,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=22,[FieldName]='调薪前的基本工资',[FieldNO]=13,[ColumnTypeId]=3,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="820" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="13">调薪前的基本工资  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="调薪前的基本工资" fldid="13" columntypeid="3" class="form-ctr">￥',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='6f82de13-4ac2-4acc-9fe7-e2332c28ee5d' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='b6c48b5b-f5ad-4934-b789-11cd4b40ca5b'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(14,'b6c48b5b-f5ad-4934-b789-11cd4b40ca5b',1631,1631,'00000000-0000-0000-0000-000000000000',23,'调薪前的考核工资',14,3,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="821" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="14">调薪前的考核工资  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="调薪前的考核工资" fldid="14" columntypeid="3" class="form-ctr">￥','',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=14,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=23,[FieldName]='调薪前的考核工资',[FieldNO]=14,[ColumnTypeId]=3,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="821" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="14">调薪前的考核工资  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="调薪前的考核工资" fldid="14" columntypeid="3" class="form-ctr">￥',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='b6c48b5b-f5ad-4934-b789-11cd4b40ca5b' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='7dcbed79-b961-4e9b-9fa2-adac6cb0ad0b'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(15,'7dcbed79-b961-4e9b-9fa2-adac6cb0ad0b',1631,1631,'00000000-0000-0000-0000-000000000000',25,'调薪后的基本工资',15,3,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="822" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="15">调薪后的基本工资  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="调薪后的基本工资" fldid="15" columntypeid="3" class="form-ctr">￥','',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=15,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=25,[FieldName]='调薪后的基本工资',[FieldNO]=15,[ColumnTypeId]=3,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="822" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="15">调薪后的基本工资  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="调薪后的基本工资" fldid="15" columntypeid="3" class="form-ctr">￥',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='7dcbed79-b961-4e9b-9fa2-adac6cb0ad0b' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='4fa1ea9e-82aa-46b1-b135-c7bf2ce83a97'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(16,'4fa1ea9e-82aa-46b1-b135-c7bf2ce83a97',1631,1631,'00000000-0000-0000-0000-000000000000',26,'调薪后的考核工资',16,3,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="823" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="16">调薪后的考核工资  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="调薪后的考核工资" fldid="16" columntypeid="3" class="form-ctr">￥','',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=16,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=26,[FieldName]='调薪后的考核工资',[FieldNO]=16,[ColumnTypeId]=3,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="823" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="16">调薪后的考核工资  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="调薪后的考核工资" fldid="16" columntypeid="3" class="form-ctr">￥',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='4fa1ea9e-82aa-46b1-b135-c7bf2ce83a97' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='86047ccb-34ea-465f-b1ee-c34c822d9ffc'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(17,'86047ccb-34ea-465f-b1ee-c34c822d9ffc',1631,1631,'00000000-0000-0000-0000-000000000000',27,'调薪后的岗位',17,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="824" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="17">调薪后的岗位  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="调薪后的岗位" fldid="17" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=17,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=27,[FieldName]='调薪后的岗位',[FieldNO]=17,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="824" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="17">调薪后的岗位  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="调薪后的岗位" fldid="17" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='86047ccb-34ea-465f-b1ee-c34c822d9ffc' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='467b3bb2-75f3-4b77-9ae2-67ac16ed04d1'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(18,'467b3bb2-75f3-4b77-9ae2-67ac16ed04d1',1631,1631,'00000000-0000-0000-0000-000000000000',29,'调薪理由',18,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="825" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="18">调薪理由  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="调薪理由" fldid="18" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=18,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=29,[FieldName]='调薪理由',[FieldNO]=18,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="825" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="18">调薪理由  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="调薪理由" fldid="18" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='467b3bb2-75f3-4b77-9ae2-67ac16ed04d1' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='4b115a4b-a3e4-4392-8890-ea1acd68903e'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(19,'4b115a4b-a3e4-4392-8890-ea1acd68903e',1631,1631,'00000000-0000-0000-0000-000000000000',30,'直属部门意见',19,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="826" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="19">直属部门意见  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="直属部门意见" fldid="19" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=19,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=30,[FieldName]='直属部门意见',[FieldNO]=19,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="826" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="19">直属部门意见  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="直属部门意见" fldid="19" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='4b115a4b-a3e4-4392-8890-ea1acd68903e' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='94e8313f-b8f9-4002-9621-0eed94e3f82e'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(20,'94e8313f-b8f9-4002-9621-0eed94e3f82e',1631,1631,'00000000-0000-0000-0000-000000000000',31,'人力资源部意见',20,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="827" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="20">人力资源部意见  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="人力资源部意见" fldid="20" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=20,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=31,[FieldName]='人力资源部意见',[FieldNO]=20,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="827" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="20">人力资源部意见  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="人力资源部意见" fldid="20" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='94e8313f-b8f9-4002-9621-0eed94e3f82e' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='f0fa636e-a91e-4c37-8a56-397b2d6dcdbc'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(21,'f0fa636e-a91e-4c37-8a56-397b2d6dcdbc',1631,1631,'00000000-0000-0000-0000-000000000000',32,'领导意见',21,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="828" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="21">领导意见  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="领导意见" fldid="21" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=21,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=32,[FieldName]='领导意见',[FieldNO]=21,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="828" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="21">领导意见  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="领导意见" fldid="21" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='f0fa636e-a91e-4c37-8a56-397b2d6dcdbc' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='211ee19a-6104-4ce8-915e-b0d06f280418'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(22,'211ee19a-6104-4ce8-915e-b0d06f280418',1631,1631,'00000000-0000-0000-0000-000000000000',33,'办结意见',22,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="829" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="22">办结意见  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="办结意见" fldid="22" columntypeid="1" class="form-ctr">','</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1631" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="834" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="835" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1631" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="836" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1631" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="837" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1631" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="838" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="839" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',-1,-1,-1,-1,0,'1631,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=22,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=33,[FieldName]='办结意见',[FieldNO]=22,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="829" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="22">办结意见  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1631" fieldname="办结意见" fldid="22" columntypeid="1" class="form-ctr">',[LastHtml]='</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1631" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="834" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="835" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1631" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="836" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1631" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="837" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1631" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="838" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="839" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1631,' where  [FldUId]='211ee19a-6104-4ce8-915e-b0d06f280418' 
      end



Delete from [Dcx_ListReport_Run]  where [EntId]=1631

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=1631  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('5365f226-c713-4947-91be-144e8cce937f','调薪申请',1631,1,'','','<$1631$>select *  from (select row_number() over( order by [LD_Id])as dcx_rowid,[WFState],[WFFlowId],[WFRunId],[WFPrcsId],[WFUserName],[员工编号],[员工姓名],[所在部门],[岗位],[入职日期],[转正日期],[调薪次数],[调薪生效日期],[申请类别],[申请日期],[调薪前的基本工资],[调薪前的考核工资],[调薪后的基本工资],[调薪后的考核工资],[调薪后的岗位],[调薪理由],[直属部门意见],[人力资源部意见],[领导意见],[办结意见],[LD_Id] from 人事_员工调薪申请表  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1631$><$1631:Count$>select count([LD_Id]) from 人事_员工调薪申请表 where {$SearchArea}</$1631:Count$>',1,1,20,'DcxRun.ListR_1631= {"MenuId":2833,"MEntId":1631,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"调薪申请","EntMsg":{"E1631":{"EntId":1631,"EntName":"调薪申请","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":40,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1631*LD_Id*2**2*人事_员工调薪申请表*调薪申请',3,'','2012-12-22 5:16:19',3,'','2013-11-16 20:11:37',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='5365f226-c713-4947-91be-144e8cce937f',[ReportName]='调薪申请',[ModuleId]=1,[StaticHtml]='',[DIYJsCss]='',[LoadingSql]='<$1631$>select *  from (select row_number() over( order by [LD_Id])as dcx_rowid,[WFState],[WFFlowId],[WFRunId],[WFPrcsId],[WFUserName],[员工编号],[员工姓名],[所在部门],[岗位],[入职日期],[转正日期],[调薪次数],[调薪生效日期],[申请类别],[申请日期],[调薪前的基本工资],[调薪前的考核工资],[调薪后的基本工资],[调薪后的考核工资],[调薪后的岗位],[调薪理由],[直属部门意见],[人力资源部意见],[领导意见],[办结意见],[LD_Id] from 人事_员工调薪申请表  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1631$><$1631:Count$>select count([LD_Id]) from 人事_员工调薪申请表 where {$SearchArea}</$1631:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[AutoPublicJs]='DcxRun.ListR_1631= {"MenuId":2833,"MEntId":1631,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"调薪申请","EntMsg":{"E1631":{"EntId":1631,"EntName":"调薪申请","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":40,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1631*LD_Id*2**2*人事_员工调薪申请表*调薪申请',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-22 5:16:19',[EditorId]=3,[Editor]='',[EditTime]='2013-11-16 20:11:37',[AccountId]=1 where  [EntId]=1631 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='282ef31f-1af9-ea8a-b95f-5d9321b74837'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(433,'282ef31f-1af9-ea8a-b95f-5d9321b74837',1631,1631,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="101" entid="1631" style="width: 2600px;" ctrlprex="ListR_" isrple="1"> <li areaid="2889" class="tool-li" style="position: static;">
</li><li areaid="2890" class="tool-li" style="position: static;"><a id="ListR_1631_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1631,''ListR_'');">删   除</a></li>
<li areaid="2891" class="tool-li" style="position: static;"><a id="ListR_1631_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1631,''ListR_'');">导   出</a></li>
<li areaid="2892" class="tool-li" style="position: static;"><a id="ListR_1631_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1631,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1631" style="position: static;">
<a id="ListR_1631_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1631,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1631_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1631,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1631_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1631,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1631_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="102" entid="1631" class="list-head-ul" style="width: 2732px;" ctrlprex="ListR_" isrple="1">
<li areaid="2894" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1631" onclick="javascript:DcxCom.CheckedAll(this,1631,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="2895" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">当前状态 </label></li><li areaid="2896" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">当前办理人 </label></li><li areaid="2897" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">员工编号 </label></li><li areaid="2898" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">员工姓名 </label></li><li areaid="2899" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">所在部门 </label></li><li areaid="2900" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">岗位 </label></li><li areaid="2901" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">入职日期 </label></li><li areaid="2902" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">转正日期 </label></li><li areaid="2903" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调薪次数 </label></li><li areaid="2904" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调薪生效日期 </label></li><li areaid="2905" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请类别 </label></li><li areaid="2906" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请日期 </label></li><li areaid="2907" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调薪前的基本工资 </label></li><li areaid="2908" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调薪前的考核工资 </label></li><li areaid="2909" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调薪后的基本工资 </label></li><li areaid="2910" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调薪后的考核工资 </label></li><li areaid="2911" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调薪后的岗位 </label></li><li areaid="2912" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调薪理由 </label></li><li areaid="2913" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">直属部门意见 </label></li><li areaid="2914" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">人力资源部意见 </label></li><li areaid="2915" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">领导意见 </label></li><li areaid="2916" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">办结意见 </label></li><li areaid="2917" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="办理"><span class="i">办理</span></a></div></li><li areaid="2918" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="2919" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">','',-1,103,-1,-1,1,'1631,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=433,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="101" entid="1631" style="width: 2600px;" ctrlprex="ListR_" isrple="1"> <li areaid="2889" class="tool-li" style="position: static;">
</li><li areaid="2890" class="tool-li" style="position: static;"><a id="ListR_1631_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1631,''ListR_'');">删   除</a></li>
<li areaid="2891" class="tool-li" style="position: static;"><a id="ListR_1631_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1631,''ListR_'');">导   出</a></li>
<li areaid="2892" class="tool-li" style="position: static;"><a id="ListR_1631_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1631,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1631" style="position: static;">
<a id="ListR_1631_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1631,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1631_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1631,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1631_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1631,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1631_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="102" entid="1631" class="list-head-ul" style="width: 2732px;" ctrlprex="ListR_" isrple="1">
<li areaid="2894" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1631" onclick="javascript:DcxCom.CheckedAll(this,1631,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="2895" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">当前状态 </label></li><li areaid="2896" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">当前办理人 </label></li><li areaid="2897" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">员工编号 </label></li><li areaid="2898" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">员工姓名 </label></li><li areaid="2899" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">所在部门 </label></li><li areaid="2900" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">岗位 </label></li><li areaid="2901" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">入职日期 </label></li><li areaid="2902" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">转正日期 </label></li><li areaid="2903" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调薪次数 </label></li><li areaid="2904" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调薪生效日期 </label></li><li areaid="2905" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请类别 </label></li><li areaid="2906" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请日期 </label></li><li areaid="2907" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调薪前的基本工资 </label></li><li areaid="2908" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调薪前的考核工资 </label></li><li areaid="2909" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调薪后的基本工资 </label></li><li areaid="2910" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调薪后的考核工资 </label></li><li areaid="2911" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调薪后的岗位 </label></li><li areaid="2912" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调薪理由 </label></li><li areaid="2913" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">直属部门意见 </label></li><li areaid="2914" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">人力资源部意见 </label></li><li areaid="2915" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">领导意见 </label></li><li areaid="2916" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">办结意见 </label></li><li areaid="2917" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="办理"><span class="i">办理</span></a></div></li><li areaid="2918" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="2919" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1631,' where  [FldUId]='282ef31f-1af9-ea8a-b95f-5d9321b74837' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='bec5e754-cf40-47f0-96d3-3bc3523d13c4'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(154,'bec5e754-cf40-47f0-96d3-3bc3523d13c4',1631,1631,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',2,1,'',2,21,0,'','','','islonly="1" isgroup="1" groupid="103" class="list-body-ul" style="width: 2732px;" isrple="1">
<li areaid="2920" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1631" issyscheck="1" keyvalue="','',-1,103,-1,-1,1,'1631,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=154,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='islonly="1" isgroup="1" groupid="103" class="list-body-ul" style="width: 2732px;" isrple="1">
<li areaid="2920" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1631" issyscheck="1" keyvalue="',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1631,' where  [FldUId]='bec5e754-cf40-47f0-96d3-3bc3523d13c4' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='702b1598-1125-4cc5-93ee-9b1821c8adc8'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'702b1598-1125-4cc5-93ee-9b1821c8adc8',1631,1631,'00000000-0000-0000-0000-000000000000',2,'WFState',3,1,'varchar',2,1,0,'','','','" type="checkbox"></li><li areaid="2921" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowCurWfDlg(this);">
   <span isfield="1" entid="1631" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1631,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=1,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='WFState',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='" type="checkbox"></li><li areaid="2921" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowCurWfDlg(this);">
   <span isfield="1" entid="1631" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1631,' where  [FldUId]='702b1598-1125-4cc5-93ee-9b1821c8adc8' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='bf9332cc-313b-49df-b98c-e33d45f25933'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(384,'bf9332cc-313b-49df-b98c-e33d45f25933',1631,1631,'00000000-0000-0000-0000-000000000000',9,'WFFlowId',4,1,'',1,1,0,'','','','</span>
   </a>
   <span isfield="1" entid="1631" fieldname="WFFlowId" fldid="384" columntypeid="1" class="form-ctr" style="display: none;">','',-1,103,-1,-1,1,'1631,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=384,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=9,[FieldName]='WFFlowId',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   </a>
   <span isfield="1" entid="1631" fieldname="WFFlowId" fldid="384" columntypeid="1" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1631,' where  [FldUId]='bf9332cc-313b-49df-b98c-e33d45f25933' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='08ca3201-fcd6-4d3e-b42f-8b43396b6a47'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(385,'08ca3201-fcd6-4d3e-b42f-8b43396b6a47',1631,1631,'00000000-0000-0000-0000-000000000000',8,'WFRunId',5,1,'',1,1,0,'','','','</span>
   <span isfield="1" entid="1631" fieldname="WFRunId" fldid="385" columntypeid="1" class="form-ctr" style="display: none;">','',-1,103,-1,-1,1,'1631,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=385,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=8,[FieldName]='WFRunId',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   <span isfield="1" entid="1631" fieldname="WFRunId" fldid="385" columntypeid="1" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1631,' where  [FldUId]='08ca3201-fcd6-4d3e-b42f-8b43396b6a47' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='4656815e-ce84-480a-8031-e5177f7becf8'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(386,'4656815e-ce84-480a-8031-e5177f7becf8',1631,1631,'00000000-0000-0000-0000-000000000000',10,'WFPrcsId',6,1,'',1,1,0,'','','','</span>
   <span isfield="1" entid="1631" fieldname="WFPrcsId" fldid="386" columntypeid="1" class="form-ctr" style="display: none;">','',-1,103,-1,-1,1,'1631,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=386,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=10,[FieldName]='WFPrcsId',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   <span isfield="1" entid="1631" fieldname="WFPrcsId" fldid="386" columntypeid="1" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1631,' where  [FldUId]='4656815e-ce84-480a-8031-e5177f7becf8' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='7c3d5c59-84f4-475f-9609-583aa654de9d'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'7c3d5c59-84f4-475f-9609-583aa654de9d',1631,1631,'00000000-0000-0000-0000-000000000000',3,'WFUserName',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2922" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowWfCurUserDlg(this);">
   <span isfield="1" entid="1631" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1631,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=2,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='WFUserName',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2922" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowWfCurUserDlg(this);">
   <span isfield="1" entid="1631" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1631,' where  [FldUId]='7c3d5c59-84f4-475f-9609-583aa654de9d' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='7fd5f5fb-7520-4a34-99e0-77d72b68cd29'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'7fd5f5fb-7520-4a34-99e0-77d72b68cd29',1631,1631,'00000000-0000-0000-0000-000000000000',11,'员工编号',8,1,'varchar',2,1,0,'','','','</span>
   </a>
  </div>
</li><li areaid="2923" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1631" fieldname="员工编号" fldid="3" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1631,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=3,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=11,[FieldName]='员工编号',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   </a>
  </div>
</li><li areaid="2923" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1631" fieldname="员工编号" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1631,' where  [FldUId]='7fd5f5fb-7520-4a34-99e0-77d72b68cd29' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='bf402219-66f2-43fd-8c9f-cea6edc5a157'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'bf402219-66f2-43fd-8c9f-cea6edc5a157',1631,1631,'00000000-0000-0000-0000-000000000000',12,'员工姓名',9,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2924" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1631" fieldname="员工姓名" fldid="4" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1631,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=4,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=12,[FieldName]='员工姓名',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2924" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1631" fieldname="员工姓名" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1631,' where  [FldUId]='bf402219-66f2-43fd-8c9f-cea6edc5a157' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='70ba8388-d8f6-4650-b933-db779063661b'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'70ba8388-d8f6-4650-b933-db779063661b',1631,1631,'00000000-0000-0000-0000-000000000000',13,'所在部门',10,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2925" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1631" fieldname="所在部门" fldid="5" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1631,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=5,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=13,[FieldName]='所在部门',[FieldNO]=10,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2925" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1631" fieldname="所在部门" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1631,' where  [FldUId]='70ba8388-d8f6-4650-b933-db779063661b' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='de9f95c4-37d0-4abf-b670-5e7bcc8fe612'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'de9f95c4-37d0-4abf-b670-5e7bcc8fe612',1631,1631,'00000000-0000-0000-0000-000000000000',15,'岗位',11,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2926" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1631" fieldname="岗位" fldid="6" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1631,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=6,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=15,[FieldName]='岗位',[FieldNO]=11,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2926" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1631" fieldname="岗位" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1631,' where  [FldUId]='de9f95c4-37d0-4abf-b670-5e7bcc8fe612' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='690ce896-2272-4d18-a972-21e26881940b'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'690ce896-2272-4d18-a972-21e26881940b',1631,1631,'00000000-0000-0000-0000-000000000000',16,'入职日期',12,4,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2927" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1631" fieldname="入职日期" fldid="7" columntypeid="4" class="form-ctr">','',-1,103,-1,-1,1,'1631,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=7,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=16,[FieldName]='入职日期',[FieldNO]=12,[ColumnTypeId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2927" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1631" fieldname="入职日期" fldid="7" columntypeid="4" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1631,' where  [FldUId]='690ce896-2272-4d18-a972-21e26881940b' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='dbd39d14-9bf7-4c0e-852a-6c9b6f7c1613'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'dbd39d14-9bf7-4c0e-852a-6c9b6f7c1613',1631,1631,'00000000-0000-0000-0000-000000000000',17,'转正日期',13,4,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2928" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1631" fieldname="转正日期" fldid="8" columntypeid="4" class="form-ctr">','',-1,103,-1,-1,1,'1631,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=8,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=17,[FieldName]='转正日期',[FieldNO]=13,[ColumnTypeId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2928" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1631" fieldname="转正日期" fldid="8" columntypeid="4" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1631,' where  [FldUId]='dbd39d14-9bf7-4c0e-852a-6c9b6f7c1613' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='21de663f-29e4-4838-9720-3ed5d61f50cc'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'21de663f-29e4-4838-9720-3ed5d61f50cc',1631,1631,'00000000-0000-0000-0000-000000000000',18,'调薪次数',14,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2929" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1631" fieldname="调薪次数" fldid="9" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1631,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=9,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=18,[FieldName]='调薪次数',[FieldNO]=14,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2929" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1631" fieldname="调薪次数" fldid="9" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1631,' where  [FldUId]='21de663f-29e4-4838-9720-3ed5d61f50cc' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='b357737c-94a4-446b-8fde-697857ea0b62'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'b357737c-94a4-446b-8fde-697857ea0b62',1631,1631,'00000000-0000-0000-0000-000000000000',19,'调薪生效日期',15,4,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2930" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1631" fieldname="调薪生效日期" fldid="10" columntypeid="4" class="form-ctr">','',-1,103,-1,-1,1,'1631,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=10,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=19,[FieldName]='调薪生效日期',[FieldNO]=15,[ColumnTypeId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2930" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1631" fieldname="调薪生效日期" fldid="10" columntypeid="4" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1631,' where  [FldUId]='b357737c-94a4-446b-8fde-697857ea0b62' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='21443f53-9247-4355-b187-e11711fbe872'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'21443f53-9247-4355-b187-e11711fbe872',1631,1631,'00000000-0000-0000-0000-000000000000',20,'申请类别',16,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2931" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1631" fieldname="申请类别" fldid="11" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1631,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=11,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=20,[FieldName]='申请类别',[FieldNO]=16,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2931" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1631" fieldname="申请类别" fldid="11" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1631,' where  [FldUId]='21443f53-9247-4355-b187-e11711fbe872' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='c499ff7b-a65c-4dac-b0fe-bbbf921065e9'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(12,'c499ff7b-a65c-4dac-b0fe-bbbf921065e9',1631,1631,'00000000-0000-0000-0000-000000000000',21,'申请日期',17,4,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2932" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1631" fieldname="申请日期" fldid="12" columntypeid="4" class="form-ctr">','',-1,103,-1,-1,1,'1631,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=12,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=21,[FieldName]='申请日期',[FieldNO]=17,[ColumnTypeId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2932" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1631" fieldname="申请日期" fldid="12" columntypeid="4" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1631,' where  [FldUId]='c499ff7b-a65c-4dac-b0fe-bbbf921065e9' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='4ded7584-1d42-458d-a1bf-5d9ffa3d464b'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(13,'4ded7584-1d42-458d-a1bf-5d9ffa3d464b',1631,1631,'00000000-0000-0000-0000-000000000000',22,'调薪前的基本工资',18,3,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2933" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1631" fieldname="调薪前的基本工资" fldid="13" columntypeid="3" class="form-ctr">￥','',-1,103,-1,-1,1,'1631,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=13,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=22,[FieldName]='调薪前的基本工资',[FieldNO]=18,[ColumnTypeId]=3,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2933" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1631" fieldname="调薪前的基本工资" fldid="13" columntypeid="3" class="form-ctr">￥',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1631,' where  [FldUId]='4ded7584-1d42-458d-a1bf-5d9ffa3d464b' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='bc57f2f6-e753-42bb-b9d6-8682f1e943c7'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(14,'bc57f2f6-e753-42bb-b9d6-8682f1e943c7',1631,1631,'00000000-0000-0000-0000-000000000000',23,'调薪前的考核工资',19,3,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2934" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1631" fieldname="调薪前的考核工资" fldid="14" columntypeid="3" class="form-ctr">￥','',-1,103,-1,-1,1,'1631,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=14,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=23,[FieldName]='调薪前的考核工资',[FieldNO]=19,[ColumnTypeId]=3,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2934" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1631" fieldname="调薪前的考核工资" fldid="14" columntypeid="3" class="form-ctr">￥',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1631,' where  [FldUId]='bc57f2f6-e753-42bb-b9d6-8682f1e943c7' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='527ba499-90ac-44f5-a1fb-1a899cd7e4f1'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(15,'527ba499-90ac-44f5-a1fb-1a899cd7e4f1',1631,1631,'00000000-0000-0000-0000-000000000000',25,'调薪后的基本工资',20,3,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2935" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1631" fieldname="调薪后的基本工资" fldid="15" columntypeid="3" class="form-ctr">￥','',-1,103,-1,-1,1,'1631,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=15,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=25,[FieldName]='调薪后的基本工资',[FieldNO]=20,[ColumnTypeId]=3,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2935" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1631" fieldname="调薪后的基本工资" fldid="15" columntypeid="3" class="form-ctr">￥',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1631,' where  [FldUId]='527ba499-90ac-44f5-a1fb-1a899cd7e4f1' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='b0533b50-0f5b-4f9a-87c0-0967261503db'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(16,'b0533b50-0f5b-4f9a-87c0-0967261503db',1631,1631,'00000000-0000-0000-0000-000000000000',26,'调薪后的考核工资',21,3,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2936" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1631" fieldname="调薪后的考核工资" fldid="16" columntypeid="3" class="form-ctr">￥','',-1,103,-1,-1,1,'1631,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=16,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=26,[FieldName]='调薪后的考核工资',[FieldNO]=21,[ColumnTypeId]=3,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2936" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1631" fieldname="调薪后的考核工资" fldid="16" columntypeid="3" class="form-ctr">￥',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1631,' where  [FldUId]='b0533b50-0f5b-4f9a-87c0-0967261503db' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='6ecaab18-cb53-44ce-be0b-32a498e87cce'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(17,'6ecaab18-cb53-44ce-be0b-32a498e87cce',1631,1631,'00000000-0000-0000-0000-000000000000',27,'调薪后的岗位',22,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2937" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1631" fieldname="调薪后的岗位" fldid="17" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1631,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=17,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=27,[FieldName]='调薪后的岗位',[FieldNO]=22,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2937" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1631" fieldname="调薪后的岗位" fldid="17" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1631,' where  [FldUId]='6ecaab18-cb53-44ce-be0b-32a498e87cce' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='b54d3d3c-38cd-4123-a802-9bd722f9d901'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(18,'b54d3d3c-38cd-4123-a802-9bd722f9d901',1631,1631,'00000000-0000-0000-0000-000000000000',29,'调薪理由',23,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2938" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1631" fieldname="调薪理由" fldid="18" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1631,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=18,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=29,[FieldName]='调薪理由',[FieldNO]=23,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2938" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1631" fieldname="调薪理由" fldid="18" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1631,' where  [FldUId]='b54d3d3c-38cd-4123-a802-9bd722f9d901' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='208031fc-5ef5-4cdb-8e05-940b0311c074'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(19,'208031fc-5ef5-4cdb-8e05-940b0311c074',1631,1631,'00000000-0000-0000-0000-000000000000',30,'直属部门意见',24,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2939" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1631" fieldname="直属部门意见" fldid="19" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1631,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=19,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=30,[FieldName]='直属部门意见',[FieldNO]=24,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2939" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1631" fieldname="直属部门意见" fldid="19" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1631,' where  [FldUId]='208031fc-5ef5-4cdb-8e05-940b0311c074' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='378aab97-61dd-44c3-862f-6b8d960c0a2c'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(20,'378aab97-61dd-44c3-862f-6b8d960c0a2c',1631,1631,'00000000-0000-0000-0000-000000000000',31,'人力资源部意见',25,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2940" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1631" fieldname="人力资源部意见" fldid="20" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1631,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=20,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=31,[FieldName]='人力资源部意见',[FieldNO]=25,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2940" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1631" fieldname="人力资源部意见" fldid="20" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1631,' where  [FldUId]='378aab97-61dd-44c3-862f-6b8d960c0a2c' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='41fa3f58-d534-42d4-9b5e-e8db242474ab'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(21,'41fa3f58-d534-42d4-9b5e-e8db242474ab',1631,1631,'00000000-0000-0000-0000-000000000000',32,'领导意见',26,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2941" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1631" fieldname="领导意见" fldid="21" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1631,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=21,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=32,[FieldName]='领导意见',[FieldNO]=26,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2941" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1631" fieldname="领导意见" fldid="21" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1631,' where  [FldUId]='41fa3f58-d534-42d4-9b5e-e8db242474ab' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='503e3e8e-7af4-4dca-a339-37b41f0b7f58'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(22,'503e3e8e-7af4-4dca-a339-37b41f0b7f58',1631,1631,'00000000-0000-0000-0000-000000000000',33,'办结意见',27,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2942" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1631" fieldname="办结意见" fldid="22" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1631,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=22,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=33,[FieldName]='办结意见',[FieldNO]=27,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2942" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1631" fieldname="办结意见" fldid="22" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1631,' where  [FldUId]='503e3e8e-7af4-4dca-a339-37b41f0b7f58' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='2b11809d-a1a7-4a40-a0b1-5c38491ff770'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(155,'2b11809d-a1a7-4a40-a0b1-5c38491ff770',1631,1631,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',28,1,'',2,21,0,'','','','</span>
  </div>
</li><li areaid="2943" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,1631,''ListR_'',''','',-1,103,-1,-1,1,'1631,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=155,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=28,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2943" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,1631,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1631,' where  [FldUId]='2b11809d-a1a7-4a40-a0b1-5c38491ff770' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='409b79be-68a8-43b0-a6c7-b5d7ee36d41c'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(156,'409b79be-68a8-43b0-a6c7-b5d7ee36d41c',1631,1631,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',29,1,'',2,21,0,'','','',''',null,1040,480);">
<span class="i">办理</span></a></div>
</li><li areaid="2944" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1631,''ListR_'',''','',-1,103,-1,-1,1,'1631,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=156,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=29,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">办理</span></a></div>
</li><li areaid="2944" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1631,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1631,' where  [FldUId]='409b79be-68a8-43b0-a6c7-b5d7ee36d41c' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='b8f09a28-854b-4227-a4b1-ccdaa4d63fe3'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(157,'b8f09a28-854b-4227-a4b1-ccdaa4d63fe3',1631,1631,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',30,1,'',2,21,0,'','','',''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="2945" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,1631,''ListR_'',''','',-1,103,-1,-1,1,'1631,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=157,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=30,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="2945" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,1631,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1631,' where  [FldUId]='b8f09a28-854b-4227-a4b1-ccdaa4d63fe3' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='911dc4ff-ba6c-1e7d-0148-a6a567e122f8'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(434,'911dc4ff-ba6c-1e7d-0148-a6a567e122f8',1631,1631,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',31,-1,'varchar',2,13,0,'','','',''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>','</div>
</div>
<!-- 结束 --></div>',-1,103,-1,-1,1,'1631,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=434,[Report_EntId]=1631,[EntId]=1631,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=31,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>',[LastHtml]='</div>
</div>
<!-- 结束 --></div>',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1631,' where  [FldUId]='911dc4ff-ba6c-1e7d-0148-a6a567e122f8' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=1033

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=1033  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(1033,null,'人事_员工调薪申请表','人事_员工调薪申请表',0,0,0,0,0,1,4,1,3,'admin','2013-12-15 17:32:51',3,'admin','2013-12-15 17:32:51',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='人事_员工调薪申请表',[DBTableByName]='人事_员工调薪申请表',[IsForbid]=0,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=1,[SystemId]=4,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:51',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:51',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=1033 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1033  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7236,1,4,1033,'int',1,1,1,'人事_员工调薪申请表','LD_Id','LD_Id','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工调薪申请表',[FieldName]='LD_Id',[FieldByname]='LD_Id',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1033  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1033  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7237,2,4,1033,'varchar',2,1,1,'人事_员工调薪申请表','WFState','WFState','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工调薪申请表',[FieldName]='WFState',[FieldByname]='WFState',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1033  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1033  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7238,3,4,1033,'varchar',2,1,1,'人事_员工调薪申请表','WFUserName','WFUserName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工调薪申请表',[FieldName]='WFUserName',[FieldByname]='WFUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1033  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1033  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7239,4,4,1033,'bit',4,1,1,'人事_员工调薪申请表','WFIsFinish','WFIsFinish','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工调薪申请表',[FieldName]='WFIsFinish',[FieldByname]='WFIsFinish',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1033  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1033  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7240,5,4,1033,'bit',4,1,1,'人事_员工调薪申请表','WFIsStart','WFIsStart','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工调薪申请表',[FieldName]='WFIsStart',[FieldByname]='WFIsStart',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1033  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1033  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7241,6,4,1033,'varchar',2,1,1,'人事_员工调薪申请表','WFAllUser','WFAllUser','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工调薪申请表',[FieldName]='WFAllUser',[FieldByname]='WFAllUser',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1033  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1033  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7242,7,4,1033,'varchar',2,1,1,'人事_员工调薪申请表','WFOpinion','WFOpinion','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工调薪申请表',[FieldName]='WFOpinion',[FieldByname]='WFOpinion',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1033  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1033  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7243,8,4,1033,'int',1,1,1,'人事_员工调薪申请表','WFRunId','WFRunId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工调薪申请表',[FieldName]='WFRunId',[FieldByname]='WFRunId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1033  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1033  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7244,9,4,1033,'int',1,1,1,'人事_员工调薪申请表','WFFlowId','WFFlowId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工调薪申请表',[FieldName]='WFFlowId',[FieldByname]='WFFlowId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1033  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1033  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7245,10,4,1033,'int',1,1,1,'人事_员工调薪申请表','WFPrcsId','WFPrcsId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工调薪申请表',[FieldName]='WFPrcsId',[FieldByname]='WFPrcsId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1033  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1033  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7246,11,4,1033,'varchar',2,1,1,'人事_员工调薪申请表','员工编号','员工编号','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工调薪申请表',[FieldName]='员工编号',[FieldByname]='员工编号',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1033  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1033  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7247,12,4,1033,'varchar',2,1,1,'人事_员工调薪申请表','员工姓名','员工姓名','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工调薪申请表',[FieldName]='员工姓名',[FieldByname]='员工姓名',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1033  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1033  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7248,13,4,1033,'varchar',2,1,1,'人事_员工调薪申请表','所在部门','所在部门','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工调薪申请表',[FieldName]='所在部门',[FieldByname]='所在部门',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1033  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1033  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7249,14,4,1033,'varchar',2,1,1,'人事_员工调薪申请表','性别','性别','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工调薪申请表',[FieldName]='性别',[FieldByname]='性别',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1033  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1033  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7250,15,4,1033,'varchar',2,1,1,'人事_员工调薪申请表','岗位','岗位','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工调薪申请表',[FieldName]='岗位',[FieldByname]='岗位',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1033  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1033  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7251,16,4,1033,'datetime',3,1,1,'人事_员工调薪申请表','入职日期','入职日期','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工调薪申请表',[FieldName]='入职日期',[FieldByname]='入职日期',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1033  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1033  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7252,17,4,1033,'datetime',3,1,1,'人事_员工调薪申请表','转正日期','转正日期','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工调薪申请表',[FieldName]='转正日期',[FieldByname]='转正日期',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1033  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1033  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7253,18,4,1033,'int',1,1,1,'人事_员工调薪申请表','调薪次数','调薪次数','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工调薪申请表',[FieldName]='调薪次数',[FieldByname]='调薪次数',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1033  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1033  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7254,19,4,1033,'datetime',3,1,1,'人事_员工调薪申请表','调薪生效日期','调薪生效日期','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工调薪申请表',[FieldName]='调薪生效日期',[FieldByname]='调薪生效日期',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1033  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1033  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7255,20,4,1033,'varchar',2,1,1,'人事_员工调薪申请表','申请类别','申请类别','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工调薪申请表',[FieldName]='申请类别',[FieldByname]='申请类别',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1033  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1033  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7256,21,4,1033,'datetime',3,1,1,'人事_员工调薪申请表','申请日期','申请日期','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工调薪申请表',[FieldName]='申请日期',[FieldByname]='申请日期',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1033  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1033  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7257,22,4,1033,'money',5,1,1,'人事_员工调薪申请表','调薪前的基本工资','调薪前的基本工资','',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工调薪申请表',[FieldName]='调薪前的基本工资',[FieldByname]='调薪前的基本工资',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1033  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1033  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7258,23,4,1033,'money',5,1,1,'人事_员工调薪申请表','调薪前的考核工资','调薪前的考核工资','',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工调薪申请表',[FieldName]='调薪前的考核工资',[FieldByname]='调薪前的考核工资',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1033  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1033  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7259,24,4,1033,'varchar',2,1,1,'人事_员工调薪申请表','调薪前的工资级别','调薪前的工资级别','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工调薪申请表',[FieldName]='调薪前的工资级别',[FieldByname]='调薪前的工资级别',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1033  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1033  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7260,25,4,1033,'money',5,1,1,'人事_员工调薪申请表','调薪后的基本工资','调薪后的基本工资','',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工调薪申请表',[FieldName]='调薪后的基本工资',[FieldByname]='调薪后的基本工资',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1033  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1033  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7261,26,4,1033,'money',5,1,1,'人事_员工调薪申请表','调薪后的考核工资','调薪后的考核工资','',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工调薪申请表',[FieldName]='调薪后的考核工资',[FieldByname]='调薪后的考核工资',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1033  and  [FieldId]=26 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1033  and  [FieldId]=27  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7262,27,4,1033,'varchar',2,1,1,'人事_员工调薪申请表','调薪后的岗位','调薪后的岗位','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工调薪申请表',[FieldName]='调薪后的岗位',[FieldByname]='调薪后的岗位',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1033  and  [FieldId]=27 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1033  and  [FieldId]=28  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7263,28,4,1033,'varchar',2,1,1,'人事_员工调薪申请表','调薪后的工资级别','调薪后的工资级别','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工调薪申请表',[FieldName]='调薪后的工资级别',[FieldByname]='调薪后的工资级别',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1033  and  [FieldId]=28 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1033  and  [FieldId]=29  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7264,29,4,1033,'varchar',2,1,1,'人事_员工调薪申请表','调薪理由','调薪理由','',0,0,1,5000,5000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工调薪申请表',[FieldName]='调薪理由',[FieldByname]='调薪理由',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=5000,[Precision]=5000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1033  and  [FieldId]=29 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1033  and  [FieldId]=30  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7265,30,4,1033,'varchar',2,1,1,'人事_员工调薪申请表','直属部门意见','直属部门意见','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工调薪申请表',[FieldName]='直属部门意见',[FieldByname]='直属部门意见',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1033  and  [FieldId]=30 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1033  and  [FieldId]=31  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7266,31,4,1033,'varchar',2,1,1,'人事_员工调薪申请表','人力资源部意见','人力资源部意见','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工调薪申请表',[FieldName]='人力资源部意见',[FieldByname]='人力资源部意见',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1033  and  [FieldId]=31 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1033  and  [FieldId]=32  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7267,32,4,1033,'varchar',2,1,1,'人事_员工调薪申请表','领导意见','领导意见','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工调薪申请表',[FieldName]='领导意见',[FieldByname]='领导意见',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1033  and  [FieldId]=32 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1033  and  [FieldId]=33  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7268,33,4,1033,'varchar',2,1,1,'人事_员工调薪申请表','办结意见','办结意见','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工调薪申请表',[FieldName]='办结意见',[FieldByname]='办结意见',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1033  and  [FieldId]=33 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--WF_FlowType

     SET IDENTITY_INSERT [WF_FlowType] ON 
      if (select count(1) from [WF_FlowType] where  [FlowId]=40  )<1 
      begin 
           Insert into [WF_FlowType] ([FlowId],[FlowName],[FlowNo],[SortId],[EntId],[EntName],[AutoName],[ManageUsers],[ManageNames],[QueryUsers],[QueryNames],[CanQueryRoles],[CanQueryRolesId],[CanManageRoles],[CanManageRolesId],[CanStartUsers],[CanStartNames],[CanStartRoles],[CanStartRolesId],[AttachMaxSize],[FlowAttach],[IsPigeonhole],[PigeonholedSQL],[IsFreeFlow],[QueryItem],[LaunchIsOpen],[FormUrl],[BrowseUrl],[ListUrl],[Detail],[CreatorId],[Creator],[CreateTime],[EditTime],[Editor],[EditorId],[AccountId])values(40,'员工调薪申请',16,25,1631,'调薪申请',null,'admin','admin','admin','admin','系统管理员','3','系统管理员','3',null,null,'Public','1',1,1,0,'',null,null,null,null,null,null,'员工薪资调整呈批',0,'admin','2013-11-30 1:06:40',null,null,null,1)
      end
      else 
      begin 
           update [WF_FlowType] set [FlowName]='员工调薪申请',[FlowNo]=16,[SortId]=25,[EntId]=1631,[EntName]='调薪申请',[AutoName]=null,[ManageUsers]='admin',[ManageNames]='admin',[QueryUsers]='admin',[QueryNames]='admin',[CanQueryRoles]='系统管理员',[CanQueryRolesId]='3',[CanManageRoles]='系统管理员',[CanManageRolesId]='3',[CanStartUsers]=null,[CanStartNames]=null,[CanStartRoles]='Public',[CanStartRolesId]='1',[AttachMaxSize]=1,[FlowAttach]=1,[IsPigeonhole]=0,[PigeonholedSQL]='',[IsFreeFlow]=null,[QueryItem]=null,[LaunchIsOpen]=null,[FormUrl]=null,[BrowseUrl]=null,[ListUrl]=null,[Detail]='员工薪资调整呈批',[CreatorId]=0,[Creator]='admin',[CreateTime]='2013-11-30 1:06:40',[EditTime]=null,[Editor]=null,[EditorId]=null,[AccountId]=1 where  [FlowId]=40 
      end

     SET IDENTITY_INSERT [WF_FlowType] OFF 



Delete from [WF_FlowNode]  where isnull([FlowId],0)=40 

--WF_FlowNode

     SET IDENTITY_INSERT [WF_FlowNode] ON 
      if (select count(1) from [WF_FlowNode] where  [NodeId]=138  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(138,40,'提交申请',1,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','230',0,1,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','',null,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'2689,2690,2691,2692,2697,2698,2699,2700,2701,2702,2703,2704,2705,2693,2694,2695,2696',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=40,[NodeName]='提交申请',[Step]=1,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='230',[AllowLastNodeBoss]=0,[AllowWorkCreator]=1,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='2689,2690,2691,2692,2697,2698,2699,2700,2701,2702,2703,2704,2705,2693,2694,2695,2696',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=138 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=230  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(230,40,'部门领导审核',2,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','',0,1,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',null,null,0,0,null,0,0,null,null,null,0,0,0,null,null,null,0,'2706',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=40,[NodeName]='部门领导审核',[Step]=2,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='',[AllowLastNodeBoss]=0,[AllowWorkCreator]=1,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]=null,[TriggerAfter]=null,[CanReject]=0,[CanPigeonhole]=0,[PigeonholedSQL]=null,[Pointx]=0,[Pointy]=0,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=0,[ToNextType]=0,[ArriveType]=0,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=0,[PrcsItem]='2706',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=230 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=345  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(345,40,'人力资源中心审核',3,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','346,347',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','',null,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'2707',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=40,[NodeName]='人力资源中心审核',[Step]=3,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='346,347',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='2707',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=345 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=346  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(346,40,'总经理审批',4,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','347',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','',null,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'2708',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=40,[NodeName]='总经理审批',[Step]=4,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='347',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='2708',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=346 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=347  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(347,40,'人力资源部办结',5,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','348,478',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','<$462:Begin$>
		--流出到<申请成功，通知申请人>节点时 

		
update 人事_员工调薪申请表  set WFIsFinish=1,WFIsStart=1 where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''
Update   工资_员工档案  Set   [岗位级别]= @调薪后的工资级别,  [员工岗位]=@调薪后的岗位 ,  [调薪日期]= @申请调薪时间, [基本工资]=@调薪后的基本工资, [月考核工资]=@调薪后的考核工资 where     员工编号= @员工编号

		</$462:End$>',null,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'2709',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=40,[NodeName]='人力资源部办结',[Step]=5,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='348,478',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='<$462:Begin$>
		--流出到<申请成功，通知申请人>节点时 

		
update 人事_员工调薪申请表  set WFIsFinish=1,WFIsStart=1 where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''
Update   工资_员工档案  Set   [岗位级别]= @调薪后的工资级别,  [员工岗位]=@调薪后的岗位 ,  [调薪日期]= @申请调薪时间, [基本工资]=@调薪后的基本工资, [月考核工资]=@调薪后的考核工资 where     员工编号= @员工编号

		</$462:End$>',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='2709',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=347 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=348  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(348,40,'申请失败，通知申请人',6,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','-1',0,1,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','<$462:Begin$>
		--流出到<结束>节点时 

		
update  人事_员工调薪申请表  set WFIsFinish=1,WFIsStart=0 where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''

		</$462:End$>',null,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=40,[NodeName]='申请失败，通知申请人',[Step]=6,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='-1',[AllowLastNodeBoss]=0,[AllowWorkCreator]=1,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='<$462:Begin$>
		--流出到<结束>节点时 

		
update  人事_员工调薪申请表  set WFIsFinish=1,WFIsStart=0 where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''

		</$462:End$>',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=348 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=478  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(478,40,'申请成功，通知申请人',7,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','-1',0,1,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','<$462:Begin$>
		--流出到<结束>节点时 

		
update 人事_员工调薪申请表  set WFIsFinish=1,WFIsStart=1 where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''

		</$462:End$>',null,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=40,[NodeName]='申请成功，通知申请人',[Step]=7,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='-1',[AllowLastNodeBoss]=0,[AllowWorkCreator]=1,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='<$462:Begin$>
		--流出到<结束>节点时 

		
update 人事_员工调薪申请表  set WFIsFinish=1,WFIsStart=1 where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''

		</$462:End$>',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=478 
      end

     SET IDENTITY_INSERT [WF_FlowNode] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=1447  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1447,40,138,1631,'调薪申请',2689,'员工编号','员工编号','员工调薪申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=40,[NodeId]=138,[EntId]=1631,[EntName]='调薪申请',[FldId]=2689,[FieldName]='员工编号',[CtrlByName]='员工编号',[FlowName]='员工调薪申请',[TypeId]=1 where  [Id]=1447 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1448  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1448,40,138,1631,'调薪申请',2690,'员工姓名','员工姓名','员工调薪申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=40,[NodeId]=138,[EntId]=1631,[EntName]='调薪申请',[FldId]=2690,[FieldName]='员工姓名',[CtrlByName]='员工姓名',[FlowName]='员工调薪申请',[TypeId]=1 where  [Id]=1448 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1449  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1449,40,138,1631,'调薪申请',2691,'所在部门','所在部门','员工调薪申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=40,[NodeId]=138,[EntId]=1631,[EntName]='调薪申请',[FldId]=2691,[FieldName]='所在部门',[CtrlByName]='所在部门',[FlowName]='员工调薪申请',[TypeId]=1 where  [Id]=1449 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1450  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1450,40,138,1631,'调薪申请',2692,'性别','性别','员工调薪申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=40,[NodeId]=138,[EntId]=1631,[EntName]='调薪申请',[FldId]=2692,[FieldName]='性别',[CtrlByName]='性别',[FlowName]='员工调薪申请',[TypeId]=1 where  [Id]=1450 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1451  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1451,40,138,1631,'调薪申请',2697,'调薪生效日期','调薪生效日期','员工调薪申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=40,[NodeId]=138,[EntId]=1631,[EntName]='调薪申请',[FldId]=2697,[FieldName]='调薪生效日期',[CtrlByName]='调薪生效日期',[FlowName]='员工调薪申请',[TypeId]=1 where  [Id]=1451 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1452  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1452,40,138,1631,'调薪申请',2698,'申请类别','申请类别','员工调薪申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=40,[NodeId]=138,[EntId]=1631,[EntName]='调薪申请',[FldId]=2698,[FieldName]='申请类别',[CtrlByName]='申请类别',[FlowName]='员工调薪申请',[TypeId]=1 where  [Id]=1452 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1453  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1453,40,138,1631,'调薪申请',2699,'申请日期','申请日期','员工调薪申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=40,[NodeId]=138,[EntId]=1631,[EntName]='调薪申请',[FldId]=2699,[FieldName]='申请日期',[CtrlByName]='申请日期',[FlowName]='员工调薪申请',[TypeId]=1 where  [Id]=1453 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1454  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1454,40,138,1631,'调薪申请',2700,'调薪前的基本工资','调薪前的基本工资','员工调薪申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=40,[NodeId]=138,[EntId]=1631,[EntName]='调薪申请',[FldId]=2700,[FieldName]='调薪前的基本工资',[CtrlByName]='调薪前的基本工资',[FlowName]='员工调薪申请',[TypeId]=1 where  [Id]=1454 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1455  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1455,40,138,1631,'调薪申请',2701,'调薪前的考核工资','调薪前的考核工资','员工调薪申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=40,[NodeId]=138,[EntId]=1631,[EntName]='调薪申请',[FldId]=2701,[FieldName]='调薪前的考核工资',[CtrlByName]='调薪前的考核工资',[FlowName]='员工调薪申请',[TypeId]=1 where  [Id]=1455 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1456  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1456,40,138,1631,'调薪申请',2702,'调薪后的基本工资','调薪后的基本工资','员工调薪申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=40,[NodeId]=138,[EntId]=1631,[EntName]='调薪申请',[FldId]=2702,[FieldName]='调薪后的基本工资',[CtrlByName]='调薪后的基本工资',[FlowName]='员工调薪申请',[TypeId]=1 where  [Id]=1456 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1457  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1457,40,138,1631,'调薪申请',2703,'调薪后的考核工资','调薪后的考核工资','员工调薪申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=40,[NodeId]=138,[EntId]=1631,[EntName]='调薪申请',[FldId]=2703,[FieldName]='调薪后的考核工资',[CtrlByName]='调薪后的考核工资',[FlowName]='员工调薪申请',[TypeId]=1 where  [Id]=1457 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1458  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1458,40,138,1631,'调薪申请',2704,'调薪后的岗位','调薪后的岗位','员工调薪申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=40,[NodeId]=138,[EntId]=1631,[EntName]='调薪申请',[FldId]=2704,[FieldName]='调薪后的岗位',[CtrlByName]='调薪后的岗位',[FlowName]='员工调薪申请',[TypeId]=1 where  [Id]=1458 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1459  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1459,40,138,1631,'调薪申请',2705,'调薪理由','调薪理由','员工调薪申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=40,[NodeId]=138,[EntId]=1631,[EntName]='调薪申请',[FldId]=2705,[FieldName]='调薪理由',[CtrlByName]='调薪理由',[FlowName]='员工调薪申请',[TypeId]=1 where  [Id]=1459 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1460  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1460,40,138,1631,'调薪申请',2693,'岗位','岗位','员工调薪申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=40,[NodeId]=138,[EntId]=1631,[EntName]='调薪申请',[FldId]=2693,[FieldName]='岗位',[CtrlByName]='岗位',[FlowName]='员工调薪申请',[TypeId]=1 where  [Id]=1460 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1461  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1461,40,138,1631,'调薪申请',2694,'入职日期','入职日期','员工调薪申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=40,[NodeId]=138,[EntId]=1631,[EntName]='调薪申请',[FldId]=2694,[FieldName]='入职日期',[CtrlByName]='入职日期',[FlowName]='员工调薪申请',[TypeId]=1 where  [Id]=1461 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1462  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1462,40,138,1631,'调薪申请',2695,'转正日期','转正日期','员工调薪申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=40,[NodeId]=138,[EntId]=1631,[EntName]='调薪申请',[FldId]=2695,[FieldName]='转正日期',[CtrlByName]='转正日期',[FlowName]='员工调薪申请',[TypeId]=1 where  [Id]=1462 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1463  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1463,40,138,1631,'调薪申请',2696,'调薪次数','调薪次数','员工调薪申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=40,[NodeId]=138,[EntId]=1631,[EntName]='调薪申请',[FldId]=2696,[FieldName]='调薪次数',[CtrlByName]='调薪次数',[FlowName]='员工调薪申请',[TypeId]=1 where  [Id]=1463 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=1464  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1464,40,230,1631,'调薪申请',2706,'直属部门意见','直属部门意见','员工调薪申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=40,[NodeId]=230,[EntId]=1631,[EntName]='调薪申请',[FldId]=2706,[FieldName]='直属部门意见',[CtrlByName]='直属部门意见',[FlowName]='员工调薪申请',[TypeId]=1 where  [Id]=1464 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_NodeCondition

     SET IDENTITY_INSERT [WF_NodeCondition] ON 
      if (select count(1) from [WF_NodeCondition] where  [Id]=41  )<1 
      begin 
           Insert into [WF_NodeCondition] ([Id],[NodeId],[NodeName],[FlowId],[FlowName],[InOutType],[FieldName],[ConditionRelation],[CompareType],[DataType],[CompareValue],[SQLExpression],[PromptContent])values(41,230,'部门领导审核',40,'员工调薪申请','出','人事_员工调薪申请表.[岗位]','and','开头是','varchar','3333','[岗位] .indexOf(''3333'')==0','3333')
      end
      else 
      begin 
           update [WF_NodeCondition] set [NodeId]=230,[NodeName]='部门领导审核',[FlowId]=40,[FlowName]='员工调薪申请',[InOutType]='出',[FieldName]='人事_员工调薪申请表.[岗位]',[ConditionRelation]='and',[CompareType]='开头是',[DataType]='varchar',[CompareValue]='3333',[SQLExpression]='[岗位] .indexOf(''3333'')==0',[PromptContent]='3333' where  [Id]=41 
      end

     SET IDENTITY_INSERT [WF_NodeCondition] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=1465  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1465,40,345,1631,'调薪申请',2707,'人力资源部意见','人力资源部意见','员工调薪申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=40,[NodeId]=345,[EntId]=1631,[EntName]='调薪申请',[FldId]=2707,[FieldName]='人力资源部意见',[CtrlByName]='人力资源部意见',[FlowName]='员工调薪申请',[TypeId]=1 where  [Id]=1465 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=1466  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1466,40,346,1631,'调薪申请',2708,'领导意见','领导意见','员工调薪申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=40,[NodeId]=346,[EntId]=1631,[EntName]='调薪申请',[FldId]=2708,[FieldName]='领导意见',[CtrlByName]='领导意见',[FlowName]='员工调薪申请',[TypeId]=1 where  [Id]=1466 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=1467  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1467,40,347,1631,'调薪申请',2709,'办结意见','办结意见','员工调薪申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=40,[NodeId]=347,[EntId]=1631,[EntName]='调薪申请',[FldId]=2709,[FieldName]='办结意见',[CtrlByName]='办结意见',[FlowName]='员工调薪申请',[TypeId]=1 where  [Id]=1467 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=2834  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2834,'3b1b3786-a13d-4710-920f-5a87b3823661','<font color=red>加班申请</font>',2905,'/Template/default/ListReport/ListReport_Tree001.aspx',1,'/images/default.gif','/images/default.gif',2,'',0,0,'',4,0,4,1,1,1,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='3b1b3786-a13d-4710-920f-5a87b3823661',[MenuName]='<font color=red>加班申请</font>',[ParentId]=2905,[ProPath]='/Template/default/ListReport/ListReport_Tree001.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=2,[Target]='',[IsOpen]=0,[IsHidden]=0,[Remark]='',[SSystemId]=4,[SMenuId]=0,[SystemId]=4,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=2834 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=2834  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(925,2834,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=2834  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=1632  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(1632,2834,'加班申请',1,1035,0,'人事_员工加班申请表',0,0,1,4,1632,null,null,4,null,1,null,56,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=2834,[EntName]='加班申请',[MEnt]=1,[DBTableId]=1035,[DBConnectId]=0,[DBTableName]='人事_员工加班申请表',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=4,[SEntId]=1632,[FSystemId]=null,[FEntId]=null,[SystemId]=4,[Remark]=null,[IsFlow]=1,[IsChecked]=null,[FlowId]=56,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=1632 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=1632

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=1632  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11407,-1,1632,1,1,1,1,0,1,0,0,0,1,0,0,0,0,0,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=0,[CanUpdate]=1,[CanOutPut]=0,[CanInput]=0,[CanCopy]=0,[CanPrint]=1,[CanCheck]=0,[CanClean]=0,[CanRecycle]=0,[CanExecute]=0,[CanDesign]=0,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=1632  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=1632  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(10766,2834,1632,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=2834,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=1632  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=1632

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1632  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(19008,4,2834,1632,13,1,1,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=4,[MenuId]=2834,[TemplateId]=13,[ModuleId]=1,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1632  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1632  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(19009,4,2834,1632,13,2,9,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=4,[MenuId]=2834,[TemplateId]=13,[ModuleId]=9,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1632  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1632  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(19010,4,2834,1632,13,3,14,1,4,2,'/Template/Default/Form/AjaxForm/AjaxForm008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=4,[MenuId]=2834,[TemplateId]=13,[ModuleId]=14,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='/Template/Default/Form/AjaxForm/AjaxForm008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1632  and  [ModuleTypeId]=3 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1632  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(19011,4,2834,1632,13,16,31,1,5,2,'/Template/Default/Browse/Browse008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=4,[MenuId]=2834,[TemplateId]=13,[ModuleId]=31,[GroupId]=1,[AreaId]=5,[ShowMode]=2,[AreaUrl]='/Template/Default/Browse/Browse008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1632  and  [ModuleTypeId]=16 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_AjaxForm_Run]  where [EntId]=1632

--Dcx_AjaxForm_Run
      if (select count(1) from [Dcx_AjaxForm_Run] where  [EntId]=1632  )<1 
      begin 
           Insert into [Dcx_AjaxForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('8bd0b955-c6bd-490c-b965-ec9403386220','加班申请',1632,14,'','',0,'<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>','','DcxRun.AjaxF_1632= {"MenuId":2834,"MEntId":1632,"EntName":"加班申请","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":true,"EntMsg":{"E1632":{"EntId":1632,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{
DcxForm.CreateHtmlEditor(''d1632_加班事由'',1632,''AjaxF_'',''加班事由'',600,350,false,1,false);
DcxForm.CreateHtmlEditor(''d1632_加班时间'',1632,''AjaxF_'',''加班时间'',600,350,false,1,false);

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_1632.EntMsg.E1632.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"人事_员工加班申请表","EntId":1632,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"员工编号":{"DtId":2,"DB":1,"CId":4,"FL":-1},"员工姓名":{"DtId":2,"DB":1,"CId":4,"FL":-1},"所在部门":{"DtId":2,"DB":1,"CId":4,"FL":-1},"申请日期":{"DtId":3,"DB":1,"CId":4,"FL":-1},"岗位":{"DtId":2,"DB":1,"CId":4,"FL":-1},"加班事由":{"DtId":2,"DB":1,"CId":23,"FL":-1},"加班时间":{"DtId":6,"DB":1,"CId":23,"FL":-1},"加班总小时数":{"DtId":1,"DB":1,"CId":1,"FL":-1},"直属上级审批":{"DtId":2,"DB":1,"CId":2,"FL":0},"部门经理审批":{"DtId":2,"DB":1,"CId":2,"FL":0},"人力资源经理审批":{"DtId":2,"DB":1,"CId":2,"FL":-1},"行政副总审批":{"DtId":2,"DB":1,"CId":2,"FL":-1}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_1632.EntMsg.E1632.GetDataRowModel=function()
{
    return {"员工编号":"","员工姓名":"","所在部门":"","申请日期":new Date(),"岗位":"","加班事由":"","加班时间":"<P><TABLE style=''WIdTH: 500px; BORDER-TOP-STYLE: solId; BORDER-RIGHT-STYLE: solId; BORDER-LEFT-STYLE: solId; BORDER-COLLAPSE: collapse; HEIGHT: 105px; BORDER-BOTTOM-STYLE: solId'' borderColor=#000000 cellSpacing=0 cellPadding=3 wIdth=500px bgColor=#ffffff border=1 heihgt=''''><TBODY><TR><TD>&nbsp;起始时间</TD><TD>&nbsp;结束时间</TD><TD>&nbsp;加班时长</TD></TR><TR><TD style=''BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000''><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U>月<U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face=''Times New Roman'' size=3>日</FONT><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face=''Times New Roman'' size=3>时</FONT></TD><TD style=''BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000''><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U>月<U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face=''Times New Roman'' size=3>日</FONT><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face=''Times New Roman'' size=3>时</FONT></TD><TD style=''BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000''>共计<U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U>小时</TD></TR><TR><TD style=''BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000''><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U>月<U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face=''Times New Roman'' size=3>日</FONT><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face=''Times New Roman'' size=3>时</FONT></TD><TD style=''BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000''><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U>月<U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face=''Times New Roman'' size=3>日</FONT><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face=''Times New Roman'' size=3>时</FONT></TD><TD style=''BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000''>共计<U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U>小时</TD></TR><TR><TD style=''BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000''><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U>月<U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face=''Times New Roman'' size=3>日</FONT><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face=''Times New Roman'' size=3>时</FONT></TD><TD style=''BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000''><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U>月<U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face=''Times New Roman'' size=3>日</FONT><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face=''Times New Roman'' size=3>时</FONT></TD><TD style=''BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000''>共计<U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U>小时</TD></TR><TR><TD style=''BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000''>&nbsp;</TD><TD style=''BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000''>&nbsp;</TD><TD style=''BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000''>&nbsp;</TD></TR></TBODY></TABLE></P>","加班总小时数":-1,"直属上级审批":"","部门经理审批":"","人力资源经理审批":"","行政副总审批":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_AjaxF_1632_773(obj,curFieldName){
 var EntId=1632;
 var FldId=2714;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''岗位'';
 var $formContainer=DcxForm.GetHtmlContainer(1632,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1632,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"岗位\",FldId:"+FldId+",EntId:1632,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1632,''AjaxF_'',''员工编号'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1632_岗位");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_1632.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1632,''AjaxF_'',buildNew,closeDlg);

}','<$1632$>select [员工编号],[员工姓名],[所在部门],[申请日期],[岗位],[加班事由],[加班时间],[加班总小时数],[直属上级审批],[部门经理审批],[人力资源经理审批],[行政副总审批],[LD_Id] from 人事_员工加班申请表 where [LD_Id]=''{$keyfieldvalue}''</$1632$>',20,'','','','1632*LD_Id*2**2*人事_员工加班申请表*加班申请',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 7:02:48',3,'admin','2013-11-30 6:34:16',1)
      end
      else 
      begin 
           update [Dcx_AjaxForm_Run] set [FormId]='8bd0b955-c6bd-490c-b965-ec9403386220',[FormName]='加班申请',[ModuleId]=14,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.AjaxF_1632= {"MenuId":2834,"MEntId":1632,"EntName":"加班申请","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":true,"EntMsg":{"E1632":{"EntId":1632,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{
DcxForm.CreateHtmlEditor(''d1632_加班事由'',1632,''AjaxF_'',''加班事由'',600,350,false,1,false);
DcxForm.CreateHtmlEditor(''d1632_加班时间'',1632,''AjaxF_'',''加班时间'',600,350,false,1,false);

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_1632.EntMsg.E1632.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"人事_员工加班申请表","EntId":1632,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"员工编号":{"DtId":2,"DB":1,"CId":4,"FL":-1},"员工姓名":{"DtId":2,"DB":1,"CId":4,"FL":-1},"所在部门":{"DtId":2,"DB":1,"CId":4,"FL":-1},"申请日期":{"DtId":3,"DB":1,"CId":4,"FL":-1},"岗位":{"DtId":2,"DB":1,"CId":4,"FL":-1},"加班事由":{"DtId":2,"DB":1,"CId":23,"FL":-1},"加班时间":{"DtId":6,"DB":1,"CId":23,"FL":-1},"加班总小时数":{"DtId":1,"DB":1,"CId":1,"FL":-1},"直属上级审批":{"DtId":2,"DB":1,"CId":2,"FL":0},"部门经理审批":{"DtId":2,"DB":1,"CId":2,"FL":0},"人力资源经理审批":{"DtId":2,"DB":1,"CId":2,"FL":-1},"行政副总审批":{"DtId":2,"DB":1,"CId":2,"FL":-1}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_1632.EntMsg.E1632.GetDataRowModel=function()
{
    return {"员工编号":"","员工姓名":"","所在部门":"","申请日期":new Date(),"岗位":"","加班事由":"","加班时间":"<P><TABLE style=''WIdTH: 500px; BORDER-TOP-STYLE: solId; BORDER-RIGHT-STYLE: solId; BORDER-LEFT-STYLE: solId; BORDER-COLLAPSE: collapse; HEIGHT: 105px; BORDER-BOTTOM-STYLE: solId'' borderColor=#000000 cellSpacing=0 cellPadding=3 wIdth=500px bgColor=#ffffff border=1 heihgt=''''><TBODY><TR><TD>&nbsp;起始时间</TD><TD>&nbsp;结束时间</TD><TD>&nbsp;加班时长</TD></TR><TR><TD style=''BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000''><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U>月<U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face=''Times New Roman'' size=3>日</FONT><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face=''Times New Roman'' size=3>时</FONT></TD><TD style=''BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000''><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U>月<U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face=''Times New Roman'' size=3>日</FONT><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face=''Times New Roman'' size=3>时</FONT></TD><TD style=''BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000''>共计<U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U>小时</TD></TR><TR><TD style=''BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000''><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U>月<U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face=''Times New Roman'' size=3>日</FONT><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face=''Times New Roman'' size=3>时</FONT></TD><TD style=''BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000''><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U>月<U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face=''Times New Roman'' size=3>日</FONT><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face=''Times New Roman'' size=3>时</FONT></TD><TD style=''BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000''>共计<U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U>小时</TD></TR><TR><TD style=''BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000''><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U>月<U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face=''Times New Roman'' size=3>日</FONT><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face=''Times New Roman'' size=3>时</FONT></TD><TD style=''BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000''><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U>月<U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face=''Times New Roman'' size=3>日</FONT><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face=''Times New Roman'' size=3>时</FONT></TD><TD style=''BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000''>共计<U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U>小时</TD></TR><TR><TD style=''BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000''>&nbsp;</TD><TD style=''BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000''>&nbsp;</TD><TD style=''BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000''>&nbsp;</TD></TR></TBODY></TABLE></P>","加班总小时数":-1,"直属上级审批":"","部门经理审批":"","人力资源经理审批":"","行政副总审批":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_AjaxF_1632_773(obj,curFieldName){
 var EntId=1632;
 var FldId=2714;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''岗位'';
 var $formContainer=DcxForm.GetHtmlContainer(1632,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1632,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"岗位\",FldId:"+FldId+",EntId:1632,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1632,''AjaxF_'',''员工编号'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1632_岗位");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_1632.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1632,''AjaxF_'',buildNew,closeDlg);

}',[LoadingSql]='<$1632$>select [员工编号],[员工姓名],[所在部门],[申请日期],[岗位],[加班事由],[加班时间],[加班总小时数],[直属上级审批],[部门经理审批],[人力资源经理审批],[行政副总审批],[LD_Id] from 人事_员工加班申请表 where [LD_Id]=''{$keyfieldvalue}''</$1632$>',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='1632*LD_Id*2**2*人事_员工加班申请表*加班申请',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 7:02:48',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-30 6:34:16',[AccountId]=1 where  [EntId]=1632 
      end




--Dcx_AjaxFormField_Run
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='49ff5486-8880-1d9e-1f15-6caf4a713499'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2710,'49ff5486-8880-1d9e-1f15-6caf4a713499',1632,1632,'00000000-0000-0000-0000-000000000000','员工编号',2,2,11,'{$staffNO}',0,9,null,0,4,1,0,1,-1,0,0,'','','','{$staffNO},','<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="1632" groupid="176" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="647" class="li-area-title" scroll="no" style="width: 77px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">加班申请</span></div>
</li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="177" entid="1632" class="ul-mform" ctrlprex="AjaxF_" isrple="1">
<li areaid="648" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2710" istitle="1">员工编号 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d1632_员工编号" class="form-lbl" style="width:201px;" IsForField=1 EntId="1632" CId="4" FId="2710" Vtp="0"  CBack=1  >','</span><input id="d1632_员工编号_hid" type="hidden"  EntId="1632" IsField=1 DBField=1 IsPost=1 FieldName="员工编号" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="2710" vlk=0    value="','" />',-1,-1,-1,-1,0,'1632,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2710,[Form_EntId]=1632,[EntId]=1632,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='员工编号',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=11,[DefaultValue]='{$staffNO}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$staffNO},',[BeforeHtml]='<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="1632" groupid="176" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="647" class="li-area-title" scroll="no" style="width: 77px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">加班申请</span></div>
</li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="177" entid="1632" class="ul-mform" ctrlprex="AjaxF_" isrple="1">
<li areaid="648" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2710" istitle="1">员工编号 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1632_员工编号" class="form-lbl" style="width:201px;" IsForField=1 EntId="1632" CId="4" FId="2710" Vtp="0"  CBack=1  >',[CtrlbackHtml]='</span><input id="d1632_员工编号_hid" type="hidden"  EntId="1632" IsField=1 DBField=1 IsPost=1 FieldName="员工编号" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="2710" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1632,' where  [FldUId]='49ff5486-8880-1d9e-1f15-6caf4a713499' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='1cad2bac-4e56-7875-3aba-e637cc39daa9'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2711,'1cad2bac-4e56-7875-3aba-e637cc39daa9',1632,1632,'00000000-0000-0000-0000-000000000000','员工姓名',2,2,12,'{$realname}',0,9,null,0,4,1,0,2,-1,0,0,'','','','{$realname},','</span>
</div>
</li>
<li areaid="649" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2711" istitle="1">员工姓名 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d1632_员工姓名" class="form-lbl" style="width:201px;" IsForField=1 EntId="1632" CId="4" FId="2711" Vtp="0"  >','</span><input id="d1632_员工姓名_hid" type="hidden"  EntId="1632" IsField=1 DBField=1 IsPost=1 FieldName="员工姓名" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="2711" vlk=0    value="','" />',-1,-1,-1,-1,0,'1632,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2711,[Form_EntId]=1632,[EntId]=1632,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='员工姓名',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=12,[DefaultValue]='{$realname}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=2,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$realname},',[BeforeHtml]='</span>
</div>
</li>
<li areaid="649" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2711" istitle="1">员工姓名 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1632_员工姓名" class="form-lbl" style="width:201px;" IsForField=1 EntId="1632" CId="4" FId="2711" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d1632_员工姓名_hid" type="hidden"  EntId="1632" IsField=1 DBField=1 IsPost=1 FieldName="员工姓名" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="2711" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1632,' where  [FldUId]='1cad2bac-4e56-7875-3aba-e637cc39daa9' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='638cc12b-eb4b-ed5d-f578-2c0d254c53ed'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2712,'638cc12b-eb4b-ed5d-f578-2c0d254c53ed',1632,1632,'00000000-0000-0000-0000-000000000000','所在部门',2,2,13,'{$deptname}',0,9,null,0,4,1,0,3,-1,0,0,'','','','{$deptname},','</span>
</div>
</li>
<li areaid="650" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2712">所在部门  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d1632_所在部门" class="form-lbl" style="width:201px;" IsForField=1 EntId="1632" CId="4" FId="2712" Vtp="0"  >','</span><input id="d1632_所在部门_hid" type="hidden"  EntId="1632" IsField=1 DBField=1 IsPost=1 FieldName="所在部门" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="2712" vlk=0    value="','" />',-1,-1,-1,-1,0,'1632,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2712,[Form_EntId]=1632,[EntId]=1632,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='所在部门',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=13,[DefaultValue]='{$deptname}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=3,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$deptname},',[BeforeHtml]='</span>
</div>
</li>
<li areaid="650" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2712">所在部门  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1632_所在部门" class="form-lbl" style="width:201px;" IsForField=1 EntId="1632" CId="4" FId="2712" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d1632_所在部门_hid" type="hidden"  EntId="1632" IsField=1 DBField=1 IsPost=1 FieldName="所在部门" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="2712" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1632,' where  [FldUId]='638cc12b-eb4b-ed5d-f578-2c0d254c53ed' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='f5972f2f-d510-5489-4fe1-be885c1e8de5'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2713,'f5972f2f-d510-5489-4fe1-be885c1e8de5',1632,1632,'00000000-0000-0000-0000-000000000000','申请日期',3,3,14,'{$date}',0,9,null,0,4,1,0,4,-1,0,0,'','','','{$date},','</span>
  </div>
</li>
<li areaid="651" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2713">申请日期  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d1632_申请日期" class="form-lbl" style="width:201px;" IsForField=1 EntId="1632" CId="4" FId="2713" Vtp="0"  >','</span><input id="d1632_申请日期_hid" type="hidden"  EntId="1632" IsField=1 DBField=1 IsPost=1 FieldName="申请日期" dType="3" Vtp="0" RDT="3" Isc="0" RId="9" CId="4" FId="2713" vlk=0    value="','" />',-1,-1,-1,-1,0,'1632,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2713,[Form_EntId]=1632,[EntId]=1632,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='申请日期',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=14,[DefaultValue]='{$date}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=4,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$date},',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="651" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2713">申请日期  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1632_申请日期" class="form-lbl" style="width:201px;" IsForField=1 EntId="1632" CId="4" FId="2713" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d1632_申请日期_hid" type="hidden"  EntId="1632" IsField=1 DBField=1 IsPost=1 FieldName="申请日期" dType="3" Vtp="0" RDT="3" Isc="0" RId="9" CId="4" FId="2713" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1632,' where  [FldUId]='f5972f2f-d510-5489-4fe1-be885c1e8de5' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='7edafab3-659a-1dbe-72b9-00a403febfe4'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2714,'7edafab3-659a-1dbe-72b9-00a403febfe4',1632,1632,'00000000-0000-0000-0000-000000000000','岗位',2,2,15,'Select  [Dcx_Employee].[PositionName]  from  [Dcx_Employee] where [EmployeeCode]=''{@员工编号}''',2,9,null,0,4,1,0,5,-1,0,0,'','','员工编号,','','</span>
  </div>
</li>
<li areaid="652" style="height: 38px; width: 792px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2714" istitle="1">岗位 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d1632_岗位" class="form-lbl" style="width:201px;" IsForField=1 EntId="1632" CId="4" FId="2714" Vtp="2"  >','</span><input id="d1632_岗位_hid" type="hidden"  EntId="1632" IsField=1 DBField=1 IsPost=1 FieldName="岗位" dType="2" Vtp="2" RDT="2" Isc="0" RId="9" CId="4" FId="2714" vlk=0    value="','" />',-1,-1,-1,-1,0,'1632,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2714,[Form_EntId]=1632,[EntId]=1632,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='岗位',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=15,[DefaultValue]='Select  [Dcx_Employee].[PositionName]  from  [Dcx_Employee] where [EmployeeCode]=''{@员工编号}''',[ValueType]=2,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=5,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='员工编号,',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="652" style="height: 38px; width: 792px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2714" istitle="1">岗位 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1632_岗位" class="form-lbl" style="width:201px;" IsForField=1 EntId="1632" CId="4" FId="2714" Vtp="2"  >',[CtrlbackHtml]='</span><input id="d1632_岗位_hid" type="hidden"  EntId="1632" IsField=1 DBField=1 IsPost=1 FieldName="岗位" dType="2" Vtp="2" RDT="2" Isc="0" RId="9" CId="4" FId="2714" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1632,' where  [FldUId]='7edafab3-659a-1dbe-72b9-00a403febfe4' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='58ef612d-022b-f269-f204-7cf8cc3c6fc2'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2715,'58ef612d-022b-f269-f204-7cf8cc3c6fc2',1632,1632,'00000000-0000-0000-0000-000000000000','加班事由',2,2,16,'',5,1,null,0,23,1,0,6,-1,0,0,'','','','','</span>
</div>
</li>
<li areaid="653" style="height: 470px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2715">加班事由  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1632_加班事由" class="form-txts"  style="width:600px;height:350px;" EntId="1632" IsField=1 DBField=1 IsPost=1 FieldName="加班事由" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="23" FId="2715" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1632,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2715,[Form_EntId]=1632,[EntId]=1632,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='加班事由',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=16,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=23,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=6,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="653" style="height: 470px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2715">加班事由  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1632_加班事由" class="form-txts"  style="width:600px;height:350px;" EntId="1632" IsField=1 DBField=1 IsPost=1 FieldName="加班事由" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="23" FId="2715" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1632,' where  [FldUId]='58ef612d-022b-f269-f204-7cf8cc3c6fc2' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='bcb9bf48-864d-7699-eb34-277ee91ebbda'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2716,'bcb9bf48-864d-7699-eb34-277ee91ebbda',1632,1632,'00000000-0000-0000-0000-000000000000','加班时间',6,2,17,'<P>
<TABLE style="WIdTH: 500px; BORDER-TOP-STYLE: solId; BORDER-RIGHT-STYLE: solId; BORDER-LEFT-STYLE: solId; BORDER-COLLAPSE: collapse; HEIGHT: 105px; BORDER-BOTTOM-STYLE: solId" borderColor=#000000 cellSpacing=0 cellPadding=3 wIdth=500px bgColor=#ffffff border=1 heihgt="">
<TBODY>
<TR>
<TD>&nbsp;起始时间</TD>
<TD>&nbsp;结束时间</TD>
<TD>&nbsp;加班时长</TD></TR>
<TR>
<TD style="BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000"><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U>月<U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face="Times New Roman" size=3>日</FONT><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face="Times New Roman" size=3>时</FONT></TD>
<TD style="BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000"><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U>月<U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face="Times New Roman" size=3>日</FONT><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face="Times New Roman" size=3>时</FONT></TD>
<TD style="BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000">共计<U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U>小时</TD></TR>
<TR>
<TD style="BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000"><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U>月<U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face="Times New Roman" size=3>日</FONT><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face="Times New Roman" size=3>时</FONT></TD>
<TD style="BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000"><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U>月<U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face="Times New Roman" size=3>日</FONT><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face="Times New Roman" size=3>时</FONT></TD>
<TD style="BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000">共计<U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U>小时</TD></TR>
<TR>
<TD style="BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000"><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U>月<U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face="Times New Roman" size=3>日</FONT><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face="Times New Roman" size=3>时</FONT></TD>
<TD style="BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000"><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U>月<U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face="Times New Roman" size=3>日</FONT><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face="Times New Roman" size=3>时</FONT></TD>
<TD style="BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000">共计<U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U>小时</TD></TR>
<TR>
<TD style="BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000">&nbsp;</TD>
<TD style="BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000">&nbsp;</TD>
<TD style="BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000">&nbsp;</TD></TR></TBODY></TABLE></P>',5,1,null,0,23,1,0,7,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="654" style="height: 470px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2716">加班时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1632_加班时间" class="form-txts"  style="width:600px;height:350px;" EntId="1632" IsField=1 DBField=1 IsPost=1 FieldName="加班时间" dType="6" Vtp="5" RDT="2" Isc="1" RId="1" CId="23" FId="2716" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1632,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2716,[Form_EntId]=1632,[EntId]=1632,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='加班时间',[FieldDataTypeId]=6,[RunDataTypeId]=2,[DBFieldId]=17,[DefaultValue]='<P>
<TABLE style="WIdTH: 500px; BORDER-TOP-STYLE: solId; BORDER-RIGHT-STYLE: solId; BORDER-LEFT-STYLE: solId; BORDER-COLLAPSE: collapse; HEIGHT: 105px; BORDER-BOTTOM-STYLE: solId" borderColor=#000000 cellSpacing=0 cellPadding=3 wIdth=500px bgColor=#ffffff border=1 heihgt="">
<TBODY>
<TR>
<TD>&nbsp;起始时间</TD>
<TD>&nbsp;结束时间</TD>
<TD>&nbsp;加班时长</TD></TR>
<TR>
<TD style="BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000"><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U>月<U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face="Times New Roman" size=3>日</FONT><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face="Times New Roman" size=3>时</FONT></TD>
<TD style="BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000"><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U>月<U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face="Times New Roman" size=3>日</FONT><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face="Times New Roman" size=3>时</FONT></TD>
<TD style="BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000">共计<U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U>小时</TD></TR>
<TR>
<TD style="BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000"><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U>月<U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face="Times New Roman" size=3>日</FONT><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face="Times New Roman" size=3>时</FONT></TD>
<TD style="BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000"><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U>月<U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face="Times New Roman" size=3>日</FONT><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face="Times New Roman" size=3>时</FONT></TD>
<TD style="BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000">共计<U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U>小时</TD></TR>
<TR>
<TD style="BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000"><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U>月<U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face="Times New Roman" size=3>日</FONT><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face="Times New Roman" size=3>时</FONT></TD>
<TD style="BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000"><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U>月<U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face="Times New Roman" size=3>日</FONT><U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U><FONT face="Times New Roman" size=3>时</FONT></TD>
<TD style="BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000">共计<U>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</U>小时</TD></TR>
<TR>
<TD style="BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000">&nbsp;</TD>
<TD style="BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000">&nbsp;</TD>
<TD style="BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000">&nbsp;</TD></TR></TBODY></TABLE></P>',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=23,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=7,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="654" style="height: 470px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2716">加班时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1632_加班时间" class="form-txts"  style="width:600px;height:350px;" EntId="1632" IsField=1 DBField=1 IsPost=1 FieldName="加班时间" dType="6" Vtp="5" RDT="2" Isc="1" RId="1" CId="23" FId="2716" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1632,' where  [FldUId]='bcb9bf48-864d-7699-eb34-277ee91ebbda' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='9671010b-8a47-d1e9-ca8d-b45b9983b504'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2717,'9671010b-8a47-d1e9-ca8d-b45b9983b504',1632,1632,'00000000-0000-0000-0000-000000000000','加班总小时数',1,1,22,'',5,1,null,0,1,1,0,8,-1,0,0,'','','','','</span>
  </div>
</li>

<li areaid="655" style="height: 38px; width: 792px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2717" istitle="1">加班总小时数 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d1632_加班总小时数"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1632,''AjaxF_'',1632,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1632,''AjaxF_'',1632);" EntId="1632" IsField=1 DBField=1 IsPost=1 FieldName="加班总小时数" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="2717" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1632,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2717,[Form_EntId]=1632,[EntId]=1632,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='加班总小时数',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=22,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=8,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>

<li areaid="655" style="height: 38px; width: 792px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2717" istitle="1">加班总小时数 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1632_加班总小时数"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1632,''AjaxF_'',1632,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1632,''AjaxF_'',1632);" EntId="1632" IsField=1 DBField=1 IsPost=1 FieldName="加班总小时数" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="2717" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1632,' where  [FldUId]='9671010b-8a47-d1e9-ca8d-b45b9983b504' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='d0cf2214-b5f9-564f-a186-553edcc57dba'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2718,'d0cf2214-b5f9-564f-a186-553edcc57dba',1632,1632,'00000000-0000-0000-0000-000000000000','直属上级审批',2,2,18,'{$UserName}',0,1,1,0,2,1,1,9,-1,0,0,'','','','{$UserName},','</span>
</div>
</li><li areaid="656" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2718" istitle="1">直属上级审批</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1632_直属上级审批" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1632,''AjaxF_'',1632,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1632,''AjaxF_'',1632);" EntId="1632" IsField=1 DBField=1 IsPost=1 FieldName="直属上级审批" dType="2" Vtp="0" RDT="2" Isc="1" RId="1" CId="2" FId="2718" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1632,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2718,[Form_EntId]=1632,[EntId]=1632,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='直属上级审批',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=18,[DefaultValue]='{$UserName}',[ValueType]=0,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=9,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$UserName},',[BeforeHtml]='</span>
</div>
</li><li areaid="656" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2718" istitle="1">直属上级审批</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1632_直属上级审批" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1632,''AjaxF_'',1632,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1632,''AjaxF_'',1632);" EntId="1632" IsField=1 DBField=1 IsPost=1 FieldName="直属上级审批" dType="2" Vtp="0" RDT="2" Isc="1" RId="1" CId="2" FId="2718" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1632,' where  [FldUId]='d0cf2214-b5f9-564f-a186-553edcc57dba' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='a4635a60-c08b-81a4-0976-4480019a2eec'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2719,'a4635a60-c08b-81a4-0976-4480019a2eec',1632,1632,'00000000-0000-0000-0000-000000000000','部门经理审批',2,2,19,'{$UserName}',0,1,1,0,2,1,1,10,-1,0,0,'','','','{$UserName},','</span>
</div>
</li>
<li areaid="657" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2719" istitle="1">部门经理审批</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1632_部门经理审批" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1632,''AjaxF_'',1632,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1632,''AjaxF_'',1632);" EntId="1632" IsField=1 DBField=1 IsPost=1 FieldName="部门经理审批" dType="2" Vtp="0" RDT="2" Isc="1" RId="1" CId="2" FId="2719" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1632,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2719,[Form_EntId]=1632,[EntId]=1632,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='部门经理审批',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=19,[DefaultValue]='{$UserName}',[ValueType]=0,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=10,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$UserName},',[BeforeHtml]='</span>
</div>
</li>
<li areaid="657" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2719" istitle="1">部门经理审批</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1632_部门经理审批" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1632,''AjaxF_'',1632,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1632,''AjaxF_'',1632);" EntId="1632" IsField=1 DBField=1 IsPost=1 FieldName="部门经理审批" dType="2" Vtp="0" RDT="2" Isc="1" RId="1" CId="2" FId="2719" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1632,' where  [FldUId]='a4635a60-c08b-81a4-0976-4480019a2eec' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='3223c9d7-6f9f-aa13-1fcc-d5e4904123e6'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2720,'3223c9d7-6f9f-aa13-1fcc-d5e4904123e6',1632,1632,'00000000-0000-0000-0000-000000000000','人力资源经理审批',2,2,20,'{$UserName}',0,1,null,0,2,1,0,11,-1,0,0,'','','','{$UserName},','</span>
</div>
</li>
<li areaid="658" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2720" istitle="1">人力资源经理审批 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1632_人力资源经理审批" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1632,''AjaxF_'',1632,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1632,''AjaxF_'',1632);" EntId="1632" IsField=1 DBField=1 IsPost=1 FieldName="人力资源经理审批" dType="2" Vtp="0" RDT="2" Isc="0" RId="1" CId="2" FId="2720" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1632,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2720,[Form_EntId]=1632,[EntId]=1632,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='人力资源经理审批',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=20,[DefaultValue]='{$UserName}',[ValueType]=0,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=11,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$UserName},',[BeforeHtml]='</span>
</div>
</li>
<li areaid="658" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2720" istitle="1">人力资源经理审批 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1632_人力资源经理审批" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1632,''AjaxF_'',1632,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1632,''AjaxF_'',1632);" EntId="1632" IsField=1 DBField=1 IsPost=1 FieldName="人力资源经理审批" dType="2" Vtp="0" RDT="2" Isc="0" RId="1" CId="2" FId="2720" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1632,' where  [FldUId]='3223c9d7-6f9f-aa13-1fcc-d5e4904123e6' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='09eb519c-99a9-c6d0-e0e6-0d837ccf7735'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2721,'09eb519c-99a9-c6d0-e0e6-0d837ccf7735',1632,1632,'00000000-0000-0000-0000-000000000000','行政副总审批',2,2,21,'{$UserName}',0,1,null,0,2,1,0,12,-1,0,0,'','','','{$UserName},','</span>
</div>
</li>
<li areaid="659" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2721" istitle="1">行政副总审批 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','</span>
</div>
</li>
</ul>
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="178" entid="1632" class="tab_ul" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="660" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li areaid="661" istab="1" tabid="2" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1" style="">
<ul isgroup="1" groupid="179" entid="1632" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="662" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="180" entid="1632" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="663" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="1632" groupid="181" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="664" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
<li areaid="665" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>','','','<textarea  id="d1632_行政副总审批" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1632,''AjaxF_'',1632,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1632,''AjaxF_'',1632);" EntId="1632" IsField=1 DBField=1 IsPost=1 FieldName="行政副总审批" dType="2" Vtp="0" RDT="2" Isc="0" RId="1" CId="2" FId="2721" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1632,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2721,[Form_EntId]=1632,[EntId]=1632,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='行政副总审批',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=21,[DefaultValue]='{$UserName}',[ValueType]=0,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=12,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$UserName},',[BeforeHtml]='</span>
</div>
</li>
<li areaid="659" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2721" istitle="1">行政副总审批 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
</div>
</li>
</ul>
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="178" entid="1632" class="tab_ul" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="660" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li areaid="661" istab="1" tabid="2" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1" style="">
<ul isgroup="1" groupid="179" entid="1632" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="662" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="180" entid="1632" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="663" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="1632" groupid="181" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="664" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
<li areaid="665" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1632_行政副总审批" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1632,''AjaxF_'',1632,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1632,''AjaxF_'',1632);" EntId="1632" IsField=1 DBField=1 IsPost=1 FieldName="行政副总审批" dType="2" Vtp="0" RDT="2" Isc="0" RId="1" CId="2" FId="2721" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1632,' where  [FldUId]='09eb519c-99a9-c6d0-e0e6-0d837ccf7735' 
      end



Delete from [Dcx_SearchForm_Run]  where [EntId]=1632

--Dcx_SearchForm_Run
      if (select count(1) from [Dcx_SearchForm_Run] where  [EntId]=1632  )<1 
      begin 
           Insert into [Dcx_SearchForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('5da98656-5a98-4b2d-bc47-162c289bdc13','加班申请',1632,9,'','',0,'<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>','','DcxRun.SearchF_1632= {"MenuId":2834,"MEntId":1632,"EntName":"加班申请","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1632":{"EntId":1632,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_1632.EntMsg.E1632.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"人事_员工加班申请表","EntId":1632,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"员工姓名":{"DtId":2,"DB":1,"CId":1,"FL":100},"所在部门":{"DtId":2,"DB":1,"CId":3,"FL":100},"申请日期":{"DtId":3,"DB":1,"CId":5,"FL":100},"流程是否已结束":{"DtId":4,"DB":0,"CId":3,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.SearchF_1632.EntMsg.E1632.GetDataRowModel=function()
{
    return {"员工姓名":"","所在部门":"","申请日期":new Date(),"流程是否已结束":false,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_1632.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1632,''SearchF_'',buildNew,closeDlg);

}','',20,'','','','1632*LD_Id*2**2*人事_员工加班申请表*加班申请',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 5:45:57',3,'admin','2013-11-16 17:38:15',1)
      end
      else 
      begin 
           update [Dcx_SearchForm_Run] set [FormId]='5da98656-5a98-4b2d-bc47-162c289bdc13',[FormName]='加班申请',[ModuleId]=9,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.SearchF_1632= {"MenuId":2834,"MEntId":1632,"EntName":"加班申请","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1632":{"EntId":1632,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_1632.EntMsg.E1632.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"人事_员工加班申请表","EntId":1632,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"员工姓名":{"DtId":2,"DB":1,"CId":1,"FL":100},"所在部门":{"DtId":2,"DB":1,"CId":3,"FL":100},"申请日期":{"DtId":3,"DB":1,"CId":5,"FL":100},"流程是否已结束":{"DtId":4,"DB":0,"CId":3,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.SearchF_1632.EntMsg.E1632.GetDataRowModel=function()
{
    return {"员工姓名":"","所在部门":"","申请日期":new Date(),"流程是否已结束":false,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_1632.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1632,''SearchF_'',buildNew,closeDlg);

}',[LoadingSql]='',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='1632*LD_Id*2**2*人事_员工加班申请表*加班申请',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 5:45:57',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-16 17:38:15',[AccountId]=1 where  [EntId]=1632 
      end




--Dcx_SearchFormField_Run
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='e8b26166-ea3c-4bed-856a-769855c4b3d1'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'e8b26166-ea3c-4bed-856a-769855c4b3d1',1632,1632,'00000000-0000-0000-0000-000000000000',1,'Like','员工姓名',2,2,12,'',5,1,1,0,1,1,0,-1,1,0,'','','','','<div class="searchform">
<ul isgroup="1" groupid="27" entid="1632" class="search-block w920" ctrlprex="SearchF_" isrple="1">
<li areaid="131" class="search-li w240 h32" scroll="no" style="width: 241px; position: static;">
<label class="search-title pad7" istitle="1" fldid="1">员工姓名</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">','','','','<input  id="d1632_员工姓名"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1632,''SearchF_'',1632,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1632,''SearchF_'',1632);" EntId="1632" IsField=1 DBField=1 IsPost=1 FieldName="员工姓名" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'1632,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=1,[Form_EntId]=1632,[EntId]=1632,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[CompareOperatorType]='Like',[FieldName]='员工姓名',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=12,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="searchform">
<ul isgroup="1" groupid="27" entid="1632" class="search-block w920" ctrlprex="SearchF_" isrple="1">
<li areaid="131" class="search-li w240 h32" scroll="no" style="width: 241px; position: static;">
<label class="search-title pad7" istitle="1" fldid="1">员工姓名</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1632_员工姓名"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1632,''SearchF_'',1632,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1632,''SearchF_'',1632);" EntId="1632" IsField=1 DBField=1 IsPost=1 FieldName="员工姓名" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1632,' where  [FldUId]='e8b26166-ea3c-4bed-856a-769855c4b3d1' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='6d5619ad-dff2-4c29-acbe-c17335d91f8a'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'6d5619ad-dff2-4c29-acbe-c17335d91f8a',1632,1632,'00000000-0000-0000-0000-000000000000',2,'Like','所在部门',2,2,13,'select '''' union SELECT [DeptName]  FROM [Dcx_Dept]',2,1,1,0,3,1,0,-1,1,0,'','','','','</span>
  </div>
</li>
<li areaid="132" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="2">所在部门</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">','','','','<select id="d1632_所在部门" name="d1632_所在部门" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1632,''SearchF_'',1632,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1632,''SearchF_'',1632);" EntId="1632" IsField=1 DBField=1 IsPost=1 FieldName="所在部门" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="3" FId="2" vlk=0    Cpre="Like"  style="width:150px;">','</select>','',1,-1,-1,-1,-1,0,'1632,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=2,[Form_EntId]=1632,[EntId]=1632,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[CompareOperatorType]='Like',[FieldName]='所在部门',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=13,[DefaultValue]='select '''' union SELECT [DeptName]  FROM [Dcx_Dept]',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="132" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="2">所在部门</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1632_所在部门" name="d1632_所在部门" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1632,''SearchF_'',1632,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1632,''SearchF_'',1632);" EntId="1632" IsField=1 DBField=1 IsPost=1 FieldName="所在部门" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="3" FId="2" vlk=0    Cpre="Like"  style="width:150px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1632,' where  [FldUId]='6d5619ad-dff2-4c29-acbe-c17335d91f8a' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='3e746336-54d6-4902-9efa-3eda23d40b21'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'3e746336-54d6-4902-9efa-3eda23d40b21',1632,1632,'00000000-0000-0000-0000-000000000000',3,'Like','申请日期',3,3,14,'',5,1,1,0,5,1,0,-1,1,0,'','','','','</span>
  </div>
</li>
<li areaid="133" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="3">申请日期</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">','','','','<div class="form-ddl"><input  id="d1632_申请日期"   type="text" class="form-ddl-txt"  style="width:130px;" onblur ="javascript:if(!DcxVld.Validate(this,1632,''SearchF_'',1632,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1632,''SearchF_'',1632);DcxDTime.ShowCalendar(this);" EntId="1632" IsField=1 DBField=1 IsPost=1 FieldName="申请日期" dType="3" Vtp="5" RDT="3" Isc="1" RId="1" CId="5" FId="3" vlk=0    Cpre="Like"  value="','"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>','',1,-1,-1,-1,-1,0,'1632,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=3,[Form_EntId]=1632,[EntId]=1632,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[CompareOperatorType]='Like',[FieldName]='申请日期',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=14,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=5,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="133" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="3">申请日期</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-ddl"><input  id="d1632_申请日期"   type="text" class="form-ddl-txt"  style="width:130px;" onblur ="javascript:if(!DcxVld.Validate(this,1632,''SearchF_'',1632,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1632,''SearchF_'',1632);DcxDTime.ShowCalendar(this);" EntId="1632" IsField=1 DBField=1 IsPost=1 FieldName="申请日期" dType="3" Vtp="5" RDT="3" Isc="1" RId="1" CId="5" FId="3" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1632,' where  [FldUId]='3e746336-54d6-4902-9efa-3eda23d40b21' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='5e7e0d2c-c6e7-4ce4-bf4b-0d175b3652cc'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'5e7e0d2c-c6e7-4ce4-bf4b-0d175b3652cc',1632,1632,'00000000-0000-0000-0000-000000000000',4,'=','流程是否已结束',4,4,-1,'',1,1,1,0,3,1,0,-1,1,0,'','','','','</span>
  </div>
</li>
<li areaid="134" class="search-li w270 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="4">流程已结束</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">','</span>
  </div>
</li>
<li areaid="135" class="search-li w100 h32" scroll="no" style="position: static;">
<div class="searchform-button" onclick="javascript:return VL_Search(1632);">
<div class="search-btn">&nbsp;</div>
<a href="javascript:void(0);" id="1632_searchBT">搜索</a>
</div>
</li>
</ul>
</div>','','','<select id="d1632_流程是否已结束" name="d1632_流程是否已结束" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1632,''SearchF_'',1632,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1632,''SearchF_'',1632);" EntId="1632" IsField=1 DBField=0 IsPost=1 FieldName="流程是否已结束" dType="4" Vtp="1" RDT="4" Isc="1" RId="1" CId="3" FId="4" vlk=0    Cpre="="  style="width:150px;">','<option  value="False"  >否</option>
<option  value="True"  >是</option>
</select>','',1,-1,-1,-1,-1,0,'1632,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=4,[Form_EntId]=1632,[EntId]=1632,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=4,[CompareOperatorType]='=',[FieldName]='流程是否已结束',[FieldDataTypeId]=4,[RunDataTypeId]=4,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=1,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="134" class="search-li w270 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="4">流程已结束</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
  </div>
</li>
<li areaid="135" class="search-li w100 h32" scroll="no" style="position: static;">
<div class="searchform-button" onclick="javascript:return VL_Search(1632);">
<div class="search-btn">&nbsp;</div>
<a href="javascript:void(0);" id="1632_searchBT">搜索</a>
</div>
</li>
</ul>
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1632_流程是否已结束" name="d1632_流程是否已结束" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1632,''SearchF_'',1632,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1632,''SearchF_'',1632);" EntId="1632" IsField=1 DBField=0 IsPost=1 FieldName="流程是否已结束" dType="4" Vtp="1" RDT="4" Isc="1" RId="1" CId="3" FId="4" vlk=0    Cpre="="  style="width:150px;">',[CtrlbackHtml]='<option  value="False"  >否</option>
<option  value="True"  >是</option>
</select>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1632,' where  [FldUId]='5e7e0d2c-c6e7-4ce4-bf4b-0d175b3652cc' 
      end



Delete from [Dcx_BrowseReport_Run]  where [EntId]=1632

--Dcx_BrowseReport_Run
      if (select count(1) from [Dcx_BrowseReport_Run] where  [EntId]=1632  )<1 
      begin 
           Insert into [Dcx_BrowseReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[DIYJsCss],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('92bd3814-362d-4d06-8e2d-70cb8850b66e','加班申请',1632,31,'','<$1632$>select [WFState],[WFUserName],[员工编号],[员工姓名],[所在部门],[申请日期],[岗位],[LD_Id] from 人事_员工加班申请表 where [LD_Id]=''{$keyfieldvalue}''</$1632$>',1,1,20,'','DcxRun.MChildR_1632= {"MenuId":2834,"MEntId":1632,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"加班申请","EntMsg":{"E1632":{"EntId":1632,"EntName":"加班申请","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":56,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1632*LD_Id*2**2*人事_员工加班申请表*加班申请',3,'','2012-12-21 11:03:02',3,'','2013-11-17 3:03:48',1)
      end
      else 
      begin 
           update [Dcx_BrowseReport_Run] set [ReportId]='92bd3814-362d-4d06-8e2d-70cb8850b66e',[ReportName]='加班申请',[ModuleId]=31,[StaticHtml]='',[LoadingSql]='<$1632$>select [WFState],[WFUserName],[员工编号],[员工姓名],[所在部门],[申请日期],[岗位],[LD_Id] from 人事_员工加班申请表 where [LD_Id]=''{$keyfieldvalue}''</$1632$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[DIYJsCss]='',[AutoPublicJs]='DcxRun.MChildR_1632= {"MenuId":2834,"MEntId":1632,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"加班申请","EntMsg":{"E1632":{"EntId":1632,"EntName":"加班申请","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":56,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1632*LD_Id*2**2*人事_员工加班申请表*加班申请',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-21 11:03:02',[EditorId]=3,[Editor]='',[EditTime]='2013-11-17 3:03:48',[AccountId]=1 where  [EntId]=1632 
      end




--Dcx_BrowseReportField_Run
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='88e3a83c-b6d6-4934-9fed-78452a710a0c'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'88e3a83c-b6d6-4934-9fed-78452a710a0c',1632,1632,'00000000-0000-0000-0000-000000000000',2,'WFState',1,1,'varchar',2,1,0,'','','','<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1632" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="417" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">加班申请</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1632" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="418" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">当前状态  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1632" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1632,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=1,[Report_EntId]=1632,[EntId]=1632,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='WFState',[FieldNO]=1,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1632" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="417" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">加班申请</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1632" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="418" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">当前状态  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1632" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1632,' where  [FldUId]='88e3a83c-b6d6-4934-9fed-78452a710a0c' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='1d8d1bca-bbbb-4ac6-a7f8-386f188325de'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'1d8d1bca-bbbb-4ac6-a7f8-386f188325de',1632,1632,'00000000-0000-0000-0000-000000000000',3,'WFUserName',2,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="419" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">当前办理人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1632" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1632,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=2,[Report_EntId]=1632,[EntId]=1632,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='WFUserName',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="419" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">当前办理人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1632" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1632,' where  [FldUId]='1d8d1bca-bbbb-4ac6-a7f8-386f188325de' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='3154121d-6f93-4887-95fc-2740569c3f39'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'3154121d-6f93-4887-95fc-2740569c3f39',1632,1632,'00000000-0000-0000-0000-000000000000',11,'员工编号',3,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="420" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">员工编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1632" fieldname="员工编号" fldid="3" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1632,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=3,[Report_EntId]=1632,[EntId]=1632,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=11,[FieldName]='员工编号',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="420" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">员工编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1632" fieldname="员工编号" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1632,' where  [FldUId]='3154121d-6f93-4887-95fc-2740569c3f39' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='3418bcd4-5ee8-431f-a7fd-6566d52f35b9'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'3418bcd4-5ee8-431f-a7fd-6566d52f35b9',1632,1632,'00000000-0000-0000-0000-000000000000',12,'员工姓名',4,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="421" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">员工姓名  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1632" fieldname="员工姓名" fldid="4" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1632,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=4,[Report_EntId]=1632,[EntId]=1632,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=12,[FieldName]='员工姓名',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="421" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">员工姓名  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1632" fieldname="员工姓名" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1632,' where  [FldUId]='3418bcd4-5ee8-431f-a7fd-6566d52f35b9' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='0fca414d-97c7-421d-837f-55687ed2151c'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'0fca414d-97c7-421d-837f-55687ed2151c',1632,1632,'00000000-0000-0000-0000-000000000000',13,'所在部门',5,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="422" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">所在部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1632" fieldname="所在部门" fldid="5" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1632,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=5,[Report_EntId]=1632,[EntId]=1632,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=13,[FieldName]='所在部门',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="422" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">所在部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1632" fieldname="所在部门" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1632,' where  [FldUId]='0fca414d-97c7-421d-837f-55687ed2151c' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='9f16d680-44b8-4b18-89e1-995201b28918'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'9f16d680-44b8-4b18-89e1-995201b28918',1632,1632,'00000000-0000-0000-0000-000000000000',14,'申请日期',6,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="423" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">申请日期  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1632" fieldname="申请日期" fldid="6" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1632,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=6,[Report_EntId]=1632,[EntId]=1632,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=14,[FieldName]='申请日期',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="423" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">申请日期  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1632" fieldname="申请日期" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1632,' where  [FldUId]='9f16d680-44b8-4b18-89e1-995201b28918' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='cd3bad8b-c47a-4a25-854a-a8be276a03e4'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'cd3bad8b-c47a-4a25-854a-a8be276a03e4',1632,1632,'00000000-0000-0000-0000-000000000000',15,'岗位',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="424" style="height: 38px; width: 792px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">岗位  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1632" fieldname="岗位" fldid="7" columntypeid="1" class="form-ctr">','</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1632" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="429" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="430" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1632" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="431" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1632" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="432" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1632" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="433" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="434" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',-1,-1,-1,-1,0,'1632,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=7,[Report_EntId]=1632,[EntId]=1632,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=15,[FieldName]='岗位',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="424" style="height: 38px; width: 792px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">岗位  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1632" fieldname="岗位" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1632" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="429" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="430" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1632" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="431" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1632" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="432" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1632" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="433" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="434" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1632,' where  [FldUId]='cd3bad8b-c47a-4a25-854a-a8be276a03e4' 
      end



Delete from [Dcx_ListReport_Run]  where [EntId]=1632

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=1632  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('aeb7d682-d275-438e-a56a-57b33c87a211','加班申请',1632,1,'','','<$1632$>select *  from (select row_number() over( order by [LD_Id])as dcx_rowid,[WFState],[WFFlowId],[WFRunId],[WFPrcsId],[WFUserName],[员工编号],[员工姓名],[所在部门],[申请日期],[岗位],[LD_Id] from 人事_员工加班申请表  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1632$><$1632:Count$>select count([LD_Id]) from 人事_员工加班申请表 where {$SearchArea}</$1632:Count$>',1,1,20,'DcxRun.ListR_1632= {"MenuId":2834,"MEntId":1632,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"加班申请","EntMsg":{"E1632":{"EntId":1632,"EntName":"加班申请","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":56,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1632*LD_Id*2**2*人事_员工加班申请表*加班申请',3,'','2012-12-22 5:16:19',3,'','2013-11-16 20:11:38',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='aeb7d682-d275-438e-a56a-57b33c87a211',[ReportName]='加班申请',[ModuleId]=1,[StaticHtml]='',[DIYJsCss]='',[LoadingSql]='<$1632$>select *  from (select row_number() over( order by [LD_Id])as dcx_rowid,[WFState],[WFFlowId],[WFRunId],[WFPrcsId],[WFUserName],[员工编号],[员工姓名],[所在部门],[申请日期],[岗位],[LD_Id] from 人事_员工加班申请表  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1632$><$1632:Count$>select count([LD_Id]) from 人事_员工加班申请表 where {$SearchArea}</$1632:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[AutoPublicJs]='DcxRun.ListR_1632= {"MenuId":2834,"MEntId":1632,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"加班申请","EntMsg":{"E1632":{"EntId":1632,"EntName":"加班申请","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":56,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1632*LD_Id*2**2*人事_员工加班申请表*加班申请',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-22 5:16:19',[EditorId]=3,[Editor]='',[EditTime]='2013-11-16 20:11:38',[AccountId]=1 where  [EntId]=1632 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='727d7ce6-1518-3a2b-38e2-1652c6067b95'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(436,'727d7ce6-1518-3a2b-38e2-1652c6067b95',1632,1632,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="101" entid="1632" style="width: 950px;" ctrlprex="ListR_" isrple="1"> <li areaid="1389" class="tool-li" style="position: static;">
</li><li areaid="1390" class="tool-li" style="position: static;"><a id="ListR_1632_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1632,''ListR_'');">删   除</a></li>
<li areaid="1391" class="tool-li" style="position: static;"><a id="ListR_1632_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1632,''ListR_'');">导   出</a></li>
<li areaid="1392" class="tool-li" style="position: static;"><a id="ListR_1632_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1632,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1632" style="position: static;">
<a id="ListR_1632_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1632,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1632_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1632,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1632_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1632,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1632_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="102" entid="1632" class="list-head-ul" style="width: 962px;" ctrlprex="ListR_" isrple="1">
<li areaid="1394" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1632" onclick="javascript:DcxCom.CheckedAll(this,1632,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="1395" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">当前状态 </label></li><li areaid="1396" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">当前办理人 </label></li><li areaid="1397" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">员工编号 </label></li><li areaid="1398" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">员工姓名 </label></li><li areaid="1399" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">所在部门 </label></li><li areaid="1400" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请日期 </label></li><li areaid="1401" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">岗位 </label></li><li areaid="1402" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="办理"><span class="i">办理</span></a></div></li><li areaid="1403" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="1404" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">','',-1,103,-1,-1,1,'1632,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=436,[Report_EntId]=1632,[EntId]=1632,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="101" entid="1632" style="width: 950px;" ctrlprex="ListR_" isrple="1"> <li areaid="1389" class="tool-li" style="position: static;">
</li><li areaid="1390" class="tool-li" style="position: static;"><a id="ListR_1632_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1632,''ListR_'');">删   除</a></li>
<li areaid="1391" class="tool-li" style="position: static;"><a id="ListR_1632_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1632,''ListR_'');">导   出</a></li>
<li areaid="1392" class="tool-li" style="position: static;"><a id="ListR_1632_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1632,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1632" style="position: static;">
<a id="ListR_1632_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1632,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1632_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1632,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1632_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1632,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1632_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="102" entid="1632" class="list-head-ul" style="width: 962px;" ctrlprex="ListR_" isrple="1">
<li areaid="1394" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1632" onclick="javascript:DcxCom.CheckedAll(this,1632,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="1395" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">当前状态 </label></li><li areaid="1396" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">当前办理人 </label></li><li areaid="1397" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">员工编号 </label></li><li areaid="1398" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">员工姓名 </label></li><li areaid="1399" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">所在部门 </label></li><li areaid="1400" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请日期 </label></li><li areaid="1401" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">岗位 </label></li><li areaid="1402" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="办理"><span class="i">办理</span></a></div></li><li areaid="1403" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="1404" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1632,' where  [FldUId]='727d7ce6-1518-3a2b-38e2-1652c6067b95' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='577d534d-4848-4a96-99a4-d729d4f265fd'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(154,'577d534d-4848-4a96-99a4-d729d4f265fd',1632,1632,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',2,1,'',2,21,0,'','','','islonly="1" isgroup="1" groupid="103" class="list-body-ul" style="width: 962px;" isrple="1">
<li areaid="1405" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1632" issyscheck="1" keyvalue="','',-1,103,-1,-1,1,'1632,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=154,[Report_EntId]=1632,[EntId]=1632,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='islonly="1" isgroup="1" groupid="103" class="list-body-ul" style="width: 962px;" isrple="1">
<li areaid="1405" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1632" issyscheck="1" keyvalue="',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1632,' where  [FldUId]='577d534d-4848-4a96-99a4-d729d4f265fd' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='287d8c22-5928-4489-acb2-6b959de33169'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'287d8c22-5928-4489-acb2-6b959de33169',1632,1632,'00000000-0000-0000-0000-000000000000',2,'WFState',3,1,'varchar',2,1,0,'','','','" type="checkbox"></li><li areaid="1406" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowCurWfDlg(this);">
   <span isfield="1" entid="1632" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1632,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=1,[Report_EntId]=1632,[EntId]=1632,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='WFState',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='" type="checkbox"></li><li areaid="1406" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowCurWfDlg(this);">
   <span isfield="1" entid="1632" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1632,' where  [FldUId]='287d8c22-5928-4489-acb2-6b959de33169' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='02da0bd2-42f1-4459-9956-c3f8ee306cfe'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(387,'02da0bd2-42f1-4459-9956-c3f8ee306cfe',1632,1632,'00000000-0000-0000-0000-000000000000',9,'WFFlowId',4,1,'',1,1,0,'','','','</span>
   </a>
   <span isfield="1" entid="1632" fieldname="WFFlowId" fldid="387" columntypeid="1" class="form-ctr" style="display: none;">','',-1,103,-1,-1,1,'1632,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=387,[Report_EntId]=1632,[EntId]=1632,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=9,[FieldName]='WFFlowId',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   </a>
   <span isfield="1" entid="1632" fieldname="WFFlowId" fldid="387" columntypeid="1" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1632,' where  [FldUId]='02da0bd2-42f1-4459-9956-c3f8ee306cfe' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='b74221c6-7c30-4f1a-853e-918e265c370e'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(388,'b74221c6-7c30-4f1a-853e-918e265c370e',1632,1632,'00000000-0000-0000-0000-000000000000',8,'WFRunId',5,1,'',1,1,0,'','','','</span>
   <span isfield="1" entid="1632" fieldname="WFRunId" fldid="388" columntypeid="1" class="form-ctr" style="display: none;">','',-1,103,-1,-1,1,'1632,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=388,[Report_EntId]=1632,[EntId]=1632,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=8,[FieldName]='WFRunId',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   <span isfield="1" entid="1632" fieldname="WFRunId" fldid="388" columntypeid="1" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1632,' where  [FldUId]='b74221c6-7c30-4f1a-853e-918e265c370e' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='ac30105f-fa3d-40b2-87e0-45e6d71e864e'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(389,'ac30105f-fa3d-40b2-87e0-45e6d71e864e',1632,1632,'00000000-0000-0000-0000-000000000000',10,'WFPrcsId',6,1,'',1,1,0,'','','','</span>
   <span isfield="1" entid="1632" fieldname="WFPrcsId" fldid="389" columntypeid="1" class="form-ctr" style="display: none;">','',-1,103,-1,-1,1,'1632,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=389,[Report_EntId]=1632,[EntId]=1632,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=10,[FieldName]='WFPrcsId',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   <span isfield="1" entid="1632" fieldname="WFPrcsId" fldid="389" columntypeid="1" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1632,' where  [FldUId]='ac30105f-fa3d-40b2-87e0-45e6d71e864e' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='bf2b1f98-a3a2-4bce-8cab-0c947d3d89b3'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'bf2b1f98-a3a2-4bce-8cab-0c947d3d89b3',1632,1632,'00000000-0000-0000-0000-000000000000',3,'WFUserName',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1407" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowWfCurUserDlg(this);">
   <span isfield="1" entid="1632" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1632,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=2,[Report_EntId]=1632,[EntId]=1632,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='WFUserName',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1407" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowWfCurUserDlg(this);">
   <span isfield="1" entid="1632" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1632,' where  [FldUId]='bf2b1f98-a3a2-4bce-8cab-0c947d3d89b3' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='bd57dff4-b10a-4c7b-92aa-7015b606afba'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'bd57dff4-b10a-4c7b-92aa-7015b606afba',1632,1632,'00000000-0000-0000-0000-000000000000',11,'员工编号',8,1,'varchar',2,1,0,'','','','</span>
   </a>
  </div>
</li><li areaid="1408" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1632" fieldname="员工编号" fldid="3" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1632,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=3,[Report_EntId]=1632,[EntId]=1632,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=11,[FieldName]='员工编号',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   </a>
  </div>
</li><li areaid="1408" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1632" fieldname="员工编号" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1632,' where  [FldUId]='bd57dff4-b10a-4c7b-92aa-7015b606afba' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='294c7cd4-ebd4-4ec3-9d6d-b5e3047025fe'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'294c7cd4-ebd4-4ec3-9d6d-b5e3047025fe',1632,1632,'00000000-0000-0000-0000-000000000000',12,'员工姓名',9,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1409" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1632" fieldname="员工姓名" fldid="4" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1632,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=4,[Report_EntId]=1632,[EntId]=1632,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=12,[FieldName]='员工姓名',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1409" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1632" fieldname="员工姓名" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1632,' where  [FldUId]='294c7cd4-ebd4-4ec3-9d6d-b5e3047025fe' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='c195b857-325c-4b9d-8723-d01e2fb04f3a'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'c195b857-325c-4b9d-8723-d01e2fb04f3a',1632,1632,'00000000-0000-0000-0000-000000000000',13,'所在部门',10,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1410" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1632" fieldname="所在部门" fldid="5" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1632,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=5,[Report_EntId]=1632,[EntId]=1632,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=13,[FieldName]='所在部门',[FieldNO]=10,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1410" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1632" fieldname="所在部门" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1632,' where  [FldUId]='c195b857-325c-4b9d-8723-d01e2fb04f3a' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='0be239f4-6f3c-43f0-bcc6-bba61bbde683'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'0be239f4-6f3c-43f0-bcc6-bba61bbde683',1632,1632,'00000000-0000-0000-0000-000000000000',14,'申请日期',11,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1411" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1632" fieldname="申请日期" fldid="6" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1632,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=6,[Report_EntId]=1632,[EntId]=1632,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=14,[FieldName]='申请日期',[FieldNO]=11,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1411" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1632" fieldname="申请日期" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1632,' where  [FldUId]='0be239f4-6f3c-43f0-bcc6-bba61bbde683' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='5d5a7d8c-9c98-4b36-a5d2-e5d7d56b6073'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'5d5a7d8c-9c98-4b36-a5d2-e5d7d56b6073',1632,1632,'00000000-0000-0000-0000-000000000000',15,'岗位',12,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1412" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1632" fieldname="岗位" fldid="7" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1632,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=7,[Report_EntId]=1632,[EntId]=1632,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=15,[FieldName]='岗位',[FieldNO]=12,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1412" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1632" fieldname="岗位" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1632,' where  [FldUId]='5d5a7d8c-9c98-4b36-a5d2-e5d7d56b6073' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='50d3a0aa-27e1-4f9d-a50c-e45355ac60d8'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(155,'50d3a0aa-27e1-4f9d-a50c-e45355ac60d8',1632,1632,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',13,1,'',2,21,0,'','','','</span>
  </div>
</li><li areaid="1413" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,1632,''ListR_'',''','',-1,103,-1,-1,1,'1632,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=155,[Report_EntId]=1632,[EntId]=1632,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=13,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1413" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,1632,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1632,' where  [FldUId]='50d3a0aa-27e1-4f9d-a50c-e45355ac60d8' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='dabc0833-83ad-4f35-88c2-a89bf092508e'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(156,'dabc0833-83ad-4f35-88c2-a89bf092508e',1632,1632,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',14,1,'',2,21,0,'','','',''',null,1040,480);">
<span class="i">办理</span></a></div>
</li><li areaid="1414" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1632,''ListR_'',''','',-1,103,-1,-1,1,'1632,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=156,[Report_EntId]=1632,[EntId]=1632,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=14,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">办理</span></a></div>
</li><li areaid="1414" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1632,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1632,' where  [FldUId]='dabc0833-83ad-4f35-88c2-a89bf092508e' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='66855c7b-714d-48cc-9518-20d40483d55b'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(157,'66855c7b-714d-48cc-9518-20d40483d55b',1632,1632,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',15,1,'',2,21,0,'','','',''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="1415" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,1632,''ListR_'',''','',-1,103,-1,-1,1,'1632,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=157,[Report_EntId]=1632,[EntId]=1632,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=15,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="1415" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,1632,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1632,' where  [FldUId]='66855c7b-714d-48cc-9518-20d40483d55b' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='e824c55a-3228-08ce-2cd1-e2cf055436da'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(437,'e824c55a-3228-08ce-2cd1-e2cf055436da',1632,1632,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',16,-1,'varchar',2,13,0,'','','',''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>','</div>
</div>
<!-- 结束 --></div>',-1,103,-1,-1,1,'1632,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=437,[Report_EntId]=1632,[EntId]=1632,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=16,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>',[LastHtml]='</div>
</div>
<!-- 结束 --></div>',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1632,' where  [FldUId]='e824c55a-3228-08ce-2cd1-e2cf055436da' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=1035

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=1035  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(1035,null,'人事_员工加班申请表','人事_员工加班申请表',0,0,0,0,0,1,4,1,3,'admin','2013-12-15 17:32:51',3,'admin','2013-12-15 17:32:51',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='人事_员工加班申请表',[DBTableByName]='人事_员工加班申请表',[IsForbid]=0,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=1,[SystemId]=4,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:51',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:51',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=1035 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1035  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7295,1,4,1035,'int',1,1,1,'人事_员工加班申请表','LD_Id','LD_Id','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工加班申请表',[FieldName]='LD_Id',[FieldByname]='LD_Id',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1035  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1035  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7296,2,4,1035,'varchar',2,1,1,'人事_员工加班申请表','WFState','WFState','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工加班申请表',[FieldName]='WFState',[FieldByname]='WFState',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1035  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1035  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7297,3,4,1035,'varchar',2,1,1,'人事_员工加班申请表','WFUserName','WFUserName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工加班申请表',[FieldName]='WFUserName',[FieldByname]='WFUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1035  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1035  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7298,4,4,1035,'bit',4,1,1,'人事_员工加班申请表','WFIsFinish','WFIsFinish','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工加班申请表',[FieldName]='WFIsFinish',[FieldByname]='WFIsFinish',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1035  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1035  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7299,5,4,1035,'bit',4,1,1,'人事_员工加班申请表','WFIsStart','WFIsStart','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工加班申请表',[FieldName]='WFIsStart',[FieldByname]='WFIsStart',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1035  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1035  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7300,6,4,1035,'varchar',2,1,1,'人事_员工加班申请表','WFAllUser','WFAllUser','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工加班申请表',[FieldName]='WFAllUser',[FieldByname]='WFAllUser',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1035  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1035  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7301,7,4,1035,'varchar',2,1,1,'人事_员工加班申请表','WFOpinion','WFOpinion','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工加班申请表',[FieldName]='WFOpinion',[FieldByname]='WFOpinion',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1035  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1035  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7302,8,4,1035,'int',1,1,1,'人事_员工加班申请表','WFRunId','WFRunId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工加班申请表',[FieldName]='WFRunId',[FieldByname]='WFRunId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1035  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1035  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7303,9,4,1035,'int',1,1,1,'人事_员工加班申请表','WFFlowId','WFFlowId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工加班申请表',[FieldName]='WFFlowId',[FieldByname]='WFFlowId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1035  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1035  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7304,10,4,1035,'int',1,1,1,'人事_员工加班申请表','WFPrcsId','WFPrcsId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工加班申请表',[FieldName]='WFPrcsId',[FieldByname]='WFPrcsId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1035  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1035  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7305,11,4,1035,'varchar',2,1,1,'人事_员工加班申请表','员工编号','员工编号','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工加班申请表',[FieldName]='员工编号',[FieldByname]='员工编号',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1035  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1035  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7306,12,4,1035,'varchar',2,1,1,'人事_员工加班申请表','员工姓名','员工姓名','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工加班申请表',[FieldName]='员工姓名',[FieldByname]='员工姓名',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1035  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1035  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7307,13,4,1035,'varchar',2,1,1,'人事_员工加班申请表','所在部门','所在部门','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工加班申请表',[FieldName]='所在部门',[FieldByname]='所在部门',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1035  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1035  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7308,14,4,1035,'datetime',3,1,1,'人事_员工加班申请表','申请日期','申请日期','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工加班申请表',[FieldName]='申请日期',[FieldByname]='申请日期',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1035  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1035  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7309,15,4,1035,'varchar',2,1,1,'人事_员工加班申请表','岗位','岗位','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工加班申请表',[FieldName]='岗位',[FieldByname]='岗位',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1035  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1035  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7310,16,4,1035,'varchar',2,1,1,'人事_员工加班申请表','加班事由','加班事由','',0,0,1,2000,2000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工加班申请表',[FieldName]='加班事由',[FieldByname]='加班事由',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=2000,[Precision]=2000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1035  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1035  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7311,17,4,1035,'varchar',2,1,1,'人事_员工加班申请表','加班时间','加班时间','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工加班申请表',[FieldName]='加班时间',[FieldByname]='加班时间',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1035  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1035  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7312,18,4,1035,'varchar',2,1,1,'人事_员工加班申请表','直属上级审批','直属上级审批','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工加班申请表',[FieldName]='直属上级审批',[FieldByname]='直属上级审批',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1035  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1035  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7313,19,4,1035,'varchar',2,1,1,'人事_员工加班申请表','部门经理审批','部门经理审批','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工加班申请表',[FieldName]='部门经理审批',[FieldByname]='部门经理审批',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1035  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1035  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7314,20,4,1035,'varchar',2,1,1,'人事_员工加班申请表','人力资源经理审批','人力资源经理审批','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工加班申请表',[FieldName]='人力资源经理审批',[FieldByname]='人力资源经理审批',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1035  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1035  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7315,21,4,1035,'varchar',2,1,1,'人事_员工加班申请表','行政副总审批','行政副总审批','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工加班申请表',[FieldName]='行政副总审批',[FieldByname]='行政副总审批',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1035  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1035  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7316,22,4,1035,'int',1,1,1,'人事_员工加班申请表','加班总小时数','加班总小时数','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工加班申请表',[FieldName]='加班总小时数',[FieldByname]='加班总小时数',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1035  and  [FieldId]=22 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--WF_FlowType

     SET IDENTITY_INSERT [WF_FlowType] ON 
      if (select count(1) from [WF_FlowType] where  [FlowId]=56  )<1 
      begin 
           Insert into [WF_FlowType] ([FlowId],[FlowName],[FlowNo],[SortId],[EntId],[EntName],[AutoName],[ManageUsers],[ManageNames],[QueryUsers],[QueryNames],[CanQueryRoles],[CanQueryRolesId],[CanManageRoles],[CanManageRolesId],[CanStartUsers],[CanStartNames],[CanStartRoles],[CanStartRolesId],[AttachMaxSize],[FlowAttach],[IsPigeonhole],[PigeonholedSQL],[IsFreeFlow],[QueryItem],[LaunchIsOpen],[FormUrl],[BrowseUrl],[ListUrl],[Detail],[CreatorId],[Creator],[CreateTime],[EditTime],[Editor],[EditorId],[AccountId])values(56,'加(值)班申请',85,25,1632,'加班申请',null,'admin','admin','admin','admin','系统管理员','3','系统管理员','3',null,null,'Public','1',2,0,0,'',null,null,null,null,null,null,'',0,'admin','2013-11-30 1:06:40',null,null,null,1)
      end
      else 
      begin 
           update [WF_FlowType] set [FlowName]='加(值)班申请',[FlowNo]=85,[SortId]=25,[EntId]=1632,[EntName]='加班申请',[AutoName]=null,[ManageUsers]='admin',[ManageNames]='admin',[QueryUsers]='admin',[QueryNames]='admin',[CanQueryRoles]='系统管理员',[CanQueryRolesId]='3',[CanManageRoles]='系统管理员',[CanManageRolesId]='3',[CanStartUsers]=null,[CanStartNames]=null,[CanStartRoles]='Public',[CanStartRolesId]='1',[AttachMaxSize]=2,[FlowAttach]=0,[IsPigeonhole]=0,[PigeonholedSQL]='',[IsFreeFlow]=null,[QueryItem]=null,[LaunchIsOpen]=null,[FormUrl]=null,[BrowseUrl]=null,[ListUrl]=null,[Detail]='',[CreatorId]=0,[Creator]='admin',[CreateTime]='2013-11-30 1:06:40',[EditTime]=null,[Editor]=null,[EditorId]=null,[AccountId]=1 where  [FlowId]=56 
      end

     SET IDENTITY_INSERT [WF_FlowType] OFF 



Delete from [WF_FlowNode]  where isnull([FlowId],0)=56 

--WF_FlowNode

     SET IDENTITY_INSERT [WF_FlowNode] ON 
      if (select count(1) from [WF_FlowNode] where  [NodeId]=477  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(477,56,'起草申请',1,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','479,480,481,482',0,1,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','',null,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'2710,2711,2712,2713,2714,2715,2716,2717',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=56,[NodeName]='起草申请',[Step]=1,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='479,480,481,482',[AllowLastNodeBoss]=0,[AllowWorkCreator]=1,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='2710,2711,2712,2713,2714,2715,2716,2717',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=477 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=479  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(479,56,'直属部门主管审批',2,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','480',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','',null,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'2718',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=56,[NodeName]='直属部门主管审批',[Step]=2,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='480',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='2718',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=479 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=480  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(480,56,'部门经理审批',3,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','483',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','',null,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'2719',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=56,[NodeName]='部门经理审批',[Step]=3,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='483',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='2719',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=480 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=481  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(481,56,'主管副总审批',4,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','483',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','',null,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'2721',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=56,[NodeName]='主管副总审批',[Step]=4,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='483',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='2721',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=481 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=482  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(482,56,'总经理审批',5,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','483',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','',null,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'2721',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=56,[NodeName]='总经理审批',[Step]=5,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='483',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='2721',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=482 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=483  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(483,56,'人事专员审批',6,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','484,485',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','',null,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'2720',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=56,[NodeName]='人事专员审批',[Step]=6,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='484,485',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='2720',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=483 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=484  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(484,56,'申请成功，通知申请人',7,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','-1',0,1,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','<$462:Begin$>
		--流出到<结束>节点时 

		
update 人事_员工加班申请表 set WFIsFinish=1,WFIsStart=1 where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''

		</$462:End$>',null,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=56,[NodeName]='申请成功，通知申请人',[Step]=7,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='-1',[AllowLastNodeBoss]=0,[AllowWorkCreator]=1,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='<$462:Begin$>
		--流出到<结束>节点时 

		
update 人事_员工加班申请表 set WFIsFinish=1,WFIsStart=1 where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''

		</$462:End$>',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=484 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=485  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(485,56,'申请失败，通知申请人',8,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','-1',0,1,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','<$462:Begin$>
		--流出到<结束>节点时 

		
update 人事_员工加班申请表 set WFIsFinish=1,WFIsStart=0 where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''

		</$462:End$>',null,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=56,[NodeName]='申请失败，通知申请人',[Step]=8,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='-1',[AllowLastNodeBoss]=0,[AllowWorkCreator]=1,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='<$462:Begin$>
		--流出到<结束>节点时 

		
update 人事_员工加班申请表 set WFIsFinish=1,WFIsStart=0 where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''

		</$462:End$>',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=485 
      end

     SET IDENTITY_INSERT [WF_FlowNode] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=1551  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1551,56,477,1632,'加班申请',2710,'员工编号','员工编号','加(值)班审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=56,[NodeId]=477,[EntId]=1632,[EntName]='加班申请',[FldId]=2710,[FieldName]='员工编号',[CtrlByName]='员工编号',[FlowName]='加(值)班审批',[TypeId]=1 where  [Id]=1551 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1552  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1552,56,477,1632,'加班申请',2711,'员工姓名','员工姓名','加(值)班审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=56,[NodeId]=477,[EntId]=1632,[EntName]='加班申请',[FldId]=2711,[FieldName]='员工姓名',[CtrlByName]='员工姓名',[FlowName]='加(值)班审批',[TypeId]=1 where  [Id]=1552 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1553  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1553,56,477,1632,'加班申请',2712,'所在部门','所在部门','加(值)班审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=56,[NodeId]=477,[EntId]=1632,[EntName]='加班申请',[FldId]=2712,[FieldName]='所在部门',[CtrlByName]='所在部门',[FlowName]='加(值)班审批',[TypeId]=1 where  [Id]=1553 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1554  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1554,56,477,1632,'加班申请',2713,'申请日期','申请日期','加(值)班审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=56,[NodeId]=477,[EntId]=1632,[EntName]='加班申请',[FldId]=2713,[FieldName]='申请日期',[CtrlByName]='申请日期',[FlowName]='加(值)班审批',[TypeId]=1 where  [Id]=1554 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1555  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1555,56,477,1632,'加班申请',2714,'岗位','岗位','加(值)班审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=56,[NodeId]=477,[EntId]=1632,[EntName]='加班申请',[FldId]=2714,[FieldName]='岗位',[CtrlByName]='岗位',[FlowName]='加(值)班审批',[TypeId]=1 where  [Id]=1555 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1556  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1556,56,477,1632,'加班申请',2715,'加班事由','加班事由','加(值)班审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=56,[NodeId]=477,[EntId]=1632,[EntName]='加班申请',[FldId]=2715,[FieldName]='加班事由',[CtrlByName]='加班事由',[FlowName]='加(值)班审批',[TypeId]=1 where  [Id]=1556 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1557  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1557,56,477,1632,'加班申请',2716,'加班时间','加班时间','加(值)班审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=56,[NodeId]=477,[EntId]=1632,[EntName]='加班申请',[FldId]=2716,[FieldName]='加班时间',[CtrlByName]='加班时间',[FlowName]='加(值)班审批',[TypeId]=1 where  [Id]=1557 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1558  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1558,56,477,1632,'加班申请',2717,'加班总小时数','加班总小时数','加(值)班审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=56,[NodeId]=477,[EntId]=1632,[EntName]='加班申请',[FldId]=2717,[FieldName]='加班总小时数',[CtrlByName]='加班总小时数',[FlowName]='加(值)班审批',[TypeId]=1 where  [Id]=1558 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=1559  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1559,56,479,1632,'加班申请',2718,'直属上级审批','直属上级审批','加(值)班审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=56,[NodeId]=479,[EntId]=1632,[EntName]='加班申请',[FldId]=2718,[FieldName]='直属上级审批',[CtrlByName]='直属上级审批',[FlowName]='加(值)班审批',[TypeId]=1 where  [Id]=1559 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=1560  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1560,56,480,1632,'加班申请',2719,'部门经理审批','部门经理审批','加(值)班审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=56,[NodeId]=480,[EntId]=1632,[EntName]='加班申请',[FldId]=2719,[FieldName]='部门经理审批',[CtrlByName]='部门经理审批',[FlowName]='加(值)班审批',[TypeId]=1 where  [Id]=1560 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=1561  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1561,56,481,1632,'加班申请',2721,'行政副总审批','行政副总审批','加(值)班审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=56,[NodeId]=481,[EntId]=1632,[EntName]='加班申请',[FldId]=2721,[FieldName]='行政副总审批',[CtrlByName]='行政副总审批',[FlowName]='加(值)班审批',[TypeId]=1 where  [Id]=1561 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=1562  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1562,56,482,1632,'加班申请',2721,'行政副总审批','行政副总审批','加(值)班审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=56,[NodeId]=482,[EntId]=1632,[EntName]='加班申请',[FldId]=2721,[FieldName]='行政副总审批',[CtrlByName]='行政副总审批',[FlowName]='加(值)班审批',[TypeId]=1 where  [Id]=1562 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=1563  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1563,56,483,1632,'加班申请',2720,'人力资源经理审批','人力资源经理审批','加(值)班审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=56,[NodeId]=483,[EntId]=1632,[EntName]='加班申请',[FldId]=2720,[FieldName]='人力资源经理审批',[CtrlByName]='人力资源经理审批',[FlowName]='加(值)班审批',[TypeId]=1 where  [Id]=1563 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=2837  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2837,'428e1594-c01d-45a3-a9a9-143c9373cc45','<font color=red>晋升申请</font>',2905,'/Template/default/ListReport/ListReport_Tree001.aspx',1,'/images/default.gif','/images/default.gif',14,'',null,0,null,4,0,4,1,1,1,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='428e1594-c01d-45a3-a9a9-143c9373cc45',[MenuName]='<font color=red>晋升申请</font>',[ParentId]=2905,[ProPath]='/Template/default/ListReport/ListReport_Tree001.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=14,[Target]='',[IsOpen]=null,[IsHidden]=0,[Remark]=null,[SSystemId]=4,[SMenuId]=0,[SystemId]=4,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=2837 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=2837  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(622,2837,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=2837  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=1658  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(1658,2837,'晋升申请',1,1039,0,'人事_员工晋升申请表',0,0,1,4,1658,null,null,4,null,1,null,26,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=2837,[EntName]='晋升申请',[MEnt]=1,[DBTableId]=1039,[DBConnectId]=0,[DBTableName]='人事_员工晋升申请表',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=4,[SEntId]=1658,[FSystemId]=null,[FEntId]=null,[SystemId]=4,[Remark]=null,[IsFlow]=1,[IsChecked]=null,[FlowId]=26,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=1658 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=1658

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=1658  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11420,-1,1658,1,1,1,1,0,1,0,0,0,1,0,0,0,0,0,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=0,[CanUpdate]=1,[CanOutPut]=0,[CanInput]=0,[CanCopy]=0,[CanPrint]=1,[CanCheck]=0,[CanClean]=0,[CanRecycle]=0,[CanExecute]=0,[CanDesign]=0,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=1658  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=1658  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(10791,2837,1658,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=2837,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=1658  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=1658

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1658  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(19024,4,2837,1658,13,1,1,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=4,[MenuId]=2837,[TemplateId]=13,[ModuleId]=1,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1658  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1658  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(19025,4,2837,1658,13,2,9,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=4,[MenuId]=2837,[TemplateId]=13,[ModuleId]=9,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1658  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1658  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(19026,4,2837,1658,13,3,14,1,4,2,'/Template/Default/Form/AjaxForm/AjaxForm008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=4,[MenuId]=2837,[TemplateId]=13,[ModuleId]=14,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='/Template/Default/Form/AjaxForm/AjaxForm008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1658  and  [ModuleTypeId]=3 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1658  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(19027,4,2837,1658,13,16,31,1,5,2,'/Template/Default/Browse/Browse008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=4,[MenuId]=2837,[TemplateId]=13,[ModuleId]=31,[GroupId]=1,[AreaId]=5,[ShowMode]=2,[AreaUrl]='/Template/Default/Browse/Browse008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1658  and  [ModuleTypeId]=16 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_AjaxForm_Run]  where [EntId]=1658

--Dcx_AjaxForm_Run
      if (select count(1) from [Dcx_AjaxForm_Run] where  [EntId]=1658  )<1 
      begin 
           Insert into [Dcx_AjaxForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('b429c493-aeab-47af-b30e-a1efa6635d83','晋升申请',1658,14,'','',0,'<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>','','DcxRun.AjaxF_1658= {"MenuId":2837,"MEntId":1658,"EntName":"晋升申请","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":true,"EntMsg":{"E1658":{"EntId":1658,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{
DcxForm.CreateHtmlEditor(''d1658_申请晋升原因'',1658,''AjaxF_'',''申请晋升原因'',600,350,false,1,false);

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_1658.EntMsg.E1658.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"人事_员工晋升申请表","EntId":1658,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"申请人编号":{"DtId":2,"DB":1,"CId":4,"FL":-1},"申请人":{"DtId":2,"DB":1,"CId":4,"FL":-1},"现任部门":{"DtId":2,"DB":1,"CId":4,"FL":-1},"现任岗位":{"DtId":2,"DB":1,"CId":4,"FL":-1},"入职日期":{"DtId":3,"DB":1,"CId":5,"FL":0},"申请岗位":{"DtId":2,"DB":1,"CId":3,"FL":-1},"申请岗位所在公司":{"DtId":2,"DB":1,"CId":3,"FL":-1},"申请时间":{"DtId":3,"DB":1,"CId":4,"FL":-1},"生效时间":{"DtId":3,"DB":1,"CId":5,"FL":-1},"申请晋升原因":{"DtId":2,"DB":1,"CId":23,"FL":-1},"对晋升岗位的理解":{"DtId":2,"DB":1,"CId":2,"FL":-1},"对晋升岗位的胜任能力":{"DtId":2,"DB":1,"CId":2,"FL":-1},"部门主管意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"部门经理意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"人事部意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"公司意见批复":{"DtId":2,"DB":1,"CId":2,"FL":-1},"备注":{"DtId":2,"DB":1,"CId":2,"FL":-1}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_1658.EntMsg.E1658.GetDataRowModel=function()
{
    return {"申请人编号":"","申请人":"","现任部门":"","现任岗位":"","入职日期":new Date(),"申请岗位":"","申请岗位所在公司":"","申请时间":new Date(),"生效时间":new Date(),"申请晋升原因":"","对晋升岗位的理解":"","对晋升岗位的胜任能力":"","部门主管意见":"","部门经理意见":"","人事部意见":"","公司意见批复":"","备注":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_AjaxF_1658_95(obj,curFieldName){
 var EntId=1658;
 var FldId=3021;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''现任岗位'';
 var $formContainer=DcxForm.GetHtmlContainer(1658,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1658,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"现任岗位\",FldId:"+FldId+",EntId:1658,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''申请人''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1658,''AjaxF_'',''申请人'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@申请人}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1658_现任岗位");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1658_96(obj,curFieldName){
 var EntId=1658;
 var FldId=3022;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''入职日期'';
 var $formContainer=DcxForm.GetHtmlContainer(1658,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1658,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"入职日期\",FldId:"+FldId+",EntId:1658,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:5,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''申请人编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1658,''AjaxF_'',''申请人编号'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@申请人编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1658_入职日期");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_1658.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1658,''AjaxF_'',buildNew,closeDlg);

}','<$1658$>select [申请人编号],[申请人],[现任部门],[现任岗位],[入职日期],[申请岗位],[申请岗位所在公司],[申请时间],[生效时间],[申请晋升原因],[对晋升岗位的理解],[对晋升岗位的胜任能力],[部门主管意见],[部门经理意见],[人事部意见],[公司意见批复],[备注],[LD_Id] from 人事_员工晋升申请表 where [LD_Id]=''{$keyfieldvalue}''</$1658$>',20,'','','','1658*LD_Id*2**2*人事_员工晋升申请表*晋升申请',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 7:02:48',3,'admin','2013-11-30 5:37:05',1)
      end
      else 
      begin 
           update [Dcx_AjaxForm_Run] set [FormId]='b429c493-aeab-47af-b30e-a1efa6635d83',[FormName]='晋升申请',[ModuleId]=14,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.AjaxF_1658= {"MenuId":2837,"MEntId":1658,"EntName":"晋升申请","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":true,"EntMsg":{"E1658":{"EntId":1658,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{
DcxForm.CreateHtmlEditor(''d1658_申请晋升原因'',1658,''AjaxF_'',''申请晋升原因'',600,350,false,1,false);

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_1658.EntMsg.E1658.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"人事_员工晋升申请表","EntId":1658,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"申请人编号":{"DtId":2,"DB":1,"CId":4,"FL":-1},"申请人":{"DtId":2,"DB":1,"CId":4,"FL":-1},"现任部门":{"DtId":2,"DB":1,"CId":4,"FL":-1},"现任岗位":{"DtId":2,"DB":1,"CId":4,"FL":-1},"入职日期":{"DtId":3,"DB":1,"CId":5,"FL":0},"申请岗位":{"DtId":2,"DB":1,"CId":3,"FL":-1},"申请岗位所在公司":{"DtId":2,"DB":1,"CId":3,"FL":-1},"申请时间":{"DtId":3,"DB":1,"CId":4,"FL":-1},"生效时间":{"DtId":3,"DB":1,"CId":5,"FL":-1},"申请晋升原因":{"DtId":2,"DB":1,"CId":23,"FL":-1},"对晋升岗位的理解":{"DtId":2,"DB":1,"CId":2,"FL":-1},"对晋升岗位的胜任能力":{"DtId":2,"DB":1,"CId":2,"FL":-1},"部门主管意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"部门经理意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"人事部意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"公司意见批复":{"DtId":2,"DB":1,"CId":2,"FL":-1},"备注":{"DtId":2,"DB":1,"CId":2,"FL":-1}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_1658.EntMsg.E1658.GetDataRowModel=function()
{
    return {"申请人编号":"","申请人":"","现任部门":"","现任岗位":"","入职日期":new Date(),"申请岗位":"","申请岗位所在公司":"","申请时间":new Date(),"生效时间":new Date(),"申请晋升原因":"","对晋升岗位的理解":"","对晋升岗位的胜任能力":"","部门主管意见":"","部门经理意见":"","人事部意见":"","公司意见批复":"","备注":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_AjaxF_1658_95(obj,curFieldName){
 var EntId=1658;
 var FldId=3021;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''现任岗位'';
 var $formContainer=DcxForm.GetHtmlContainer(1658,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1658,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"现任岗位\",FldId:"+FldId+",EntId:1658,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''申请人''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1658,''AjaxF_'',''申请人'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@申请人}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1658_现任岗位");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1658_96(obj,curFieldName){
 var EntId=1658;
 var FldId=3022;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''入职日期'';
 var $formContainer=DcxForm.GetHtmlContainer(1658,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1658,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"入职日期\",FldId:"+FldId+",EntId:1658,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:5,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''申请人编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1658,''AjaxF_'',''申请人编号'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@申请人编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1658_入职日期");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_1658.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1658,''AjaxF_'',buildNew,closeDlg);

}',[LoadingSql]='<$1658$>select [申请人编号],[申请人],[现任部门],[现任岗位],[入职日期],[申请岗位],[申请岗位所在公司],[申请时间],[生效时间],[申请晋升原因],[对晋升岗位的理解],[对晋升岗位的胜任能力],[部门主管意见],[部门经理意见],[人事部意见],[公司意见批复],[备注],[LD_Id] from 人事_员工晋升申请表 where [LD_Id]=''{$keyfieldvalue}''</$1658$>',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='1658*LD_Id*2**2*人事_员工晋升申请表*晋升申请',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 7:02:48',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-30 5:37:05',[AccountId]=1 where  [EntId]=1658 
      end




--Dcx_AjaxFormField_Run
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='268b3b6c-d03b-9a1b-a176-5d2721d4aba2'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3018,'268b3b6c-d03b-9a1b-a176-5d2721d4aba2',1658,1658,'00000000-0000-0000-0000-000000000000','申请人编号',2,2,11,'{$staffNO}',0,9,null,0,4,1,0,1,-1,0,0,'','','','{$staffNO},','<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="1658" groupid="176" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="822" class="li-area-title" scroll="no" style="width: 77px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">晋升申请</span></div>
</li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="177" entid="1658" class="ul-mform" ctrlprex="AjaxF_" isrple="1">
<li areaid="823" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3018" istitle="1">申请人编号 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d1658_申请人编号" class="form-lbl" style="width:201px;" IsForField=1 EntId="1658" CId="4" FId="3018" Vtp="0"  CBack=1  >','</span><input id="d1658_申请人编号_hid" type="hidden"  EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="申请人编号" dType="2" Vtp="0" RDT="2" Isc="1" RId="9" CId="4" FId="3018" vlk=0    value="','" />',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3018,[Form_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='申请人编号',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=11,[DefaultValue]='{$staffNO}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$staffNO},',[BeforeHtml]='<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="1658" groupid="176" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="822" class="li-area-title" scroll="no" style="width: 77px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">晋升申请</span></div>
</li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="177" entid="1658" class="ul-mform" ctrlprex="AjaxF_" isrple="1">
<li areaid="823" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3018" istitle="1">申请人编号 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1658_申请人编号" class="form-lbl" style="width:201px;" IsForField=1 EntId="1658" CId="4" FId="3018" Vtp="0"  CBack=1  >',[CtrlbackHtml]='</span><input id="d1658_申请人编号_hid" type="hidden"  EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="申请人编号" dType="2" Vtp="0" RDT="2" Isc="1" RId="9" CId="4" FId="3018" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='268b3b6c-d03b-9a1b-a176-5d2721d4aba2' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='bf587628-43c0-a901-d16c-bd0e44e0b0af'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3019,'bf587628-43c0-a901-d16c-bd0e44e0b0af',1658,1658,'00000000-0000-0000-0000-000000000000','申请人',2,2,12,'{$UserName}',0,9,null,0,4,1,0,2,-1,0,0,'','','','{$UserName},','</span>
</div>
</li>
<li areaid="824" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3019" istitle="1">申请人 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d1658_申请人" class="form-lbl" style="width:201px;" IsForField=1 EntId="1658" CId="4" FId="3019" Vtp="0"  CBack=1  >','</span><input id="d1658_申请人_hid" type="hidden"  EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="申请人" dType="2" Vtp="0" RDT="2" Isc="1" RId="9" CId="4" FId="3019" vlk=0    value="','" />',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3019,[Form_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='申请人',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=12,[DefaultValue]='{$UserName}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=2,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$UserName},',[BeforeHtml]='</span>
</div>
</li>
<li areaid="824" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3019" istitle="1">申请人 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1658_申请人" class="form-lbl" style="width:201px;" IsForField=1 EntId="1658" CId="4" FId="3019" Vtp="0"  CBack=1  >',[CtrlbackHtml]='</span><input id="d1658_申请人_hid" type="hidden"  EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="申请人" dType="2" Vtp="0" RDT="2" Isc="1" RId="9" CId="4" FId="3019" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='bf587628-43c0-a901-d16c-bd0e44e0b0af' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='645c724e-6279-657f-4232-e117d97bf189'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3020,'645c724e-6279-657f-4232-e117d97bf189',1658,1658,'00000000-0000-0000-0000-000000000000','现任部门',2,2,13,'{$deptname}',0,9,null,0,4,1,0,3,-1,0,0,'','','','{$deptname},','</span>
</div>
</li>
<li areaid="825" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3020">现任部门  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d1658_现任部门" class="form-lbl" style="width:201px;" IsForField=1 EntId="1658" CId="4" FId="3020" Vtp="0"  >','</span><input id="d1658_现任部门_hid" type="hidden"  EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="现任部门" dType="2" Vtp="0" RDT="2" Isc="1" RId="9" CId="4" FId="3020" vlk=0    value="','" />',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3020,[Form_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='现任部门',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=13,[DefaultValue]='{$deptname}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=3,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$deptname},',[BeforeHtml]='</span>
</div>
</li>
<li areaid="825" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3020">现任部门  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1658_现任部门" class="form-lbl" style="width:201px;" IsForField=1 EntId="1658" CId="4" FId="3020" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d1658_现任部门_hid" type="hidden"  EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="现任部门" dType="2" Vtp="0" RDT="2" Isc="1" RId="9" CId="4" FId="3020" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='645c724e-6279-657f-4232-e117d97bf189' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='bad4a4dd-b28b-4108-984a-e43130a74d76'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3021,'bad4a4dd-b28b-4108-984a-e43130a74d76',1658,1658,'00000000-0000-0000-0000-000000000000','现任岗位',2,2,14,'Select  [Dcx_Employee].[PositionName]  from  [Dcx_Employee]  Where   UserName =''{@申请人}''',2,9,null,0,4,1,0,4,-1,0,0,'','','申请人,','','</span>
  </div>
</li>
<li areaid="826" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3021">现任岗位  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d1658_现任岗位" class="form-lbl" style="width:201px;" IsForField=1 EntId="1658" CId="4" FId="3021" Vtp="2"  >','</span><input id="d1658_现任岗位_hid" type="hidden"  EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="现任岗位" dType="2" Vtp="2" RDT="2" Isc="1" RId="9" CId="4" FId="3021" vlk=0    value="','" />',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3021,[Form_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='现任岗位',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=14,[DefaultValue]='Select  [Dcx_Employee].[PositionName]  from  [Dcx_Employee]  Where   UserName =''{@申请人}''',[ValueType]=2,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=4,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='申请人,',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="826" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3021">现任岗位  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1658_现任岗位" class="form-lbl" style="width:201px;" IsForField=1 EntId="1658" CId="4" FId="3021" Vtp="2"  >',[CtrlbackHtml]='</span><input id="d1658_现任岗位_hid" type="hidden"  EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="现任岗位" dType="2" Vtp="2" RDT="2" Isc="1" RId="9" CId="4" FId="3021" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='bad4a4dd-b28b-4108-984a-e43130a74d76' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='3d3bf07f-985b-d291-709a-84ee5efba90a'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3022,'3d3bf07f-985b-d291-709a-84ee5efba90a',1658,1658,'00000000-0000-0000-0000-000000000000','入职日期',3,3,15,'Select  [Dcx_Employee].EntryDate  from  [Dcx_Employee] where [EmployeeCode] =''{@申请人编号}''',2,1,1,0,5,1,1,5,-1,0,0,'','','申请人编号,','','</span>
  </div>
</li>
<li areaid="827" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3022">入职日期</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<div class="form-ddl"><input  id="d1658_入职日期"   type="text" class="form-ddl-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);DcxDTime.ShowCalendar(this);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="入职日期" dType="3" Vtp="2" RDT="3" Isc="1" RId="1" CId="5" FId="3022" vlk=0    value="','"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>','',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3022,[Form_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='入职日期',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=15,[DefaultValue]='Select  [Dcx_Employee].EntryDate  from  [Dcx_Employee] where [EmployeeCode] =''{@申请人编号}''',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=5,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=5,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='申请人编号,',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="827" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3022">入职日期</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-ddl"><input  id="d1658_入职日期"   type="text" class="form-ddl-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);DcxDTime.ShowCalendar(this);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="入职日期" dType="3" Vtp="2" RDT="3" Isc="1" RId="1" CId="5" FId="3022" vlk=0    value="',[CtrlbackHtml]='"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='3d3bf07f-985b-d291-709a-84ee5efba90a' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='a6eb0844-8bb5-27f9-25c6-a4910aa182ab'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3023,'a6eb0844-8bb5-27f9-25c6-a4910aa182ab',1658,1658,'00000000-0000-0000-0000-000000000000','申请岗位',2,2,16,'SELECT [PositionName] FROM [Dcx_Position]',2,1,null,0,3,1,0,6,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="828" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3023">申请岗位  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<select id="d1658_申请岗位" name="d1658_申请岗位" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="申请岗位" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="3" FId="3023" vlk=0    style="width:201px;">','</select>','',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3023,[Form_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='申请岗位',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=16,[DefaultValue]='SELECT [PositionName] FROM [Dcx_Position]',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=6,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="828" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3023">申请岗位  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1658_申请岗位" name="d1658_申请岗位" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="申请岗位" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="3" FId="3023" vlk=0    style="width:201px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='a6eb0844-8bb5-27f9-25c6-a4910aa182ab' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='f0e937d9-e8f3-7bbe-8a45-29a77b8ccf11'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3024,'f0e937d9-e8f3-7bbe-8a45-29a77b8ccf11',1658,1658,'00000000-0000-0000-0000-000000000000','申请岗位所在公司',2,2,17,'Select  公司信息.[公司名称]  from  公司信息',2,1,null,0,3,1,0,7,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="829" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3024">申请岗位所在公司  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<select id="d1658_申请岗位所在公司" name="d1658_申请岗位所在公司" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="申请岗位所在公司" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="3" FId="3024" vlk=0    style="width:201px;">','</select>','',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3024,[Form_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='申请岗位所在公司',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=17,[DefaultValue]='Select  公司信息.[公司名称]  from  公司信息',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=7,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="829" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3024">申请岗位所在公司  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1658_申请岗位所在公司" name="d1658_申请岗位所在公司" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="申请岗位所在公司" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="3" FId="3024" vlk=0    style="width:201px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='f0e937d9-e8f3-7bbe-8a45-29a77b8ccf11' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='f94200e5-9083-850b-c53f-d6af7055253e'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3025,'f94200e5-9083-850b-c53f-d6af7055253e',1658,1658,'00000000-0000-0000-0000-000000000000','申请时间',3,3,18,'{$date}',0,9,null,0,4,1,0,8,-1,0,0,'','','','{$date},','</span>
  </div>
</li>
<li areaid="830" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3025">申请时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d1658_申请时间" class="form-lbl" style="width:201px;" IsForField=1 EntId="1658" CId="4" FId="3025" Vtp="0"  >','</span><input id="d1658_申请时间_hid" type="hidden"  EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="申请时间" dType="3" Vtp="0" RDT="3" Isc="1" RId="9" CId="4" FId="3025" vlk=0    value="','" />',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3025,[Form_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='申请时间',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=18,[DefaultValue]='{$date}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=8,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$date},',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="830" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3025">申请时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1658_申请时间" class="form-lbl" style="width:201px;" IsForField=1 EntId="1658" CId="4" FId="3025" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d1658_申请时间_hid" type="hidden"  EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="申请时间" dType="3" Vtp="0" RDT="3" Isc="1" RId="9" CId="4" FId="3025" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='f94200e5-9083-850b-c53f-d6af7055253e' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='b2567b18-084a-2bc4-64d3-f6657402c32c'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3026,'b2567b18-084a-2bc4-64d3-f6657402c32c',1658,1658,'00000000-0000-0000-0000-000000000000','生效时间',3,3,19,'',5,1,null,0,5,1,0,9,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="831" style="height: 38px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3026">生效时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<div class="form-ddl"><input  id="d1658_生效时间"   type="text" class="form-ddl-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);DcxDTime.ShowCalendar(this);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="生效时间" dType="3" Vtp="5" RDT="3" Isc="0" RId="1" CId="5" FId="3026" vlk=0    value="','"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>','',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3026,[Form_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='生效时间',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=19,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=5,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=9,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="831" style="height: 38px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3026">生效时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-ddl"><input  id="d1658_生效时间"   type="text" class="form-ddl-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);DcxDTime.ShowCalendar(this);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="生效时间" dType="3" Vtp="5" RDT="3" Isc="0" RId="1" CId="5" FId="3026" vlk=0    value="',[CtrlbackHtml]='"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='b2567b18-084a-2bc4-64d3-f6657402c32c' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='4f324a5f-03dd-0059-0d83-f6d3d1d0a8f8'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3027,'4f324a5f-03dd-0059-0d83-f6d3d1d0a8f8',1658,1658,'00000000-0000-0000-0000-000000000000','申请晋升原因',2,2,20,'',5,1,null,0,23,1,0,10,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="832" style="height: 470px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3027">申请晋升原因  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1658_申请晋升原因" class="form-txts"  style="width:600px;height:350px;" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="申请晋升原因" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="23" FId="3027" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3027,[Form_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='申请晋升原因',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=20,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=23,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=10,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="832" style="height: 470px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3027">申请晋升原因  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1658_申请晋升原因" class="form-txts"  style="width:600px;height:350px;" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="申请晋升原因" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="23" FId="3027" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='4f324a5f-03dd-0059-0d83-f6d3d1d0a8f8' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='8a6eebc0-dcd5-d660-93ab-ff0f4ee18d15'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3028,'8a6eebc0-dcd5-d660-93ab-ff0f4ee18d15',1658,1658,'00000000-0000-0000-0000-000000000000','对晋升岗位的理解',2,2,21,'',5,1,null,0,2,1,0,11,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="833" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3028">对晋升岗位的理解  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1658_对晋升岗位的理解" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="对晋升岗位的理解" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="3028" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3028,[Form_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='对晋升岗位的理解',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=21,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=11,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="833" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3028">对晋升岗位的理解  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1658_对晋升岗位的理解" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="对晋升岗位的理解" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="3028" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='8a6eebc0-dcd5-d660-93ab-ff0f4ee18d15' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='e2872172-8f88-6e53-3d8f-c1b9bfe2d147'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3029,'e2872172-8f88-6e53-3d8f-c1b9bfe2d147',1658,1658,'00000000-0000-0000-0000-000000000000','对晋升岗位的胜任能力',2,2,22,'',5,1,null,0,2,1,0,12,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="834" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3029">对晋升岗位的胜任能力  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1658_对晋升岗位的胜任能力" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="对晋升岗位的胜任能力" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="3029" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3029,[Form_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='对晋升岗位的胜任能力',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=22,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=12,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="834" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3029">对晋升岗位的胜任能力  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1658_对晋升岗位的胜任能力" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="对晋升岗位的胜任能力" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="3029" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='e2872172-8f88-6e53-3d8f-c1b9bfe2d147' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='91034fc8-c517-6b24-a39b-bc4c79d296c7'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3030,'91034fc8-c517-6b24-a39b-bc4c79d296c7',1658,1658,'00000000-0000-0000-0000-000000000000','部门主管意见',2,2,23,'',5,1,null,0,2,1,0,13,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="835" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3030">部门主管意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1658_部门主管意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="部门主管意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="3030" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3030,[Form_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='部门主管意见',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=23,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=13,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="835" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3030">部门主管意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1658_部门主管意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="部门主管意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="3030" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='91034fc8-c517-6b24-a39b-bc4c79d296c7' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='f900ed07-db02-d650-9a00-bc8baeca1ef9'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3031,'f900ed07-db02-d650-9a00-bc8baeca1ef9',1658,1658,'00000000-0000-0000-0000-000000000000','部门经理意见',2,2,24,'',5,1,null,0,2,1,0,14,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="836" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3031">部门经理意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1658_部门经理意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="部门经理意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="3031" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3031,[Form_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='部门经理意见',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=24,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=14,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="836" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3031">部门经理意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1658_部门经理意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="部门经理意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="3031" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='f900ed07-db02-d650-9a00-bc8baeca1ef9' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='782bafcd-1930-47ed-dad8-ceae38d01737'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3032,'782bafcd-1930-47ed-dad8-ceae38d01737',1658,1658,'00000000-0000-0000-0000-000000000000','人事部意见',2,2,25,'',5,1,null,0,2,1,0,15,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="837" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3032">人事部意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1658_人事部意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="人事部意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="3032" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3032,[Form_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='人事部意见',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=25,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=15,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="837" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3032">人事部意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1658_人事部意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="人事部意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="3032" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='782bafcd-1930-47ed-dad8-ceae38d01737' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='a7494912-78c6-8168-bdcd-6fee18b9613c'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3033,'a7494912-78c6-8168-bdcd-6fee18b9613c',1658,1658,'00000000-0000-0000-0000-000000000000','公司意见批复',2,2,26,'',5,1,null,0,2,1,0,16,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="838" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3033">公司意见批复  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1658_公司意见批复" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="公司意见批复" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="3033" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3033,[Form_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='公司意见批复',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=26,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=16,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="838" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3033">公司意见批复  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1658_公司意见批复" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="公司意见批复" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="3033" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='a7494912-78c6-8168-bdcd-6fee18b9613c' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='2789c255-aa1b-89e8-605c-2904af8b0d59'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3034,'2789c255-aa1b-89e8-605c-2904af8b0d59',1658,1658,'00000000-0000-0000-0000-000000000000','备注',2,2,27,'',5,1,null,0,2,1,0,17,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="839" style="height: 138px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3034">备注  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','</span>
  </div>
</li>
</ul>
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="178" entid="1658" class="tab_ul" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="840" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li areaid="841" istab="1" tabid="2" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1" style="">
<ul isgroup="1" groupid="179" entid="1658" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="842" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="180" entid="1658" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="843" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="1658" groupid="181" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="844" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
<li areaid="845" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>','','','<textarea  id="d1658_备注" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="备注" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="3034" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3034,[Form_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='备注',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=27,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=17,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="839" style="height: 138px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3034">备注  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
  </div>
</li>
</ul>
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="178" entid="1658" class="tab_ul" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="840" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li areaid="841" istab="1" tabid="2" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1" style="">
<ul isgroup="1" groupid="179" entid="1658" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="842" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="180" entid="1658" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="843" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="1658" groupid="181" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="844" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
<li areaid="845" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1658_备注" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="备注" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="3034" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='2789c255-aa1b-89e8-605c-2904af8b0d59' 
      end



Delete from [Dcx_SearchForm_Run]  where [EntId]=1658

--Dcx_SearchForm_Run
      if (select count(1) from [Dcx_SearchForm_Run] where  [EntId]=1658  )<1 
      begin 
           Insert into [Dcx_SearchForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('e289ee33-6c97-42d1-bdbb-82d9f070d417','晋升申请',1658,9,'','',0,'<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>','','DcxRun.SearchF_1658= {"MenuId":2837,"MEntId":1658,"EntName":"晋升申请","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1658":{"EntId":1658,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_1658.EntMsg.E1658.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"人事_员工晋升申请表","EntId":1658,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"申请人":{"DtId":2,"DB":1,"CId":1,"FL":100},"现任部门":{"DtId":2,"DB":1,"CId":3,"FL":100},"申请时间":{"DtId":3,"DB":1,"CId":5,"FL":100},"流程是否已结束":{"DtId":4,"DB":0,"CId":3,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.SearchF_1658.EntMsg.E1658.GetDataRowModel=function()
{
    return {"申请人":"","现任部门":"","申请时间":new Date(),"流程是否已结束":false,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_1658.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1658,''SearchF_'',buildNew,closeDlg);

}','',20,'','','','1658*LD_Id*2**2*人事_员工晋升申请表*晋升申请',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 5:45:57',3,'admin','2013-11-16 17:38:18',1)
      end
      else 
      begin 
           update [Dcx_SearchForm_Run] set [FormId]='e289ee33-6c97-42d1-bdbb-82d9f070d417',[FormName]='晋升申请',[ModuleId]=9,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.SearchF_1658= {"MenuId":2837,"MEntId":1658,"EntName":"晋升申请","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1658":{"EntId":1658,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_1658.EntMsg.E1658.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"人事_员工晋升申请表","EntId":1658,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"申请人":{"DtId":2,"DB":1,"CId":1,"FL":100},"现任部门":{"DtId":2,"DB":1,"CId":3,"FL":100},"申请时间":{"DtId":3,"DB":1,"CId":5,"FL":100},"流程是否已结束":{"DtId":4,"DB":0,"CId":3,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.SearchF_1658.EntMsg.E1658.GetDataRowModel=function()
{
    return {"申请人":"","现任部门":"","申请时间":new Date(),"流程是否已结束":false,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_1658.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1658,''SearchF_'',buildNew,closeDlg);

}',[LoadingSql]='',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='1658*LD_Id*2**2*人事_员工晋升申请表*晋升申请',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 5:45:57',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-16 17:38:18',[AccountId]=1 where  [EntId]=1658 
      end




--Dcx_SearchFormField_Run
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='3460f0ff-e602-45f4-9066-b63cdd8d2baa'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'3460f0ff-e602-45f4-9066-b63cdd8d2baa',1658,1658,'00000000-0000-0000-0000-000000000000',1,'Like','申请人',2,2,12,'',5,1,1,0,1,1,0,-1,1,0,'','','','','<div class="searchform">
<ul isgroup="1" groupid="27" entid="1658" class="search-block w920" ctrlprex="SearchF_" isrple="1">
<li areaid="131" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="1">申请人</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">','','','','<input  id="d1658_申请人"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''SearchF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''SearchF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="申请人" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=1,[Form_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[CompareOperatorType]='Like',[FieldName]='申请人',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=12,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="searchform">
<ul isgroup="1" groupid="27" entid="1658" class="search-block w920" ctrlprex="SearchF_" isrple="1">
<li areaid="131" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="1">申请人</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1658_申请人"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''SearchF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''SearchF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="申请人" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='3460f0ff-e602-45f4-9066-b63cdd8d2baa' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='d7095876-e8f3-4448-8486-2319e95f98e5'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'d7095876-e8f3-4448-8486-2319e95f98e5',1658,1658,'00000000-0000-0000-0000-000000000000',2,'Like','现任部门',2,2,13,'select '''' union SELECT [DeptName]  FROM [Dcx_Dept]',2,1,1,0,3,1,0,-1,1,0,'','','','','</span>
  </div>
</li>
<li areaid="132" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="2">现任部门</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">','','','','<select id="d1658_现任部门" name="d1658_现任部门" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1658,''SearchF_'',1658,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''SearchF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="现任部门" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="3" FId="2" vlk=0    Cpre="Like"  style="width:150px;">','</select>','',1,-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=2,[Form_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[CompareOperatorType]='Like',[FieldName]='现任部门',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=13,[DefaultValue]='select '''' union SELECT [DeptName]  FROM [Dcx_Dept]',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="132" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="2">现任部门</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1658_现任部门" name="d1658_现任部门" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1658,''SearchF_'',1658,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''SearchF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="现任部门" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="3" FId="2" vlk=0    Cpre="Like"  style="width:150px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='d7095876-e8f3-4448-8486-2319e95f98e5' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='7212c978-88f1-4e72-a103-a14befbc4d46'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'7212c978-88f1-4e72-a103-a14befbc4d46',1658,1658,'00000000-0000-0000-0000-000000000000',3,'Like','申请时间',3,3,18,'',5,1,1,0,5,1,0,-1,1,0,'','','','','</span>
  </div>
</li>
<li areaid="133" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="3">申请时间</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">','','','','<div class="form-ddl"><input  id="d1658_申请时间"   type="text" class="form-ddl-txt"  style="width:130px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''SearchF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''SearchF_'',1658);DcxDTime.ShowCalendar(this);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="申请时间" dType="3" Vtp="5" RDT="3" Isc="1" RId="1" CId="5" FId="3" vlk=0    Cpre="Like"  value="','"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>','',1,-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=3,[Form_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[CompareOperatorType]='Like',[FieldName]='申请时间',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=18,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=5,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="133" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="3">申请时间</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-ddl"><input  id="d1658_申请时间"   type="text" class="form-ddl-txt"  style="width:130px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''SearchF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''SearchF_'',1658);DcxDTime.ShowCalendar(this);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="申请时间" dType="3" Vtp="5" RDT="3" Isc="1" RId="1" CId="5" FId="3" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='7212c978-88f1-4e72-a103-a14befbc4d46' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='ef080113-3242-42ad-9870-bc70eba7e7c4'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'ef080113-3242-42ad-9870-bc70eba7e7c4',1658,1658,'00000000-0000-0000-0000-000000000000',4,'=','流程是否已结束',4,4,-1,'',1,1,1,0,3,1,0,-1,1,0,'','','','','</span>
  </div>
</li>
<li areaid="134" class="search-li w270 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="4">流程已结束</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">','</span>
  </div>
</li>
<li areaid="135" class="search-li w100 h32" scroll="no" style="position: static;">
<div class="searchform-button" onclick="javascript:return VL_Search(1658);">
<div class="search-btn">&nbsp;</div>
<a href="javascript:void(0);" id="1658_searchBT">搜索</a>
</div>
</li>
</ul>
</div>','','','<select id="d1658_流程是否已结束" name="d1658_流程是否已结束" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1658,''SearchF_'',1658,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''SearchF_'',1658);" EntId="1658" IsField=1 DBField=0 IsPost=1 FieldName="流程是否已结束" dType="4" Vtp="1" RDT="4" Isc="1" RId="1" CId="3" FId="4" vlk=0    Cpre="="  style="width:150px;">','<option  value="False"  >否</option>
<option  value="True"  >是</option>
</select>','',1,-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=4,[Form_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=4,[CompareOperatorType]='=',[FieldName]='流程是否已结束',[FieldDataTypeId]=4,[RunDataTypeId]=4,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=1,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="134" class="search-li w270 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="4">流程已结束</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
  </div>
</li>
<li areaid="135" class="search-li w100 h32" scroll="no" style="position: static;">
<div class="searchform-button" onclick="javascript:return VL_Search(1658);">
<div class="search-btn">&nbsp;</div>
<a href="javascript:void(0);" id="1658_searchBT">搜索</a>
</div>
</li>
</ul>
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1658_流程是否已结束" name="d1658_流程是否已结束" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1658,''SearchF_'',1658,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''SearchF_'',1658);" EntId="1658" IsField=1 DBField=0 IsPost=1 FieldName="流程是否已结束" dType="4" Vtp="1" RDT="4" Isc="1" RId="1" CId="3" FId="4" vlk=0    Cpre="="  style="width:150px;">',[CtrlbackHtml]='<option  value="False"  >否</option>
<option  value="True"  >是</option>
</select>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='ef080113-3242-42ad-9870-bc70eba7e7c4' 
      end



Delete from [Dcx_BrowseReport_Run]  where [EntId]=1658

--Dcx_BrowseReport_Run
      if (select count(1) from [Dcx_BrowseReport_Run] where  [EntId]=1658  )<1 
      begin 
           Insert into [Dcx_BrowseReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[DIYJsCss],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('7b54d440-5989-485f-adb2-61dd4e4ca118','晋升申请',1658,31,'','<$1658$>select [WFState],[WFUserName],[申请人编号],[申请人],[申请时间],[申请晋升原因],[对晋升岗位的理解],[对晋升岗位的胜任能力],[LD_Id] from 人事_员工晋升申请表 where [LD_Id]=''{$keyfieldvalue}''</$1658$>',1,1,20,'','DcxRun.MChildR_1658= {"MenuId":2837,"MEntId":1658,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"晋升申请","EntMsg":{"E1658":{"EntId":1658,"EntName":"晋升申请","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":26,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1658*LD_Id*2**2*人事_员工晋升申请表*晋升申请',3,'','2012-12-21 11:03:02',3,'','2013-11-17 3:03:55',1)
      end
      else 
      begin 
           update [Dcx_BrowseReport_Run] set [ReportId]='7b54d440-5989-485f-adb2-61dd4e4ca118',[ReportName]='晋升申请',[ModuleId]=31,[StaticHtml]='',[LoadingSql]='<$1658$>select [WFState],[WFUserName],[申请人编号],[申请人],[申请时间],[申请晋升原因],[对晋升岗位的理解],[对晋升岗位的胜任能力],[LD_Id] from 人事_员工晋升申请表 where [LD_Id]=''{$keyfieldvalue}''</$1658$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[DIYJsCss]='',[AutoPublicJs]='DcxRun.MChildR_1658= {"MenuId":2837,"MEntId":1658,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"晋升申请","EntMsg":{"E1658":{"EntId":1658,"EntName":"晋升申请","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":26,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1658*LD_Id*2**2*人事_员工晋升申请表*晋升申请',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-21 11:03:02',[EditorId]=3,[Editor]='',[EditTime]='2013-11-17 3:03:55',[AccountId]=1 where  [EntId]=1658 
      end




--Dcx_BrowseReportField_Run
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='d852c42d-87dc-48fe-ac52-5f63a08b3016'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'d852c42d-87dc-48fe-ac52-5f63a08b3016',1658,1658,'00000000-0000-0000-0000-000000000000',2,'WFState',1,1,'varchar',2,1,0,'','','','<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1658" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="443" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">晋升申请</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1658" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="444" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">流程当前状态  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1658" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=1,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='WFState',[FieldNO]=1,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1658" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="443" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">晋升申请</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1658" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="444" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">流程当前状态  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1658" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='d852c42d-87dc-48fe-ac52-5f63a08b3016' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='15756031-12bc-4439-b910-e4b23c421fce'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'15756031-12bc-4439-b910-e4b23c421fce',1658,1658,'00000000-0000-0000-0000-000000000000',3,'WFUserName',2,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="445" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">流程当前办理人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1658" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=2,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='WFUserName',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="445" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">流程当前办理人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1658" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='15756031-12bc-4439-b910-e4b23c421fce' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='114d80d8-b460-4767-b22c-f2f8d7234ecc'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'114d80d8-b460-4767-b22c-f2f8d7234ecc',1658,1658,'00000000-0000-0000-0000-000000000000',11,'申请人编号',3,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="446" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">申请人编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1658" fieldname="申请人编号" fldid="3" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=3,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=11,[FieldName]='申请人编号',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="446" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">申请人编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1658" fieldname="申请人编号" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='114d80d8-b460-4767-b22c-f2f8d7234ecc' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='6a13af13-1cc3-4afd-86f8-0f1bed075e76'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'6a13af13-1cc3-4afd-86f8-0f1bed075e76',1658,1658,'00000000-0000-0000-0000-000000000000',12,'申请人',4,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="447" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">申请人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1658" fieldname="申请人" fldid="4" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=4,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=12,[FieldName]='申请人',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="447" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">申请人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1658" fieldname="申请人" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='6a13af13-1cc3-4afd-86f8-0f1bed075e76' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='d3322012-4be8-46db-88ee-d4ffdd4f200a'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'d3322012-4be8-46db-88ee-d4ffdd4f200a',1658,1658,'00000000-0000-0000-0000-000000000000',18,'申请时间',5,4,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="448" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">申请时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1658" fieldname="申请时间" fldid="5" columntypeid="4" class="form-ctr">','',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=5,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=18,[FieldName]='申请时间',[FieldNO]=5,[ColumnTypeId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="448" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">申请时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1658" fieldname="申请时间" fldid="5" columntypeid="4" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='d3322012-4be8-46db-88ee-d4ffdd4f200a' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='8d39b046-ad80-4429-ad65-6e84c787fc48'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'8d39b046-ad80-4429-ad65-6e84c787fc48',1658,1658,'00000000-0000-0000-0000-000000000000',20,'申请晋升原因',6,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="449" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">申请晋升原因  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1658" fieldname="申请晋升原因" fldid="6" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=6,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=20,[FieldName]='申请晋升原因',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="449" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">申请晋升原因  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1658" fieldname="申请晋升原因" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='8d39b046-ad80-4429-ad65-6e84c787fc48' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='0d0565fe-7e91-4eca-ab8b-c146aafe2087'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'0d0565fe-7e91-4eca-ab8b-c146aafe2087',1658,1658,'00000000-0000-0000-0000-000000000000',21,'对晋升岗位的理解',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="450" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">对晋升岗位的理解  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1658" fieldname="对晋升岗位的理解" fldid="7" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=7,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=21,[FieldName]='对晋升岗位的理解',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="450" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">对晋升岗位的理解  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1658" fieldname="对晋升岗位的理解" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='0d0565fe-7e91-4eca-ab8b-c146aafe2087' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='b59f04b8-dc58-471d-b84f-bf5f3c6cb3dd'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'b59f04b8-dc58-471d-b84f-bf5f3c6cb3dd',1658,1658,'00000000-0000-0000-0000-000000000000',22,'对晋升岗位的胜任能力',8,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="451" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="8">对晋升岗位的胜任能力  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1658" fieldname="对晋升岗位的胜任能力" fldid="8" columntypeid="1" class="form-ctr">','</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1658" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="456" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="457" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1658" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="458" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1658" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="459" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1658" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="460" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="461" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=8,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=22,[FieldName]='对晋升岗位的胜任能力',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="451" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="8">对晋升岗位的胜任能力  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1658" fieldname="对晋升岗位的胜任能力" fldid="8" columntypeid="1" class="form-ctr">',[LastHtml]='</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1658" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="456" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="457" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1658" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="458" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1658" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="459" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1658" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="460" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="461" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='b59f04b8-dc58-471d-b84f-bf5f3c6cb3dd' 
      end



Delete from [Dcx_ListReport_Run]  where [EntId]=1658

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=1658  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('674de51d-9680-4d02-80e4-74a8190b367e','晋升申请',1658,1,'','','<$1658$>select *  from (select row_number() over( order by [LD_Id])as dcx_rowid,[WFState],[WFFlowId],[WFRunId],[WFPrcsId],[WFUserName],[申请人编号],[申请人],[申请时间],[申请晋升原因],[对晋升岗位的理解],[对晋升岗位的胜任能力],[LD_Id] from 人事_员工晋升申请表  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1658$><$1658:Count$>select count([LD_Id]) from 人事_员工晋升申请表 where {$SearchArea}</$1658:Count$>',1,1,20,'DcxRun.ListR_1658= {"MenuId":2837,"MEntId":1658,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"晋升申请","EntMsg":{"E1658":{"EntId":1658,"EntName":"晋升申请","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":26,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1658*LD_Id*2**2*人事_员工晋升申请表*晋升申请',3,'','2012-12-22 5:16:19',3,'','2013-11-16 20:11:41',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='674de51d-9680-4d02-80e4-74a8190b367e',[ReportName]='晋升申请',[ModuleId]=1,[StaticHtml]='',[DIYJsCss]='',[LoadingSql]='<$1658$>select *  from (select row_number() over( order by [LD_Id])as dcx_rowid,[WFState],[WFFlowId],[WFRunId],[WFPrcsId],[WFUserName],[申请人编号],[申请人],[申请时间],[申请晋升原因],[对晋升岗位的理解],[对晋升岗位的胜任能力],[LD_Id] from 人事_员工晋升申请表  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1658$><$1658:Count$>select count([LD_Id]) from 人事_员工晋升申请表 where {$SearchArea}</$1658:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[AutoPublicJs]='DcxRun.ListR_1658= {"MenuId":2837,"MEntId":1658,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"晋升申请","EntMsg":{"E1658":{"EntId":1658,"EntName":"晋升申请","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":26,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1658*LD_Id*2**2*人事_员工晋升申请表*晋升申请',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-22 5:16:19',[EditorId]=3,[Editor]='',[EditTime]='2013-11-16 20:11:41',[AccountId]=1 where  [EntId]=1658 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='40b2e745-e0a8-3e52-d56b-948a026b67bd'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(448,'40b2e745-e0a8-3e52-d56b-948a026b67bd',1658,1658,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="101" entid="1658" style="width: 1060px;" ctrlprex="ListR_" isrple="1"> <li areaid="1489" class="tool-li" style="position: static;">
</li><li areaid="1490" class="tool-li" style="position: static;"><a id="ListR_1658_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1658,''ListR_'');">删   除</a></li>
<li areaid="1491" class="tool-li" style="position: static;"><a id="ListR_1658_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1658,''ListR_'');">导   出</a></li>
<li areaid="1492" class="tool-li" style="position: static;"><a id="ListR_1658_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1658,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1658" style="position: static;">
<a id="ListR_1658_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1658,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1658_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1658,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1658_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1658,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1658_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="102" entid="1658" class="list-head-ul" style="width: 1080px;" ctrlprex="ListR_" isrple="1">
<li areaid="1494" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1658" onclick="javascript:DcxCom.CheckedAll(this,1658,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="1495" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">流程当前状态 </label></li><li areaid="1496" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">流程当前办理人 </label></li><li areaid="1497" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请人编号 </label></li><li areaid="1498" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请人 </label></li><li areaid="1499" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请时间 </label></li><li areaid="1500" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请晋升原因 </label></li><li areaid="1501" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">对晋升岗位的理解 </label></li><li areaid="1502" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">对晋升岗位的胜任能力 </label></li><li areaid="1503" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="办理"><span class="i">办理</span></a></div></li><li areaid="1504" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="1505" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">','',-1,103,-1,-1,1,'1658,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=448,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="101" entid="1658" style="width: 1060px;" ctrlprex="ListR_" isrple="1"> <li areaid="1489" class="tool-li" style="position: static;">
</li><li areaid="1490" class="tool-li" style="position: static;"><a id="ListR_1658_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1658,''ListR_'');">删   除</a></li>
<li areaid="1491" class="tool-li" style="position: static;"><a id="ListR_1658_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1658,''ListR_'');">导   出</a></li>
<li areaid="1492" class="tool-li" style="position: static;"><a id="ListR_1658_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1658,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1658" style="position: static;">
<a id="ListR_1658_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1658,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1658_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1658,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1658_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1658,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1658_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="102" entid="1658" class="list-head-ul" style="width: 1080px;" ctrlprex="ListR_" isrple="1">
<li areaid="1494" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1658" onclick="javascript:DcxCom.CheckedAll(this,1658,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="1495" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">流程当前状态 </label></li><li areaid="1496" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">流程当前办理人 </label></li><li areaid="1497" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请人编号 </label></li><li areaid="1498" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请人 </label></li><li areaid="1499" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请时间 </label></li><li areaid="1500" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请晋升原因 </label></li><li areaid="1501" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">对晋升岗位的理解 </label></li><li areaid="1502" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">对晋升岗位的胜任能力 </label></li><li areaid="1503" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="办理"><span class="i">办理</span></a></div></li><li areaid="1504" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="1505" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1658,' where  [FldUId]='40b2e745-e0a8-3e52-d56b-948a026b67bd' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='fc50dd5a-7087-4a71-87d3-1527206c2e3a'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(154,'fc50dd5a-7087-4a71-87d3-1527206c2e3a',1658,1658,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',2,1,'',2,21,0,'','','','islonly="1" isgroup="1" groupid="103" class="list-body-ul" style="width: 1080px;" isrple="1">
<li areaid="1506" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1658" issyscheck="1" keyvalue="','',-1,103,-1,-1,1,'1658,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=154,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='islonly="1" isgroup="1" groupid="103" class="list-body-ul" style="width: 1080px;" isrple="1">
<li areaid="1506" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1658" issyscheck="1" keyvalue="',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1658,' where  [FldUId]='fc50dd5a-7087-4a71-87d3-1527206c2e3a' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='c3609549-c739-4559-a2f6-fd4543f02e73'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'c3609549-c739-4559-a2f6-fd4543f02e73',1658,1658,'00000000-0000-0000-0000-000000000000',2,'WFState',3,1,'varchar',2,1,0,'','','','" type="checkbox"></li><li areaid="1507" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowCurWfDlg(this);">
   <span isfield="1" entid="1658" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1658,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=1,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='WFState',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='" type="checkbox"></li><li areaid="1507" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowCurWfDlg(this);">
   <span isfield="1" entid="1658" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1658,' where  [FldUId]='c3609549-c739-4559-a2f6-fd4543f02e73' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='3fbd3021-9186-44a6-b2b9-39c1c532c271'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(399,'3fbd3021-9186-44a6-b2b9-39c1c532c271',1658,1658,'00000000-0000-0000-0000-000000000000',9,'WFFlowId',4,1,'',1,1,0,'','','','</span>
   </a>
   <span isfield="1" entid="1658" fieldname="WFFlowId" fldid="399" columntypeid="1" class="form-ctr" style="display: none;">','',-1,103,-1,-1,1,'1658,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=399,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=9,[FieldName]='WFFlowId',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   </a>
   <span isfield="1" entid="1658" fieldname="WFFlowId" fldid="399" columntypeid="1" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1658,' where  [FldUId]='3fbd3021-9186-44a6-b2b9-39c1c532c271' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='e3a00aaa-2427-4255-abed-41e65a2ea88b'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(400,'e3a00aaa-2427-4255-abed-41e65a2ea88b',1658,1658,'00000000-0000-0000-0000-000000000000',8,'WFRunId',5,1,'',1,1,0,'','','','</span>
   <span isfield="1" entid="1658" fieldname="WFRunId" fldid="400" columntypeid="1" class="form-ctr" style="display: none;">','',-1,103,-1,-1,1,'1658,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=400,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=8,[FieldName]='WFRunId',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   <span isfield="1" entid="1658" fieldname="WFRunId" fldid="400" columntypeid="1" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1658,' where  [FldUId]='e3a00aaa-2427-4255-abed-41e65a2ea88b' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='0291ee90-c9a3-412d-b5a0-cfe778d2bad4'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(401,'0291ee90-c9a3-412d-b5a0-cfe778d2bad4',1658,1658,'00000000-0000-0000-0000-000000000000',10,'WFPrcsId',6,1,'',1,1,0,'','','','</span>
   <span isfield="1" entid="1658" fieldname="WFPrcsId" fldid="401" columntypeid="1" class="form-ctr" style="display: none;">','',-1,103,-1,-1,1,'1658,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=401,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=10,[FieldName]='WFPrcsId',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   <span isfield="1" entid="1658" fieldname="WFPrcsId" fldid="401" columntypeid="1" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1658,' where  [FldUId]='0291ee90-c9a3-412d-b5a0-cfe778d2bad4' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='f8eea922-9fb7-47ac-942b-2900ba8c36de'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'f8eea922-9fb7-47ac-942b-2900ba8c36de',1658,1658,'00000000-0000-0000-0000-000000000000',3,'WFUserName',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1508" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowWfCurUserDlg(this);">
   <span isfield="1" entid="1658" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1658,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=2,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='WFUserName',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1508" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowWfCurUserDlg(this);">
   <span isfield="1" entid="1658" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1658,' where  [FldUId]='f8eea922-9fb7-47ac-942b-2900ba8c36de' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='b776c6bd-0a3a-4b79-87cd-a3ff568a32f9'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'b776c6bd-0a3a-4b79-87cd-a3ff568a32f9',1658,1658,'00000000-0000-0000-0000-000000000000',11,'申请人编号',8,1,'varchar',2,1,0,'','','','</span>
   </a>
  </div>
</li><li areaid="1509" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1658" fieldname="申请人编号" fldid="3" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1658,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=3,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=11,[FieldName]='申请人编号',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   </a>
  </div>
</li><li areaid="1509" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1658" fieldname="申请人编号" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1658,' where  [FldUId]='b776c6bd-0a3a-4b79-87cd-a3ff568a32f9' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='8f9c25a9-63b6-499c-97f8-e61b2031e1c1'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'8f9c25a9-63b6-499c-97f8-e61b2031e1c1',1658,1658,'00000000-0000-0000-0000-000000000000',12,'申请人',9,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1510" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1658" fieldname="申请人" fldid="4" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1658,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=4,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=12,[FieldName]='申请人',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1510" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1658" fieldname="申请人" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1658,' where  [FldUId]='8f9c25a9-63b6-499c-97f8-e61b2031e1c1' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='7ca5b392-d2b5-40f3-b430-08755ee35b9d'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'7ca5b392-d2b5-40f3-b430-08755ee35b9d',1658,1658,'00000000-0000-0000-0000-000000000000',18,'申请时间',10,4,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1511" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1658" fieldname="申请时间" fldid="5" columntypeid="4" class="form-ctr">','',-1,103,-1,-1,1,'1658,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=5,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=18,[FieldName]='申请时间',[FieldNO]=10,[ColumnTypeId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1511" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1658" fieldname="申请时间" fldid="5" columntypeid="4" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1658,' where  [FldUId]='7ca5b392-d2b5-40f3-b430-08755ee35b9d' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='0d048447-c7bf-4799-bfc0-761d3ec96468'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'0d048447-c7bf-4799-bfc0-761d3ec96468',1658,1658,'00000000-0000-0000-0000-000000000000',20,'申请晋升原因',11,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1512" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1658" fieldname="申请晋升原因" fldid="6" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1658,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=6,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=20,[FieldName]='申请晋升原因',[FieldNO]=11,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1512" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1658" fieldname="申请晋升原因" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1658,' where  [FldUId]='0d048447-c7bf-4799-bfc0-761d3ec96468' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='11a2a979-9129-405d-bb12-70ba8e64e9cb'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'11a2a979-9129-405d-bb12-70ba8e64e9cb',1658,1658,'00000000-0000-0000-0000-000000000000',21,'对晋升岗位的理解',12,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1513" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1658" fieldname="对晋升岗位的理解" fldid="7" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1658,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=7,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=21,[FieldName]='对晋升岗位的理解',[FieldNO]=12,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1513" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1658" fieldname="对晋升岗位的理解" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1658,' where  [FldUId]='11a2a979-9129-405d-bb12-70ba8e64e9cb' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='87017ea5-29b3-4a92-a9cd-3f62ccf56a1d'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'87017ea5-29b3-4a92-a9cd-3f62ccf56a1d',1658,1658,'00000000-0000-0000-0000-000000000000',22,'对晋升岗位的胜任能力',13,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1514" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1658" fieldname="对晋升岗位的胜任能力" fldid="8" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1658,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=8,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=22,[FieldName]='对晋升岗位的胜任能力',[FieldNO]=13,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1514" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1658" fieldname="对晋升岗位的胜任能力" fldid="8" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1658,' where  [FldUId]='87017ea5-29b3-4a92-a9cd-3f62ccf56a1d' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='278d6e78-7892-4071-a18c-3129d9871e82'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(155,'278d6e78-7892-4071-a18c-3129d9871e82',1658,1658,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',14,1,'',2,21,0,'','','','</span>
  </div>
</li><li areaid="1515" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,1658,''ListR_'',''','',-1,103,-1,-1,1,'1658,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=155,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=14,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1515" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,1658,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1658,' where  [FldUId]='278d6e78-7892-4071-a18c-3129d9871e82' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='335105dc-ab6a-4343-9bf2-babda5f53163'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(156,'335105dc-ab6a-4343-9bf2-babda5f53163',1658,1658,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',15,1,'',2,21,0,'','','',''',null,1040,480);">
<span class="i">办理</span></a></div>
</li><li areaid="1516" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1658,''ListR_'',''','',-1,103,-1,-1,1,'1658,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=156,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=15,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">办理</span></a></div>
</li><li areaid="1516" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1658,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1658,' where  [FldUId]='335105dc-ab6a-4343-9bf2-babda5f53163' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='4c4764c3-22e1-4be7-a0bb-61fc4ac971ea'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(157,'4c4764c3-22e1-4be7-a0bb-61fc4ac971ea',1658,1658,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',16,1,'',2,21,0,'','','',''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="1517" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,1658,''ListR_'',''','',-1,103,-1,-1,1,'1658,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=157,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=16,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="1517" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,1658,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1658,' where  [FldUId]='4c4764c3-22e1-4be7-a0bb-61fc4ac971ea' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='44c23b86-5fe3-32a0-9786-4bc1ddff0810'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(449,'44c23b86-5fe3-32a0-9786-4bc1ddff0810',1658,1658,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',17,-1,'varchar',2,13,0,'','','',''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>','</div>
</div>
<!-- 结束 --></div>',-1,103,-1,-1,1,'1658,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=449,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=17,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>',[LastHtml]='</div>
</div>
<!-- 结束 --></div>',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1658,' where  [FldUId]='44c23b86-5fe3-32a0-9786-4bc1ddff0810' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=1039

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=1039  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(1039,null,'人事_员工晋升申请表','人事_员工晋升申请表',0,0,0,0,0,1,4,1,3,'admin','2013-12-15 17:32:51',3,'admin','2013-12-15 17:32:51',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='人事_员工晋升申请表',[DBTableByName]='人事_员工晋升申请表',[IsForbid]=0,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=1,[SystemId]=4,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:51',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:51',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=1039 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7379,1,4,1039,'int',1,1,1,'人事_员工晋升申请表','LD_Id','LD_Id','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='LD_Id',[FieldByname]='LD_Id',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7380,2,4,1039,'varchar',2,1,1,'人事_员工晋升申请表','WFState','WFState','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='WFState',[FieldByname]='WFState',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7381,3,4,1039,'varchar',2,1,1,'人事_员工晋升申请表','WFUserName','WFUserName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='WFUserName',[FieldByname]='WFUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7382,4,4,1039,'bit',4,1,1,'人事_员工晋升申请表','WFIsFinish','WFIsFinish','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='WFIsFinish',[FieldByname]='WFIsFinish',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7383,5,4,1039,'bit',4,1,1,'人事_员工晋升申请表','WFIsStart','WFIsStart','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='WFIsStart',[FieldByname]='WFIsStart',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7384,6,4,1039,'varchar',2,1,1,'人事_员工晋升申请表','WFAllUser','WFAllUser','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='WFAllUser',[FieldByname]='WFAllUser',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7385,7,4,1039,'varchar',2,1,1,'人事_员工晋升申请表','WFOpinion','WFOpinion','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='WFOpinion',[FieldByname]='WFOpinion',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7386,8,4,1039,'int',1,1,1,'人事_员工晋升申请表','WFRunId','WFRunId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='WFRunId',[FieldByname]='WFRunId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7387,9,4,1039,'int',1,1,1,'人事_员工晋升申请表','WFFlowId','WFFlowId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='WFFlowId',[FieldByname]='WFFlowId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7388,10,4,1039,'int',1,1,1,'人事_员工晋升申请表','WFPrcsId','WFPrcsId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='WFPrcsId',[FieldByname]='WFPrcsId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7389,11,4,1039,'varchar',2,1,1,'人事_员工晋升申请表','申请人编号','申请人编号','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='申请人编号',[FieldByname]='申请人编号',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7390,12,4,1039,'varchar',2,1,1,'人事_员工晋升申请表','申请人','申请人','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='申请人',[FieldByname]='申请人',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7391,13,4,1039,'varchar',2,1,1,'人事_员工晋升申请表','现任部门','现任部门','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='现任部门',[FieldByname]='现任部门',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7392,14,4,1039,'varchar',2,1,1,'人事_员工晋升申请表','现任岗位','现任岗位','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='现任岗位',[FieldByname]='现任岗位',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7393,15,4,1039,'datetime',3,1,1,'人事_员工晋升申请表','入职日期','入职日期','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='入职日期',[FieldByname]='入职日期',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7394,16,4,1039,'varchar',2,1,1,'人事_员工晋升申请表','申请岗位','申请岗位','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='申请岗位',[FieldByname]='申请岗位',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7395,17,4,1039,'varchar',2,1,1,'人事_员工晋升申请表','申请岗位所在公司','申请岗位所在公司','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='申请岗位所在公司',[FieldByname]='申请岗位所在公司',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7396,18,4,1039,'datetime',3,1,1,'人事_员工晋升申请表','申请时间','申请时间','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='申请时间',[FieldByname]='申请时间',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7397,19,4,1039,'datetime',3,1,1,'人事_员工晋升申请表','生效时间','生效时间','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='生效时间',[FieldByname]='生效时间',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7398,20,4,1039,'varchar',2,1,1,'人事_员工晋升申请表','申请晋升原因','申请晋升原因','',0,0,1,2000,2000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='申请晋升原因',[FieldByname]='申请晋升原因',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=2000,[Precision]=2000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7399,21,4,1039,'varchar',2,1,1,'人事_员工晋升申请表','对晋升岗位的理解','对晋升岗位的理解','',0,0,1,2000,2000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='对晋升岗位的理解',[FieldByname]='对晋升岗位的理解',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=2000,[Precision]=2000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7400,22,4,1039,'varchar',2,1,1,'人事_员工晋升申请表','对晋升岗位的胜任能力','对晋升岗位的胜任能力','',0,0,1,2000,2000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='对晋升岗位的胜任能力',[FieldByname]='对晋升岗位的胜任能力',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=2000,[Precision]=2000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7401,23,4,1039,'varchar',2,1,1,'人事_员工晋升申请表','部门主管意见','部门主管意见','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='部门主管意见',[FieldByname]='部门主管意见',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7402,24,4,1039,'varchar',2,1,1,'人事_员工晋升申请表','部门经理意见','部门经理意见','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='部门经理意见',[FieldByname]='部门经理意见',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7403,25,4,1039,'varchar',2,1,1,'人事_员工晋升申请表','人事部意见','人事部意见','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='人事部意见',[FieldByname]='人事部意见',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7404,26,4,1039,'varchar',2,1,1,'人事_员工晋升申请表','公司意见批复','公司意见批复','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='公司意见批复',[FieldByname]='公司意见批复',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=26 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=27  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7405,27,4,1039,'varchar',2,1,1,'人事_员工晋升申请表','备注','备注','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='备注',[FieldByname]='备注',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=27 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--WF_FlowType

     SET IDENTITY_INSERT [WF_FlowType] ON 
      if (select count(1) from [WF_FlowType] where  [FlowId]=26  )<1 
      begin 
           Insert into [WF_FlowType] ([FlowId],[FlowName],[FlowNo],[SortId],[EntId],[EntName],[AutoName],[ManageUsers],[ManageNames],[QueryUsers],[QueryNames],[CanQueryRoles],[CanQueryRolesId],[CanManageRoles],[CanManageRolesId],[CanStartUsers],[CanStartNames],[CanStartRoles],[CanStartRolesId],[AttachMaxSize],[FlowAttach],[IsPigeonhole],[PigeonholedSQL],[IsFreeFlow],[QueryItem],[LaunchIsOpen],[FormUrl],[BrowseUrl],[ListUrl],[Detail],[CreatorId],[Creator],[CreateTime],[EditTime],[Editor],[EditorId],[AccountId])values(26,'员工晋升申请',15,25,1658,'晋升申请',null,'admin','admin','admin','admin','系统管理员','3','系统管理员','3',null,null,'Public','1',1,0,0,'',0,null,null,null,null,null,'',0,'admin','2013-11-30 1:06:40',null,null,null,1)
      end
      else 
      begin 
           update [WF_FlowType] set [FlowName]='员工晋升申请',[FlowNo]=15,[SortId]=25,[EntId]=1658,[EntName]='晋升申请',[AutoName]=null,[ManageUsers]='admin',[ManageNames]='admin',[QueryUsers]='admin',[QueryNames]='admin',[CanQueryRoles]='系统管理员',[CanQueryRolesId]='3',[CanManageRoles]='系统管理员',[CanManageRolesId]='3',[CanStartUsers]=null,[CanStartNames]=null,[CanStartRoles]='Public',[CanStartRolesId]='1',[AttachMaxSize]=1,[FlowAttach]=0,[IsPigeonhole]=0,[PigeonholedSQL]='',[IsFreeFlow]=0,[QueryItem]=null,[LaunchIsOpen]=null,[FormUrl]=null,[BrowseUrl]=null,[ListUrl]=null,[Detail]='',[CreatorId]=0,[Creator]='admin',[CreateTime]='2013-11-30 1:06:40',[EditTime]=null,[Editor]=null,[EditorId]=null,[AccountId]=1 where  [FlowId]=26 
      end

     SET IDENTITY_INSERT [WF_FlowType] OFF 



Delete from [WF_FlowNode]  where isnull([FlowId],0)=26 

--WF_FlowNode

     SET IDENTITY_INSERT [WF_FlowNode] ON 
      if (select count(1) from [WF_FlowNode] where  [NodeId]=349  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(349,26,'提交申请',1,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','350',0,1,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','',null,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'3018,3019,3020,3021,3022,3023,3024,3025,3026,3027,3028,3029,3034',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=26,[NodeName]='提交申请',[Step]=1,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='350',[AllowLastNodeBoss]=0,[AllowWorkCreator]=1,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='3018,3019,3020,3021,3022,3023,3024,3025,3026,3027,3028,3029,3034',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=349 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=350  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(350,26,'部门领导审核',2,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','351',0,1,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','',null,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'3030,3031',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=26,[NodeName]='部门领导审核',[Step]=2,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='351',[AllowLastNodeBoss]=0,[AllowWorkCreator]=1,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='3030,3031',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=350 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=351  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(351,26,'人力资源部审核',3,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','352',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','',null,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'3032',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=26,[NodeName]='人力资源部审核',[Step]=3,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='352',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='3032',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=351 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=352  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(352,26,'人力资源部办结',4,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','353',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','',null,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=26,[NodeName]='人力资源部办结',[Step]=4,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='353',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=352 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=353  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(353,26,'申请成功，通知提交人',5,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','-1',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','<$462:Begin$>
		--流出到<结束>节点时 

		
update 人事_员工晋升申请表  set WFIsFinish=1,WFIsStart=1 where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''

Update   工资_员工档案  Set   [员工岗位]=@申请岗位   where  工资_员工档案.[员工编号] =@申请人编号

		</$462:End$>',null,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=26,[NodeName]='申请成功，通知提交人',[Step]=5,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='-1',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='<$462:Begin$>
		--流出到<结束>节点时 

		
update 人事_员工晋升申请表  set WFIsFinish=1,WFIsStart=1 where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''

Update   工资_员工档案  Set   [员工岗位]=@申请岗位   where  工资_员工档案.[员工编号] =@申请人编号

		</$462:End$>',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=353 
      end

     SET IDENTITY_INSERT [WF_FlowNode] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=2064  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2064,26,349,1658,'晋升申请',3018,'申请人编号','申请人编号','员工晋升审批流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=26,[NodeId]=349,[EntId]=1658,[EntName]='晋升申请',[FldId]=3018,[FieldName]='申请人编号',[CtrlByName]='申请人编号',[FlowName]='员工晋升审批流程',[TypeId]=1 where  [Id]=2064 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2065  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2065,26,349,1658,'晋升申请',3019,'申请人','申请人','员工晋升审批流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=26,[NodeId]=349,[EntId]=1658,[EntName]='晋升申请',[FldId]=3019,[FieldName]='申请人',[CtrlByName]='申请人',[FlowName]='员工晋升审批流程',[TypeId]=1 where  [Id]=2065 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2066  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2066,26,349,1658,'晋升申请',3020,'现任部门','现任部门','员工晋升审批流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=26,[NodeId]=349,[EntId]=1658,[EntName]='晋升申请',[FldId]=3020,[FieldName]='现任部门',[CtrlByName]='现任部门',[FlowName]='员工晋升审批流程',[TypeId]=1 where  [Id]=2066 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2067  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2067,26,349,1658,'晋升申请',3021,'现任岗位','现任岗位','员工晋升审批流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=26,[NodeId]=349,[EntId]=1658,[EntName]='晋升申请',[FldId]=3021,[FieldName]='现任岗位',[CtrlByName]='现任岗位',[FlowName]='员工晋升审批流程',[TypeId]=1 where  [Id]=2067 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2068  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2068,26,349,1658,'晋升申请',3022,'入职日期','入职日期','员工晋升审批流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=26,[NodeId]=349,[EntId]=1658,[EntName]='晋升申请',[FldId]=3022,[FieldName]='入职日期',[CtrlByName]='入职日期',[FlowName]='员工晋升审批流程',[TypeId]=1 where  [Id]=2068 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2069  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2069,26,349,1658,'晋升申请',3023,'申请岗位','申请岗位','员工晋升审批流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=26,[NodeId]=349,[EntId]=1658,[EntName]='晋升申请',[FldId]=3023,[FieldName]='申请岗位',[CtrlByName]='申请岗位',[FlowName]='员工晋升审批流程',[TypeId]=1 where  [Id]=2069 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2070  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2070,26,349,1658,'晋升申请',3024,'申请岗位所在公司','申请岗位所在公司','员工晋升审批流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=26,[NodeId]=349,[EntId]=1658,[EntName]='晋升申请',[FldId]=3024,[FieldName]='申请岗位所在公司',[CtrlByName]='申请岗位所在公司',[FlowName]='员工晋升审批流程',[TypeId]=1 where  [Id]=2070 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2071  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2071,26,349,1658,'晋升申请',3025,'申请时间','申请时间','员工晋升审批流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=26,[NodeId]=349,[EntId]=1658,[EntName]='晋升申请',[FldId]=3025,[FieldName]='申请时间',[CtrlByName]='申请时间',[FlowName]='员工晋升审批流程',[TypeId]=1 where  [Id]=2071 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2072  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2072,26,349,1658,'晋升申请',3026,'生效时间','生效时间','员工晋升审批流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=26,[NodeId]=349,[EntId]=1658,[EntName]='晋升申请',[FldId]=3026,[FieldName]='生效时间',[CtrlByName]='生效时间',[FlowName]='员工晋升审批流程',[TypeId]=1 where  [Id]=2072 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2073  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2073,26,349,1658,'晋升申请',3027,'申请晋升原因','申请晋升原因','员工晋升审批流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=26,[NodeId]=349,[EntId]=1658,[EntName]='晋升申请',[FldId]=3027,[FieldName]='申请晋升原因',[CtrlByName]='申请晋升原因',[FlowName]='员工晋升审批流程',[TypeId]=1 where  [Id]=2073 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2074  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2074,26,349,1658,'晋升申请',3028,'对晋升岗位的理解','对晋升岗位的理解','员工晋升审批流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=26,[NodeId]=349,[EntId]=1658,[EntName]='晋升申请',[FldId]=3028,[FieldName]='对晋升岗位的理解',[CtrlByName]='对晋升岗位的理解',[FlowName]='员工晋升审批流程',[TypeId]=1 where  [Id]=2074 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2075  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2075,26,349,1658,'晋升申请',3029,'对晋升岗位的胜任能力','对晋升岗位的胜任能力','员工晋升审批流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=26,[NodeId]=349,[EntId]=1658,[EntName]='晋升申请',[FldId]=3029,[FieldName]='对晋升岗位的胜任能力',[CtrlByName]='对晋升岗位的胜任能力',[FlowName]='员工晋升审批流程',[TypeId]=1 where  [Id]=2075 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2076  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2076,26,349,1658,'晋升申请',3034,'备注','备注','员工晋升审批流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=26,[NodeId]=349,[EntId]=1658,[EntName]='晋升申请',[FldId]=3034,[FieldName]='备注',[CtrlByName]='备注',[FlowName]='员工晋升审批流程',[TypeId]=1 where  [Id]=2076 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=2077  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2077,26,350,1658,'晋升申请',3030,'部门主管意见','部门主管意见','员工晋升审批流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=26,[NodeId]=350,[EntId]=1658,[EntName]='晋升申请',[FldId]=3030,[FieldName]='部门主管意见',[CtrlByName]='部门主管意见',[FlowName]='员工晋升审批流程',[TypeId]=1 where  [Id]=2077 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2078  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2078,26,350,1658,'晋升申请',3031,'部门经理意见','部门经理意见','员工晋升审批流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=26,[NodeId]=350,[EntId]=1658,[EntName]='晋升申请',[FldId]=3031,[FieldName]='部门经理意见',[CtrlByName]='部门经理意见',[FlowName]='员工晋升审批流程',[TypeId]=1 where  [Id]=2078 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=2079  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2079,26,351,1658,'晋升申请',3032,'人事部意见','人事部意见','员工晋升审批流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=26,[NodeId]=351,[EntId]=1658,[EntName]='晋升申请',[FldId]=3032,[FieldName]='人事部意见',[CtrlByName]='人事部意见',[FlowName]='员工晋升审批流程',[TypeId]=1 where  [Id]=2079 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=2837  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2837,'428e1594-c01d-45a3-a9a9-143c9373cc45','<font color=red>晋升申请</font>',2905,'/Template/default/ListReport/ListReport_Tree001.aspx',1,'/images/default.gif','/images/default.gif',14,'',null,0,null,4,0,4,1,1,1,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='428e1594-c01d-45a3-a9a9-143c9373cc45',[MenuName]='<font color=red>晋升申请</font>',[ParentId]=2905,[ProPath]='/Template/default/ListReport/ListReport_Tree001.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=14,[Target]='',[IsOpen]=null,[IsHidden]=0,[Remark]=null,[SSystemId]=4,[SMenuId]=0,[SystemId]=4,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=2837 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=2837  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(622,2837,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=2837  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=1658  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(1658,2837,'晋升申请',1,1039,0,'人事_员工晋升申请表',0,0,1,4,1658,null,null,4,null,1,null,26,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=2837,[EntName]='晋升申请',[MEnt]=1,[DBTableId]=1039,[DBConnectId]=0,[DBTableName]='人事_员工晋升申请表',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=4,[SEntId]=1658,[FSystemId]=null,[FEntId]=null,[SystemId]=4,[Remark]=null,[IsFlow]=1,[IsChecked]=null,[FlowId]=26,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=1658 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=1658

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=1658  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11420,-1,1658,1,1,1,1,0,1,0,0,0,1,0,0,0,0,0,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=0,[CanUpdate]=1,[CanOutPut]=0,[CanInput]=0,[CanCopy]=0,[CanPrint]=1,[CanCheck]=0,[CanClean]=0,[CanRecycle]=0,[CanExecute]=0,[CanDesign]=0,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=1658  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=1658  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(10791,2837,1658,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=2837,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=1658  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=1658

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1658  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(19024,4,2837,1658,13,1,1,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=4,[MenuId]=2837,[TemplateId]=13,[ModuleId]=1,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1658  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1658  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(19025,4,2837,1658,13,2,9,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=4,[MenuId]=2837,[TemplateId]=13,[ModuleId]=9,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1658  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1658  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(19026,4,2837,1658,13,3,14,1,4,2,'/Template/Default/Form/AjaxForm/AjaxForm008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=4,[MenuId]=2837,[TemplateId]=13,[ModuleId]=14,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='/Template/Default/Form/AjaxForm/AjaxForm008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1658  and  [ModuleTypeId]=3 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1658  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(19027,4,2837,1658,13,16,31,1,5,2,'/Template/Default/Browse/Browse008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=4,[MenuId]=2837,[TemplateId]=13,[ModuleId]=31,[GroupId]=1,[AreaId]=5,[ShowMode]=2,[AreaUrl]='/Template/Default/Browse/Browse008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1658  and  [ModuleTypeId]=16 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_AjaxForm_Run]  where [EntId]=1658

--Dcx_AjaxForm_Run
      if (select count(1) from [Dcx_AjaxForm_Run] where  [EntId]=1658  )<1 
      begin 
           Insert into [Dcx_AjaxForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('b429c493-aeab-47af-b30e-a1efa6635d83','晋升申请',1658,14,'','',0,'<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>','','DcxRun.AjaxF_1658= {"MenuId":2837,"MEntId":1658,"EntName":"晋升申请","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":true,"EntMsg":{"E1658":{"EntId":1658,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{
DcxForm.CreateHtmlEditor(''d1658_申请晋升原因'',1658,''AjaxF_'',''申请晋升原因'',600,350,false,1,false);

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_1658.EntMsg.E1658.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"人事_员工晋升申请表","EntId":1658,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"申请人编号":{"DtId":2,"DB":1,"CId":4,"FL":-1},"申请人":{"DtId":2,"DB":1,"CId":4,"FL":-1},"现任部门":{"DtId":2,"DB":1,"CId":4,"FL":-1},"现任岗位":{"DtId":2,"DB":1,"CId":4,"FL":-1},"入职日期":{"DtId":3,"DB":1,"CId":5,"FL":0},"申请岗位":{"DtId":2,"DB":1,"CId":3,"FL":-1},"申请岗位所在公司":{"DtId":2,"DB":1,"CId":3,"FL":-1},"申请时间":{"DtId":3,"DB":1,"CId":4,"FL":-1},"生效时间":{"DtId":3,"DB":1,"CId":5,"FL":-1},"申请晋升原因":{"DtId":2,"DB":1,"CId":23,"FL":-1},"对晋升岗位的理解":{"DtId":2,"DB":1,"CId":2,"FL":-1},"对晋升岗位的胜任能力":{"DtId":2,"DB":1,"CId":2,"FL":-1},"部门主管意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"部门经理意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"人事部意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"公司意见批复":{"DtId":2,"DB":1,"CId":2,"FL":-1},"备注":{"DtId":2,"DB":1,"CId":2,"FL":-1}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_1658.EntMsg.E1658.GetDataRowModel=function()
{
    return {"申请人编号":"","申请人":"","现任部门":"","现任岗位":"","入职日期":new Date(),"申请岗位":"","申请岗位所在公司":"","申请时间":new Date(),"生效时间":new Date(),"申请晋升原因":"","对晋升岗位的理解":"","对晋升岗位的胜任能力":"","部门主管意见":"","部门经理意见":"","人事部意见":"","公司意见批复":"","备注":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_AjaxF_1658_95(obj,curFieldName){
 var EntId=1658;
 var FldId=3021;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''现任岗位'';
 var $formContainer=DcxForm.GetHtmlContainer(1658,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1658,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"现任岗位\",FldId:"+FldId+",EntId:1658,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''申请人''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1658,''AjaxF_'',''申请人'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@申请人}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1658_现任岗位");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1658_96(obj,curFieldName){
 var EntId=1658;
 var FldId=3022;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''入职日期'';
 var $formContainer=DcxForm.GetHtmlContainer(1658,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1658,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"入职日期\",FldId:"+FldId+",EntId:1658,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:5,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''申请人编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1658,''AjaxF_'',''申请人编号'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@申请人编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1658_入职日期");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_1658.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1658,''AjaxF_'',buildNew,closeDlg);

}','<$1658$>select [申请人编号],[申请人],[现任部门],[现任岗位],[入职日期],[申请岗位],[申请岗位所在公司],[申请时间],[生效时间],[申请晋升原因],[对晋升岗位的理解],[对晋升岗位的胜任能力],[部门主管意见],[部门经理意见],[人事部意见],[公司意见批复],[备注],[LD_Id] from 人事_员工晋升申请表 where [LD_Id]=''{$keyfieldvalue}''</$1658$>',20,'','','','1658*LD_Id*2**2*人事_员工晋升申请表*晋升申请',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 7:02:48',3,'admin','2013-11-30 5:37:05',1)
      end
      else 
      begin 
           update [Dcx_AjaxForm_Run] set [FormId]='b429c493-aeab-47af-b30e-a1efa6635d83',[FormName]='晋升申请',[ModuleId]=14,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.AjaxF_1658= {"MenuId":2837,"MEntId":1658,"EntName":"晋升申请","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":true,"EntMsg":{"E1658":{"EntId":1658,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{
DcxForm.CreateHtmlEditor(''d1658_申请晋升原因'',1658,''AjaxF_'',''申请晋升原因'',600,350,false,1,false);

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_1658.EntMsg.E1658.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"人事_员工晋升申请表","EntId":1658,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"申请人编号":{"DtId":2,"DB":1,"CId":4,"FL":-1},"申请人":{"DtId":2,"DB":1,"CId":4,"FL":-1},"现任部门":{"DtId":2,"DB":1,"CId":4,"FL":-1},"现任岗位":{"DtId":2,"DB":1,"CId":4,"FL":-1},"入职日期":{"DtId":3,"DB":1,"CId":5,"FL":0},"申请岗位":{"DtId":2,"DB":1,"CId":3,"FL":-1},"申请岗位所在公司":{"DtId":2,"DB":1,"CId":3,"FL":-1},"申请时间":{"DtId":3,"DB":1,"CId":4,"FL":-1},"生效时间":{"DtId":3,"DB":1,"CId":5,"FL":-1},"申请晋升原因":{"DtId":2,"DB":1,"CId":23,"FL":-1},"对晋升岗位的理解":{"DtId":2,"DB":1,"CId":2,"FL":-1},"对晋升岗位的胜任能力":{"DtId":2,"DB":1,"CId":2,"FL":-1},"部门主管意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"部门经理意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"人事部意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"公司意见批复":{"DtId":2,"DB":1,"CId":2,"FL":-1},"备注":{"DtId":2,"DB":1,"CId":2,"FL":-1}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_1658.EntMsg.E1658.GetDataRowModel=function()
{
    return {"申请人编号":"","申请人":"","现任部门":"","现任岗位":"","入职日期":new Date(),"申请岗位":"","申请岗位所在公司":"","申请时间":new Date(),"生效时间":new Date(),"申请晋升原因":"","对晋升岗位的理解":"","对晋升岗位的胜任能力":"","部门主管意见":"","部门经理意见":"","人事部意见":"","公司意见批复":"","备注":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_AjaxF_1658_95(obj,curFieldName){
 var EntId=1658;
 var FldId=3021;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''现任岗位'';
 var $formContainer=DcxForm.GetHtmlContainer(1658,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1658,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"现任岗位\",FldId:"+FldId+",EntId:1658,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''申请人''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1658,''AjaxF_'',''申请人'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@申请人}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1658_现任岗位");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1658_96(obj,curFieldName){
 var EntId=1658;
 var FldId=3022;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''入职日期'';
 var $formContainer=DcxForm.GetHtmlContainer(1658,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1658,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"入职日期\",FldId:"+FldId+",EntId:1658,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:5,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''申请人编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1658,''AjaxF_'',''申请人编号'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@申请人编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1658_入职日期");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_1658.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1658,''AjaxF_'',buildNew,closeDlg);

}',[LoadingSql]='<$1658$>select [申请人编号],[申请人],[现任部门],[现任岗位],[入职日期],[申请岗位],[申请岗位所在公司],[申请时间],[生效时间],[申请晋升原因],[对晋升岗位的理解],[对晋升岗位的胜任能力],[部门主管意见],[部门经理意见],[人事部意见],[公司意见批复],[备注],[LD_Id] from 人事_员工晋升申请表 where [LD_Id]=''{$keyfieldvalue}''</$1658$>',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='1658*LD_Id*2**2*人事_员工晋升申请表*晋升申请',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 7:02:48',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-30 5:37:05',[AccountId]=1 where  [EntId]=1658 
      end




--Dcx_AjaxFormField_Run
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='268b3b6c-d03b-9a1b-a176-5d2721d4aba2'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3018,'268b3b6c-d03b-9a1b-a176-5d2721d4aba2',1658,1658,'00000000-0000-0000-0000-000000000000','申请人编号',2,2,11,'{$staffNO}',0,9,null,0,4,1,0,1,-1,0,0,'','','','{$staffNO},','<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="1658" groupid="176" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="822" class="li-area-title" scroll="no" style="width: 77px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">晋升申请</span></div>
</li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="177" entid="1658" class="ul-mform" ctrlprex="AjaxF_" isrple="1">
<li areaid="823" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3018" istitle="1">申请人编号 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d1658_申请人编号" class="form-lbl" style="width:201px;" IsForField=1 EntId="1658" CId="4" FId="3018" Vtp="0"  CBack=1  >','</span><input id="d1658_申请人编号_hid" type="hidden"  EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="申请人编号" dType="2" Vtp="0" RDT="2" Isc="1" RId="9" CId="4" FId="3018" vlk=0    value="','" />',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3018,[Form_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='申请人编号',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=11,[DefaultValue]='{$staffNO}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$staffNO},',[BeforeHtml]='<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="1658" groupid="176" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="822" class="li-area-title" scroll="no" style="width: 77px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">晋升申请</span></div>
</li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="177" entid="1658" class="ul-mform" ctrlprex="AjaxF_" isrple="1">
<li areaid="823" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3018" istitle="1">申请人编号 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1658_申请人编号" class="form-lbl" style="width:201px;" IsForField=1 EntId="1658" CId="4" FId="3018" Vtp="0"  CBack=1  >',[CtrlbackHtml]='</span><input id="d1658_申请人编号_hid" type="hidden"  EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="申请人编号" dType="2" Vtp="0" RDT="2" Isc="1" RId="9" CId="4" FId="3018" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='268b3b6c-d03b-9a1b-a176-5d2721d4aba2' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='bf587628-43c0-a901-d16c-bd0e44e0b0af'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3019,'bf587628-43c0-a901-d16c-bd0e44e0b0af',1658,1658,'00000000-0000-0000-0000-000000000000','申请人',2,2,12,'{$UserName}',0,9,null,0,4,1,0,2,-1,0,0,'','','','{$UserName},','</span>
</div>
</li>
<li areaid="824" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3019" istitle="1">申请人 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d1658_申请人" class="form-lbl" style="width:201px;" IsForField=1 EntId="1658" CId="4" FId="3019" Vtp="0"  CBack=1  >','</span><input id="d1658_申请人_hid" type="hidden"  EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="申请人" dType="2" Vtp="0" RDT="2" Isc="1" RId="9" CId="4" FId="3019" vlk=0    value="','" />',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3019,[Form_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='申请人',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=12,[DefaultValue]='{$UserName}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=2,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$UserName},',[BeforeHtml]='</span>
</div>
</li>
<li areaid="824" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3019" istitle="1">申请人 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1658_申请人" class="form-lbl" style="width:201px;" IsForField=1 EntId="1658" CId="4" FId="3019" Vtp="0"  CBack=1  >',[CtrlbackHtml]='</span><input id="d1658_申请人_hid" type="hidden"  EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="申请人" dType="2" Vtp="0" RDT="2" Isc="1" RId="9" CId="4" FId="3019" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='bf587628-43c0-a901-d16c-bd0e44e0b0af' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='645c724e-6279-657f-4232-e117d97bf189'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3020,'645c724e-6279-657f-4232-e117d97bf189',1658,1658,'00000000-0000-0000-0000-000000000000','现任部门',2,2,13,'{$deptname}',0,9,null,0,4,1,0,3,-1,0,0,'','','','{$deptname},','</span>
</div>
</li>
<li areaid="825" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3020">现任部门  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d1658_现任部门" class="form-lbl" style="width:201px;" IsForField=1 EntId="1658" CId="4" FId="3020" Vtp="0"  >','</span><input id="d1658_现任部门_hid" type="hidden"  EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="现任部门" dType="2" Vtp="0" RDT="2" Isc="1" RId="9" CId="4" FId="3020" vlk=0    value="','" />',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3020,[Form_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='现任部门',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=13,[DefaultValue]='{$deptname}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=3,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$deptname},',[BeforeHtml]='</span>
</div>
</li>
<li areaid="825" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3020">现任部门  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1658_现任部门" class="form-lbl" style="width:201px;" IsForField=1 EntId="1658" CId="4" FId="3020" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d1658_现任部门_hid" type="hidden"  EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="现任部门" dType="2" Vtp="0" RDT="2" Isc="1" RId="9" CId="4" FId="3020" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='645c724e-6279-657f-4232-e117d97bf189' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='bad4a4dd-b28b-4108-984a-e43130a74d76'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3021,'bad4a4dd-b28b-4108-984a-e43130a74d76',1658,1658,'00000000-0000-0000-0000-000000000000','现任岗位',2,2,14,'Select  [Dcx_Employee].[PositionName]  from  [Dcx_Employee]  Where   UserName =''{@申请人}''',2,9,null,0,4,1,0,4,-1,0,0,'','','申请人,','','</span>
  </div>
</li>
<li areaid="826" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3021">现任岗位  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d1658_现任岗位" class="form-lbl" style="width:201px;" IsForField=1 EntId="1658" CId="4" FId="3021" Vtp="2"  >','</span><input id="d1658_现任岗位_hid" type="hidden"  EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="现任岗位" dType="2" Vtp="2" RDT="2" Isc="1" RId="9" CId="4" FId="3021" vlk=0    value="','" />',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3021,[Form_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='现任岗位',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=14,[DefaultValue]='Select  [Dcx_Employee].[PositionName]  from  [Dcx_Employee]  Where   UserName =''{@申请人}''',[ValueType]=2,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=4,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='申请人,',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="826" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3021">现任岗位  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1658_现任岗位" class="form-lbl" style="width:201px;" IsForField=1 EntId="1658" CId="4" FId="3021" Vtp="2"  >',[CtrlbackHtml]='</span><input id="d1658_现任岗位_hid" type="hidden"  EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="现任岗位" dType="2" Vtp="2" RDT="2" Isc="1" RId="9" CId="4" FId="3021" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='bad4a4dd-b28b-4108-984a-e43130a74d76' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='3d3bf07f-985b-d291-709a-84ee5efba90a'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3022,'3d3bf07f-985b-d291-709a-84ee5efba90a',1658,1658,'00000000-0000-0000-0000-000000000000','入职日期',3,3,15,'Select  [Dcx_Employee].EntryDate  from  [Dcx_Employee] where [EmployeeCode] =''{@申请人编号}''',2,1,1,0,5,1,1,5,-1,0,0,'','','申请人编号,','','</span>
  </div>
</li>
<li areaid="827" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3022">入职日期</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<div class="form-ddl"><input  id="d1658_入职日期"   type="text" class="form-ddl-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);DcxDTime.ShowCalendar(this);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="入职日期" dType="3" Vtp="2" RDT="3" Isc="1" RId="1" CId="5" FId="3022" vlk=0    value="','"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>','',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3022,[Form_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='入职日期',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=15,[DefaultValue]='Select  [Dcx_Employee].EntryDate  from  [Dcx_Employee] where [EmployeeCode] =''{@申请人编号}''',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=5,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=5,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='申请人编号,',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="827" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3022">入职日期</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-ddl"><input  id="d1658_入职日期"   type="text" class="form-ddl-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);DcxDTime.ShowCalendar(this);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="入职日期" dType="3" Vtp="2" RDT="3" Isc="1" RId="1" CId="5" FId="3022" vlk=0    value="',[CtrlbackHtml]='"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='3d3bf07f-985b-d291-709a-84ee5efba90a' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='a6eb0844-8bb5-27f9-25c6-a4910aa182ab'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3023,'a6eb0844-8bb5-27f9-25c6-a4910aa182ab',1658,1658,'00000000-0000-0000-0000-000000000000','申请岗位',2,2,16,'SELECT [PositionName] FROM [Dcx_Position]',2,1,null,0,3,1,0,6,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="828" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3023">申请岗位  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<select id="d1658_申请岗位" name="d1658_申请岗位" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="申请岗位" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="3" FId="3023" vlk=0    style="width:201px;">','</select>','',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3023,[Form_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='申请岗位',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=16,[DefaultValue]='SELECT [PositionName] FROM [Dcx_Position]',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=6,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="828" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3023">申请岗位  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1658_申请岗位" name="d1658_申请岗位" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="申请岗位" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="3" FId="3023" vlk=0    style="width:201px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='a6eb0844-8bb5-27f9-25c6-a4910aa182ab' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='f0e937d9-e8f3-7bbe-8a45-29a77b8ccf11'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3024,'f0e937d9-e8f3-7bbe-8a45-29a77b8ccf11',1658,1658,'00000000-0000-0000-0000-000000000000','申请岗位所在公司',2,2,17,'Select  公司信息.[公司名称]  from  公司信息',2,1,null,0,3,1,0,7,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="829" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3024">申请岗位所在公司  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<select id="d1658_申请岗位所在公司" name="d1658_申请岗位所在公司" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="申请岗位所在公司" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="3" FId="3024" vlk=0    style="width:201px;">','</select>','',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3024,[Form_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='申请岗位所在公司',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=17,[DefaultValue]='Select  公司信息.[公司名称]  from  公司信息',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=7,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="829" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3024">申请岗位所在公司  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1658_申请岗位所在公司" name="d1658_申请岗位所在公司" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="申请岗位所在公司" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="3" FId="3024" vlk=0    style="width:201px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='f0e937d9-e8f3-7bbe-8a45-29a77b8ccf11' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='f94200e5-9083-850b-c53f-d6af7055253e'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3025,'f94200e5-9083-850b-c53f-d6af7055253e',1658,1658,'00000000-0000-0000-0000-000000000000','申请时间',3,3,18,'{$date}',0,9,null,0,4,1,0,8,-1,0,0,'','','','{$date},','</span>
  </div>
</li>
<li areaid="830" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3025">申请时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d1658_申请时间" class="form-lbl" style="width:201px;" IsForField=1 EntId="1658" CId="4" FId="3025" Vtp="0"  >','</span><input id="d1658_申请时间_hid" type="hidden"  EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="申请时间" dType="3" Vtp="0" RDT="3" Isc="1" RId="9" CId="4" FId="3025" vlk=0    value="','" />',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3025,[Form_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='申请时间',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=18,[DefaultValue]='{$date}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=8,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$date},',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="830" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3025">申请时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1658_申请时间" class="form-lbl" style="width:201px;" IsForField=1 EntId="1658" CId="4" FId="3025" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d1658_申请时间_hid" type="hidden"  EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="申请时间" dType="3" Vtp="0" RDT="3" Isc="1" RId="9" CId="4" FId="3025" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='f94200e5-9083-850b-c53f-d6af7055253e' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='b2567b18-084a-2bc4-64d3-f6657402c32c'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3026,'b2567b18-084a-2bc4-64d3-f6657402c32c',1658,1658,'00000000-0000-0000-0000-000000000000','生效时间',3,3,19,'',5,1,null,0,5,1,0,9,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="831" style="height: 38px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3026">生效时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<div class="form-ddl"><input  id="d1658_生效时间"   type="text" class="form-ddl-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);DcxDTime.ShowCalendar(this);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="生效时间" dType="3" Vtp="5" RDT="3" Isc="0" RId="1" CId="5" FId="3026" vlk=0    value="','"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>','',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3026,[Form_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='生效时间',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=19,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=5,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=9,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="831" style="height: 38px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3026">生效时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-ddl"><input  id="d1658_生效时间"   type="text" class="form-ddl-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);DcxDTime.ShowCalendar(this);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="生效时间" dType="3" Vtp="5" RDT="3" Isc="0" RId="1" CId="5" FId="3026" vlk=0    value="',[CtrlbackHtml]='"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='b2567b18-084a-2bc4-64d3-f6657402c32c' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='4f324a5f-03dd-0059-0d83-f6d3d1d0a8f8'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3027,'4f324a5f-03dd-0059-0d83-f6d3d1d0a8f8',1658,1658,'00000000-0000-0000-0000-000000000000','申请晋升原因',2,2,20,'',5,1,null,0,23,1,0,10,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="832" style="height: 470px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3027">申请晋升原因  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1658_申请晋升原因" class="form-txts"  style="width:600px;height:350px;" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="申请晋升原因" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="23" FId="3027" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3027,[Form_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='申请晋升原因',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=20,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=23,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=10,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="832" style="height: 470px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3027">申请晋升原因  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1658_申请晋升原因" class="form-txts"  style="width:600px;height:350px;" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="申请晋升原因" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="23" FId="3027" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='4f324a5f-03dd-0059-0d83-f6d3d1d0a8f8' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='8a6eebc0-dcd5-d660-93ab-ff0f4ee18d15'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3028,'8a6eebc0-dcd5-d660-93ab-ff0f4ee18d15',1658,1658,'00000000-0000-0000-0000-000000000000','对晋升岗位的理解',2,2,21,'',5,1,null,0,2,1,0,11,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="833" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3028">对晋升岗位的理解  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1658_对晋升岗位的理解" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="对晋升岗位的理解" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="3028" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3028,[Form_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='对晋升岗位的理解',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=21,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=11,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="833" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3028">对晋升岗位的理解  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1658_对晋升岗位的理解" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="对晋升岗位的理解" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="3028" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='8a6eebc0-dcd5-d660-93ab-ff0f4ee18d15' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='e2872172-8f88-6e53-3d8f-c1b9bfe2d147'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3029,'e2872172-8f88-6e53-3d8f-c1b9bfe2d147',1658,1658,'00000000-0000-0000-0000-000000000000','对晋升岗位的胜任能力',2,2,22,'',5,1,null,0,2,1,0,12,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="834" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3029">对晋升岗位的胜任能力  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1658_对晋升岗位的胜任能力" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="对晋升岗位的胜任能力" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="3029" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3029,[Form_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='对晋升岗位的胜任能力',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=22,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=12,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="834" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3029">对晋升岗位的胜任能力  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1658_对晋升岗位的胜任能力" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="对晋升岗位的胜任能力" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="3029" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='e2872172-8f88-6e53-3d8f-c1b9bfe2d147' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='91034fc8-c517-6b24-a39b-bc4c79d296c7'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3030,'91034fc8-c517-6b24-a39b-bc4c79d296c7',1658,1658,'00000000-0000-0000-0000-000000000000','部门主管意见',2,2,23,'',5,1,null,0,2,1,0,13,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="835" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3030">部门主管意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1658_部门主管意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="部门主管意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="3030" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3030,[Form_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='部门主管意见',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=23,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=13,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="835" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3030">部门主管意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1658_部门主管意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="部门主管意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="3030" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='91034fc8-c517-6b24-a39b-bc4c79d296c7' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='f900ed07-db02-d650-9a00-bc8baeca1ef9'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3031,'f900ed07-db02-d650-9a00-bc8baeca1ef9',1658,1658,'00000000-0000-0000-0000-000000000000','部门经理意见',2,2,24,'',5,1,null,0,2,1,0,14,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="836" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3031">部门经理意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1658_部门经理意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="部门经理意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="3031" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3031,[Form_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='部门经理意见',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=24,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=14,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="836" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3031">部门经理意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1658_部门经理意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="部门经理意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="3031" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='f900ed07-db02-d650-9a00-bc8baeca1ef9' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='782bafcd-1930-47ed-dad8-ceae38d01737'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3032,'782bafcd-1930-47ed-dad8-ceae38d01737',1658,1658,'00000000-0000-0000-0000-000000000000','人事部意见',2,2,25,'',5,1,null,0,2,1,0,15,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="837" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3032">人事部意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1658_人事部意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="人事部意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="3032" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3032,[Form_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='人事部意见',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=25,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=15,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="837" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3032">人事部意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1658_人事部意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="人事部意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="3032" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='782bafcd-1930-47ed-dad8-ceae38d01737' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='a7494912-78c6-8168-bdcd-6fee18b9613c'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3033,'a7494912-78c6-8168-bdcd-6fee18b9613c',1658,1658,'00000000-0000-0000-0000-000000000000','公司意见批复',2,2,26,'',5,1,null,0,2,1,0,16,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="838" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3033">公司意见批复  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1658_公司意见批复" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="公司意见批复" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="3033" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3033,[Form_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='公司意见批复',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=26,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=16,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="838" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3033">公司意见批复  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1658_公司意见批复" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="公司意见批复" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="3033" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='a7494912-78c6-8168-bdcd-6fee18b9613c' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='2789c255-aa1b-89e8-605c-2904af8b0d59'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3034,'2789c255-aa1b-89e8-605c-2904af8b0d59',1658,1658,'00000000-0000-0000-0000-000000000000','备注',2,2,27,'',5,1,null,0,2,1,0,17,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="839" style="height: 138px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3034">备注  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','</span>
  </div>
</li>
</ul>
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="178" entid="1658" class="tab_ul" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="840" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li areaid="841" istab="1" tabid="2" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1" style="">
<ul isgroup="1" groupid="179" entid="1658" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="842" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="180" entid="1658" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="843" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="1658" groupid="181" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="844" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
<li areaid="845" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>','','','<textarea  id="d1658_备注" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="备注" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="3034" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3034,[Form_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='备注',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=27,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=17,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="839" style="height: 138px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3034">备注  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
  </div>
</li>
</ul>
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="178" entid="1658" class="tab_ul" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="840" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li areaid="841" istab="1" tabid="2" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1" style="">
<ul isgroup="1" groupid="179" entid="1658" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="842" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="180" entid="1658" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="843" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="1658" groupid="181" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="844" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
<li areaid="845" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1658_备注" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''AjaxF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''AjaxF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="备注" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="3034" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='2789c255-aa1b-89e8-605c-2904af8b0d59' 
      end



Delete from [Dcx_SearchForm_Run]  where [EntId]=1658

--Dcx_SearchForm_Run
      if (select count(1) from [Dcx_SearchForm_Run] where  [EntId]=1658  )<1 
      begin 
           Insert into [Dcx_SearchForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('e289ee33-6c97-42d1-bdbb-82d9f070d417','晋升申请',1658,9,'','',0,'<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>','','DcxRun.SearchF_1658= {"MenuId":2837,"MEntId":1658,"EntName":"晋升申请","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1658":{"EntId":1658,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_1658.EntMsg.E1658.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"人事_员工晋升申请表","EntId":1658,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"申请人":{"DtId":2,"DB":1,"CId":1,"FL":100},"现任部门":{"DtId":2,"DB":1,"CId":3,"FL":100},"申请时间":{"DtId":3,"DB":1,"CId":5,"FL":100},"流程是否已结束":{"DtId":4,"DB":0,"CId":3,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.SearchF_1658.EntMsg.E1658.GetDataRowModel=function()
{
    return {"申请人":"","现任部门":"","申请时间":new Date(),"流程是否已结束":false,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_1658.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1658,''SearchF_'',buildNew,closeDlg);

}','',20,'','','','1658*LD_Id*2**2*人事_员工晋升申请表*晋升申请',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 5:45:57',3,'admin','2013-11-16 17:38:18',1)
      end
      else 
      begin 
           update [Dcx_SearchForm_Run] set [FormId]='e289ee33-6c97-42d1-bdbb-82d9f070d417',[FormName]='晋升申请',[ModuleId]=9,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.SearchF_1658= {"MenuId":2837,"MEntId":1658,"EntName":"晋升申请","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1658":{"EntId":1658,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_1658.EntMsg.E1658.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"人事_员工晋升申请表","EntId":1658,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"申请人":{"DtId":2,"DB":1,"CId":1,"FL":100},"现任部门":{"DtId":2,"DB":1,"CId":3,"FL":100},"申请时间":{"DtId":3,"DB":1,"CId":5,"FL":100},"流程是否已结束":{"DtId":4,"DB":0,"CId":3,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.SearchF_1658.EntMsg.E1658.GetDataRowModel=function()
{
    return {"申请人":"","现任部门":"","申请时间":new Date(),"流程是否已结束":false,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_1658.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1658,''SearchF_'',buildNew,closeDlg);

}',[LoadingSql]='',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='1658*LD_Id*2**2*人事_员工晋升申请表*晋升申请',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 5:45:57',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-16 17:38:18',[AccountId]=1 where  [EntId]=1658 
      end




--Dcx_SearchFormField_Run
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='3460f0ff-e602-45f4-9066-b63cdd8d2baa'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'3460f0ff-e602-45f4-9066-b63cdd8d2baa',1658,1658,'00000000-0000-0000-0000-000000000000',1,'Like','申请人',2,2,12,'',5,1,1,0,1,1,0,-1,1,0,'','','','','<div class="searchform">
<ul isgroup="1" groupid="27" entid="1658" class="search-block w920" ctrlprex="SearchF_" isrple="1">
<li areaid="131" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="1">申请人</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">','','','','<input  id="d1658_申请人"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''SearchF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''SearchF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="申请人" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=1,[Form_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[CompareOperatorType]='Like',[FieldName]='申请人',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=12,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="searchform">
<ul isgroup="1" groupid="27" entid="1658" class="search-block w920" ctrlprex="SearchF_" isrple="1">
<li areaid="131" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="1">申请人</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1658_申请人"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''SearchF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''SearchF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="申请人" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='3460f0ff-e602-45f4-9066-b63cdd8d2baa' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='d7095876-e8f3-4448-8486-2319e95f98e5'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'d7095876-e8f3-4448-8486-2319e95f98e5',1658,1658,'00000000-0000-0000-0000-000000000000',2,'Like','现任部门',2,2,13,'select '''' union SELECT [DeptName]  FROM [Dcx_Dept]',2,1,1,0,3,1,0,-1,1,0,'','','','','</span>
  </div>
</li>
<li areaid="132" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="2">现任部门</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">','','','','<select id="d1658_现任部门" name="d1658_现任部门" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1658,''SearchF_'',1658,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''SearchF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="现任部门" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="3" FId="2" vlk=0    Cpre="Like"  style="width:150px;">','</select>','',1,-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=2,[Form_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[CompareOperatorType]='Like',[FieldName]='现任部门',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=13,[DefaultValue]='select '''' union SELECT [DeptName]  FROM [Dcx_Dept]',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="132" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="2">现任部门</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1658_现任部门" name="d1658_现任部门" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1658,''SearchF_'',1658,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''SearchF_'',1658);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="现任部门" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="3" FId="2" vlk=0    Cpre="Like"  style="width:150px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='d7095876-e8f3-4448-8486-2319e95f98e5' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='7212c978-88f1-4e72-a103-a14befbc4d46'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'7212c978-88f1-4e72-a103-a14befbc4d46',1658,1658,'00000000-0000-0000-0000-000000000000',3,'Like','申请时间',3,3,18,'',5,1,1,0,5,1,0,-1,1,0,'','','','','</span>
  </div>
</li>
<li areaid="133" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="3">申请时间</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">','','','','<div class="form-ddl"><input  id="d1658_申请时间"   type="text" class="form-ddl-txt"  style="width:130px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''SearchF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''SearchF_'',1658);DcxDTime.ShowCalendar(this);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="申请时间" dType="3" Vtp="5" RDT="3" Isc="1" RId="1" CId="5" FId="3" vlk=0    Cpre="Like"  value="','"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>','',1,-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=3,[Form_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[CompareOperatorType]='Like',[FieldName]='申请时间',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=18,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=5,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="133" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="3">申请时间</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-ddl"><input  id="d1658_申请时间"   type="text" class="form-ddl-txt"  style="width:130px;" onblur ="javascript:if(!DcxVld.Validate(this,1658,''SearchF_'',1658,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''SearchF_'',1658);DcxDTime.ShowCalendar(this);" EntId="1658" IsField=1 DBField=1 IsPost=1 FieldName="申请时间" dType="3" Vtp="5" RDT="3" Isc="1" RId="1" CId="5" FId="3" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='7212c978-88f1-4e72-a103-a14befbc4d46' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='ef080113-3242-42ad-9870-bc70eba7e7c4'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'ef080113-3242-42ad-9870-bc70eba7e7c4',1658,1658,'00000000-0000-0000-0000-000000000000',4,'=','流程是否已结束',4,4,-1,'',1,1,1,0,3,1,0,-1,1,0,'','','','','</span>
  </div>
</li>
<li areaid="134" class="search-li w270 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="4">流程已结束</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">','</span>
  </div>
</li>
<li areaid="135" class="search-li w100 h32" scroll="no" style="position: static;">
<div class="searchform-button" onclick="javascript:return VL_Search(1658);">
<div class="search-btn">&nbsp;</div>
<a href="javascript:void(0);" id="1658_searchBT">搜索</a>
</div>
</li>
</ul>
</div>','','','<select id="d1658_流程是否已结束" name="d1658_流程是否已结束" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1658,''SearchF_'',1658,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''SearchF_'',1658);" EntId="1658" IsField=1 DBField=0 IsPost=1 FieldName="流程是否已结束" dType="4" Vtp="1" RDT="4" Isc="1" RId="1" CId="3" FId="4" vlk=0    Cpre="="  style="width:150px;">','<option  value="False"  >否</option>
<option  value="True"  >是</option>
</select>','',1,-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=4,[Form_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=4,[CompareOperatorType]='=',[FieldName]='流程是否已结束',[FieldDataTypeId]=4,[RunDataTypeId]=4,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=1,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="134" class="search-li w270 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="4">流程已结束</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
  </div>
</li>
<li areaid="135" class="search-li w100 h32" scroll="no" style="position: static;">
<div class="searchform-button" onclick="javascript:return VL_Search(1658);">
<div class="search-btn">&nbsp;</div>
<a href="javascript:void(0);" id="1658_searchBT">搜索</a>
</div>
</li>
</ul>
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1658_流程是否已结束" name="d1658_流程是否已结束" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1658,''SearchF_'',1658,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1658,''SearchF_'',1658);" EntId="1658" IsField=1 DBField=0 IsPost=1 FieldName="流程是否已结束" dType="4" Vtp="1" RDT="4" Isc="1" RId="1" CId="3" FId="4" vlk=0    Cpre="="  style="width:150px;">',[CtrlbackHtml]='<option  value="False"  >否</option>
<option  value="True"  >是</option>
</select>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='ef080113-3242-42ad-9870-bc70eba7e7c4' 
      end



Delete from [Dcx_BrowseReport_Run]  where [EntId]=1658

--Dcx_BrowseReport_Run
      if (select count(1) from [Dcx_BrowseReport_Run] where  [EntId]=1658  )<1 
      begin 
           Insert into [Dcx_BrowseReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[DIYJsCss],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('7b54d440-5989-485f-adb2-61dd4e4ca118','晋升申请',1658,31,'','<$1658$>select [WFState],[WFUserName],[申请人编号],[申请人],[申请时间],[申请晋升原因],[对晋升岗位的理解],[对晋升岗位的胜任能力],[LD_Id] from 人事_员工晋升申请表 where [LD_Id]=''{$keyfieldvalue}''</$1658$>',1,1,20,'','DcxRun.MChildR_1658= {"MenuId":2837,"MEntId":1658,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"晋升申请","EntMsg":{"E1658":{"EntId":1658,"EntName":"晋升申请","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":26,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1658*LD_Id*2**2*人事_员工晋升申请表*晋升申请',3,'','2012-12-21 11:03:02',3,'','2013-11-17 3:03:55',1)
      end
      else 
      begin 
           update [Dcx_BrowseReport_Run] set [ReportId]='7b54d440-5989-485f-adb2-61dd4e4ca118',[ReportName]='晋升申请',[ModuleId]=31,[StaticHtml]='',[LoadingSql]='<$1658$>select [WFState],[WFUserName],[申请人编号],[申请人],[申请时间],[申请晋升原因],[对晋升岗位的理解],[对晋升岗位的胜任能力],[LD_Id] from 人事_员工晋升申请表 where [LD_Id]=''{$keyfieldvalue}''</$1658$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[DIYJsCss]='',[AutoPublicJs]='DcxRun.MChildR_1658= {"MenuId":2837,"MEntId":1658,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"晋升申请","EntMsg":{"E1658":{"EntId":1658,"EntName":"晋升申请","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":26,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1658*LD_Id*2**2*人事_员工晋升申请表*晋升申请',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-21 11:03:02',[EditorId]=3,[Editor]='',[EditTime]='2013-11-17 3:03:55',[AccountId]=1 where  [EntId]=1658 
      end




--Dcx_BrowseReportField_Run
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='d852c42d-87dc-48fe-ac52-5f63a08b3016'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'d852c42d-87dc-48fe-ac52-5f63a08b3016',1658,1658,'00000000-0000-0000-0000-000000000000',2,'WFState',1,1,'varchar',2,1,0,'','','','<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1658" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="443" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">晋升申请</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1658" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="444" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">流程当前状态  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1658" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=1,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='WFState',[FieldNO]=1,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1658" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="443" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">晋升申请</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1658" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="444" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">流程当前状态  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1658" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='d852c42d-87dc-48fe-ac52-5f63a08b3016' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='15756031-12bc-4439-b910-e4b23c421fce'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'15756031-12bc-4439-b910-e4b23c421fce',1658,1658,'00000000-0000-0000-0000-000000000000',3,'WFUserName',2,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="445" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">流程当前办理人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1658" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=2,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='WFUserName',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="445" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">流程当前办理人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1658" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='15756031-12bc-4439-b910-e4b23c421fce' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='114d80d8-b460-4767-b22c-f2f8d7234ecc'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'114d80d8-b460-4767-b22c-f2f8d7234ecc',1658,1658,'00000000-0000-0000-0000-000000000000',11,'申请人编号',3,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="446" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">申请人编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1658" fieldname="申请人编号" fldid="3" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=3,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=11,[FieldName]='申请人编号',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="446" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">申请人编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1658" fieldname="申请人编号" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='114d80d8-b460-4767-b22c-f2f8d7234ecc' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='6a13af13-1cc3-4afd-86f8-0f1bed075e76'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'6a13af13-1cc3-4afd-86f8-0f1bed075e76',1658,1658,'00000000-0000-0000-0000-000000000000',12,'申请人',4,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="447" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">申请人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1658" fieldname="申请人" fldid="4" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=4,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=12,[FieldName]='申请人',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="447" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">申请人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1658" fieldname="申请人" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='6a13af13-1cc3-4afd-86f8-0f1bed075e76' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='d3322012-4be8-46db-88ee-d4ffdd4f200a'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'d3322012-4be8-46db-88ee-d4ffdd4f200a',1658,1658,'00000000-0000-0000-0000-000000000000',18,'申请时间',5,4,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="448" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">申请时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1658" fieldname="申请时间" fldid="5" columntypeid="4" class="form-ctr">','',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=5,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=18,[FieldName]='申请时间',[FieldNO]=5,[ColumnTypeId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="448" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">申请时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1658" fieldname="申请时间" fldid="5" columntypeid="4" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='d3322012-4be8-46db-88ee-d4ffdd4f200a' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='8d39b046-ad80-4429-ad65-6e84c787fc48'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'8d39b046-ad80-4429-ad65-6e84c787fc48',1658,1658,'00000000-0000-0000-0000-000000000000',20,'申请晋升原因',6,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="449" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">申请晋升原因  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1658" fieldname="申请晋升原因" fldid="6" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=6,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=20,[FieldName]='申请晋升原因',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="449" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">申请晋升原因  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1658" fieldname="申请晋升原因" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='8d39b046-ad80-4429-ad65-6e84c787fc48' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='0d0565fe-7e91-4eca-ab8b-c146aafe2087'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'0d0565fe-7e91-4eca-ab8b-c146aafe2087',1658,1658,'00000000-0000-0000-0000-000000000000',21,'对晋升岗位的理解',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="450" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">对晋升岗位的理解  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1658" fieldname="对晋升岗位的理解" fldid="7" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=7,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=21,[FieldName]='对晋升岗位的理解',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="450" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">对晋升岗位的理解  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1658" fieldname="对晋升岗位的理解" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='0d0565fe-7e91-4eca-ab8b-c146aafe2087' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='b59f04b8-dc58-471d-b84f-bf5f3c6cb3dd'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'b59f04b8-dc58-471d-b84f-bf5f3c6cb3dd',1658,1658,'00000000-0000-0000-0000-000000000000',22,'对晋升岗位的胜任能力',8,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="451" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="8">对晋升岗位的胜任能力  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1658" fieldname="对晋升岗位的胜任能力" fldid="8" columntypeid="1" class="form-ctr">','</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1658" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="456" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="457" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1658" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="458" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1658" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="459" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1658" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="460" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="461" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',-1,-1,-1,-1,0,'1658,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=8,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=22,[FieldName]='对晋升岗位的胜任能力',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="451" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="8">对晋升岗位的胜任能力  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1658" fieldname="对晋升岗位的胜任能力" fldid="8" columntypeid="1" class="form-ctr">',[LastHtml]='</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1658" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="456" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="457" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1658" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="458" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1658" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="459" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1658" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="460" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="461" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1658,' where  [FldUId]='b59f04b8-dc58-471d-b84f-bf5f3c6cb3dd' 
      end



Delete from [Dcx_ListReport_Run]  where [EntId]=1658

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=1658  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('674de51d-9680-4d02-80e4-74a8190b367e','晋升申请',1658,1,'','','<$1658$>select *  from (select row_number() over( order by [LD_Id])as dcx_rowid,[WFState],[WFFlowId],[WFRunId],[WFPrcsId],[WFUserName],[申请人编号],[申请人],[申请时间],[申请晋升原因],[对晋升岗位的理解],[对晋升岗位的胜任能力],[LD_Id] from 人事_员工晋升申请表  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1658$><$1658:Count$>select count([LD_Id]) from 人事_员工晋升申请表 where {$SearchArea}</$1658:Count$>',1,1,20,'DcxRun.ListR_1658= {"MenuId":2837,"MEntId":1658,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"晋升申请","EntMsg":{"E1658":{"EntId":1658,"EntName":"晋升申请","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":26,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1658*LD_Id*2**2*人事_员工晋升申请表*晋升申请',3,'','2012-12-22 5:16:19',3,'','2013-11-16 20:11:41',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='674de51d-9680-4d02-80e4-74a8190b367e',[ReportName]='晋升申请',[ModuleId]=1,[StaticHtml]='',[DIYJsCss]='',[LoadingSql]='<$1658$>select *  from (select row_number() over( order by [LD_Id])as dcx_rowid,[WFState],[WFFlowId],[WFRunId],[WFPrcsId],[WFUserName],[申请人编号],[申请人],[申请时间],[申请晋升原因],[对晋升岗位的理解],[对晋升岗位的胜任能力],[LD_Id] from 人事_员工晋升申请表  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1658$><$1658:Count$>select count([LD_Id]) from 人事_员工晋升申请表 where {$SearchArea}</$1658:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[AutoPublicJs]='DcxRun.ListR_1658= {"MenuId":2837,"MEntId":1658,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"晋升申请","EntMsg":{"E1658":{"EntId":1658,"EntName":"晋升申请","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":26,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1658*LD_Id*2**2*人事_员工晋升申请表*晋升申请',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-22 5:16:19',[EditorId]=3,[Editor]='',[EditTime]='2013-11-16 20:11:41',[AccountId]=1 where  [EntId]=1658 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='40b2e745-e0a8-3e52-d56b-948a026b67bd'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(448,'40b2e745-e0a8-3e52-d56b-948a026b67bd',1658,1658,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="101" entid="1658" style="width: 1060px;" ctrlprex="ListR_" isrple="1"> <li areaid="1489" class="tool-li" style="position: static;">
</li><li areaid="1490" class="tool-li" style="position: static;"><a id="ListR_1658_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1658,''ListR_'');">删   除</a></li>
<li areaid="1491" class="tool-li" style="position: static;"><a id="ListR_1658_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1658,''ListR_'');">导   出</a></li>
<li areaid="1492" class="tool-li" style="position: static;"><a id="ListR_1658_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1658,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1658" style="position: static;">
<a id="ListR_1658_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1658,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1658_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1658,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1658_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1658,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1658_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="102" entid="1658" class="list-head-ul" style="width: 1080px;" ctrlprex="ListR_" isrple="1">
<li areaid="1494" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1658" onclick="javascript:DcxCom.CheckedAll(this,1658,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="1495" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">流程当前状态 </label></li><li areaid="1496" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">流程当前办理人 </label></li><li areaid="1497" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请人编号 </label></li><li areaid="1498" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请人 </label></li><li areaid="1499" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请时间 </label></li><li areaid="1500" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请晋升原因 </label></li><li areaid="1501" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">对晋升岗位的理解 </label></li><li areaid="1502" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">对晋升岗位的胜任能力 </label></li><li areaid="1503" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="办理"><span class="i">办理</span></a></div></li><li areaid="1504" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="1505" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">','',-1,103,-1,-1,1,'1658,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=448,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="101" entid="1658" style="width: 1060px;" ctrlprex="ListR_" isrple="1"> <li areaid="1489" class="tool-li" style="position: static;">
</li><li areaid="1490" class="tool-li" style="position: static;"><a id="ListR_1658_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1658,''ListR_'');">删   除</a></li>
<li areaid="1491" class="tool-li" style="position: static;"><a id="ListR_1658_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1658,''ListR_'');">导   出</a></li>
<li areaid="1492" class="tool-li" style="position: static;"><a id="ListR_1658_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1658,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1658" style="position: static;">
<a id="ListR_1658_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1658,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1658_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1658,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1658_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1658,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1658_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="102" entid="1658" class="list-head-ul" style="width: 1080px;" ctrlprex="ListR_" isrple="1">
<li areaid="1494" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1658" onclick="javascript:DcxCom.CheckedAll(this,1658,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="1495" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">流程当前状态 </label></li><li areaid="1496" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">流程当前办理人 </label></li><li areaid="1497" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请人编号 </label></li><li areaid="1498" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请人 </label></li><li areaid="1499" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请时间 </label></li><li areaid="1500" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请晋升原因 </label></li><li areaid="1501" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">对晋升岗位的理解 </label></li><li areaid="1502" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">对晋升岗位的胜任能力 </label></li><li areaid="1503" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="办理"><span class="i">办理</span></a></div></li><li areaid="1504" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="1505" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1658,' where  [FldUId]='40b2e745-e0a8-3e52-d56b-948a026b67bd' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='fc50dd5a-7087-4a71-87d3-1527206c2e3a'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(154,'fc50dd5a-7087-4a71-87d3-1527206c2e3a',1658,1658,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',2,1,'',2,21,0,'','','','islonly="1" isgroup="1" groupid="103" class="list-body-ul" style="width: 1080px;" isrple="1">
<li areaid="1506" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1658" issyscheck="1" keyvalue="','',-1,103,-1,-1,1,'1658,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=154,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='islonly="1" isgroup="1" groupid="103" class="list-body-ul" style="width: 1080px;" isrple="1">
<li areaid="1506" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1658" issyscheck="1" keyvalue="',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1658,' where  [FldUId]='fc50dd5a-7087-4a71-87d3-1527206c2e3a' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='c3609549-c739-4559-a2f6-fd4543f02e73'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'c3609549-c739-4559-a2f6-fd4543f02e73',1658,1658,'00000000-0000-0000-0000-000000000000',2,'WFState',3,1,'varchar',2,1,0,'','','','" type="checkbox"></li><li areaid="1507" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowCurWfDlg(this);">
   <span isfield="1" entid="1658" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1658,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=1,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='WFState',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='" type="checkbox"></li><li areaid="1507" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowCurWfDlg(this);">
   <span isfield="1" entid="1658" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1658,' where  [FldUId]='c3609549-c739-4559-a2f6-fd4543f02e73' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='3fbd3021-9186-44a6-b2b9-39c1c532c271'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(399,'3fbd3021-9186-44a6-b2b9-39c1c532c271',1658,1658,'00000000-0000-0000-0000-000000000000',9,'WFFlowId',4,1,'',1,1,0,'','','','</span>
   </a>
   <span isfield="1" entid="1658" fieldname="WFFlowId" fldid="399" columntypeid="1" class="form-ctr" style="display: none;">','',-1,103,-1,-1,1,'1658,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=399,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=9,[FieldName]='WFFlowId',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   </a>
   <span isfield="1" entid="1658" fieldname="WFFlowId" fldid="399" columntypeid="1" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1658,' where  [FldUId]='3fbd3021-9186-44a6-b2b9-39c1c532c271' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='e3a00aaa-2427-4255-abed-41e65a2ea88b'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(400,'e3a00aaa-2427-4255-abed-41e65a2ea88b',1658,1658,'00000000-0000-0000-0000-000000000000',8,'WFRunId',5,1,'',1,1,0,'','','','</span>
   <span isfield="1" entid="1658" fieldname="WFRunId" fldid="400" columntypeid="1" class="form-ctr" style="display: none;">','',-1,103,-1,-1,1,'1658,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=400,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=8,[FieldName]='WFRunId',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   <span isfield="1" entid="1658" fieldname="WFRunId" fldid="400" columntypeid="1" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1658,' where  [FldUId]='e3a00aaa-2427-4255-abed-41e65a2ea88b' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='0291ee90-c9a3-412d-b5a0-cfe778d2bad4'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(401,'0291ee90-c9a3-412d-b5a0-cfe778d2bad4',1658,1658,'00000000-0000-0000-0000-000000000000',10,'WFPrcsId',6,1,'',1,1,0,'','','','</span>
   <span isfield="1" entid="1658" fieldname="WFPrcsId" fldid="401" columntypeid="1" class="form-ctr" style="display: none;">','',-1,103,-1,-1,1,'1658,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=401,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=10,[FieldName]='WFPrcsId',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   <span isfield="1" entid="1658" fieldname="WFPrcsId" fldid="401" columntypeid="1" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1658,' where  [FldUId]='0291ee90-c9a3-412d-b5a0-cfe778d2bad4' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='f8eea922-9fb7-47ac-942b-2900ba8c36de'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'f8eea922-9fb7-47ac-942b-2900ba8c36de',1658,1658,'00000000-0000-0000-0000-000000000000',3,'WFUserName',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1508" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowWfCurUserDlg(this);">
   <span isfield="1" entid="1658" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1658,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=2,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='WFUserName',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1508" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowWfCurUserDlg(this);">
   <span isfield="1" entid="1658" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1658,' where  [FldUId]='f8eea922-9fb7-47ac-942b-2900ba8c36de' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='b776c6bd-0a3a-4b79-87cd-a3ff568a32f9'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'b776c6bd-0a3a-4b79-87cd-a3ff568a32f9',1658,1658,'00000000-0000-0000-0000-000000000000',11,'申请人编号',8,1,'varchar',2,1,0,'','','','</span>
   </a>
  </div>
</li><li areaid="1509" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1658" fieldname="申请人编号" fldid="3" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1658,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=3,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=11,[FieldName]='申请人编号',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   </a>
  </div>
</li><li areaid="1509" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1658" fieldname="申请人编号" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1658,' where  [FldUId]='b776c6bd-0a3a-4b79-87cd-a3ff568a32f9' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='8f9c25a9-63b6-499c-97f8-e61b2031e1c1'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'8f9c25a9-63b6-499c-97f8-e61b2031e1c1',1658,1658,'00000000-0000-0000-0000-000000000000',12,'申请人',9,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1510" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1658" fieldname="申请人" fldid="4" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1658,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=4,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=12,[FieldName]='申请人',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1510" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1658" fieldname="申请人" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1658,' where  [FldUId]='8f9c25a9-63b6-499c-97f8-e61b2031e1c1' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='7ca5b392-d2b5-40f3-b430-08755ee35b9d'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'7ca5b392-d2b5-40f3-b430-08755ee35b9d',1658,1658,'00000000-0000-0000-0000-000000000000',18,'申请时间',10,4,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1511" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1658" fieldname="申请时间" fldid="5" columntypeid="4" class="form-ctr">','',-1,103,-1,-1,1,'1658,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=5,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=18,[FieldName]='申请时间',[FieldNO]=10,[ColumnTypeId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1511" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1658" fieldname="申请时间" fldid="5" columntypeid="4" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1658,' where  [FldUId]='7ca5b392-d2b5-40f3-b430-08755ee35b9d' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='0d048447-c7bf-4799-bfc0-761d3ec96468'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'0d048447-c7bf-4799-bfc0-761d3ec96468',1658,1658,'00000000-0000-0000-0000-000000000000',20,'申请晋升原因',11,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1512" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1658" fieldname="申请晋升原因" fldid="6" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1658,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=6,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=20,[FieldName]='申请晋升原因',[FieldNO]=11,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1512" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1658" fieldname="申请晋升原因" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1658,' where  [FldUId]='0d048447-c7bf-4799-bfc0-761d3ec96468' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='11a2a979-9129-405d-bb12-70ba8e64e9cb'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'11a2a979-9129-405d-bb12-70ba8e64e9cb',1658,1658,'00000000-0000-0000-0000-000000000000',21,'对晋升岗位的理解',12,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1513" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1658" fieldname="对晋升岗位的理解" fldid="7" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1658,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=7,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=21,[FieldName]='对晋升岗位的理解',[FieldNO]=12,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1513" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1658" fieldname="对晋升岗位的理解" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1658,' where  [FldUId]='11a2a979-9129-405d-bb12-70ba8e64e9cb' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='87017ea5-29b3-4a92-a9cd-3f62ccf56a1d'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'87017ea5-29b3-4a92-a9cd-3f62ccf56a1d',1658,1658,'00000000-0000-0000-0000-000000000000',22,'对晋升岗位的胜任能力',13,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1514" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1658" fieldname="对晋升岗位的胜任能力" fldid="8" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1658,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=8,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=22,[FieldName]='对晋升岗位的胜任能力',[FieldNO]=13,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1514" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1658" fieldname="对晋升岗位的胜任能力" fldid="8" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1658,' where  [FldUId]='87017ea5-29b3-4a92-a9cd-3f62ccf56a1d' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='278d6e78-7892-4071-a18c-3129d9871e82'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(155,'278d6e78-7892-4071-a18c-3129d9871e82',1658,1658,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',14,1,'',2,21,0,'','','','</span>
  </div>
</li><li areaid="1515" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,1658,''ListR_'',''','',-1,103,-1,-1,1,'1658,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=155,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=14,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1515" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,1658,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1658,' where  [FldUId]='278d6e78-7892-4071-a18c-3129d9871e82' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='335105dc-ab6a-4343-9bf2-babda5f53163'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(156,'335105dc-ab6a-4343-9bf2-babda5f53163',1658,1658,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',15,1,'',2,21,0,'','','',''',null,1040,480);">
<span class="i">办理</span></a></div>
</li><li areaid="1516" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1658,''ListR_'',''','',-1,103,-1,-1,1,'1658,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=156,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=15,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">办理</span></a></div>
</li><li areaid="1516" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1658,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1658,' where  [FldUId]='335105dc-ab6a-4343-9bf2-babda5f53163' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='4c4764c3-22e1-4be7-a0bb-61fc4ac971ea'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(157,'4c4764c3-22e1-4be7-a0bb-61fc4ac971ea',1658,1658,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',16,1,'',2,21,0,'','','',''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="1517" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,1658,''ListR_'',''','',-1,103,-1,-1,1,'1658,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=157,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=16,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="1517" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,1658,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1658,' where  [FldUId]='4c4764c3-22e1-4be7-a0bb-61fc4ac971ea' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='44c23b86-5fe3-32a0-9786-4bc1ddff0810'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(449,'44c23b86-5fe3-32a0-9786-4bc1ddff0810',1658,1658,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',17,-1,'varchar',2,13,0,'','','',''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>','</div>
</div>
<!-- 结束 --></div>',-1,103,-1,-1,1,'1658,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=449,[Report_EntId]=1658,[EntId]=1658,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=17,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>',[LastHtml]='</div>
</div>
<!-- 结束 --></div>',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1658,' where  [FldUId]='44c23b86-5fe3-32a0-9786-4bc1ddff0810' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=1039

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=1039  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(1039,null,'人事_员工晋升申请表','人事_员工晋升申请表',0,0,0,0,0,1,4,1,3,'admin','2013-12-15 17:32:51',3,'admin','2013-12-15 17:32:51',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='人事_员工晋升申请表',[DBTableByName]='人事_员工晋升申请表',[IsForbid]=0,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=1,[SystemId]=4,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:51',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:51',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=1039 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7379,1,4,1039,'int',1,1,1,'人事_员工晋升申请表','LD_Id','LD_Id','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='LD_Id',[FieldByname]='LD_Id',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7380,2,4,1039,'varchar',2,1,1,'人事_员工晋升申请表','WFState','WFState','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='WFState',[FieldByname]='WFState',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7381,3,4,1039,'varchar',2,1,1,'人事_员工晋升申请表','WFUserName','WFUserName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='WFUserName',[FieldByname]='WFUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7382,4,4,1039,'bit',4,1,1,'人事_员工晋升申请表','WFIsFinish','WFIsFinish','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='WFIsFinish',[FieldByname]='WFIsFinish',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7383,5,4,1039,'bit',4,1,1,'人事_员工晋升申请表','WFIsStart','WFIsStart','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='WFIsStart',[FieldByname]='WFIsStart',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7384,6,4,1039,'varchar',2,1,1,'人事_员工晋升申请表','WFAllUser','WFAllUser','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='WFAllUser',[FieldByname]='WFAllUser',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7385,7,4,1039,'varchar',2,1,1,'人事_员工晋升申请表','WFOpinion','WFOpinion','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='WFOpinion',[FieldByname]='WFOpinion',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7386,8,4,1039,'int',1,1,1,'人事_员工晋升申请表','WFRunId','WFRunId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='WFRunId',[FieldByname]='WFRunId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7387,9,4,1039,'int',1,1,1,'人事_员工晋升申请表','WFFlowId','WFFlowId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='WFFlowId',[FieldByname]='WFFlowId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7388,10,4,1039,'int',1,1,1,'人事_员工晋升申请表','WFPrcsId','WFPrcsId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='WFPrcsId',[FieldByname]='WFPrcsId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7389,11,4,1039,'varchar',2,1,1,'人事_员工晋升申请表','申请人编号','申请人编号','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='申请人编号',[FieldByname]='申请人编号',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7390,12,4,1039,'varchar',2,1,1,'人事_员工晋升申请表','申请人','申请人','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='申请人',[FieldByname]='申请人',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7391,13,4,1039,'varchar',2,1,1,'人事_员工晋升申请表','现任部门','现任部门','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='现任部门',[FieldByname]='现任部门',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7392,14,4,1039,'varchar',2,1,1,'人事_员工晋升申请表','现任岗位','现任岗位','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='现任岗位',[FieldByname]='现任岗位',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7393,15,4,1039,'datetime',3,1,1,'人事_员工晋升申请表','入职日期','入职日期','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='入职日期',[FieldByname]='入职日期',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7394,16,4,1039,'varchar',2,1,1,'人事_员工晋升申请表','申请岗位','申请岗位','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='申请岗位',[FieldByname]='申请岗位',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7395,17,4,1039,'varchar',2,1,1,'人事_员工晋升申请表','申请岗位所在公司','申请岗位所在公司','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='申请岗位所在公司',[FieldByname]='申请岗位所在公司',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7396,18,4,1039,'datetime',3,1,1,'人事_员工晋升申请表','申请时间','申请时间','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='申请时间',[FieldByname]='申请时间',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7397,19,4,1039,'datetime',3,1,1,'人事_员工晋升申请表','生效时间','生效时间','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='生效时间',[FieldByname]='生效时间',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7398,20,4,1039,'varchar',2,1,1,'人事_员工晋升申请表','申请晋升原因','申请晋升原因','',0,0,1,2000,2000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='申请晋升原因',[FieldByname]='申请晋升原因',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=2000,[Precision]=2000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7399,21,4,1039,'varchar',2,1,1,'人事_员工晋升申请表','对晋升岗位的理解','对晋升岗位的理解','',0,0,1,2000,2000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='对晋升岗位的理解',[FieldByname]='对晋升岗位的理解',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=2000,[Precision]=2000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7400,22,4,1039,'varchar',2,1,1,'人事_员工晋升申请表','对晋升岗位的胜任能力','对晋升岗位的胜任能力','',0,0,1,2000,2000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='对晋升岗位的胜任能力',[FieldByname]='对晋升岗位的胜任能力',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=2000,[Precision]=2000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7401,23,4,1039,'varchar',2,1,1,'人事_员工晋升申请表','部门主管意见','部门主管意见','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='部门主管意见',[FieldByname]='部门主管意见',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7402,24,4,1039,'varchar',2,1,1,'人事_员工晋升申请表','部门经理意见','部门经理意见','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='部门经理意见',[FieldByname]='部门经理意见',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7403,25,4,1039,'varchar',2,1,1,'人事_员工晋升申请表','人事部意见','人事部意见','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='人事部意见',[FieldByname]='人事部意见',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7404,26,4,1039,'varchar',2,1,1,'人事_员工晋升申请表','公司意见批复','公司意见批复','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='公司意见批复',[FieldByname]='公司意见批复',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=26 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1039  and  [FieldId]=27  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7405,27,4,1039,'varchar',2,1,1,'人事_员工晋升申请表','备注','备注','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_员工晋升申请表',[FieldName]='备注',[FieldByname]='备注',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1039  and  [FieldId]=27 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--WF_FlowType

     SET IDENTITY_INSERT [WF_FlowType] ON 
      if (select count(1) from [WF_FlowType] where  [FlowId]=26  )<1 
      begin 
           Insert into [WF_FlowType] ([FlowId],[FlowName],[FlowNo],[SortId],[EntId],[EntName],[AutoName],[ManageUsers],[ManageNames],[QueryUsers],[QueryNames],[CanQueryRoles],[CanQueryRolesId],[CanManageRoles],[CanManageRolesId],[CanStartUsers],[CanStartNames],[CanStartRoles],[CanStartRolesId],[AttachMaxSize],[FlowAttach],[IsPigeonhole],[PigeonholedSQL],[IsFreeFlow],[QueryItem],[LaunchIsOpen],[FormUrl],[BrowseUrl],[ListUrl],[Detail],[CreatorId],[Creator],[CreateTime],[EditTime],[Editor],[EditorId],[AccountId])values(26,'员工晋升申请',15,25,1658,'晋升申请',null,'admin','admin','admin','admin','系统管理员','3','系统管理员','3',null,null,'Public','1',1,0,0,'',0,null,null,null,null,null,'',0,'admin','2013-11-30 1:06:40',null,null,null,1)
      end
      else 
      begin 
           update [WF_FlowType] set [FlowName]='员工晋升申请',[FlowNo]=15,[SortId]=25,[EntId]=1658,[EntName]='晋升申请',[AutoName]=null,[ManageUsers]='admin',[ManageNames]='admin',[QueryUsers]='admin',[QueryNames]='admin',[CanQueryRoles]='系统管理员',[CanQueryRolesId]='3',[CanManageRoles]='系统管理员',[CanManageRolesId]='3',[CanStartUsers]=null,[CanStartNames]=null,[CanStartRoles]='Public',[CanStartRolesId]='1',[AttachMaxSize]=1,[FlowAttach]=0,[IsPigeonhole]=0,[PigeonholedSQL]='',[IsFreeFlow]=0,[QueryItem]=null,[LaunchIsOpen]=null,[FormUrl]=null,[BrowseUrl]=null,[ListUrl]=null,[Detail]='',[CreatorId]=0,[Creator]='admin',[CreateTime]='2013-11-30 1:06:40',[EditTime]=null,[Editor]=null,[EditorId]=null,[AccountId]=1 where  [FlowId]=26 
      end

     SET IDENTITY_INSERT [WF_FlowType] OFF 



Delete from [WF_FlowNode]  where isnull([FlowId],0)=26 

--WF_FlowNode

     SET IDENTITY_INSERT [WF_FlowNode] ON 
      if (select count(1) from [WF_FlowNode] where  [NodeId]=349  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(349,26,'提交申请',1,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','350',0,1,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','',null,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'3018,3019,3020,3021,3022,3023,3024,3025,3026,3027,3028,3029,3034',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=26,[NodeName]='提交申请',[Step]=1,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='350',[AllowLastNodeBoss]=0,[AllowWorkCreator]=1,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='3018,3019,3020,3021,3022,3023,3024,3025,3026,3027,3028,3029,3034',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=349 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=350  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(350,26,'部门领导审核',2,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','351',0,1,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','',null,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'3030,3031',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=26,[NodeName]='部门领导审核',[Step]=2,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='351',[AllowLastNodeBoss]=0,[AllowWorkCreator]=1,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='3030,3031',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=350 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=351  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(351,26,'人力资源部审核',3,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','352',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','',null,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'3032',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=26,[NodeName]='人力资源部审核',[Step]=3,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='352',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='3032',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=351 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=352  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(352,26,'人力资源部办结',4,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','353',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','',null,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=26,[NodeName]='人力资源部办结',[Step]=4,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='353',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=352 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=353  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(353,26,'申请成功，通知提交人',5,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','-1',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','<$462:Begin$>
		--流出到<结束>节点时 

		
update 人事_员工晋升申请表  set WFIsFinish=1,WFIsStart=1 where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''

Update   工资_员工档案  Set   [员工岗位]=@申请岗位   where  工资_员工档案.[员工编号] =@申请人编号

		</$462:End$>',null,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=26,[NodeName]='申请成功，通知提交人',[Step]=5,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='-1',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='<$462:Begin$>
		--流出到<结束>节点时 

		
update 人事_员工晋升申请表  set WFIsFinish=1,WFIsStart=1 where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''

Update   工资_员工档案  Set   [员工岗位]=@申请岗位   where  工资_员工档案.[员工编号] =@申请人编号

		</$462:End$>',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=353 
      end

     SET IDENTITY_INSERT [WF_FlowNode] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=2064  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2064,26,349,1658,'晋升申请',3018,'申请人编号','申请人编号','员工晋升审批流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=26,[NodeId]=349,[EntId]=1658,[EntName]='晋升申请',[FldId]=3018,[FieldName]='申请人编号',[CtrlByName]='申请人编号',[FlowName]='员工晋升审批流程',[TypeId]=1 where  [Id]=2064 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2065  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2065,26,349,1658,'晋升申请',3019,'申请人','申请人','员工晋升审批流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=26,[NodeId]=349,[EntId]=1658,[EntName]='晋升申请',[FldId]=3019,[FieldName]='申请人',[CtrlByName]='申请人',[FlowName]='员工晋升审批流程',[TypeId]=1 where  [Id]=2065 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2066  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2066,26,349,1658,'晋升申请',3020,'现任部门','现任部门','员工晋升审批流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=26,[NodeId]=349,[EntId]=1658,[EntName]='晋升申请',[FldId]=3020,[FieldName]='现任部门',[CtrlByName]='现任部门',[FlowName]='员工晋升审批流程',[TypeId]=1 where  [Id]=2066 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2067  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2067,26,349,1658,'晋升申请',3021,'现任岗位','现任岗位','员工晋升审批流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=26,[NodeId]=349,[EntId]=1658,[EntName]='晋升申请',[FldId]=3021,[FieldName]='现任岗位',[CtrlByName]='现任岗位',[FlowName]='员工晋升审批流程',[TypeId]=1 where  [Id]=2067 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2068  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2068,26,349,1658,'晋升申请',3022,'入职日期','入职日期','员工晋升审批流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=26,[NodeId]=349,[EntId]=1658,[EntName]='晋升申请',[FldId]=3022,[FieldName]='入职日期',[CtrlByName]='入职日期',[FlowName]='员工晋升审批流程',[TypeId]=1 where  [Id]=2068 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2069  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2069,26,349,1658,'晋升申请',3023,'申请岗位','申请岗位','员工晋升审批流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=26,[NodeId]=349,[EntId]=1658,[EntName]='晋升申请',[FldId]=3023,[FieldName]='申请岗位',[CtrlByName]='申请岗位',[FlowName]='员工晋升审批流程',[TypeId]=1 where  [Id]=2069 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2070  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2070,26,349,1658,'晋升申请',3024,'申请岗位所在公司','申请岗位所在公司','员工晋升审批流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=26,[NodeId]=349,[EntId]=1658,[EntName]='晋升申请',[FldId]=3024,[FieldName]='申请岗位所在公司',[CtrlByName]='申请岗位所在公司',[FlowName]='员工晋升审批流程',[TypeId]=1 where  [Id]=2070 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2071  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2071,26,349,1658,'晋升申请',3025,'申请时间','申请时间','员工晋升审批流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=26,[NodeId]=349,[EntId]=1658,[EntName]='晋升申请',[FldId]=3025,[FieldName]='申请时间',[CtrlByName]='申请时间',[FlowName]='员工晋升审批流程',[TypeId]=1 where  [Id]=2071 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2072  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2072,26,349,1658,'晋升申请',3026,'生效时间','生效时间','员工晋升审批流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=26,[NodeId]=349,[EntId]=1658,[EntName]='晋升申请',[FldId]=3026,[FieldName]='生效时间',[CtrlByName]='生效时间',[FlowName]='员工晋升审批流程',[TypeId]=1 where  [Id]=2072 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2073  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2073,26,349,1658,'晋升申请',3027,'申请晋升原因','申请晋升原因','员工晋升审批流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=26,[NodeId]=349,[EntId]=1658,[EntName]='晋升申请',[FldId]=3027,[FieldName]='申请晋升原因',[CtrlByName]='申请晋升原因',[FlowName]='员工晋升审批流程',[TypeId]=1 where  [Id]=2073 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2074  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2074,26,349,1658,'晋升申请',3028,'对晋升岗位的理解','对晋升岗位的理解','员工晋升审批流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=26,[NodeId]=349,[EntId]=1658,[EntName]='晋升申请',[FldId]=3028,[FieldName]='对晋升岗位的理解',[CtrlByName]='对晋升岗位的理解',[FlowName]='员工晋升审批流程',[TypeId]=1 where  [Id]=2074 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2075  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2075,26,349,1658,'晋升申请',3029,'对晋升岗位的胜任能力','对晋升岗位的胜任能力','员工晋升审批流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=26,[NodeId]=349,[EntId]=1658,[EntName]='晋升申请',[FldId]=3029,[FieldName]='对晋升岗位的胜任能力',[CtrlByName]='对晋升岗位的胜任能力',[FlowName]='员工晋升审批流程',[TypeId]=1 where  [Id]=2075 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2076  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2076,26,349,1658,'晋升申请',3034,'备注','备注','员工晋升审批流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=26,[NodeId]=349,[EntId]=1658,[EntName]='晋升申请',[FldId]=3034,[FieldName]='备注',[CtrlByName]='备注',[FlowName]='员工晋升审批流程',[TypeId]=1 where  [Id]=2076 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=2077  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2077,26,350,1658,'晋升申请',3030,'部门主管意见','部门主管意见','员工晋升审批流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=26,[NodeId]=350,[EntId]=1658,[EntName]='晋升申请',[FldId]=3030,[FieldName]='部门主管意见',[CtrlByName]='部门主管意见',[FlowName]='员工晋升审批流程',[TypeId]=1 where  [Id]=2077 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2078  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2078,26,350,1658,'晋升申请',3031,'部门经理意见','部门经理意见','员工晋升审批流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=26,[NodeId]=350,[EntId]=1658,[EntName]='晋升申请',[FldId]=3031,[FieldName]='部门经理意见',[CtrlByName]='部门经理意见',[FlowName]='员工晋升审批流程',[TypeId]=1 where  [Id]=2078 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=2079  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2079,26,351,1658,'晋升申请',3032,'人事部意见','人事部意见','员工晋升审批流程',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=26,[NodeId]=351,[EntId]=1658,[EntName]='晋升申请',[FldId]=3032,[FieldName]='人事部意见',[CtrlByName]='人事部意见',[FlowName]='员工晋升审批流程',[TypeId]=1 where  [Id]=2079 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=2888  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2888,'a9ce6abc-625e-4c14-ae9c-dc13020159eb','工作请示申请',2923,'/Template/default/ListReport/ListReport_Tree001.aspx',1,'/images/default.gif','/images/default.gif',2,'',null,0,null,1,0,1,1,1,1,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='a9ce6abc-625e-4c14-ae9c-dc13020159eb',[MenuName]='工作请示申请',[ParentId]=2923,[ProPath]='/Template/default/ListReport/ListReport_Tree001.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=2,[Target]='',[IsOpen]=null,[IsHidden]=0,[Remark]=null,[SSystemId]=1,[SMenuId]=0,[SystemId]=1,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=2888 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=2888  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(668,2888,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=2888  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=1676  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(1676,2888,'工作请示',1,1109,0,'行政_工作请示表',0,0,1,1,1676,null,null,1,null,1,null,54,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=2888,[EntName]='工作请示',[MEnt]=1,[DBTableId]=1109,[DBConnectId]=0,[DBTableName]='行政_工作请示表',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=1,[SEntId]=1676,[FSystemId]=null,[FEntId]=null,[SystemId]=1,[Remark]=null,[IsFlow]=1,[IsChecked]=null,[FlowId]=54,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=1676 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=1676

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=1676  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11426,-1,1676,1,1,1,1,0,1,0,0,0,1,0,0,0,0,0,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=0,[CanUpdate]=1,[CanOutPut]=0,[CanInput]=0,[CanCopy]=0,[CanPrint]=1,[CanCheck]=0,[CanClean]=0,[CanRecycle]=0,[CanExecute]=0,[CanDesign]=0,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=1676  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=1676  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(10809,2888,1676,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=2888,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=1676  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=1676

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1676  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18088,1,2888,1676,13,1,1,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2888,[TemplateId]=13,[ModuleId]=1,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1676  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1676  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18089,1,2888,1676,13,2,9,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2888,[TemplateId]=13,[ModuleId]=9,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1676  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1676  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18090,1,2888,1676,13,3,14,1,4,2,'/Template/Default/Form/AjaxForm/AjaxForm008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2888,[TemplateId]=13,[ModuleId]=14,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='/Template/Default/Form/AjaxForm/AjaxForm008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1676  and  [ModuleTypeId]=3 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1676  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18091,1,2888,1676,13,16,31,1,5,2,'/Template/Default/Browse/Browse008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2888,[TemplateId]=13,[ModuleId]=31,[GroupId]=1,[AreaId]=5,[ShowMode]=2,[AreaUrl]='/Template/Default/Browse/Browse008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1676  and  [ModuleTypeId]=16 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_AjaxForm_Run]  where [EntId]=1676

--Dcx_AjaxForm_Run
      if (select count(1) from [Dcx_AjaxForm_Run] where  [EntId]=1676  )<1 
      begin 
           Insert into [Dcx_AjaxForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('5323ed00-a6e0-438f-9f01-cda637091b6e','工作请示',1676,14,'','',0,'<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>','','DcxRun.AjaxF_1676= {"MenuId":2888,"MEntId":1676,"EntName":"工作请示","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":true,"EntMsg":{"E1676":{"EntId":1676,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{
DcxForm.CreateHtmlEditor(''d1676_请示正文'',1676,''AjaxF_'',''请示正文'',600,350,false,1,false);

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":2,"Ent":[{"EntId":1676,"Fld":[{"FldId":3203,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]}]}]};
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_1676.EntMsg.E1676.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"行政_工作请示表","EntId":1676,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"申请人":{"DtId":2,"DB":1,"CId":4,"FL":-1},"请示事项":{"DtId":2,"DB":1,"CId":1,"FL":-1},"申请部门":{"DtId":2,"DB":1,"CId":4,"FL":-1},"请示时间":{"DtId":3,"DB":1,"CId":4,"FL":-1},"预算金额":{"DtId":5,"DB":1,"CId":1,"FL":-1},"请示正文":{"DtId":6,"DB":1,"CId":23,"FL":-1},"部门意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"领导意见":{"DtId":2,"DB":1,"CId":2,"FL":-1}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_1676.EntMsg.E1676.GetDataRowModel=function()
{
    return {"申请人":"","请示事项":"","申请部门":"","请示时间":new Date(),"预算金额":"0","请示正文":"","部门意见":"","领导意见":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_1676.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1676,''AjaxF_'',buildNew,closeDlg);

}','<$1676$>select [申请人],[请示事项],[申请部门],[请示时间],[预算金额],[请示正文],[部门意见],[领导意见],[LD_Id] from 行政_工作请示表 where [LD_Id]=''{$keyfieldvalue}''</$1676$>',20,'','','','1676*LD_Id*2**2*行政_工作请示表*工作请示',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 7:02:48',3,'admin','2013-11-16 18:33:53',1)
      end
      else 
      begin 
           update [Dcx_AjaxForm_Run] set [FormId]='5323ed00-a6e0-438f-9f01-cda637091b6e',[FormName]='工作请示',[ModuleId]=14,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.AjaxF_1676= {"MenuId":2888,"MEntId":1676,"EntName":"工作请示","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":true,"EntMsg":{"E1676":{"EntId":1676,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{
DcxForm.CreateHtmlEditor(''d1676_请示正文'',1676,''AjaxF_'',''请示正文'',600,350,false,1,false);

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":2,"Ent":[{"EntId":1676,"Fld":[{"FldId":3203,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]}]}]};
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_1676.EntMsg.E1676.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"行政_工作请示表","EntId":1676,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"申请人":{"DtId":2,"DB":1,"CId":4,"FL":-1},"请示事项":{"DtId":2,"DB":1,"CId":1,"FL":-1},"申请部门":{"DtId":2,"DB":1,"CId":4,"FL":-1},"请示时间":{"DtId":3,"DB":1,"CId":4,"FL":-1},"预算金额":{"DtId":5,"DB":1,"CId":1,"FL":-1},"请示正文":{"DtId":6,"DB":1,"CId":23,"FL":-1},"部门意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"领导意见":{"DtId":2,"DB":1,"CId":2,"FL":-1}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_1676.EntMsg.E1676.GetDataRowModel=function()
{
    return {"申请人":"","请示事项":"","申请部门":"","请示时间":new Date(),"预算金额":"0","请示正文":"","部门意见":"","领导意见":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_1676.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1676,''AjaxF_'',buildNew,closeDlg);

}',[LoadingSql]='<$1676$>select [申请人],[请示事项],[申请部门],[请示时间],[预算金额],[请示正文],[部门意见],[领导意见],[LD_Id] from 行政_工作请示表 where [LD_Id]=''{$keyfieldvalue}''</$1676$>',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='1676*LD_Id*2**2*行政_工作请示表*工作请示',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 7:02:48',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-16 18:33:53',[AccountId]=1 where  [EntId]=1676 
      end




--Dcx_AjaxFormField_Run
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='33a422c1-a8c0-467d-ac76-3d39a49c5ea5'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3202,'33a422c1-a8c0-467d-ac76-3d39a49c5ea5',1676,1676,'00000000-0000-0000-0000-000000000000','申请人',2,2,11,'{$UserName}',0,9,null,0,4,1,0,1,-1,0,0,'','','','{$username},','<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="1676" groupid="176" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="507" class="li-area-title" scroll="no" style="width: 77px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">工作请示</span></div>
</li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="177" entid="1676" class="ul-mform" ctrlprex="AjaxF_" isrple="1">
<li areaid="508" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3202" istitle="1">申请人 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d1676_申请人" class="form-lbl" style="width:201px;" IsForField=1 EntId="1676" CId="4" FId="3202" Vtp="0"  >','</span><input id="d1676_申请人_hid" type="hidden"  EntId="1676" IsField=1 DBField=1 IsPost=1 FieldName="申请人" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="3202" vlk=0    value="','" />',-1,-1,-1,-1,0,'1676,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3202,[Form_EntId]=1676,[EntId]=1676,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='申请人',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=11,[DefaultValue]='{$UserName}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$username},',[BeforeHtml]='<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="1676" groupid="176" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="507" class="li-area-title" scroll="no" style="width: 77px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">工作请示</span></div>
</li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="177" entid="1676" class="ul-mform" ctrlprex="AjaxF_" isrple="1">
<li areaid="508" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3202" istitle="1">申请人 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1676_申请人" class="form-lbl" style="width:201px;" IsForField=1 EntId="1676" CId="4" FId="3202" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d1676_申请人_hid" type="hidden"  EntId="1676" IsField=1 DBField=1 IsPost=1 FieldName="申请人" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="3202" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1676,' where  [FldUId]='33a422c1-a8c0-467d-ac76-3d39a49c5ea5' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='2b346a3a-e33e-46a6-b2b3-4a4521aaf143'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3203,'2b346a3a-e33e-46a6-b2b3-4a4521aaf143',1676,1676,'00000000-0000-0000-0000-000000000000','请示事项',2,2,12,'',5,1,1,0,1,1,0,2,-1,0,0,'','','','','</span>
</div>
</li>
<li areaid="509" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3203" istitle="1">请示事项 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d1676_请示事项"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1676,''AjaxF_'',1676,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1676,''AjaxF_'',1676);" EntId="1676" IsField=1 DBField=1 IsPost=1 FieldName="请示事项" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="3203" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1676,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3203,[Form_EntId]=1676,[EntId]=1676,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='请示事项',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=12,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=2,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="509" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3203" istitle="1">请示事项 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1676_请示事项"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1676,''AjaxF_'',1676,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1676,''AjaxF_'',1676);" EntId="1676" IsField=1 DBField=1 IsPost=1 FieldName="请示事项" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="3203" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1676,' where  [FldUId]='2b346a3a-e33e-46a6-b2b3-4a4521aaf143' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='09d816d0-fa5e-4b71-8497-cd23fb95899a'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3204,'09d816d0-fa5e-4b71-8497-cd23fb95899a',1676,1676,'00000000-0000-0000-0000-000000000000','申请部门',2,2,13,'{$deptname}',0,9,null,0,4,1,0,3,-1,0,0,'','','','{$deptname},','</span>
</div>
</li>
<li areaid="510" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3204">申请部门  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d1676_申请部门" class="form-lbl" style="width:201px;" IsForField=1 EntId="1676" CId="4" FId="3204" Vtp="0"  >','</span><input id="d1676_申请部门_hid" type="hidden"  EntId="1676" IsField=1 DBField=1 IsPost=1 FieldName="申请部门" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="3204" vlk=0    value="','" />',-1,-1,-1,-1,0,'1676,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3204,[Form_EntId]=1676,[EntId]=1676,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='申请部门',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=13,[DefaultValue]='{$deptname}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=3,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$deptname},',[BeforeHtml]='</span>
</div>
</li>
<li areaid="510" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3204">申请部门  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1676_申请部门" class="form-lbl" style="width:201px;" IsForField=1 EntId="1676" CId="4" FId="3204" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d1676_申请部门_hid" type="hidden"  EntId="1676" IsField=1 DBField=1 IsPost=1 FieldName="申请部门" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="3204" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1676,' where  [FldUId]='09d816d0-fa5e-4b71-8497-cd23fb95899a' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='225005a0-0c66-4911-997d-82b48e60b63d'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3205,'225005a0-0c66-4911-997d-82b48e60b63d',1676,1676,'00000000-0000-0000-0000-000000000000','请示时间',3,3,14,'{$date}',0,9,null,0,4,1,0,4,-1,0,0,'','','','{$date},','</span>
  </div>
</li>
<li areaid="511" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3205">请示时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d1676_请示时间" class="form-lbl" style="width:201px;" IsForField=1 EntId="1676" CId="4" FId="3205" Vtp="0"  >','</span><input id="d1676_请示时间_hid" type="hidden"  EntId="1676" IsField=1 DBField=1 IsPost=1 FieldName="请示时间" dType="3" Vtp="0" RDT="3" Isc="0" RId="9" CId="4" FId="3205" vlk=0    value="','" />',-1,-1,-1,-1,0,'1676,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3205,[Form_EntId]=1676,[EntId]=1676,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='请示时间',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=14,[DefaultValue]='{$date}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=4,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$date},',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="511" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3205">请示时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1676_请示时间" class="form-lbl" style="width:201px;" IsForField=1 EntId="1676" CId="4" FId="3205" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d1676_请示时间_hid" type="hidden"  EntId="1676" IsField=1 DBField=1 IsPost=1 FieldName="请示时间" dType="3" Vtp="0" RDT="3" Isc="0" RId="9" CId="4" FId="3205" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1676,' where  [FldUId]='225005a0-0c66-4911-997d-82b48e60b63d' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='e71a4d75-4823-496f-9884-4eb7ff5852d8'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3206,'e71a4d75-4823-496f-9884-4eb7ff5852d8',1676,1676,'00000000-0000-0000-0000-000000000000','预算金额',5,5,15,'',5,1,null,0,1,1,0,5,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="512" style="height: 38px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3206">预算金额  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1676_预算金额"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,1676,''AjaxF_'',1676,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1676,''AjaxF_'',1676); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1676" IsField=1 DBField=1 IsPost=1 FieldName="预算金额" dType="5" Vtp="5" RDT="5" Isc="0" RId="1" CId="1" FId="3206" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1676,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3206,[Form_EntId]=1676,[EntId]=1676,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='预算金额',[FieldDataTypeId]=5,[RunDataTypeId]=5,[DBFieldId]=15,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=5,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="512" style="height: 38px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3206">预算金额  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1676_预算金额"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,1676,''AjaxF_'',1676,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1676,''AjaxF_'',1676); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1676" IsField=1 DBField=1 IsPost=1 FieldName="预算金额" dType="5" Vtp="5" RDT="5" Isc="0" RId="1" CId="1" FId="3206" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1676,' where  [FldUId]='e71a4d75-4823-496f-9884-4eb7ff5852d8' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='3894a7ed-efe6-4ee6-b97b-af2a52c7393b'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3207,'3894a7ed-efe6-4ee6-b97b-af2a52c7393b',1676,1676,'00000000-0000-0000-0000-000000000000','请示正文',6,2,16,'',5,1,null,0,23,1,0,6,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="513" style="height: 470px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3207">请示正文  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1676_请示正文" class="form-txts"  style="width:600px;height:350px;" EntId="1676" IsField=1 DBField=1 IsPost=1 FieldName="请示正文" dType="6" Vtp="5" RDT="2" Isc="0" RId="1" CId="23" FId="3207" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1676,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3207,[Form_EntId]=1676,[EntId]=1676,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='请示正文',[FieldDataTypeId]=6,[RunDataTypeId]=2,[DBFieldId]=16,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=23,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=6,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="513" style="height: 470px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3207">请示正文  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1676_请示正文" class="form-txts"  style="width:600px;height:350px;" EntId="1676" IsField=1 DBField=1 IsPost=1 FieldName="请示正文" dType="6" Vtp="5" RDT="2" Isc="0" RId="1" CId="23" FId="3207" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1676,' where  [FldUId]='3894a7ed-efe6-4ee6-b97b-af2a52c7393b' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='3b58f0cc-b248-4f5c-bb07-cfc4a03cb52d'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3208,'3b58f0cc-b248-4f5c-bb07-cfc4a03cb52d',1676,1676,'00000000-0000-0000-0000-000000000000','部门意见',2,2,17,'',5,1,null,0,2,1,0,7,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="514" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3208">部门意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1676_部门意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1676,''AjaxF_'',1676,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1676,''AjaxF_'',1676);" EntId="1676" IsField=1 DBField=1 IsPost=1 FieldName="部门意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="3208" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1676,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3208,[Form_EntId]=1676,[EntId]=1676,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='部门意见',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=17,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=7,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="514" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3208">部门意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1676_部门意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1676,''AjaxF_'',1676,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1676,''AjaxF_'',1676);" EntId="1676" IsField=1 DBField=1 IsPost=1 FieldName="部门意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="3208" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1676,' where  [FldUId]='3b58f0cc-b248-4f5c-bb07-cfc4a03cb52d' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='49ee851f-505c-44bd-9340-c7727588a84c'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3209,'49ee851f-505c-44bd-9340-c7727588a84c',1676,1676,'00000000-0000-0000-0000-000000000000','领导意见',2,2,18,'',5,1,null,0,2,1,0,8,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="515" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3209">领导意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','</span>
  </div>
</li>
</ul>
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="178" entid="1676" class="tab_ul" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="516" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li areaid="517" istab="1" tabid="2" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1" style="display: none;">
<ul isgroup="1" groupid="179" entid="1676" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="518" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: block;">
<ul isgroup="1" groupid="180" entid="1676" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="519" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="1676" groupid="181" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="520" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
<li areaid="521" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>','','','<textarea  id="d1676_领导意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1676,''AjaxF_'',1676,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1676,''AjaxF_'',1676);" EntId="1676" IsField=1 DBField=1 IsPost=1 FieldName="领导意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="3209" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1676,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3209,[Form_EntId]=1676,[EntId]=1676,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='领导意见',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=18,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=8,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="515" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3209">领导意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
  </div>
</li>
</ul>
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="178" entid="1676" class="tab_ul" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="516" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li areaid="517" istab="1" tabid="2" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1" style="display: none;">
<ul isgroup="1" groupid="179" entid="1676" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="518" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: block;">
<ul isgroup="1" groupid="180" entid="1676" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="519" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="1676" groupid="181" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="520" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
<li areaid="521" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1676_领导意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1676,''AjaxF_'',1676,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1676,''AjaxF_'',1676);" EntId="1676" IsField=1 DBField=1 IsPost=1 FieldName="领导意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="3209" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1676,' where  [FldUId]='49ee851f-505c-44bd-9340-c7727588a84c' 
      end



Delete from [Dcx_SearchForm_Run]  where [EntId]=1676

--Dcx_SearchForm_Run
      if (select count(1) from [Dcx_SearchForm_Run] where  [EntId]=1676  )<1 
      begin 
           Insert into [Dcx_SearchForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('bf0bd72d-1cc3-4dc4-ba68-fddcf9765f36','工作请示',1676,9,'','',0,'<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>','','DcxRun.SearchF_1676= {"MenuId":2888,"MEntId":1676,"EntName":"工作请示","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1676":{"EntId":1676,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_1676.EntMsg.E1676.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"行政_工作请示表","EntId":1676,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"申请人":{"DtId":2,"DB":1,"CId":1,"FL":100},"请示时间":{"DtId":3,"DB":1,"CId":5,"FL":100},"请示事项":{"DtId":2,"DB":1,"CId":1,"FL":100},"流程是否已结束":{"DtId":4,"DB":0,"CId":3,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.SearchF_1676.EntMsg.E1676.GetDataRowModel=function()
{
    return {"申请人":"","请示时间":new Date(),"请示事项":"","流程是否已结束":false,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_1676.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1676,''SearchF_'',buildNew,closeDlg);

}','',20,'','','','1676*LD_Id*2**2*行政_工作请示表*工作请示',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 5:45:57',3,'admin','2013-11-16 17:36:08',1)
      end
      else 
      begin 
           update [Dcx_SearchForm_Run] set [FormId]='bf0bd72d-1cc3-4dc4-ba68-fddcf9765f36',[FormName]='工作请示',[ModuleId]=9,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.SearchF_1676= {"MenuId":2888,"MEntId":1676,"EntName":"工作请示","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1676":{"EntId":1676,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_1676.EntMsg.E1676.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"行政_工作请示表","EntId":1676,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"申请人":{"DtId":2,"DB":1,"CId":1,"FL":100},"请示时间":{"DtId":3,"DB":1,"CId":5,"FL":100},"请示事项":{"DtId":2,"DB":1,"CId":1,"FL":100},"流程是否已结束":{"DtId":4,"DB":0,"CId":3,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.SearchF_1676.EntMsg.E1676.GetDataRowModel=function()
{
    return {"申请人":"","请示时间":new Date(),"请示事项":"","流程是否已结束":false,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_1676.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1676,''SearchF_'',buildNew,closeDlg);

}',[LoadingSql]='',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='1676*LD_Id*2**2*行政_工作请示表*工作请示',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 5:45:57',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-16 17:36:08',[AccountId]=1 where  [EntId]=1676 
      end




--Dcx_SearchFormField_Run
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='21a86c2b-e449-4402-95ec-b4469e5d7ab0'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'21a86c2b-e449-4402-95ec-b4469e5d7ab0',1676,1676,'00000000-0000-0000-0000-000000000000',1,'Like','申请人',2,2,11,'',5,1,1,0,1,1,0,-1,1,0,'','','','','<div class="searchform">
<ul class="search-block w920" entid="1676" isgroup="1" groupid="27" ctrlprex="SearchF_" isrple="1">
<li style="position: static;" class="search-li w240 h32" scroll="no" areaid="131"><label class="search-title pad7" fldid="1" istitle="1">申请人</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">','','','','<input  id="d1676_申请人"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1676,''SearchF_'',1676,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1676,''SearchF_'',1676);" EntId="1676" IsField=1 DBField=1 IsPost=1 FieldName="申请人" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'1676,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=1,[Form_EntId]=1676,[EntId]=1676,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[CompareOperatorType]='Like',[FieldName]='申请人',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=11,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="searchform">
<ul class="search-block w920" entid="1676" isgroup="1" groupid="27" ctrlprex="SearchF_" isrple="1">
<li style="position: static;" class="search-li w240 h32" scroll="no" areaid="131"><label class="search-title pad7" fldid="1" istitle="1">申请人</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1676_申请人"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1676,''SearchF_'',1676,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1676,''SearchF_'',1676);" EntId="1676" IsField=1 DBField=1 IsPost=1 FieldName="申请人" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1676,' where  [FldUId]='21a86c2b-e449-4402-95ec-b4469e5d7ab0' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='ca49cff9-ec5a-4a88-bdc3-e2423085737a'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'ca49cff9-ec5a-4a88-bdc3-e2423085737a',1676,1676,'00000000-0000-0000-0000-000000000000',2,'Like','请示时间',3,3,14,'',5,1,1,0,5,1,0,-1,1,0,'','','','','</span> </div></li>
<li style="position: static;" class="search-li w240 h32" scroll="no" areaid="132"><label class="search-title pad7" fldid="2" istitle="1">请示时间</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">','','','','<div class="form-ddl"><input  id="d1676_请示时间"   type="text" class="form-ddl-txt"  style="width:130px;" onblur ="javascript:if(!DcxVld.Validate(this,1676,''SearchF_'',1676,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1676,''SearchF_'',1676);DcxDTime.ShowCalendar(this);" EntId="1676" IsField=1 DBField=1 IsPost=1 FieldName="请示时间" dType="3" Vtp="5" RDT="3" Isc="1" RId="1" CId="5" FId="2" vlk=0    Cpre="Like"  value="','"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>','',1,-1,-1,-1,-1,0,'1676,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=2,[Form_EntId]=1676,[EntId]=1676,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[CompareOperatorType]='Like',[FieldName]='请示时间',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=14,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=5,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="position: static;" class="search-li w240 h32" scroll="no" areaid="132"><label class="search-title pad7" fldid="2" istitle="1">请示时间</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-ddl"><input  id="d1676_请示时间"   type="text" class="form-ddl-txt"  style="width:130px;" onblur ="javascript:if(!DcxVld.Validate(this,1676,''SearchF_'',1676,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1676,''SearchF_'',1676);DcxDTime.ShowCalendar(this);" EntId="1676" IsField=1 DBField=1 IsPost=1 FieldName="请示时间" dType="3" Vtp="5" RDT="3" Isc="1" RId="1" CId="5" FId="2" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1676,' where  [FldUId]='ca49cff9-ec5a-4a88-bdc3-e2423085737a' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='5bf5068d-e726-4c72-9eed-9cbbcc3e531e'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'5bf5068d-e726-4c72-9eed-9cbbcc3e531e',1676,1676,'00000000-0000-0000-0000-000000000000',3,'Like','请示事项',2,2,12,'',5,1,1,0,1,1,0,-1,1,0,'','','','','</span> </div></li>
<li style="width: 241px; position: static;" class="search-li w240 h32" scroll="no" areaid="133"><label class="search-title pad7" fldid="3" istitle="1">请示事项</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">','','','','<input  id="d1676_请示事项"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1676,''SearchF_'',1676,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1676,''SearchF_'',1676);" EntId="1676" IsField=1 DBField=1 IsPost=1 FieldName="请示事项" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="3" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'1676,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=3,[Form_EntId]=1676,[EntId]=1676,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[CompareOperatorType]='Like',[FieldName]='请示事项',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=12,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="width: 241px; position: static;" class="search-li w240 h32" scroll="no" areaid="133"><label class="search-title pad7" fldid="3" istitle="1">请示事项</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1676_请示事项"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1676,''SearchF_'',1676,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1676,''SearchF_'',1676);" EntId="1676" IsField=1 DBField=1 IsPost=1 FieldName="请示事项" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="3" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1676,' where  [FldUId]='5bf5068d-e726-4c72-9eed-9cbbcc3e531e' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='2a38c7f6-499f-4872-b920-4b69b3927d3e'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'2a38c7f6-499f-4872-b920-4b69b3927d3e',1676,1676,'00000000-0000-0000-0000-000000000000',4,'=','流程是否已结束',4,4,-1,'',1,1,1,0,3,1,0,-1,1,0,'','','','','</span> </div></li>
<li style="position: static;" class="search-li w270 h32" scroll="no" areaid="134"><label class="search-title pad7" fldid="4" istitle="1">流程已结束</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">','</span> </div></li>
<li style="position: static;" class="search-li w100 h32" scroll="no" areaid="135">
<div class="searchform-button" onclick="javascript:return VL_Search(1676);">
<div class="search-btn">&nbsp;</div><a id="1676_searchBT" href="javascript:void(0);">搜索</a> </div></li></ul></div>','','','<select id="d1676_流程是否已结束" name="d1676_流程是否已结束" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1676,''SearchF_'',1676,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1676,''SearchF_'',1676);" EntId="1676" IsField=1 DBField=0 IsPost=1 FieldName="流程是否已结束" dType="4" Vtp="1" RDT="4" Isc="1" RId="1" CId="3" FId="4" vlk=0    Cpre="="  style="width:150px;">','<option  value="False"  >否</option>
<option  value="True"  >是</option>
</select>','',1,-1,-1,-1,-1,0,'1676,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=4,[Form_EntId]=1676,[EntId]=1676,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=4,[CompareOperatorType]='=',[FieldName]='流程是否已结束',[FieldDataTypeId]=4,[RunDataTypeId]=4,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=1,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="position: static;" class="search-li w270 h32" scroll="no" areaid="134"><label class="search-title pad7" fldid="4" istitle="1">流程已结束</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">',[LastHtml]='</span> </div></li>
<li style="position: static;" class="search-li w100 h32" scroll="no" areaid="135">
<div class="searchform-button" onclick="javascript:return VL_Search(1676);">
<div class="search-btn">&nbsp;</div><a id="1676_searchBT" href="javascript:void(0);">搜索</a> </div></li></ul></div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1676_流程是否已结束" name="d1676_流程是否已结束" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1676,''SearchF_'',1676,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1676,''SearchF_'',1676);" EntId="1676" IsField=1 DBField=0 IsPost=1 FieldName="流程是否已结束" dType="4" Vtp="1" RDT="4" Isc="1" RId="1" CId="3" FId="4" vlk=0    Cpre="="  style="width:150px;">',[CtrlbackHtml]='<option  value="False"  >否</option>
<option  value="True"  >是</option>
</select>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1676,' where  [FldUId]='2a38c7f6-499f-4872-b920-4b69b3927d3e' 
      end



Delete from [Dcx_BrowseReport_Run]  where [EntId]=1676

--Dcx_BrowseReport_Run
      if (select count(1) from [Dcx_BrowseReport_Run] where  [EntId]=1676  )<1 
      begin 
           Insert into [Dcx_BrowseReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[DIYJsCss],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('3e318d8b-0b46-4ce0-9a52-f73c1f7fce62','工作请示',1676,31,'','<$1676$>select [WFState],[WFUserName],[申请人],[请示事项],[申请部门],[请示时间],[预算金额],[部门意见],[领导意见],[LD_Id] from 行政_工作请示表 where [LD_Id]=''{$keyfieldvalue}''</$1676$>',1,1,20,'','DcxRun.MChildR_1676= {"MenuId":2888,"MEntId":1676,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"工作请示","EntMsg":{"E1676":{"EntId":1676,"EntName":"工作请示","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":54,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1676*LD_Id*2**2*行政_工作请示表*工作请示',3,'','2012-12-21 11:03:02',3,'','2013-11-17 2:53:29',1)
      end
      else 
      begin 
           update [Dcx_BrowseReport_Run] set [ReportId]='3e318d8b-0b46-4ce0-9a52-f73c1f7fce62',[ReportName]='工作请示',[ModuleId]=31,[StaticHtml]='',[LoadingSql]='<$1676$>select [WFState],[WFUserName],[申请人],[请示事项],[申请部门],[请示时间],[预算金额],[部门意见],[领导意见],[LD_Id] from 行政_工作请示表 where [LD_Id]=''{$keyfieldvalue}''</$1676$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[DIYJsCss]='',[AutoPublicJs]='DcxRun.MChildR_1676= {"MenuId":2888,"MEntId":1676,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"工作请示","EntMsg":{"E1676":{"EntId":1676,"EntName":"工作请示","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":54,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1676*LD_Id*2**2*行政_工作请示表*工作请示',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-21 11:03:02',[EditorId]=3,[Editor]='',[EditTime]='2013-11-17 2:53:29',[AccountId]=1 where  [EntId]=1676 
      end




--Dcx_BrowseReportField_Run
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='00c94a47-d503-4328-a6a5-7b2017bb7c61'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'00c94a47-d503-4328-a6a5-7b2017bb7c61',1676,1676,'00000000-0000-0000-0000-000000000000',2,'WFState',1,1,'varchar',2,1,0,'','','','<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1676" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="469" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">工作请示</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1676" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="470" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">当前状态  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1676" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1676,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=1,[Report_EntId]=1676,[EntId]=1676,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='WFState',[FieldNO]=1,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1676" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="469" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">工作请示</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1676" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="470" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">当前状态  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1676" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1676,' where  [FldUId]='00c94a47-d503-4328-a6a5-7b2017bb7c61' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='ce939fab-9675-43ec-a54a-2ad046da1544'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'ce939fab-9675-43ec-a54a-2ad046da1544',1676,1676,'00000000-0000-0000-0000-000000000000',3,'WFUserName',2,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="471" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">当前办理人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1676" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1676,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=2,[Report_EntId]=1676,[EntId]=1676,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='WFUserName',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="471" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">当前办理人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1676" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1676,' where  [FldUId]='ce939fab-9675-43ec-a54a-2ad046da1544' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='975f0a72-9727-4db1-91a1-3760a8f3e7f8'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'975f0a72-9727-4db1-91a1-3760a8f3e7f8',1676,1676,'00000000-0000-0000-0000-000000000000',11,'申请人',3,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="472" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">申请人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1676" fieldname="申请人" fldid="3" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1676,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=3,[Report_EntId]=1676,[EntId]=1676,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=11,[FieldName]='申请人',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="472" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">申请人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1676" fieldname="申请人" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1676,' where  [FldUId]='975f0a72-9727-4db1-91a1-3760a8f3e7f8' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='76811df4-ecbb-426d-801a-a5f334c1de57'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'76811df4-ecbb-426d-801a-a5f334c1de57',1676,1676,'00000000-0000-0000-0000-000000000000',12,'请示事项',4,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="473" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">请示事项  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1676" fieldname="请示事项" fldid="4" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1676,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=4,[Report_EntId]=1676,[EntId]=1676,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=12,[FieldName]='请示事项',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="473" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">请示事项  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1676" fieldname="请示事项" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1676,' where  [FldUId]='76811df4-ecbb-426d-801a-a5f334c1de57' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='ac32754f-5233-42a0-a413-d94ecb576254'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'ac32754f-5233-42a0-a413-d94ecb576254',1676,1676,'00000000-0000-0000-0000-000000000000',13,'申请部门',5,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="474" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">申请部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1676" fieldname="申请部门" fldid="5" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1676,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=5,[Report_EntId]=1676,[EntId]=1676,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=13,[FieldName]='申请部门',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="474" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">申请部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1676" fieldname="申请部门" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1676,' where  [FldUId]='ac32754f-5233-42a0-a413-d94ecb576254' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='be7170fd-12d4-4151-b8d7-dcf31b08138e'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'be7170fd-12d4-4151-b8d7-dcf31b08138e',1676,1676,'00000000-0000-0000-0000-000000000000',14,'请示时间',6,4,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="475" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">请示时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1676" fieldname="请示时间" fldid="6" columntypeid="4" class="form-ctr">','',-1,-1,-1,-1,0,'1676,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=6,[Report_EntId]=1676,[EntId]=1676,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=14,[FieldName]='请示时间',[FieldNO]=6,[ColumnTypeId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="475" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">请示时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1676" fieldname="请示时间" fldid="6" columntypeid="4" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1676,' where  [FldUId]='be7170fd-12d4-4151-b8d7-dcf31b08138e' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='43f94268-24ca-40bd-be89-d168b85697ba'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'43f94268-24ca-40bd-be89-d168b85697ba',1676,1676,'00000000-0000-0000-0000-000000000000',15,'预算金额',7,3,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="476" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">预算金额  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1676" fieldname="预算金额" fldid="7" columntypeid="3" class="form-ctr">￥','',-1,-1,-1,-1,0,'1676,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=7,[Report_EntId]=1676,[EntId]=1676,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=15,[FieldName]='预算金额',[FieldNO]=7,[ColumnTypeId]=3,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="476" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">预算金额  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1676" fieldname="预算金额" fldid="7" columntypeid="3" class="form-ctr">￥',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1676,' where  [FldUId]='43f94268-24ca-40bd-be89-d168b85697ba' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='88292be6-8153-4af2-9cd1-8ed35bb5015f'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'88292be6-8153-4af2-9cd1-8ed35bb5015f',1676,1676,'00000000-0000-0000-0000-000000000000',17,'部门意见',8,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="477" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="8">部门意见  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1676" fieldname="部门意见" fldid="8" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1676,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=8,[Report_EntId]=1676,[EntId]=1676,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=17,[FieldName]='部门意见',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="477" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="8">部门意见  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1676" fieldname="部门意见" fldid="8" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1676,' where  [FldUId]='88292be6-8153-4af2-9cd1-8ed35bb5015f' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='e118a41c-8a41-483e-a81a-074dc6f66cea'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'e118a41c-8a41-483e-a81a-074dc6f66cea',1676,1676,'00000000-0000-0000-0000-000000000000',18,'领导意见',9,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="478" style="height: 38px; width: 792px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="9">领导意见  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1676" fieldname="领导意见" fldid="9" columntypeid="1" class="form-ctr">','</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1676" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="483" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="484" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1676" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="485" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1676" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="486" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1676" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="487" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="488" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',-1,-1,-1,-1,0,'1676,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=9,[Report_EntId]=1676,[EntId]=1676,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=18,[FieldName]='领导意见',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="478" style="height: 38px; width: 792px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="9">领导意见  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1676" fieldname="领导意见" fldid="9" columntypeid="1" class="form-ctr">',[LastHtml]='</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1676" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="483" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="484" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1676" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="485" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1676" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="486" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1676" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="487" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="488" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1676,' where  [FldUId]='e118a41c-8a41-483e-a81a-074dc6f66cea' 
      end



Delete from [Dcx_ListReport_Run]  where [EntId]=1676

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=1676  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('842ecb6a-3208-4818-89c5-db6af8f88874','工作请示',1676,1,'','','<$1676$>select *  from (select row_number() over( order by [LD_Id])as dcx_rowid,[WFState],[WFFlowId],[WFRunId],[WFPrcsId],[WFUserName],[申请人],[请示事项],[申请部门],[请示时间],[预算金额],[部门意见],[领导意见],[LD_Id] from 行政_工作请示表  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1676$><$1676:Count$>select count([LD_Id]) from 行政_工作请示表 where {$SearchArea}</$1676:Count$>',1,1,20,'DcxRun.ListR_1676= {"MenuId":2888,"MEntId":1676,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"工作请示","EntMsg":{"E1676":{"EntId":1676,"EntName":"工作请示","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":54,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1676*LD_Id*2**2*行政_工作请示表*工作请示',3,'','2012-12-22 5:16:19',3,'','2013-11-16 20:06:49',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='842ecb6a-3208-4818-89c5-db6af8f88874',[ReportName]='工作请示',[ModuleId]=1,[StaticHtml]='',[DIYJsCss]='',[LoadingSql]='<$1676$>select *  from (select row_number() over( order by [LD_Id])as dcx_rowid,[WFState],[WFFlowId],[WFRunId],[WFPrcsId],[WFUserName],[申请人],[请示事项],[申请部门],[请示时间],[预算金额],[部门意见],[领导意见],[LD_Id] from 行政_工作请示表  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1676$><$1676:Count$>select count([LD_Id]) from 行政_工作请示表 where {$SearchArea}</$1676:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[AutoPublicJs]='DcxRun.ListR_1676= {"MenuId":2888,"MEntId":1676,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"工作请示","EntMsg":{"E1676":{"EntId":1676,"EntName":"工作请示","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":54,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1676*LD_Id*2**2*行政_工作请示表*工作请示',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-22 5:16:19',[EditorId]=3,[Editor]='',[EditTime]='2013-11-16 20:06:49',[AccountId]=1 where  [EntId]=1676 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='5325b27b-311a-a966-8a6f-2801f560aefe'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(374,'5325b27b-311a-a966-8a6f-2801f560aefe',1676,1676,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="91" entid="1676" style="width: 1170px;" ctrlprex="ListR_" isrple="1"> <li areaid="1453" class="tool-li" style="position: static;">
</li><li areaid="1454" class="tool-li" style="position: static;"><a id="ListR_1676_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1676,''ListR_'');">删   除</a></li>
<li areaid="1455" class="tool-li" style="position: static;"><a id="ListR_1676_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1676,''ListR_'');">导   出</a></li>
<li areaid="1456" class="tool-li" style="position: static;"><a id="ListR_1676_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1676,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1676" style="position: static;">
<a id="ListR_1676_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1676,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1676_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1676,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1676_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1676,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1676_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="92" entid="1676" class="list-head-ul" style="width: 1198px;" ctrlprex="ListR_" isrple="1">
<li areaid="1458" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1676" onclick="javascript:DcxCom.CheckedAll(this,1676,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="1459" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">当前状态 </label></li><li areaid="1460" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">当前办理人 </label></li><li areaid="1461" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请人 </label></li><li areaid="1462" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">请示事项 </label></li><li areaid="1463" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请部门 </label></li><li areaid="1464" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">请示时间 </label></li><li areaid="1465" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">预算金额 </label></li><li areaid="1466" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">部门意见 </label></li><li areaid="1467" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">领导意见 </label></li><li areaid="1468" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="办理"><span class="i">办理</span></a></div></li><li areaid="1469" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="1470" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">','',-1,93,-1,-1,1,'1676,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=374,[Report_EntId]=1676,[EntId]=1676,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="91" entid="1676" style="width: 1170px;" ctrlprex="ListR_" isrple="1"> <li areaid="1453" class="tool-li" style="position: static;">
</li><li areaid="1454" class="tool-li" style="position: static;"><a id="ListR_1676_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1676,''ListR_'');">删   除</a></li>
<li areaid="1455" class="tool-li" style="position: static;"><a id="ListR_1676_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1676,''ListR_'');">导   出</a></li>
<li areaid="1456" class="tool-li" style="position: static;"><a id="ListR_1676_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1676,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1676" style="position: static;">
<a id="ListR_1676_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1676,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1676_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1676,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1676_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1676,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1676_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="92" entid="1676" class="list-head-ul" style="width: 1198px;" ctrlprex="ListR_" isrple="1">
<li areaid="1458" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1676" onclick="javascript:DcxCom.CheckedAll(this,1676,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="1459" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">当前状态 </label></li><li areaid="1460" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">当前办理人 </label></li><li areaid="1461" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请人 </label></li><li areaid="1462" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">请示事项 </label></li><li areaid="1463" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请部门 </label></li><li areaid="1464" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">请示时间 </label></li><li areaid="1465" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">预算金额 </label></li><li areaid="1466" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">部门意见 </label></li><li areaid="1467" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">领导意见 </label></li><li areaid="1468" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="办理"><span class="i">办理</span></a></div></li><li areaid="1469" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="1470" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1676,' where  [FldUId]='5325b27b-311a-a966-8a6f-2801f560aefe' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='4bdf7fdb-360b-4442-b708-cf9f3af96af6'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(154,'4bdf7fdb-360b-4442-b708-cf9f3af96af6',1676,1676,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',2,1,'',2,21,0,'','','','islonly="1" isgroup="1" groupid="93" class="list-body-ul" style="width: 1198px;" isrple="1">
<li areaid="1471" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1676" issyscheck="1" keyvalue="','',-1,93,-1,-1,1,'1676,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=154,[Report_EntId]=1676,[EntId]=1676,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='islonly="1" isgroup="1" groupid="93" class="list-body-ul" style="width: 1198px;" isrple="1">
<li areaid="1471" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1676" issyscheck="1" keyvalue="',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1676,' where  [FldUId]='4bdf7fdb-360b-4442-b708-cf9f3af96af6' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='f8789d25-9c20-4624-9be3-af211e4ad584'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'f8789d25-9c20-4624-9be3-af211e4ad584',1676,1676,'00000000-0000-0000-0000-000000000000',2,'WFState',3,1,'varchar',2,1,0,'','','','" type="checkbox"></li><li areaid="1472" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowCurWfDlg(this);">
   <span isfield="1" entid="1676" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1676,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=1,[Report_EntId]=1676,[EntId]=1676,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='WFState',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='" type="checkbox"></li><li areaid="1472" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowCurWfDlg(this);">
   <span isfield="1" entid="1676" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1676,' where  [FldUId]='f8789d25-9c20-4624-9be3-af211e4ad584' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='949b8608-c485-49e3-b9fe-5744fb36e75f'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(321,'949b8608-c485-49e3-b9fe-5744fb36e75f',1676,1676,'00000000-0000-0000-0000-000000000000',9,'WFFlowId',4,1,'',1,1,0,'','','','</span>
   </a>
   <span isfield="1" entid="1676" fieldname="WFFlowId" fldid="321" columntypeid="1" class="form-ctr" style="display: none;">','',-1,93,-1,-1,1,'1676,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=321,[Report_EntId]=1676,[EntId]=1676,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=9,[FieldName]='WFFlowId',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   </a>
   <span isfield="1" entid="1676" fieldname="WFFlowId" fldid="321" columntypeid="1" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1676,' where  [FldUId]='949b8608-c485-49e3-b9fe-5744fb36e75f' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='85071f89-cc26-414a-bb75-aa672d5d6a3e'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(322,'85071f89-cc26-414a-bb75-aa672d5d6a3e',1676,1676,'00000000-0000-0000-0000-000000000000',8,'WFRunId',5,1,'',1,1,0,'','','','</span>
   <span isfield="1" entid="1676" fieldname="WFRunId" fldid="322" columntypeid="1" class="form-ctr" style="display: none;">','',-1,93,-1,-1,1,'1676,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=322,[Report_EntId]=1676,[EntId]=1676,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=8,[FieldName]='WFRunId',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   <span isfield="1" entid="1676" fieldname="WFRunId" fldid="322" columntypeid="1" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1676,' where  [FldUId]='85071f89-cc26-414a-bb75-aa672d5d6a3e' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='aba152e4-9308-4d20-9e44-351bdeb514e4'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(323,'aba152e4-9308-4d20-9e44-351bdeb514e4',1676,1676,'00000000-0000-0000-0000-000000000000',10,'WFPrcsId',6,1,'',1,1,0,'','','','</span>
   <span isfield="1" entid="1676" fieldname="WFPrcsId" fldid="323" columntypeid="1" class="form-ctr" style="display: none;">','',-1,93,-1,-1,1,'1676,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=323,[Report_EntId]=1676,[EntId]=1676,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=10,[FieldName]='WFPrcsId',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   <span isfield="1" entid="1676" fieldname="WFPrcsId" fldid="323" columntypeid="1" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1676,' where  [FldUId]='aba152e4-9308-4d20-9e44-351bdeb514e4' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='95b9541a-4845-4cf3-9160-48fbc093272b'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'95b9541a-4845-4cf3-9160-48fbc093272b',1676,1676,'00000000-0000-0000-0000-000000000000',3,'WFUserName',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1473" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowWfCurUserDlg(this);">
   <span isfield="1" entid="1676" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1676,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=2,[Report_EntId]=1676,[EntId]=1676,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='WFUserName',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1473" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowWfCurUserDlg(this);">
   <span isfield="1" entid="1676" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1676,' where  [FldUId]='95b9541a-4845-4cf3-9160-48fbc093272b' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='25f3da5d-c90c-43b7-8ede-2c0d62198fbe'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'25f3da5d-c90c-43b7-8ede-2c0d62198fbe',1676,1676,'00000000-0000-0000-0000-000000000000',11,'申请人',8,1,'varchar',2,1,0,'','','','</span>
   </a>
  </div>
</li><li areaid="1474" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1676" fieldname="申请人" fldid="3" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1676,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=3,[Report_EntId]=1676,[EntId]=1676,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=11,[FieldName]='申请人',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   </a>
  </div>
</li><li areaid="1474" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1676" fieldname="申请人" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1676,' where  [FldUId]='25f3da5d-c90c-43b7-8ede-2c0d62198fbe' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='226cb89c-9f00-4eec-9f47-e0e95f0485bd'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'226cb89c-9f00-4eec-9f47-e0e95f0485bd',1676,1676,'00000000-0000-0000-0000-000000000000',12,'请示事项',9,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1475" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1676" fieldname="请示事项" fldid="4" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1676,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=4,[Report_EntId]=1676,[EntId]=1676,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=12,[FieldName]='请示事项',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1475" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1676" fieldname="请示事项" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1676,' where  [FldUId]='226cb89c-9f00-4eec-9f47-e0e95f0485bd' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='dc3d1cbf-43dd-46ee-a00b-a5d189b6e446'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'dc3d1cbf-43dd-46ee-a00b-a5d189b6e446',1676,1676,'00000000-0000-0000-0000-000000000000',13,'申请部门',10,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1476" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1676" fieldname="申请部门" fldid="5" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1676,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=5,[Report_EntId]=1676,[EntId]=1676,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=13,[FieldName]='申请部门',[FieldNO]=10,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1476" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1676" fieldname="申请部门" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1676,' where  [FldUId]='dc3d1cbf-43dd-46ee-a00b-a5d189b6e446' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='cb42bf24-e641-42e7-bf9a-6e7f81051234'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'cb42bf24-e641-42e7-bf9a-6e7f81051234',1676,1676,'00000000-0000-0000-0000-000000000000',14,'请示时间',11,4,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1477" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1676" fieldname="请示时间" fldid="6" columntypeid="4" class="form-ctr">','',-1,93,-1,-1,1,'1676,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=6,[Report_EntId]=1676,[EntId]=1676,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=14,[FieldName]='请示时间',[FieldNO]=11,[ColumnTypeId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1477" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1676" fieldname="请示时间" fldid="6" columntypeid="4" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1676,' where  [FldUId]='cb42bf24-e641-42e7-bf9a-6e7f81051234' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='729bcf6e-5abc-49f1-b1b9-31ea479b2e9a'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'729bcf6e-5abc-49f1-b1b9-31ea479b2e9a',1676,1676,'00000000-0000-0000-0000-000000000000',15,'预算金额',12,3,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1478" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1676" fieldname="预算金额" fldid="7" columntypeid="3" class="form-ctr">￥','',-1,93,-1,-1,1,'1676,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=7,[Report_EntId]=1676,[EntId]=1676,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=15,[FieldName]='预算金额',[FieldNO]=12,[ColumnTypeId]=3,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1478" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1676" fieldname="预算金额" fldid="7" columntypeid="3" class="form-ctr">￥',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1676,' where  [FldUId]='729bcf6e-5abc-49f1-b1b9-31ea479b2e9a' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='b953adc8-b802-4800-9771-9535780756ab'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'b953adc8-b802-4800-9771-9535780756ab',1676,1676,'00000000-0000-0000-0000-000000000000',17,'部门意见',13,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1479" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1676" fieldname="部门意见" fldid="8" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1676,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=8,[Report_EntId]=1676,[EntId]=1676,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=17,[FieldName]='部门意见',[FieldNO]=13,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1479" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1676" fieldname="部门意见" fldid="8" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1676,' where  [FldUId]='b953adc8-b802-4800-9771-9535780756ab' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='5ec5c867-649a-4aa2-a9eb-b0afd7405751'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'5ec5c867-649a-4aa2-a9eb-b0afd7405751',1676,1676,'00000000-0000-0000-0000-000000000000',18,'领导意见',14,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1480" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1676" fieldname="领导意见" fldid="9" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1676,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=9,[Report_EntId]=1676,[EntId]=1676,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=18,[FieldName]='领导意见',[FieldNO]=14,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1480" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1676" fieldname="领导意见" fldid="9" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1676,' where  [FldUId]='5ec5c867-649a-4aa2-a9eb-b0afd7405751' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='554fb204-4c01-41ca-94ba-a328d62cf514'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(155,'554fb204-4c01-41ca-94ba-a328d62cf514',1676,1676,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',15,1,'',2,21,0,'','','','</span>
  </div>
</li><li areaid="1481" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,1676,''ListR_'',''','',-1,93,-1,-1,1,'1676,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=155,[Report_EntId]=1676,[EntId]=1676,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=15,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1481" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,1676,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1676,' where  [FldUId]='554fb204-4c01-41ca-94ba-a328d62cf514' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='8f9b2c20-177d-4058-a882-7f2ab68c9cfa'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(156,'8f9b2c20-177d-4058-a882-7f2ab68c9cfa',1676,1676,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',16,1,'',2,21,0,'','','',''',null,1040,480);">
<span class="i">办理</span></a></div>
</li><li areaid="1482" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1676,''ListR_'',''','',-1,93,-1,-1,1,'1676,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=156,[Report_EntId]=1676,[EntId]=1676,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=16,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">办理</span></a></div>
</li><li areaid="1482" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1676,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1676,' where  [FldUId]='8f9b2c20-177d-4058-a882-7f2ab68c9cfa' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='2869bfa7-1f14-40db-83ca-bd9cfc0fd57f'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(157,'2869bfa7-1f14-40db-83ca-bd9cfc0fd57f',1676,1676,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',17,1,'',2,21,0,'','','',''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="1483" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,1676,''ListR_'',''','',-1,93,-1,-1,1,'1676,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=157,[Report_EntId]=1676,[EntId]=1676,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=17,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="1483" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,1676,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1676,' where  [FldUId]='2869bfa7-1f14-40db-83ca-bd9cfc0fd57f' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='4f21848c-f0a9-6228-4096-ee35ca3074c8'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(375,'4f21848c-f0a9-6228-4096-ee35ca3074c8',1676,1676,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',18,-1,'varchar',2,13,0,'','','',''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>','</div>
</div>
<!-- 结束 --></div>',-1,93,-1,-1,1,'1676,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=375,[Report_EntId]=1676,[EntId]=1676,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=18,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>',[LastHtml]='</div>
</div>
<!-- 结束 --></div>',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1676,' where  [FldUId]='4f21848c-f0a9-6228-4096-ee35ca3074c8' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=1109

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=1109  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(1109,null,'行政_工作请示表','行政_工作请示表',0,0,0,0,0,1,1,1,3,'admin','2013-12-15 17:32:53',3,'admin','2013-12-15 17:32:53',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='行政_工作请示表',[DBTableByName]='行政_工作请示表',[IsForbid]=0,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=1,[SystemId]=1,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:53',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:53',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=1109 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1109  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2469,1,1,1109,'int',1,1,1,'行政_工作请示表','LD_Id','LD_Id','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_工作请示表',[FieldName]='LD_Id',[FieldByname]='LD_Id',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1109  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1109  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2470,2,1,1109,'varchar',2,1,1,'行政_工作请示表','WFState','WFState','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_工作请示表',[FieldName]='WFState',[FieldByname]='WFState',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1109  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1109  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2471,3,1,1109,'varchar',2,1,1,'行政_工作请示表','WFUserName','WFUserName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_工作请示表',[FieldName]='WFUserName',[FieldByname]='WFUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1109  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1109  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2472,4,1,1109,'bit',4,1,1,'行政_工作请示表','WFIsFinish','WFIsFinish','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_工作请示表',[FieldName]='WFIsFinish',[FieldByname]='WFIsFinish',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1109  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1109  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2473,5,1,1109,'bit',4,1,1,'行政_工作请示表','WFIsStart','WFIsStart','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_工作请示表',[FieldName]='WFIsStart',[FieldByname]='WFIsStart',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1109  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1109  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2474,6,1,1109,'varchar',2,1,1,'行政_工作请示表','WFAllUser','WFAllUser','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_工作请示表',[FieldName]='WFAllUser',[FieldByname]='WFAllUser',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1109  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1109  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2475,7,1,1109,'varchar',2,1,1,'行政_工作请示表','WFOpinion','WFOpinion','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_工作请示表',[FieldName]='WFOpinion',[FieldByname]='WFOpinion',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1109  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1109  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2476,8,1,1109,'int',1,1,1,'行政_工作请示表','WFRunId','WFRunId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_工作请示表',[FieldName]='WFRunId',[FieldByname]='WFRunId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1109  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1109  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2477,9,1,1109,'int',1,1,1,'行政_工作请示表','WFFlowId','WFFlowId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_工作请示表',[FieldName]='WFFlowId',[FieldByname]='WFFlowId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1109  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1109  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2478,10,1,1109,'int',1,1,1,'行政_工作请示表','WFPrcsId','WFPrcsId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_工作请示表',[FieldName]='WFPrcsId',[FieldByname]='WFPrcsId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1109  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1109  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2479,11,1,1109,'varchar',2,1,1,'行政_工作请示表','申请人','申请人','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_工作请示表',[FieldName]='申请人',[FieldByname]='申请人',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1109  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1109  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2480,12,1,1109,'varchar',2,1,1,'行政_工作请示表','请示事项','请示事项','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_工作请示表',[FieldName]='请示事项',[FieldByname]='请示事项',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1109  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1109  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2481,13,1,1109,'varchar',2,1,1,'行政_工作请示表','申请部门','申请部门','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_工作请示表',[FieldName]='申请部门',[FieldByname]='申请部门',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1109  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1109  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2482,14,1,1109,'datetime',3,1,1,'行政_工作请示表','请示时间','请示时间','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_工作请示表',[FieldName]='请示时间',[FieldByname]='请示时间',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1109  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1109  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2483,15,1,1109,'money',5,1,1,'行政_工作请示表','预算金额','预算金额','',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_工作请示表',[FieldName]='预算金额',[FieldByname]='预算金额',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1109  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1109  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2484,16,1,1109,'varchar',2,1,1,'行政_工作请示表','请示正文','请示正文','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_工作请示表',[FieldName]='请示正文',[FieldByname]='请示正文',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1109  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1109  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2485,17,1,1109,'varchar',2,1,1,'行政_工作请示表','部门意见','部门意见','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_工作请示表',[FieldName]='部门意见',[FieldByname]='部门意见',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1109  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1109  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2486,18,1,1109,'varchar',2,1,1,'行政_工作请示表','领导意见','领导意见','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_工作请示表',[FieldName]='领导意见',[FieldByname]='领导意见',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1109  and  [FieldId]=18 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--WF_FlowType

     SET IDENTITY_INSERT [WF_FlowType] ON 
      if (select count(1) from [WF_FlowType] where  [FlowId]=54  )<1 
      begin 
           Insert into [WF_FlowType] ([FlowId],[FlowName],[FlowNo],[SortId],[EntId],[EntName],[AutoName],[ManageUsers],[ManageNames],[QueryUsers],[QueryNames],[CanQueryRoles],[CanQueryRolesId],[CanManageRoles],[CanManageRolesId],[CanStartUsers],[CanStartNames],[CanStartRoles],[CanStartRolesId],[AttachMaxSize],[FlowAttach],[IsPigeonhole],[PigeonholedSQL],[IsFreeFlow],[QueryItem],[LaunchIsOpen],[FormUrl],[BrowseUrl],[ListUrl],[Detail],[CreatorId],[Creator],[CreateTime],[EditTime],[Editor],[EditorId],[AccountId])values(54,'工作请示',83,31,1676,'工作请示',null,'admin','admin','admin','admin','系统管理员','3','系统管理员','3',null,null,'Public','1',3,0,0,'',null,null,null,null,null,null,'',0,'admin','2013-11-30 1:06:40',null,null,null,1)
      end
      else 
      begin 
           update [WF_FlowType] set [FlowName]='工作请示',[FlowNo]=83,[SortId]=31,[EntId]=1676,[EntName]='工作请示',[AutoName]=null,[ManageUsers]='admin',[ManageNames]='admin',[QueryUsers]='admin',[QueryNames]='admin',[CanQueryRoles]='系统管理员',[CanQueryRolesId]='3',[CanManageRoles]='系统管理员',[CanManageRolesId]='3',[CanStartUsers]=null,[CanStartNames]=null,[CanStartRoles]='Public',[CanStartRolesId]='1',[AttachMaxSize]=3,[FlowAttach]=0,[IsPigeonhole]=0,[PigeonholedSQL]='',[IsFreeFlow]=null,[QueryItem]=null,[LaunchIsOpen]=null,[FormUrl]=null,[BrowseUrl]=null,[ListUrl]=null,[Detail]='',[CreatorId]=0,[Creator]='admin',[CreateTime]='2013-11-30 1:06:40',[EditTime]=null,[Editor]=null,[EditorId]=null,[AccountId]=1 where  [FlowId]=54 
      end

     SET IDENTITY_INSERT [WF_FlowType] OFF 



Delete from [WF_FlowNode]  where isnull([FlowId],0)=54 

--WF_FlowNode

     SET IDENTITY_INSERT [WF_FlowNode] ON 
      if (select count(1) from [WF_FlowNode] where  [NodeId]=462  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(462,54,'起草请示',1,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','463',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','',null,0,'',20,40,null,null,null,null,null,null,null,null,null,null,'3202,3203,3204,3205,3206,3207',null,null,null,null,null,null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=54,[NodeName]='起草请示',[Step]=1,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='463',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=20,[Pointy]=40,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='3202,3203,3204,3205,3206,3207',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]=null,[PositionDeptNames]=null,[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=462 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=463  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(463,54,'部门负责人审批',2,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','464',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','',null,0,'',16,215,null,null,null,null,null,null,null,null,null,null,'3208',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=54,[NodeName]='部门负责人审批',[Step]=2,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='464',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=16,[Pointy]=215,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='3208',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=463 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=464  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(464,54,'文书处理',3,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','465,466,467,468,-1',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','<$462:Begin$>
		--流出到<结束>节点时 

		
update  行政_工作请示表 set WFIsFinish=1,WFIsStart=1 where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''

		</$462:End$>',null,0,'',228,142,null,null,null,null,null,null,null,null,null,null,'','','{"MaxVlID":9,"Ent":[{"EntID":1676,"Fld":[{"FldID":3202,"Vld":[]},{"FldID":3203,"Vld":[{"id":4,"vlID":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"长度不能超过50","ok":"","warn":"","ovt":1,"jsFun":""},{"id":8,"vlID":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"请填写","ok":"","warn":"","ovt":1,"jsFun":""}]}]}]}',1676,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=54,[NodeName]='文书处理',[Step]=3,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='465,466,467,468,-1',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='<$462:Begin$>
		--流出到<结束>节点时 

		
update  行政_工作请示表 set WFIsFinish=1,WFIsStart=1 where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''

		</$462:End$>',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=228,[Pointy]=142,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='',[PrcsItem2]='',[Json_Validate]='{"MaxVlID":9,"Ent":[{"EntID":1676,"Fld":[{"FldID":3202,"Vld":[]},{"FldID":3203,"Vld":[{"id":4,"vlID":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"长度不能超过50","ok":"","warn":"","ovt":1,"jsFun":""},{"id":8,"vlID":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"请填写","ok":"","warn":"","ovt":1,"jsFun":""}]}]}]}',[EntId]=1676,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=464 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=465  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(465,54,'办公室主任审批',4,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','464',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','',null,0,'',418,314,null,null,null,null,null,null,null,null,null,null,'3208',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=54,[NodeName]='办公室主任审批',[Step]=4,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='464',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=418,[Pointy]=314,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='3208',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=465 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=466  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(466,54,'部门会签',5,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','464',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','',null,0,'',435,49,null,null,null,null,null,null,null,null,null,null,'3208',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=54,[NodeName]='部门会签',[Step]=5,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='464',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=435,[Pointy]=49,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='3208',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=466 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=467  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(467,54,'领导审批',6,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','464',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','',null,0,'',597,243,null,null,null,null,null,null,null,null,null,null,'3209',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=54,[NodeName]='领导审批',[Step]=6,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='464',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=597,[Pointy]=243,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='3209',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=467 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=468  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(468,54,'主办部门处理',8,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','464,-1',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','',null,0,'',583,125,null,null,null,null,null,null,null,null,null,null,'3209',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=54,[NodeName]='主办部门处理',[Step]=8,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='464,-1',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=583,[Pointy]=125,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='3209',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=468 
      end

     SET IDENTITY_INSERT [WF_FlowNode] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=1733  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1733,54,462,1676,'工作请示',3202,'申请人','申请人','工作请示',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=54,[NodeId]=462,[EntId]=1676,[EntName]='工作请示',[FldId]=3202,[FieldName]='申请人',[CtrlByName]='申请人',[FlowName]='工作请示',[TypeId]=1 where  [Id]=1733 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1734  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1734,54,462,1676,'工作请示',3203,'请示事项','请示事项','工作请示',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=54,[NodeId]=462,[EntId]=1676,[EntName]='工作请示',[FldId]=3203,[FieldName]='请示事项',[CtrlByName]='请示事项',[FlowName]='工作请示',[TypeId]=1 where  [Id]=1734 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1735  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1735,54,462,1676,'工作请示',3204,'申请部门','申请部门','工作请示',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=54,[NodeId]=462,[EntId]=1676,[EntName]='工作请示',[FldId]=3204,[FieldName]='申请部门',[CtrlByName]='申请部门',[FlowName]='工作请示',[TypeId]=1 where  [Id]=1735 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1736  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1736,54,462,1676,'工作请示',3205,'请示时间','请示时间','工作请示',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=54,[NodeId]=462,[EntId]=1676,[EntName]='工作请示',[FldId]=3205,[FieldName]='请示时间',[CtrlByName]='请示时间',[FlowName]='工作请示',[TypeId]=1 where  [Id]=1736 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1737  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1737,54,462,1676,'工作请示',3206,'预算金额','预算金额','工作请示',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=54,[NodeId]=462,[EntId]=1676,[EntName]='工作请示',[FldId]=3206,[FieldName]='预算金额',[CtrlByName]='预算金额',[FlowName]='工作请示',[TypeId]=1 where  [Id]=1737 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1738  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1738,54,462,1676,'工作请示',3207,'请示正文','请示正文','工作请示',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=54,[NodeId]=462,[EntId]=1676,[EntName]='工作请示',[FldId]=3207,[FieldName]='请示正文',[CtrlByName]='请示正文',[FlowName]='工作请示',[TypeId]=1 where  [Id]=1738 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=1739  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1739,54,463,1676,'工作请示',3208,'部门意见','部门意见','工作请示',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=54,[NodeId]=463,[EntId]=1676,[EntName]='工作请示',[FldId]=3208,[FieldName]='部门意见',[CtrlByName]='部门意见',[FlowName]='工作请示',[TypeId]=1 where  [Id]=1739 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=1931  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1931,54,465,1676,'工作请示',3208,'部门意见','部门意见','工作请示',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=54,[NodeId]=465,[EntId]=1676,[EntName]='工作请示',[FldId]=3208,[FieldName]='部门意见',[CtrlByName]='部门意见',[FlowName]='工作请示',[TypeId]=1 where  [Id]=1931 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=1932  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1932,54,466,1676,'工作请示',3208,'部门意见','部门意见','工作请示',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=54,[NodeId]=466,[EntId]=1676,[EntName]='工作请示',[FldId]=3208,[FieldName]='部门意见',[CtrlByName]='部门意见',[FlowName]='工作请示',[TypeId]=1 where  [Id]=1932 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=1933  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1933,54,467,1676,'工作请示',3209,'领导意见','领导意见','工作请示',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=54,[NodeId]=467,[EntId]=1676,[EntName]='工作请示',[FldId]=3209,[FieldName]='领导意见',[CtrlByName]='领导意见',[FlowName]='工作请示',[TypeId]=1 where  [Id]=1933 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=1934  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1934,54,468,1676,'工作请示',3209,'领导意见','领导意见','工作请示',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=54,[NodeId]=468,[EntId]=1676,[EntName]='工作请示',[FldId]=3209,[FieldName]='领导意见',[CtrlByName]='领导意见',[FlowName]='工作请示',[TypeId]=1 where  [Id]=1934 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=2898  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2898,'e8576fed-94aa-4af4-b530-f5e0fb5b7f72','出差申请',2896,'/Template/default/ListReport/ListReport_Tree001.aspx',1,'/images/default.gif','/images/default.gif',2,'',null,0,null,1,0,1,1,1,1,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='e8576fed-94aa-4af4-b530-f5e0fb5b7f72',[MenuName]='出差申请',[ParentId]=2896,[ProPath]='/Template/default/ListReport/ListReport_Tree001.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=2,[Target]='',[IsOpen]=null,[IsHidden]=0,[Remark]=null,[SSystemId]=1,[SMenuId]=0,[SystemId]=1,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=2898 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=2898  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(677,2898,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=2898  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=1682  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(1682,2898,'出差及费用申请',1,1103,0,'行政_出差申请单',0,0,1,1,1682,null,null,1,null,1,null,102,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=2898,[EntName]='出差及费用申请',[MEnt]=1,[DBTableId]=1103,[DBConnectId]=0,[DBTableName]='行政_出差申请单',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=1,[SEntId]=1682,[FSystemId]=null,[FEntId]=null,[SystemId]=1,[Remark]=null,[IsFlow]=1,[IsChecked]=null,[FlowId]=102,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=1682 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=1682

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=1682  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11430,-1,1682,1,1,1,1,0,1,0,0,0,1,0,0,0,0,0,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=0,[CanUpdate]=1,[CanOutPut]=0,[CanInput]=0,[CanCopy]=0,[CanPrint]=1,[CanCheck]=0,[CanClean]=0,[CanRecycle]=0,[CanExecute]=0,[CanDesign]=0,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=1682  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=1682  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(10815,2898,1682,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=2898,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=1682  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=1682

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1682  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18112,1,2898,1682,13,1,1,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2898,[TemplateId]=13,[ModuleId]=1,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1682  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1682  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18113,1,2898,1682,13,2,9,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2898,[TemplateId]=13,[ModuleId]=9,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1682  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1682  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18114,1,2898,1682,13,3,14,1,4,2,'/Template/Default/Form/AjaxForm/AjaxForm008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2898,[TemplateId]=13,[ModuleId]=14,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='/Template/Default/Form/AjaxForm/AjaxForm008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1682  and  [ModuleTypeId]=3 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1682  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18115,1,2898,1682,13,16,31,1,5,2,'/Template/Default/Browse/Browse008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2898,[TemplateId]=13,[ModuleId]=31,[GroupId]=1,[AreaId]=5,[ShowMode]=2,[AreaUrl]='/Template/Default/Browse/Browse008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1682  and  [ModuleTypeId]=16 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_AjaxForm_Run]  where [EntId]=1682

--Dcx_AjaxForm_Run
      if (select count(1) from [Dcx_AjaxForm_Run] where  [EntId]=1682  )<1 
      begin 
           Insert into [Dcx_AjaxForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('dfe3a0f9-6b99-4793-bf3b-8b6d4311f8d8','出差及费用申请',1682,14,'','',0,'<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>','','DcxRun.AjaxF_1682= {"MenuId":2898,"MEntId":1682,"EntName":"出差及费用申请","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":true,"EntMsg":{"E1682":{"EntId":1682,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
GetLinkCtrlData_AjaxF_1682_863(null,null);
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_1682.EntMsg.E1682.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"行政_出差申请单","EntId":1682,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"出差编号":{"DtId":2,"DB":1,"CId":4,"FL":-1},"出差人":{"DtId":2,"DB":1,"CId":4,"FL":-1},"员工编号":{"DtId":2,"DB":1,"CId":4,"FL":-1},"入职日期":{"DtId":3,"DB":1,"CId":5,"FL":0},"所在部门编号":{"DtId":2,"DB":1,"CId":4,"FL":-1},"所在部门":{"DtId":2,"DB":1,"CId":4,"FL":-1},"职务":{"DtId":2,"DB":1,"CId":4,"FL":0},"申请日期":{"DtId":3,"DB":1,"CId":4,"FL":-1},"出差地点":{"DtId":2,"DB":1,"CId":1,"FL":0},"出差期间工作代理人":{"DtId":2,"DB":1,"CId":3,"FL":-1},"出差事由":{"DtId":6,"DB":1,"CId":2,"FL":0},"出差起始日期":{"DtId":3,"DB":1,"CId":5,"FL":-1},"出差结束日期":{"DtId":3,"DB":1,"CId":5,"FL":-1},"总共天数":{"DtId":1,"DB":1,"CId":1,"FL":0},"交通工具安排":{"DtId":2,"DB":1,"CId":7,"FL":-1},"申请出差费用":{"DtId":5,"DB":1,"CId":1,"FL":-1},"部门主管签名":{"DtId":2,"DB":1,"CId":26,"FL":-1},"部门经理签名":{"DtId":2,"DB":1,"CId":26,"FL":-1},"综合办签名":{"DtId":2,"DB":1,"CId":26,"FL":-1},"总经理审批意见":{"DtId":2,"DB":1,"CId":1,"FL":-1}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_1682.EntMsg.E1682.GetDataRowModel=function()
{
    return {"出差编号":"","出差人":"","员工编号":"","入职日期":new Date(),"所在部门编号":"","所在部门":"","职务":"","申请日期":new Date(),"出差地点":"","出差期间工作代理人":"","出差事由":"","出差起始日期":new Date(),"出差结束日期":new Date(),"总共天数":-1,"交通工具安排":"","申请出差费用":"0","部门主管签名":"","部门经理签名":"","综合办签名":"","总经理审批意见":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_AjaxF_1682_861(obj,curFieldName){
 var EntId=1682;
 var FldId=3265;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''入职日期'';
 var $formContainer=DcxForm.GetHtmlContainer(1682,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1682,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"入职日期\",FldId:"+FldId+",EntId:1682,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:5,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1682,''AjaxF_'',''员工编号'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1682_入职日期");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1682_862(obj,curFieldName){
 var EntId=1682;
 var FldId=3268;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''职务'';
 var $formContainer=DcxForm.GetHtmlContainer(1682,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1682,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"职务\",FldId:"+FldId+",EntId:1682,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1682,''AjaxF_'',''员工编号'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1682_职务");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1682_863(obj,curFieldName){
 var EntId=1682;
 var FldId=3275;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''总共天数'';
 var $formContainer=DcxForm.GetHtmlContainer(1682,''AjaxF_'');
 var $ddlContainer=null;
var strCode="Dcx.DateDiff(''{@出差起始日期}'',''{@出差结束日期}'')" ;
var v_f1=null;
if(''出差起始日期''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,1682,''AjaxF_'',''出差起始日期'',$formContainer);
if(v_f1==null)
   return;
strCode=strCode.replaceAll("{@出差起始日期}",v_f1);
var v_f1=null;
if(''出差结束日期''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,1682,''AjaxF_'',''出差结束日期'',$formContainer);
if(v_f1==null)
   return;
strCode=strCode.replaceAll("{@出差结束日期}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal)||isNaN(myVal))
myVal = 0;
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d1682_总共天数");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_1682.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1682,''AjaxF_'',buildNew,closeDlg);

}','<$1682$>select [出差编号],[出差人],[员工编号],[入职日期],[所在部门编号],[所在部门],[职务],[申请日期],[出差地点],[出差期间工作代理人],[申请出差费用],[出差起始日期],[出差结束日期],[总共天数],[交通工具安排],[出差事由],[部门主管签名],[部门经理签名],[综合办签名],[总经理审批意见],[LD_Id] from 行政_出差申请单 where [LD_Id]=''{$keyfieldvalue}''</$1682$>',20,'','','','1682*LD_Id*2**2*行政_出差申请单*出差及费用申请',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 7:02:48',3,'admin','2013-11-30 7:32:36',1)
      end
      else 
      begin 
           update [Dcx_AjaxForm_Run] set [FormId]='dfe3a0f9-6b99-4793-bf3b-8b6d4311f8d8',[FormName]='出差及费用申请',[ModuleId]=14,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.AjaxF_1682= {"MenuId":2898,"MEntId":1682,"EntName":"出差及费用申请","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":true,"EntMsg":{"E1682":{"EntId":1682,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
GetLinkCtrlData_AjaxF_1682_863(null,null);
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_1682.EntMsg.E1682.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"行政_出差申请单","EntId":1682,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"出差编号":{"DtId":2,"DB":1,"CId":4,"FL":-1},"出差人":{"DtId":2,"DB":1,"CId":4,"FL":-1},"员工编号":{"DtId":2,"DB":1,"CId":4,"FL":-1},"入职日期":{"DtId":3,"DB":1,"CId":5,"FL":0},"所在部门编号":{"DtId":2,"DB":1,"CId":4,"FL":-1},"所在部门":{"DtId":2,"DB":1,"CId":4,"FL":-1},"职务":{"DtId":2,"DB":1,"CId":4,"FL":0},"申请日期":{"DtId":3,"DB":1,"CId":4,"FL":-1},"出差地点":{"DtId":2,"DB":1,"CId":1,"FL":0},"出差期间工作代理人":{"DtId":2,"DB":1,"CId":3,"FL":-1},"出差事由":{"DtId":6,"DB":1,"CId":2,"FL":0},"出差起始日期":{"DtId":3,"DB":1,"CId":5,"FL":-1},"出差结束日期":{"DtId":3,"DB":1,"CId":5,"FL":-1},"总共天数":{"DtId":1,"DB":1,"CId":1,"FL":0},"交通工具安排":{"DtId":2,"DB":1,"CId":7,"FL":-1},"申请出差费用":{"DtId":5,"DB":1,"CId":1,"FL":-1},"部门主管签名":{"DtId":2,"DB":1,"CId":26,"FL":-1},"部门经理签名":{"DtId":2,"DB":1,"CId":26,"FL":-1},"综合办签名":{"DtId":2,"DB":1,"CId":26,"FL":-1},"总经理审批意见":{"DtId":2,"DB":1,"CId":1,"FL":-1}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_1682.EntMsg.E1682.GetDataRowModel=function()
{
    return {"出差编号":"","出差人":"","员工编号":"","入职日期":new Date(),"所在部门编号":"","所在部门":"","职务":"","申请日期":new Date(),"出差地点":"","出差期间工作代理人":"","出差事由":"","出差起始日期":new Date(),"出差结束日期":new Date(),"总共天数":-1,"交通工具安排":"","申请出差费用":"0","部门主管签名":"","部门经理签名":"","综合办签名":"","总经理审批意见":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_AjaxF_1682_861(obj,curFieldName){
 var EntId=1682;
 var FldId=3265;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''入职日期'';
 var $formContainer=DcxForm.GetHtmlContainer(1682,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1682,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"入职日期\",FldId:"+FldId+",EntId:1682,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:5,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1682,''AjaxF_'',''员工编号'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1682_入职日期");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1682_862(obj,curFieldName){
 var EntId=1682;
 var FldId=3268;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''职务'';
 var $formContainer=DcxForm.GetHtmlContainer(1682,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1682,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"职务\",FldId:"+FldId+",EntId:1682,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1682,''AjaxF_'',''员工编号'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1682_职务");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1682_863(obj,curFieldName){
 var EntId=1682;
 var FldId=3275;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''总共天数'';
 var $formContainer=DcxForm.GetHtmlContainer(1682,''AjaxF_'');
 var $ddlContainer=null;
var strCode="Dcx.DateDiff(''{@出差起始日期}'',''{@出差结束日期}'')" ;
var v_f1=null;
if(''出差起始日期''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,1682,''AjaxF_'',''出差起始日期'',$formContainer);
if(v_f1==null)
   return;
strCode=strCode.replaceAll("{@出差起始日期}",v_f1);
var v_f1=null;
if(''出差结束日期''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,1682,''AjaxF_'',''出差结束日期'',$formContainer);
if(v_f1==null)
   return;
strCode=strCode.replaceAll("{@出差结束日期}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal)||isNaN(myVal))
myVal = 0;
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d1682_总共天数");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_1682.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1682,''AjaxF_'',buildNew,closeDlg);

}',[LoadingSql]='<$1682$>select [出差编号],[出差人],[员工编号],[入职日期],[所在部门编号],[所在部门],[职务],[申请日期],[出差地点],[出差期间工作代理人],[申请出差费用],[出差起始日期],[出差结束日期],[总共天数],[交通工具安排],[出差事由],[部门主管签名],[部门经理签名],[综合办签名],[总经理审批意见],[LD_Id] from 行政_出差申请单 where [LD_Id]=''{$keyfieldvalue}''</$1682$>',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='1682*LD_Id*2**2*行政_出差申请单*出差及费用申请',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 7:02:48',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-30 7:32:36',[AccountId]=1 where  [EntId]=1682 
      end




--Dcx_AjaxFormField_Run
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='c714f06d-7297-9ccf-f67b-f38300d72486'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3262,'c714f06d-7297-9ccf-f67b-f38300d72486',1682,1682,'00000000-0000-0000-0000-000000000000','出差编号',2,2,11,'select convert(char(8),getdate(),112)+Substring( cast((case when count(出差编号)=0 then 0 when count(出差编号)>0 then max(cast(Substring(出差编号,9,3) as int)) end )+1001 as varchar),2,3)  from   行政_出差申请单  where 出差编号 like  convert(char(8),getdate(),112)+''%''',2,9,null,0,4,1,0,1,-1,0,0,'','','','','<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="1682" groupid="176" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="927" class="li-area-title" scroll="no" style="width: 128px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">出差及费用申请</span></div>
</li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="177" entid="1682" class="ul-mform" ctrlprex="AjaxF_" isrple="1">
<li areaid="928" style="height: 38px; width: 792px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3262" istitle="1">出差编号 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d1682_出差编号" class="form-lbl" style="width:201px;" IsForField=1 EntId="1682" CId="4" FId="3262" Vtp="2"  >','</span><input id="d1682_出差编号_hid" type="hidden"  EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="出差编号" dType="2" Vtp="2" RDT="2" Isc="0" RId="9" CId="4" FId="3262" vlk=0    value="','" />',-1,-1,-1,-1,0,'1682,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3262,[Form_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='出差编号',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=11,[DefaultValue]='select convert(char(8),getdate(),112)+Substring( cast((case when count(出差编号)=0 then 0 when count(出差编号)>0 then max(cast(Substring(出差编号,9,3) as int)) end )+1001 as varchar),2,3)  from   行政_出差申请单  where 出差编号 like  convert(char(8),getdate(),112)+''%''',[ValueType]=2,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="1682" groupid="176" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="927" class="li-area-title" scroll="no" style="width: 128px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">出差及费用申请</span></div>
</li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="177" entid="1682" class="ul-mform" ctrlprex="AjaxF_" isrple="1">
<li areaid="928" style="height: 38px; width: 792px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3262" istitle="1">出差编号 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1682_出差编号" class="form-lbl" style="width:201px;" IsForField=1 EntId="1682" CId="4" FId="3262" Vtp="2"  >',[CtrlbackHtml]='</span><input id="d1682_出差编号_hid" type="hidden"  EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="出差编号" dType="2" Vtp="2" RDT="2" Isc="0" RId="9" CId="4" FId="3262" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1682,' where  [FldUId]='c714f06d-7297-9ccf-f67b-f38300d72486' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='531fcf30-1685-5dcb-fc99-25e82533360e'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3263,'531fcf30-1685-5dcb-fc99-25e82533360e',1682,1682,'00000000-0000-0000-0000-000000000000','出差人',2,2,12,'{$UserName}',0,9,null,0,4,1,0,2,-1,0,0,'','','','{$UserName},','</span>
</div>
</li>
<li areaid="929" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3263" istitle="1">出差人 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d1682_出差人" class="form-lbl" style="width:201px;" IsForField=1 EntId="1682" CId="4" FId="3263" Vtp="0"  >','</span><input id="d1682_出差人_hid" type="hidden"  EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="出差人" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="3263" vlk=0    value="','" />',-1,-1,-1,-1,0,'1682,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3263,[Form_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='出差人',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=12,[DefaultValue]='{$UserName}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=2,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$UserName},',[BeforeHtml]='</span>
</div>
</li>
<li areaid="929" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3263" istitle="1">出差人 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1682_出差人" class="form-lbl" style="width:201px;" IsForField=1 EntId="1682" CId="4" FId="3263" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d1682_出差人_hid" type="hidden"  EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="出差人" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="3263" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1682,' where  [FldUId]='531fcf30-1685-5dcb-fc99-25e82533360e' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='fbe1c24b-510d-94a8-0557-2cbb4296a14e'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3264,'fbe1c24b-510d-94a8-0557-2cbb4296a14e',1682,1682,'00000000-0000-0000-0000-000000000000','员工编号',2,2,13,'{$staffNO}',0,9,null,0,4,1,0,3,-1,0,0,'','','','{$staffNO},','</span>
</div>
</li>
<li areaid="930" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3264" istitle="1">员工编号 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d1682_员工编号" class="form-lbl" style="width:201px;" IsForField=1 EntId="1682" CId="4" FId="3264" Vtp="0"  CBack=1  >','</span><input id="d1682_员工编号_hid" type="hidden"  EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="员工编号" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="3264" vlk=0    value="','" />',-1,-1,-1,-1,0,'1682,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3264,[Form_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='员工编号',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=13,[DefaultValue]='{$staffNO}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=3,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$staffNO},',[BeforeHtml]='</span>
</div>
</li>
<li areaid="930" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3264" istitle="1">员工编号 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1682_员工编号" class="form-lbl" style="width:201px;" IsForField=1 EntId="1682" CId="4" FId="3264" Vtp="0"  CBack=1  >',[CtrlbackHtml]='</span><input id="d1682_员工编号_hid" type="hidden"  EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="员工编号" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="3264" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1682,' where  [FldUId]='fbe1c24b-510d-94a8-0557-2cbb4296a14e' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='aa9c41a9-eb53-99c6-a845-60a8386dcf46'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3265,'aa9c41a9-eb53-99c6-a845-60a8386dcf46',1682,1682,'00000000-0000-0000-0000-000000000000','入职日期',3,3,14,'Select  [Dcx_Employee].EntryDate  from  [Dcx_Employee] where [EmployeeCode] =''{@员工编号}''',2,1,1,0,5,1,1,4,-1,0,0,'','','员工编号,','','</span>
</div>
</li>
<li areaid="931" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3265">入职日期</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<div class="form-ddl"><input  id="d1682_入职日期"   type="text" class="form-ddl-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1682,''AjaxF_'',1682,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1682,''AjaxF_'',1682);DcxDTime.ShowCalendar(this);" EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="入职日期" dType="3" Vtp="2" RDT="3" Isc="1" RId="1" CId="5" FId="3265" vlk=0    value="','"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>','',-1,-1,-1,-1,0,'1682,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3265,[Form_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='入职日期',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=14,[DefaultValue]='Select  [Dcx_Employee].EntryDate  from  [Dcx_Employee] where [EmployeeCode] =''{@员工编号}''',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=5,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=4,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='员工编号,',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="931" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3265">入职日期</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-ddl"><input  id="d1682_入职日期"   type="text" class="form-ddl-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1682,''AjaxF_'',1682,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1682,''AjaxF_'',1682);DcxDTime.ShowCalendar(this);" EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="入职日期" dType="3" Vtp="2" RDT="3" Isc="1" RId="1" CId="5" FId="3265" vlk=0    value="',[CtrlbackHtml]='"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1682,' where  [FldUId]='aa9c41a9-eb53-99c6-a845-60a8386dcf46' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='97767fc5-fd0f-992e-8752-200886eff27e'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3266,'97767fc5-fd0f-992e-8752-200886eff27e',1682,1682,'00000000-0000-0000-0000-000000000000','所在部门编号',2,2,15,'{$deptcode}',0,9,null,0,4,1,0,5,-1,0,0,'','','','{$deptcode},','</span>
  </div>
</li>
<li areaid="932" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3266">所在部门编号  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d1682_所在部门编号" class="form-lbl" style="width:201px;" IsForField=1 EntId="1682" CId="4" FId="3266" Vtp="0"  >','</span><input id="d1682_所在部门编号_hid" type="hidden"  EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="所在部门编号" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="3266" vlk=0    value="','" />',-1,-1,-1,-1,0,'1682,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3266,[Form_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='所在部门编号',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=15,[DefaultValue]='{$deptcode}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=5,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$deptcode},',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="932" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3266">所在部门编号  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1682_所在部门编号" class="form-lbl" style="width:201px;" IsForField=1 EntId="1682" CId="4" FId="3266" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d1682_所在部门编号_hid" type="hidden"  EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="所在部门编号" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="3266" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1682,' where  [FldUId]='97767fc5-fd0f-992e-8752-200886eff27e' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='030bf315-58aa-c233-2b14-f73698409493'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3267,'030bf315-58aa-c233-2b14-f73698409493',1682,1682,'00000000-0000-0000-0000-000000000000','所在部门',2,2,16,'{$deptname}',0,9,null,0,4,1,0,6,-1,0,0,'','','','{$deptname},','</span>
  </div>
</li>
<li areaid="933" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3267">所在部门  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d1682_所在部门" class="form-lbl" style="width:201px;" IsForField=1 EntId="1682" CId="4" FId="3267" Vtp="0"  >','</span><input id="d1682_所在部门_hid" type="hidden"  EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="所在部门" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="3267" vlk=0    value="','" />',-1,-1,-1,-1,0,'1682,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3267,[Form_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='所在部门',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=16,[DefaultValue]='{$deptname}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=6,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$deptname},',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="933" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3267">所在部门  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1682_所在部门" class="form-lbl" style="width:201px;" IsForField=1 EntId="1682" CId="4" FId="3267" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d1682_所在部门_hid" type="hidden"  EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="所在部门" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="3267" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1682,' where  [FldUId]='030bf315-58aa-c233-2b14-f73698409493' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='ede79553-49ef-1284-de7e-96c29fe1168a'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3268,'ede79553-49ef-1284-de7e-96c29fe1168a',1682,1682,'00000000-0000-0000-0000-000000000000','职务',2,2,17,'Select  [Dcx_Employee].[PositionName]  from  [Dcx_Employee] where [EmployeeCode] =''{@员工编号}''',2,9,1,0,4,1,1,7,-1,0,0,'','','员工编号,','','</span>
  </div>
</li>
<li areaid="934" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3268">职务</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d1682_职务" class="form-lbl" style="width:201px;" IsForField=1 EntId="1682" CId="4" FId="3268" Vtp="2"  >','</span><input id="d1682_职务_hid" type="hidden"  EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="职务" dType="2" Vtp="2" RDT="2" Isc="1" RId="9" CId="4" FId="3268" vlk=0    value="','" />',-1,-1,-1,-1,0,'1682,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3268,[Form_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='职务',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=17,[DefaultValue]='Select  [Dcx_Employee].[PositionName]  from  [Dcx_Employee] where [EmployeeCode] =''{@员工编号}''',[ValueType]=2,[RunValueType]=9,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=7,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='员工编号,',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="934" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3268">职务</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1682_职务" class="form-lbl" style="width:201px;" IsForField=1 EntId="1682" CId="4" FId="3268" Vtp="2"  >',[CtrlbackHtml]='</span><input id="d1682_职务_hid" type="hidden"  EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="职务" dType="2" Vtp="2" RDT="2" Isc="1" RId="9" CId="4" FId="3268" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1682,' where  [FldUId]='ede79553-49ef-1284-de7e-96c29fe1168a' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='8b5f3803-b816-10bc-0df5-535a8ab6dbea'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3269,'8b5f3803-b816-10bc-0df5-535a8ab6dbea',1682,1682,'00000000-0000-0000-0000-000000000000','申请日期',3,3,18,'{$date}',0,9,null,0,4,1,0,8,-1,0,0,'','','','{$date},','</span>
  </div>
</li>
<li areaid="935" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3269" istitle="1">申请日期 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d1682_申请日期" class="form-lbl" style="width:201px;" IsForField=1 EntId="1682" CId="4" FId="3269" Vtp="0"  >','</span><input id="d1682_申请日期_hid" type="hidden"  EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="申请日期" dType="3" Vtp="0" RDT="3" Isc="0" RId="9" CId="4" FId="3269" vlk=0    value="','" />',-1,-1,-1,-1,0,'1682,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3269,[Form_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='申请日期',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=18,[DefaultValue]='{$date}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=8,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$date},',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="935" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3269" istitle="1">申请日期 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1682_申请日期" class="form-lbl" style="width:201px;" IsForField=1 EntId="1682" CId="4" FId="3269" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d1682_申请日期_hid" type="hidden"  EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="申请日期" dType="3" Vtp="0" RDT="3" Isc="0" RId="9" CId="4" FId="3269" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1682,' where  [FldUId]='8b5f3803-b816-10bc-0df5-535a8ab6dbea' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='2cc84138-466c-b0d1-1ec4-4d9992e46e5d'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3270,'2cc84138-466c-b0d1-1ec4-4d9992e46e5d',1682,1682,'00000000-0000-0000-0000-000000000000','出差地点',2,2,19,'',5,1,1,0,1,1,1,9,-1,0,0,'','','','','</span>
</div>
</li>
<li areaid="936" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3270" istitle="1">出差地点</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d1682_出差地点"   type="text" class="form-txt"  style="width:221px;" onblur ="javascript:if(!DcxVld.Validate(this,1682,''AjaxF_'',1682,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1682,''AjaxF_'',1682);" EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="出差地点" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="3270" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1682,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3270,[Form_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='出差地点',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=19,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=9,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="936" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3270" istitle="1">出差地点</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1682_出差地点"   type="text" class="form-txt"  style="width:221px;" onblur ="javascript:if(!DcxVld.Validate(this,1682,''AjaxF_'',1682,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1682,''AjaxF_'',1682);" EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="出差地点" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="3270" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1682,' where  [FldUId]='2cc84138-466c-b0d1-1ec4-4d9992e46e5d' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='3ef00147-1ac5-1590-7093-5667c25c98fb'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3271,'3ef00147-1ac5-1590-7093-5667c25c98fb',1682,1682,'00000000-0000-0000-0000-000000000000','出差期间工作代理人',2,2,20,'select '''' union SELECT  distinct [UserName] FROM [Dcx_User]',2,1,1,0,3,1,0,10,-1,0,0,'','','','','</span>
</div>
</li>
<li areaid="937" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3271" istitle="1">工作代理人</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<select id="d1682_出差期间工作代理人" name="d1682_出差期间工作代理人" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1682,''AjaxF_'',1682,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1682,''AjaxF_'',1682);" EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="出差期间工作代理人" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="3" FId="3271" vlk=0    style="width:201px;">','</select>','',-1,-1,-1,-1,0,'1682,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3271,[Form_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='出差期间工作代理人',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=20,[DefaultValue]='select '''' union SELECT  distinct [UserName] FROM [Dcx_User]',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=10,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="937" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3271" istitle="1">工作代理人</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1682_出差期间工作代理人" name="d1682_出差期间工作代理人" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1682,''AjaxF_'',1682,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1682,''AjaxF_'',1682);" EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="出差期间工作代理人" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="3" FId="3271" vlk=0    style="width:201px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1682,' where  [FldUId]='3ef00147-1ac5-1590-7093-5667c25c98fb' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='ba46f5c9-5419-65f2-d1db-3259cde14c38'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3277,'ba46f5c9-5419-65f2-d1db-3259cde14c38',1682,1682,'00000000-0000-0000-0000-000000000000','申请出差费用',5,5,26,'',5,1,null,0,1,1,0,11,-1,0,0,'','','','','</span>
</div>
</li>

<li areaid="943" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3277">申请出差费用  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1682_申请出差费用"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,1682,''AjaxF_'',1682,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1682,''AjaxF_'',1682); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="申请出差费用" dType="5" Vtp="5" RDT="5" Isc="0" RId="1" CId="1" FId="3277" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1682,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3277,[Form_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='申请出差费用',[FieldDataTypeId]=5,[RunDataTypeId]=5,[DBFieldId]=26,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=11,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>

<li areaid="943" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3277">申请出差费用  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1682_申请出差费用"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,1682,''AjaxF_'',1682,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1682,''AjaxF_'',1682); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="申请出差费用" dType="5" Vtp="5" RDT="5" Isc="0" RId="1" CId="1" FId="3277" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1682,' where  [FldUId]='ba46f5c9-5419-65f2-d1db-3259cde14c38' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='20cfe1c7-306d-b5bd-7be5-c6d9257cd59a'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3273,'20cfe1c7-306d-b5bd-7be5-c6d9257cd59a',1682,1682,'00000000-0000-0000-0000-000000000000','出差起始日期',3,3,22,'{$date}',0,1,1,0,5,1,0,12,-1,0,0,'','','','{$date},','</span>
  </div>
</li><li areaid="939" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3273">起始日期</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<div class="form-ddl"><input  id="d1682_出差起始日期"   type="text" class="form-ddl-txt"  style="width:201px;" onchange ="javascript:GetLinkCtrlData_AjaxF_1682_863(this,''出差起始日期'');" onblur ="javascript:if(!DcxVld.Validate(this,1682,''AjaxF_'',1682,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1682,''AjaxF_'',1682);DcxDTime.ShowCalendar(this);" EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="出差起始日期" dType="3" Vtp="0" RDT="3" Isc="1" RId="1" CId="5" FId="3273" vlk=0    CBack=1  value="','"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>','',-1,-1,-1,-1,0,'1682,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3273,[Form_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='出差起始日期',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=22,[DefaultValue]='{$date}',[ValueType]=0,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=5,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=12,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$date},',[BeforeHtml]='</span>
  </div>
</li><li areaid="939" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3273">起始日期</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-ddl"><input  id="d1682_出差起始日期"   type="text" class="form-ddl-txt"  style="width:201px;" onchange ="javascript:GetLinkCtrlData_AjaxF_1682_863(this,''出差起始日期'');" onblur ="javascript:if(!DcxVld.Validate(this,1682,''AjaxF_'',1682,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1682,''AjaxF_'',1682);DcxDTime.ShowCalendar(this);" EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="出差起始日期" dType="3" Vtp="0" RDT="3" Isc="1" RId="1" CId="5" FId="3273" vlk=0    CBack=1  value="',[CtrlbackHtml]='"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1682,' where  [FldUId]='20cfe1c7-306d-b5bd-7be5-c6d9257cd59a' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='f7a56c37-c9fc-f488-cc30-14d93c52a50f'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3274,'f7a56c37-c9fc-f488-cc30-14d93c52a50f',1682,1682,'00000000-0000-0000-0000-000000000000','出差结束日期',3,3,23,'',5,1,1,0,5,1,0,13,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="940" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3274">结束日期</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<div class="form-ddl"><input  id="d1682_出差结束日期"   type="text" class="form-ddl-txt"  style="width:201px;" onchange ="javascript:GetLinkCtrlData_AjaxF_1682_863(this,''出差结束日期'');" onblur ="javascript:if(!DcxVld.Validate(this,1682,''AjaxF_'',1682,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1682,''AjaxF_'',1682);DcxDTime.ShowCalendar(this);" EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="出差结束日期" dType="3" Vtp="5" RDT="3" Isc="1" RId="1" CId="5" FId="3274" vlk=0    CBack=1  value="','"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>','',-1,-1,-1,-1,0,'1682,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3274,[Form_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='出差结束日期',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=23,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=5,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=13,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="940" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3274">结束日期</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-ddl"><input  id="d1682_出差结束日期"   type="text" class="form-ddl-txt"  style="width:201px;" onchange ="javascript:GetLinkCtrlData_AjaxF_1682_863(this,''出差结束日期'');" onblur ="javascript:if(!DcxVld.Validate(this,1682,''AjaxF_'',1682,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1682,''AjaxF_'',1682);DcxDTime.ShowCalendar(this);" EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="出差结束日期" dType="3" Vtp="5" RDT="3" Isc="1" RId="1" CId="5" FId="3274" vlk=0    CBack=1  value="',[CtrlbackHtml]='"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1682,' where  [FldUId]='f7a56c37-c9fc-f488-cc30-14d93c52a50f' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='c8494342-9e2a-f122-144b-794811587b8e'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3275,'c8494342-9e2a-f122-144b-794811587b8e',1682,1682,'00000000-0000-0000-0000-000000000000','总共天数',1,1,24,'',3,1,1,0,1,1,1,14,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="941" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3275" istitle="1">总共天数</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d1682_总共天数"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1682,''AjaxF_'',1682,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1682,''AjaxF_'',1682);" EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="总共天数" dType="1" Vtp="3" RDT="1" Isc="1" RId="1" CId="1" FId="3275" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1682,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3275,[Form_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='总共天数',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=24,[DefaultValue]='',[ValueType]=3,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=14,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="941" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3275" istitle="1">总共天数</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1682_总共天数"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1682,''AjaxF_'',1682,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1682,''AjaxF_'',1682);" EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="总共天数" dType="1" Vtp="3" RDT="1" Isc="1" RId="1" CId="1" FId="3275" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1682,' where  [FldUId]='c8494342-9e2a-f122-144b-794811587b8e' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='f64cec95-22e8-b031-1f04-495a30898f64'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3276,'f64cec95-22e8-b031-1f04-495a30898f64',1682,1682,'00000000-0000-0000-0000-000000000000','交通工具安排',2,2,25,'汽车|',1,7,1,0,7,1,0,15,-1,0,0,'','','','','</span>
</div>
</li>
<li areaid="942" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3276" istitle="1">交通工具安排 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<div id="d1682_交通工具安排" class="form-radio" style="" EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="交通工具安排" dType="2" Vtp="1" RDT="2" Isc="1" RId="7" CId="7" FId="3276" vlk=0    Type="1"  onclick ="javascript:DcxVld.Validate(this,1682,''AjaxF_'',1682);" onfocus ="javascript:DcxVld.ValidateFocus(this,1682,''AjaxF_'',1682);"><span class="form-radio-item"  >
<input id="ddcx_1682_交通工具安排_0"  name="ddcx_1682_交通工具安排" checked ="checked" type="radio"  text="汽车"  value=""  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1682_交通工具安排_0">汽车</label></span>
<span class="form-radio-item"  >
<input id="ddcx_1682_交通工具安排_1"  name="ddcx_1682_交通工具安排"  type="radio"  text="火车"  value="火车"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1682_交通工具安排_1">火车</label></span>
<span class="form-radio-item"  >
<input id="ddcx_1682_交通工具安排_2"  name="ddcx_1682_交通工具安排"  type="radio"  text="其他"  value="其他"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1682_交通工具安排_2">其他</label></span>
<span class="clearfix"></span>','</div>','',-1,-1,-1,-1,0,'1682,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3276,[Form_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='交通工具安排',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=25,[DefaultValue]='汽车|',[ValueType]=1,[RunValueType]=7,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=7,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=15,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="942" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3276" istitle="1">交通工具安排 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d1682_交通工具安排" class="form-radio" style="" EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="交通工具安排" dType="2" Vtp="1" RDT="2" Isc="1" RId="7" CId="7" FId="3276" vlk=0    Type="1"  onclick ="javascript:DcxVld.Validate(this,1682,''AjaxF_'',1682);" onfocus ="javascript:DcxVld.ValidateFocus(this,1682,''AjaxF_'',1682);"><span class="form-radio-item"  >
<input id="ddcx_1682_交通工具安排_0"  name="ddcx_1682_交通工具安排" checked ="checked" type="radio"  text="汽车"  value=""  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1682_交通工具安排_0">汽车</label></span>
<span class="form-radio-item"  >
<input id="ddcx_1682_交通工具安排_1"  name="ddcx_1682_交通工具安排"  type="radio"  text="火车"  value="火车"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1682_交通工具安排_1">火车</label></span>
<span class="form-radio-item"  >
<input id="ddcx_1682_交通工具安排_2"  name="ddcx_1682_交通工具安排"  type="radio"  text="其他"  value="其他"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1682_交通工具安排_2">其他</label></span>
<span class="clearfix"></span>',[CtrlbackHtml]='</div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1682,' where  [FldUId]='f64cec95-22e8-b031-1f04-495a30898f64' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='e8b6a96d-e6d1-f374-6e68-93c82d957a47'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3272,'e8b6a96d-e6d1-f374-6e68-93c82d957a47',1682,1682,'00000000-0000-0000-0000-000000000000','出差事由',6,2,21,'',5,1,1,0,2,1,1,16,-1,0,0,'','','','','</span>
</div>
</li>
<li areaid="938" style="height: 118px; width: 792px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3272" istitle="1">出差事由</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1682_出差事由" class="form-txts"  style="width:615px;height:90px;" onblur ="javascript:if(!DcxVld.Validate(this,1682,''AjaxF_'',1682,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1682,''AjaxF_'',1682);" EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="出差事由" dType="6" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="3272" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1682,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3272,[Form_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='出差事由',[FieldDataTypeId]=6,[RunDataTypeId]=2,[DBFieldId]=21,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=16,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="938" style="height: 118px; width: 792px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3272" istitle="1">出差事由</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1682_出差事由" class="form-txts"  style="width:615px;height:90px;" onblur ="javascript:if(!DcxVld.Validate(this,1682,''AjaxF_'',1682,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1682,''AjaxF_'',1682);" EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="出差事由" dType="6" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="3272" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1682,' where  [FldUId]='e8b6a96d-e6d1-f374-6e68-93c82d957a47' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='10db74de-33bf-9147-635a-2a62234da350'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3278,'10db74de-33bf-9147-635a-2a62234da350',1682,1682,'00000000-0000-0000-0000-000000000000','部门主管签名',2,2,27,'',5,4,null,0,26,1,0,17,-1,0,0,'','','','','</span>
</div>
</li>
<li areaid="944" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3278" istitle="1">部门主管签名 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d1682_部门主管签名"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1682,''AjaxF_'',1682,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1682,''AjaxF_'',1682);" EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="部门主管签名" dType="2" Vtp="5" RDT="2" Isc="0" RId="4" CId="26" FId="3278" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1682,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3278,[Form_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='部门主管签名',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=27,[DefaultValue]='',[ValueType]=5,[RunValueType]=4,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=26,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=17,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="944" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3278" istitle="1">部门主管签名 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1682_部门主管签名"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1682,''AjaxF_'',1682,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1682,''AjaxF_'',1682);" EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="部门主管签名" dType="2" Vtp="5" RDT="2" Isc="0" RId="4" CId="26" FId="3278" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1682,' where  [FldUId]='10db74de-33bf-9147-635a-2a62234da350' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='585aba9f-eafa-d8f1-b5b3-99b7ff905a48'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3279,'585aba9f-eafa-d8f1-b5b3-99b7ff905a48',1682,1682,'00000000-0000-0000-0000-000000000000','部门经理签名',2,2,28,'',5,4,null,0,26,1,0,18,-1,0,0,'','','','','</span>
</div>
</li>
<li areaid="945" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3279">部门经理签名  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1682_部门经理签名"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1682,''AjaxF_'',1682,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1682,''AjaxF_'',1682);" EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="部门经理签名" dType="2" Vtp="5" RDT="2" Isc="0" RId="4" CId="26" FId="3279" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1682,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3279,[Form_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='部门经理签名',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=28,[DefaultValue]='',[ValueType]=5,[RunValueType]=4,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=26,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=18,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="945" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3279">部门经理签名  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1682_部门经理签名"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1682,''AjaxF_'',1682,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1682,''AjaxF_'',1682);" EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="部门经理签名" dType="2" Vtp="5" RDT="2" Isc="0" RId="4" CId="26" FId="3279" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1682,' where  [FldUId]='585aba9f-eafa-d8f1-b5b3-99b7ff905a48' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='fef7b65d-f8e0-f190-eb1d-3946298e5aa5'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3280,'fef7b65d-f8e0-f190-eb1d-3946298e5aa5',1682,1682,'00000000-0000-0000-0000-000000000000','综合办签名',2,2,29,'',5,4,null,0,26,1,0,19,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="946" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3280" istitle="1">综合办签名 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d1682_综合办签名"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1682,''AjaxF_'',1682,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1682,''AjaxF_'',1682);" EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="综合办签名" dType="2" Vtp="5" RDT="2" Isc="1" RId="4" CId="26" FId="3280" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1682,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3280,[Form_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='综合办签名',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=29,[DefaultValue]='',[ValueType]=5,[RunValueType]=4,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=26,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=19,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="946" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3280" istitle="1">综合办签名 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1682_综合办签名"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1682,''AjaxF_'',1682,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1682,''AjaxF_'',1682);" EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="综合办签名" dType="2" Vtp="5" RDT="2" Isc="1" RId="4" CId="26" FId="3280" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1682,' where  [FldUId]='fef7b65d-f8e0-f190-eb1d-3946298e5aa5' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='328947d9-7209-7cc8-a5c1-57533387ebcf'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3281,'328947d9-7209-7cc8-a5c1-57533387ebcf',1682,1682,'00000000-0000-0000-0000-000000000000','总经理审批意见',2,2,30,'',5,1,null,0,1,1,0,20,-1,0,0,'','','','','</span>
</div>
</li>
<li areaid="947" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3281" istitle="1">总经理审批意见 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','</span>
</div>
</li>
</ul>
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="178" entid="1682" class="tab_ul" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="948" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li areaid="949" istab="1" tabid="2" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1" style="">
<ul isgroup="1" groupid="179" entid="1682" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="950" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="180" entid="1682" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="951" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="1682" groupid="181" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="952" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
<li areaid="953" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>','','','<input  id="d1682_总经理审批意见"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1682,''AjaxF_'',1682,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1682,''AjaxF_'',1682);" EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="总经理审批意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="3281" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1682,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3281,[Form_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='总经理审批意见',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=30,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=20,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="947" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3281" istitle="1">总经理审批意见 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
</div>
</li>
</ul>
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="178" entid="1682" class="tab_ul" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="948" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li areaid="949" istab="1" tabid="2" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1" style="">
<ul isgroup="1" groupid="179" entid="1682" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="950" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="180" entid="1682" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="951" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="1682" groupid="181" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="952" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
<li areaid="953" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1682_总经理审批意见"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1682,''AjaxF_'',1682,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1682,''AjaxF_'',1682);" EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="总经理审批意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="3281" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1682,' where  [FldUId]='328947d9-7209-7cc8-a5c1-57533387ebcf' 
      end



Delete from [Dcx_SearchForm_Run]  where [EntId]=1682

--Dcx_SearchForm_Run
      if (select count(1) from [Dcx_SearchForm_Run] where  [EntId]=1682  )<1 
      begin 
           Insert into [Dcx_SearchForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('df8b2bee-1837-43fe-84c2-93fbcb21dde1','出差及费用申请',1682,9,'','',0,'<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>','','DcxRun.SearchF_1682= {"MenuId":2898,"MEntId":1682,"EntName":"出差及费用申请","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1682":{"EntId":1682,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_1682.EntMsg.E1682.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"行政_出差申请单","EntId":1682,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"出差人":{"DtId":2,"DB":1,"CId":1,"FL":100},"入职日期":{"DtId":3,"DB":1,"CId":5,"FL":100},"所在部门":{"DtId":2,"DB":1,"CId":1,"FL":100},"流程是否已结束":{"DtId":4,"DB":0,"CId":3,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.SearchF_1682.EntMsg.E1682.GetDataRowModel=function()
{
    return {"出差人":"","入职日期":new Date(),"所在部门":"","流程是否已结束":false,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_1682.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1682,''SearchF_'',buildNew,closeDlg);

}','',20,'','','','1682*LD_Id*2**2*行政_出差申请单*出差及费用申请',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 5:45:57',3,'admin','2013-11-16 17:36:13',1)
      end
      else 
      begin 
           update [Dcx_SearchForm_Run] set [FormId]='df8b2bee-1837-43fe-84c2-93fbcb21dde1',[FormName]='出差及费用申请',[ModuleId]=9,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.SearchF_1682= {"MenuId":2898,"MEntId":1682,"EntName":"出差及费用申请","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1682":{"EntId":1682,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_1682.EntMsg.E1682.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"行政_出差申请单","EntId":1682,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"出差人":{"DtId":2,"DB":1,"CId":1,"FL":100},"入职日期":{"DtId":3,"DB":1,"CId":5,"FL":100},"所在部门":{"DtId":2,"DB":1,"CId":1,"FL":100},"流程是否已结束":{"DtId":4,"DB":0,"CId":3,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.SearchF_1682.EntMsg.E1682.GetDataRowModel=function()
{
    return {"出差人":"","入职日期":new Date(),"所在部门":"","流程是否已结束":false,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_1682.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1682,''SearchF_'',buildNew,closeDlg);

}',[LoadingSql]='',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='1682*LD_Id*2**2*行政_出差申请单*出差及费用申请',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 5:45:57',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-16 17:36:13',[AccountId]=1 where  [EntId]=1682 
      end




--Dcx_SearchFormField_Run
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='74915ba3-1826-4f5a-b57c-58d55995b630'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'74915ba3-1826-4f5a-b57c-58d55995b630',1682,1682,'00000000-0000-0000-0000-000000000000',1,'Like','出差人',2,2,12,'',5,1,1,0,1,1,0,-1,1,0,'','','','','<div class="searchform">
<ul class="search-block w920" entid="1682" isgroup="1" groupid="27" ctrlprex="SearchF_" isrple="1">
<li style="position: static;" class="search-li w240 h32" scroll="no" areaid="131"><label class="search-title pad7" fldid="1" istitle="1">出差人</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">','','','','<input  id="d1682_出差人"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1682,''SearchF_'',1682,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1682,''SearchF_'',1682);" EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="出差人" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'1682,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=1,[Form_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[CompareOperatorType]='Like',[FieldName]='出差人',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=12,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="searchform">
<ul class="search-block w920" entid="1682" isgroup="1" groupid="27" ctrlprex="SearchF_" isrple="1">
<li style="position: static;" class="search-li w240 h32" scroll="no" areaid="131"><label class="search-title pad7" fldid="1" istitle="1">出差人</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1682_出差人"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1682,''SearchF_'',1682,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1682,''SearchF_'',1682);" EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="出差人" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1682,' where  [FldUId]='74915ba3-1826-4f5a-b57c-58d55995b630' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='eed58dc5-25d8-4ab5-9c5d-ae8fe009a9e0'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'eed58dc5-25d8-4ab5-9c5d-ae8fe009a9e0',1682,1682,'00000000-0000-0000-0000-000000000000',2,'Like','入职日期',3,3,14,'',5,1,1,0,5,1,0,-1,1,0,'','','','','</span> </div></li>
<li style="position: static;" class="search-li w240 h32" scroll="no" areaid="132"><label class="search-title pad7" fldid="2" istitle="1">入职日期</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">','','','','<div class="form-ddl"><input  id="d1682_入职日期"   type="text" class="form-ddl-txt"  style="width:130px;" onblur ="javascript:if(!DcxVld.Validate(this,1682,''SearchF_'',1682,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1682,''SearchF_'',1682);DcxDTime.ShowCalendar(this);" EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="入职日期" dType="3" Vtp="5" RDT="3" Isc="1" RId="1" CId="5" FId="2" vlk=0    Cpre="Like"  value="','"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>','',1,-1,-1,-1,-1,0,'1682,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=2,[Form_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[CompareOperatorType]='Like',[FieldName]='入职日期',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=14,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=5,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="position: static;" class="search-li w240 h32" scroll="no" areaid="132"><label class="search-title pad7" fldid="2" istitle="1">入职日期</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-ddl"><input  id="d1682_入职日期"   type="text" class="form-ddl-txt"  style="width:130px;" onblur ="javascript:if(!DcxVld.Validate(this,1682,''SearchF_'',1682,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1682,''SearchF_'',1682);DcxDTime.ShowCalendar(this);" EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="入职日期" dType="3" Vtp="5" RDT="3" Isc="1" RId="1" CId="5" FId="2" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1682,' where  [FldUId]='eed58dc5-25d8-4ab5-9c5d-ae8fe009a9e0' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='d291a7af-b0c8-4fdd-9ba8-203ba8e0ae33'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'d291a7af-b0c8-4fdd-9ba8-203ba8e0ae33',1682,1682,'00000000-0000-0000-0000-000000000000',3,'Like','所在部门',2,2,16,'',5,1,1,0,1,1,0,-1,1,0,'','','','','</span> </div></li>
<li style="width: 241px; position: static;" class="search-li w240 h32" scroll="no" areaid="133"><label class="search-title pad7" fldid="3" istitle="1">所在部门</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">','','','','<input  id="d1682_所在部门"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1682,''SearchF_'',1682,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1682,''SearchF_'',1682);" EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="所在部门" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="3" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'1682,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=3,[Form_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[CompareOperatorType]='Like',[FieldName]='所在部门',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=16,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="width: 241px; position: static;" class="search-li w240 h32" scroll="no" areaid="133"><label class="search-title pad7" fldid="3" istitle="1">所在部门</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1682_所在部门"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1682,''SearchF_'',1682,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1682,''SearchF_'',1682);" EntId="1682" IsField=1 DBField=1 IsPost=1 FieldName="所在部门" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="3" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1682,' where  [FldUId]='d291a7af-b0c8-4fdd-9ba8-203ba8e0ae33' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='86a2587c-e330-4c19-bfbb-22eeded092af'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'86a2587c-e330-4c19-bfbb-22eeded092af',1682,1682,'00000000-0000-0000-0000-000000000000',4,'=','流程是否已结束',4,4,-1,'',1,1,1,0,3,1,0,-1,1,0,'','','','','</span> </div></li>
<li style="position: static;" class="search-li w270 h32" scroll="no" areaid="134"><label class="search-title pad7" fldid="4" istitle="1">流程已结束</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">','</span> </div></li>
<li style="position: static;" class="search-li w100 h32" scroll="no" areaid="135">
<div class="searchform-button" onclick="javascript:return VL_Search(1682);">
<div class="search-btn">&nbsp;</div><a id="1682_searchBT" href="javascript:void(0);">搜索</a> </div></li></ul></div>','','','<select id="d1682_流程是否已结束" name="d1682_流程是否已结束" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1682,''SearchF_'',1682,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1682,''SearchF_'',1682);" EntId="1682" IsField=1 DBField=0 IsPost=1 FieldName="流程是否已结束" dType="4" Vtp="1" RDT="4" Isc="1" RId="1" CId="3" FId="4" vlk=0    Cpre="="  style="width:150px;">','<option  value="False"  >否</option>
<option  value="True"  >是</option>
</select>','',1,-1,-1,-1,-1,0,'1682,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=4,[Form_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=4,[CompareOperatorType]='=',[FieldName]='流程是否已结束',[FieldDataTypeId]=4,[RunDataTypeId]=4,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=1,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="position: static;" class="search-li w270 h32" scroll="no" areaid="134"><label class="search-title pad7" fldid="4" istitle="1">流程已结束</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">',[LastHtml]='</span> </div></li>
<li style="position: static;" class="search-li w100 h32" scroll="no" areaid="135">
<div class="searchform-button" onclick="javascript:return VL_Search(1682);">
<div class="search-btn">&nbsp;</div><a id="1682_searchBT" href="javascript:void(0);">搜索</a> </div></li></ul></div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1682_流程是否已结束" name="d1682_流程是否已结束" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1682,''SearchF_'',1682,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1682,''SearchF_'',1682);" EntId="1682" IsField=1 DBField=0 IsPost=1 FieldName="流程是否已结束" dType="4" Vtp="1" RDT="4" Isc="1" RId="1" CId="3" FId="4" vlk=0    Cpre="="  style="width:150px;">',[CtrlbackHtml]='<option  value="False"  >否</option>
<option  value="True"  >是</option>
</select>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1682,' where  [FldUId]='86a2587c-e330-4c19-bfbb-22eeded092af' 
      end



Delete from [Dcx_BrowseReport_Run]  where [EntId]=1682

--Dcx_BrowseReport_Run
      if (select count(1) from [Dcx_BrowseReport_Run] where  [EntId]=1682  )<1 
      begin 
           Insert into [Dcx_BrowseReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[DIYJsCss],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('57f47c67-f4c6-43bf-bdb8-33c257a31fbd','出差及费用申请',1682,31,'','<$1682$>select [WFState],[WFUserName],[出差编号],[出差人],[员工编号],[入职日期],[所在部门编号],[所在部门],[职务],[申请日期],[出差地点],[出差事由],[出差起始日期],[出差结束日期],[总共天数],[交通工具安排],[申请出差费用],[LD_Id] from 行政_出差申请单 where [LD_Id]=''{$keyfieldvalue}''</$1682$>',1,1,20,'','DcxRun.MChildR_1682= {"MenuId":2898,"MEntId":1682,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"出差及费用申请","EntMsg":{"E1682":{"EntId":1682,"EntName":"出差及费用申请","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":102,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1682*LD_Id*2**2*行政_出差申请单*出差及费用申请',3,'','2012-12-21 11:03:02',3,'','2013-11-17 2:53:47',1)
      end
      else 
      begin 
           update [Dcx_BrowseReport_Run] set [ReportId]='57f47c67-f4c6-43bf-bdb8-33c257a31fbd',[ReportName]='出差及费用申请',[ModuleId]=31,[StaticHtml]='',[LoadingSql]='<$1682$>select [WFState],[WFUserName],[出差编号],[出差人],[员工编号],[入职日期],[所在部门编号],[所在部门],[职务],[申请日期],[出差地点],[出差事由],[出差起始日期],[出差结束日期],[总共天数],[交通工具安排],[申请出差费用],[LD_Id] from 行政_出差申请单 where [LD_Id]=''{$keyfieldvalue}''</$1682$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[DIYJsCss]='',[AutoPublicJs]='DcxRun.MChildR_1682= {"MenuId":2898,"MEntId":1682,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"出差及费用申请","EntMsg":{"E1682":{"EntId":1682,"EntName":"出差及费用申请","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":102,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1682*LD_Id*2**2*行政_出差申请单*出差及费用申请',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-21 11:03:02',[EditorId]=3,[Editor]='',[EditTime]='2013-11-17 2:53:47',[AccountId]=1 where  [EntId]=1682 
      end




--Dcx_BrowseReportField_Run
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='6a7eef1e-f0f8-44b9-ad48-ded227688d1b'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'6a7eef1e-f0f8-44b9-ad48-ded227688d1b',1682,1682,'00000000-0000-0000-0000-000000000000',2,'WFState',1,1,'varchar',2,1,0,'','','','<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1682" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="677" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">出差及费用申请</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1682" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="678" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">当前状态  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1682" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1682,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=1,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='WFState',[FieldNO]=1,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1682" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="677" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">出差及费用申请</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1682" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="678" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">当前状态  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1682" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1682,' where  [FldUId]='6a7eef1e-f0f8-44b9-ad48-ded227688d1b' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='72fba5b2-6221-4e93-ba72-7c1fbd88ef4e'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'72fba5b2-6221-4e93-ba72-7c1fbd88ef4e',1682,1682,'00000000-0000-0000-0000-000000000000',3,'WFUserName',2,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="679" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">当前办理人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1682" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1682,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=2,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='WFUserName',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="679" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">当前办理人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1682" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1682,' where  [FldUId]='72fba5b2-6221-4e93-ba72-7c1fbd88ef4e' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='51f563c1-6229-4255-a9b9-278e199c2421'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'51f563c1-6229-4255-a9b9-278e199c2421',1682,1682,'00000000-0000-0000-0000-000000000000',11,'出差编号',3,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="680" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">出差编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1682" fieldname="出差编号" fldid="3" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1682,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=3,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=11,[FieldName]='出差编号',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="680" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">出差编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1682" fieldname="出差编号" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1682,' where  [FldUId]='51f563c1-6229-4255-a9b9-278e199c2421' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='12d4df35-3772-4a9a-a438-a2441caaefc8'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'12d4df35-3772-4a9a-a438-a2441caaefc8',1682,1682,'00000000-0000-0000-0000-000000000000',12,'出差人',4,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="681" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">出差人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1682" fieldname="出差人" fldid="4" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1682,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=4,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=12,[FieldName]='出差人',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="681" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">出差人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1682" fieldname="出差人" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1682,' where  [FldUId]='12d4df35-3772-4a9a-a438-a2441caaefc8' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='4159c377-b981-4881-8b06-48632de7da07'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'4159c377-b981-4881-8b06-48632de7da07',1682,1682,'00000000-0000-0000-0000-000000000000',13,'员工编号',5,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="682" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">员工编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1682" fieldname="员工编号" fldid="5" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1682,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=5,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=13,[FieldName]='员工编号',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="682" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">员工编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1682" fieldname="员工编号" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1682,' where  [FldUId]='4159c377-b981-4881-8b06-48632de7da07' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='bc0cd220-be90-4829-9450-21630fa49047'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'bc0cd220-be90-4829-9450-21630fa49047',1682,1682,'00000000-0000-0000-0000-000000000000',14,'入职日期',6,4,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="683" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">入职日期  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1682" fieldname="入职日期" fldid="6" columntypeid="4" class="form-ctr">','',-1,-1,-1,-1,0,'1682,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=6,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=14,[FieldName]='入职日期',[FieldNO]=6,[ColumnTypeId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="683" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">入职日期  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1682" fieldname="入职日期" fldid="6" columntypeid="4" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1682,' where  [FldUId]='bc0cd220-be90-4829-9450-21630fa49047' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='95ac50b0-850c-4914-9589-f09cb5226784'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'95ac50b0-850c-4914-9589-f09cb5226784',1682,1682,'00000000-0000-0000-0000-000000000000',15,'所在部门编号',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="684" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">所在部门编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1682" fieldname="所在部门编号" fldid="7" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1682,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=7,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=15,[FieldName]='所在部门编号',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="684" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">所在部门编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1682" fieldname="所在部门编号" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1682,' where  [FldUId]='95ac50b0-850c-4914-9589-f09cb5226784' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='4c283b08-d1f7-4e45-a76d-149ddd50dc63'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'4c283b08-d1f7-4e45-a76d-149ddd50dc63',1682,1682,'00000000-0000-0000-0000-000000000000',16,'所在部门',8,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="685" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="8">所在部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1682" fieldname="所在部门" fldid="8" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1682,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=8,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=16,[FieldName]='所在部门',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="685" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="8">所在部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1682" fieldname="所在部门" fldid="8" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1682,' where  [FldUId]='4c283b08-d1f7-4e45-a76d-149ddd50dc63' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='5bc40b05-bb2b-4624-9fdd-f7acbe041005'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'5bc40b05-bb2b-4624-9fdd-f7acbe041005',1682,1682,'00000000-0000-0000-0000-000000000000',17,'职务',9,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="686" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="9">职务  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1682" fieldname="职务" fldid="9" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1682,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=9,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=17,[FieldName]='职务',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="686" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="9">职务  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1682" fieldname="职务" fldid="9" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1682,' where  [FldUId]='5bc40b05-bb2b-4624-9fdd-f7acbe041005' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='a0d81015-77ec-46c4-88f0-2d6c49906da7'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'a0d81015-77ec-46c4-88f0-2d6c49906da7',1682,1682,'00000000-0000-0000-0000-000000000000',18,'申请日期',10,4,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="687" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="10">申请日期  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1682" fieldname="申请日期" fldid="10" columntypeid="4" class="form-ctr">','',-1,-1,-1,-1,0,'1682,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=10,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=18,[FieldName]='申请日期',[FieldNO]=10,[ColumnTypeId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="687" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="10">申请日期  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1682" fieldname="申请日期" fldid="10" columntypeid="4" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1682,' where  [FldUId]='a0d81015-77ec-46c4-88f0-2d6c49906da7' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='abb36f8e-92c2-489e-8d69-18d7fdca4f07'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'abb36f8e-92c2-489e-8d69-18d7fdca4f07',1682,1682,'00000000-0000-0000-0000-000000000000',19,'出差地点',11,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="688" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="11">出差地点  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1682" fieldname="出差地点" fldid="11" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1682,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=11,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=19,[FieldName]='出差地点',[FieldNO]=11,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="688" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="11">出差地点  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1682" fieldname="出差地点" fldid="11" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1682,' where  [FldUId]='abb36f8e-92c2-489e-8d69-18d7fdca4f07' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='6d9d7346-32b2-4ede-bce9-a77f7d29ba58'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(12,'6d9d7346-32b2-4ede-bce9-a77f7d29ba58',1682,1682,'00000000-0000-0000-0000-000000000000',21,'出差事由',12,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="689" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="12">出差事由  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1682" fieldname="出差事由" fldid="12" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1682,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=12,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=21,[FieldName]='出差事由',[FieldNO]=12,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="689" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="12">出差事由  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1682" fieldname="出差事由" fldid="12" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1682,' where  [FldUId]='6d9d7346-32b2-4ede-bce9-a77f7d29ba58' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='b76110da-3a0c-47ad-bc7c-0de2d76a5c2b'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(13,'b76110da-3a0c-47ad-bc7c-0de2d76a5c2b',1682,1682,'00000000-0000-0000-0000-000000000000',22,'出差起始日期',13,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="690" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="13">出差起始日期  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1682" fieldname="出差起始日期" fldid="13" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1682,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=13,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=22,[FieldName]='出差起始日期',[FieldNO]=13,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="690" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="13">出差起始日期  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1682" fieldname="出差起始日期" fldid="13" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1682,' where  [FldUId]='b76110da-3a0c-47ad-bc7c-0de2d76a5c2b' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='1bb556fe-df91-4579-9db3-3ff36fef79a7'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(14,'1bb556fe-df91-4579-9db3-3ff36fef79a7',1682,1682,'00000000-0000-0000-0000-000000000000',23,'出差结束日期',14,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="691" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="14">出差结束日期  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1682" fieldname="出差结束日期" fldid="14" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1682,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=14,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=23,[FieldName]='出差结束日期',[FieldNO]=14,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="691" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="14">出差结束日期  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1682" fieldname="出差结束日期" fldid="14" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1682,' where  [FldUId]='1bb556fe-df91-4579-9db3-3ff36fef79a7' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='549b1107-bcfc-4c80-8771-4fdc3e98ee7e'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(15,'549b1107-bcfc-4c80-8771-4fdc3e98ee7e',1682,1682,'00000000-0000-0000-0000-000000000000',24,'总共天数',15,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="692" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="15">总共天数  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1682" fieldname="总共天数" fldid="15" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1682,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=15,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=24,[FieldName]='总共天数',[FieldNO]=15,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="692" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="15">总共天数  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1682" fieldname="总共天数" fldid="15" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1682,' where  [FldUId]='549b1107-bcfc-4c80-8771-4fdc3e98ee7e' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='89863d42-8b50-4e84-a635-33fb18949d5c'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(16,'89863d42-8b50-4e84-a635-33fb18949d5c',1682,1682,'00000000-0000-0000-0000-000000000000',25,'交通工具安排',16,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="693" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="16">交通工具安排  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1682" fieldname="交通工具安排" fldid="16" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1682,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=16,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=25,[FieldName]='交通工具安排',[FieldNO]=16,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="693" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="16">交通工具安排  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1682" fieldname="交通工具安排" fldid="16" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1682,' where  [FldUId]='89863d42-8b50-4e84-a635-33fb18949d5c' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='4bd1e4ff-e24c-46aa-8b46-84a927c9ec74'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(17,'4bd1e4ff-e24c-46aa-8b46-84a927c9ec74',1682,1682,'00000000-0000-0000-0000-000000000000',26,'申请出差费用',17,3,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="694" style="height: 38px; width: 792px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="17">申请出差费用  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1682" fieldname="申请出差费用" fldid="17" columntypeid="3" class="form-ctr">￥','</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1682" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="699" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="700" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1682" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="701" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1682" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="702" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1682" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="703" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="704" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',-1,-1,-1,-1,0,'1682,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=17,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=26,[FieldName]='申请出差费用',[FieldNO]=17,[ColumnTypeId]=3,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="694" style="height: 38px; width: 792px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="17">申请出差费用  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1682" fieldname="申请出差费用" fldid="17" columntypeid="3" class="form-ctr">￥',[LastHtml]='</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1682" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="699" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="700" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1682" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="701" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1682" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="702" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1682" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="703" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="704" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1682,' where  [FldUId]='4bd1e4ff-e24c-46aa-8b46-84a927c9ec74' 
      end



Delete from [Dcx_ListReport_Run]  where [EntId]=1682

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=1682  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('2c1b1e06-f4a2-4730-ac24-834014d3708c','出差及费用申请',1682,1,'','','<$1682$>select *  from (select row_number() over( order by [LD_Id])as dcx_rowid,[WFState],[WFFlowId],[WFRunId],[WFPrcsId],[WFUserName],[出差编号],[出差人],[员工编号],[入职日期],[所在部门编号],[所在部门],[职务],[申请日期],[出差地点],[出差事由],[出差起始日期],[出差结束日期],[总共天数],[交通工具安排],[申请出差费用],[LD_Id] from 行政_出差申请单  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1682$><$1682:Count$>select count([LD_Id]) from 行政_出差申请单 where {$SearchArea}</$1682:Count$>',1,1,20,'DcxRun.ListR_1682= {"MenuId":2898,"MEntId":1682,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"出差及费用申请","EntMsg":{"E1682":{"EntId":1682,"EntName":"出差及费用申请","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":102,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1682*LD_Id*2**2*行政_出差申请单*出差及费用申请',3,'','2012-12-22 5:16:19',3,'','2013-11-16 20:07:01',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='2c1b1e06-f4a2-4730-ac24-834014d3708c',[ReportName]='出差及费用申请',[ModuleId]=1,[StaticHtml]='',[DIYJsCss]='',[LoadingSql]='<$1682$>select *  from (select row_number() over( order by [LD_Id])as dcx_rowid,[WFState],[WFFlowId],[WFRunId],[WFPrcsId],[WFUserName],[出差编号],[出差人],[员工编号],[入职日期],[所在部门编号],[所在部门],[职务],[申请日期],[出差地点],[出差事由],[出差起始日期],[出差结束日期],[总共天数],[交通工具安排],[申请出差费用],[LD_Id] from 行政_出差申请单  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1682$><$1682:Count$>select count([LD_Id]) from 行政_出差申请单 where {$SearchArea}</$1682:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[AutoPublicJs]='DcxRun.ListR_1682= {"MenuId":2898,"MEntId":1682,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"出差及费用申请","EntMsg":{"E1682":{"EntId":1682,"EntName":"出差及费用申请","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":102,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1682*LD_Id*2**2*行政_出差申请单*出差及费用申请',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-22 5:16:19',[EditorId]=3,[Editor]='',[EditTime]='2013-11-16 20:07:01',[AccountId]=1 where  [EntId]=1682 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='e2ea199b-0805-5058-77e6-5c1aeb7257bd'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(386,'e2ea199b-0805-5058-77e6-5c1aeb7257bd',1682,1682,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="91" entid="1682" style="width: 2050px;" ctrlprex="ListR_" isrple="1"> <li areaid="2173" class="tool-li" style="position: static;">
</li><li areaid="2174" class="tool-li" style="position: static;"><a id="ListR_1682_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1682,''ListR_'');">删   除</a></li>
<li areaid="2175" class="tool-li" style="position: static;"><a id="ListR_1682_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1682,''ListR_'');">导   出</a></li>
<li areaid="2176" class="tool-li" style="position: static;"><a id="ListR_1682_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1682,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1682" style="position: static;">
<a id="ListR_1682_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1682,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1682_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1682,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1682_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1682,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1682_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="92" entid="1682" class="list-head-ul" style="width: 2142px;" ctrlprex="ListR_" isrple="1">
<li areaid="2178" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1682" onclick="javascript:DcxCom.CheckedAll(this,1682,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="2179" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">当前状态 </label></li><li areaid="2180" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">当前办理人 </label></li><li areaid="2181" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">出差编号 </label></li><li areaid="2182" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">出差人 </label></li><li areaid="2183" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">员工编号 </label></li><li areaid="2184" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">入职日期 </label></li><li areaid="2185" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">所在部门编号 </label></li><li areaid="2186" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">所在部门 </label></li><li areaid="2187" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">职务 </label></li><li areaid="2188" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请日期 </label></li><li areaid="2189" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">出差地点 </label></li><li areaid="2190" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">出差事由 </label></li><li areaid="2191" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">出差起始日期 </label></li><li areaid="2192" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">出差结束日期 </label></li><li areaid="2193" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">总共天数 </label></li><li areaid="2194" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">交通工具安排 </label></li><li areaid="2195" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请出差费用 </label></li><li areaid="2196" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="办理"><span class="i">办理</span></a></div></li><li areaid="2197" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="2198" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">','',-1,93,-1,-1,1,'1682,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=386,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="91" entid="1682" style="width: 2050px;" ctrlprex="ListR_" isrple="1"> <li areaid="2173" class="tool-li" style="position: static;">
</li><li areaid="2174" class="tool-li" style="position: static;"><a id="ListR_1682_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1682,''ListR_'');">删   除</a></li>
<li areaid="2175" class="tool-li" style="position: static;"><a id="ListR_1682_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1682,''ListR_'');">导   出</a></li>
<li areaid="2176" class="tool-li" style="position: static;"><a id="ListR_1682_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1682,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1682" style="position: static;">
<a id="ListR_1682_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1682,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1682_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1682,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1682_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1682,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1682_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="92" entid="1682" class="list-head-ul" style="width: 2142px;" ctrlprex="ListR_" isrple="1">
<li areaid="2178" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1682" onclick="javascript:DcxCom.CheckedAll(this,1682,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="2179" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">当前状态 </label></li><li areaid="2180" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">当前办理人 </label></li><li areaid="2181" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">出差编号 </label></li><li areaid="2182" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">出差人 </label></li><li areaid="2183" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">员工编号 </label></li><li areaid="2184" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">入职日期 </label></li><li areaid="2185" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">所在部门编号 </label></li><li areaid="2186" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">所在部门 </label></li><li areaid="2187" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">职务 </label></li><li areaid="2188" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请日期 </label></li><li areaid="2189" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">出差地点 </label></li><li areaid="2190" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">出差事由 </label></li><li areaid="2191" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">出差起始日期 </label></li><li areaid="2192" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">出差结束日期 </label></li><li areaid="2193" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">总共天数 </label></li><li areaid="2194" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">交通工具安排 </label></li><li areaid="2195" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请出差费用 </label></li><li areaid="2196" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="办理"><span class="i">办理</span></a></div></li><li areaid="2197" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="2198" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1682,' where  [FldUId]='e2ea199b-0805-5058-77e6-5c1aeb7257bd' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='bb90d10c-8498-4ca2-be7b-20caba908c04'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(154,'bb90d10c-8498-4ca2-be7b-20caba908c04',1682,1682,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',2,1,'',2,21,0,'','','','islonly="1" isgroup="1" groupid="93" class="list-body-ul" style="width: 2142px;" isrple="1">
<li areaid="2199" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1682" issyscheck="1" keyvalue="','',-1,93,-1,-1,1,'1682,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=154,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='islonly="1" isgroup="1" groupid="93" class="list-body-ul" style="width: 2142px;" isrple="1">
<li areaid="2199" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1682" issyscheck="1" keyvalue="',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1682,' where  [FldUId]='bb90d10c-8498-4ca2-be7b-20caba908c04' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='4fe5dcbd-0a1d-47a6-a079-1f6d8d634fb3'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'4fe5dcbd-0a1d-47a6-a079-1f6d8d634fb3',1682,1682,'00000000-0000-0000-0000-000000000000',2,'WFState',3,1,'varchar',2,1,0,'','','','" type="checkbox"></li><li areaid="2200" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowCurWfDlg(this);">
   <span isfield="1" entid="1682" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1682,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=1,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='WFState',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='" type="checkbox"></li><li areaid="2200" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowCurWfDlg(this);">
   <span isfield="1" entid="1682" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1682,' where  [FldUId]='4fe5dcbd-0a1d-47a6-a079-1f6d8d634fb3' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='5a6b680a-4a71-47fe-8455-0ff7fafb7713'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(333,'5a6b680a-4a71-47fe-8455-0ff7fafb7713',1682,1682,'00000000-0000-0000-0000-000000000000',9,'WFFlowId',4,1,'',1,1,0,'','','','</span>
   </a>
   <span isfield="1" entid="1682" fieldname="WFFlowId" fldid="333" columntypeid="1" class="form-ctr" style="display: none;">','',-1,93,-1,-1,1,'1682,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=333,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=9,[FieldName]='WFFlowId',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   </a>
   <span isfield="1" entid="1682" fieldname="WFFlowId" fldid="333" columntypeid="1" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1682,' where  [FldUId]='5a6b680a-4a71-47fe-8455-0ff7fafb7713' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='892a1d52-3100-4808-a03d-a6ad44fccae3'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(334,'892a1d52-3100-4808-a03d-a6ad44fccae3',1682,1682,'00000000-0000-0000-0000-000000000000',8,'WFRunId',5,1,'',1,1,0,'','','','</span>
   <span isfield="1" entid="1682" fieldname="WFRunId" fldid="334" columntypeid="1" class="form-ctr" style="display: none;">','',-1,93,-1,-1,1,'1682,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=334,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=8,[FieldName]='WFRunId',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   <span isfield="1" entid="1682" fieldname="WFRunId" fldid="334" columntypeid="1" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1682,' where  [FldUId]='892a1d52-3100-4808-a03d-a6ad44fccae3' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='cb6f9070-05a4-40ca-a36b-68e9e71714f7'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(335,'cb6f9070-05a4-40ca-a36b-68e9e71714f7',1682,1682,'00000000-0000-0000-0000-000000000000',10,'WFPrcsId',6,1,'',1,1,0,'','','','</span>
   <span isfield="1" entid="1682" fieldname="WFPrcsId" fldid="335" columntypeid="1" class="form-ctr" style="display: none;">','',-1,93,-1,-1,1,'1682,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=335,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=10,[FieldName]='WFPrcsId',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   <span isfield="1" entid="1682" fieldname="WFPrcsId" fldid="335" columntypeid="1" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1682,' where  [FldUId]='cb6f9070-05a4-40ca-a36b-68e9e71714f7' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='c4ac246c-6e3d-4a1f-9e10-45ff9bd6cb95'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'c4ac246c-6e3d-4a1f-9e10-45ff9bd6cb95',1682,1682,'00000000-0000-0000-0000-000000000000',3,'WFUserName',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2201" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowWfCurUserDlg(this);">
   <span isfield="1" entid="1682" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1682,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=2,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='WFUserName',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2201" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowWfCurUserDlg(this);">
   <span isfield="1" entid="1682" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1682,' where  [FldUId]='c4ac246c-6e3d-4a1f-9e10-45ff9bd6cb95' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='03dcd3e4-afb9-48f6-821e-0cd18bfaa6af'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'03dcd3e4-afb9-48f6-821e-0cd18bfaa6af',1682,1682,'00000000-0000-0000-0000-000000000000',11,'出差编号',8,1,'varchar',2,1,0,'','','','</span>
   </a>
  </div>
</li><li areaid="2202" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1682" fieldname="出差编号" fldid="3" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1682,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=3,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=11,[FieldName]='出差编号',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   </a>
  </div>
</li><li areaid="2202" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1682" fieldname="出差编号" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1682,' where  [FldUId]='03dcd3e4-afb9-48f6-821e-0cd18bfaa6af' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='837a051b-1f48-4ec0-afa3-79b4ee27edfc'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'837a051b-1f48-4ec0-afa3-79b4ee27edfc',1682,1682,'00000000-0000-0000-0000-000000000000',12,'出差人',9,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2203" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1682" fieldname="出差人" fldid="4" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1682,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=4,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=12,[FieldName]='出差人',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2203" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1682" fieldname="出差人" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1682,' where  [FldUId]='837a051b-1f48-4ec0-afa3-79b4ee27edfc' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='50b1868f-d649-45d6-9faa-5f765469f764'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'50b1868f-d649-45d6-9faa-5f765469f764',1682,1682,'00000000-0000-0000-0000-000000000000',13,'员工编号',10,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2204" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1682" fieldname="员工编号" fldid="5" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1682,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=5,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=13,[FieldName]='员工编号',[FieldNO]=10,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2204" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1682" fieldname="员工编号" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1682,' where  [FldUId]='50b1868f-d649-45d6-9faa-5f765469f764' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='d12d8c8e-182a-4282-9d95-98c6aaa57be6'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'d12d8c8e-182a-4282-9d95-98c6aaa57be6',1682,1682,'00000000-0000-0000-0000-000000000000',14,'入职日期',11,4,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2205" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1682" fieldname="入职日期" fldid="6" columntypeid="4" class="form-ctr">','',-1,93,-1,-1,1,'1682,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=6,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=14,[FieldName]='入职日期',[FieldNO]=11,[ColumnTypeId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2205" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1682" fieldname="入职日期" fldid="6" columntypeid="4" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1682,' where  [FldUId]='d12d8c8e-182a-4282-9d95-98c6aaa57be6' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='43133ac4-7829-478a-856e-a1cfff499394'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'43133ac4-7829-478a-856e-a1cfff499394',1682,1682,'00000000-0000-0000-0000-000000000000',15,'所在部门编号',12,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2206" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1682" fieldname="所在部门编号" fldid="7" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1682,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=7,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=15,[FieldName]='所在部门编号',[FieldNO]=12,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2206" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1682" fieldname="所在部门编号" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1682,' where  [FldUId]='43133ac4-7829-478a-856e-a1cfff499394' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='30ae728b-e7c1-4a94-a982-99a57c5fda71'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'30ae728b-e7c1-4a94-a982-99a57c5fda71',1682,1682,'00000000-0000-0000-0000-000000000000',16,'所在部门',13,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2207" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1682" fieldname="所在部门" fldid="8" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1682,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=8,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=16,[FieldName]='所在部门',[FieldNO]=13,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2207" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1682" fieldname="所在部门" fldid="8" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1682,' where  [FldUId]='30ae728b-e7c1-4a94-a982-99a57c5fda71' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='83907514-28d7-4f70-bd8b-bf961f3da278'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'83907514-28d7-4f70-bd8b-bf961f3da278',1682,1682,'00000000-0000-0000-0000-000000000000',17,'职务',14,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2208" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1682" fieldname="职务" fldid="9" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1682,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=9,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=17,[FieldName]='职务',[FieldNO]=14,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2208" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1682" fieldname="职务" fldid="9" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1682,' where  [FldUId]='83907514-28d7-4f70-bd8b-bf961f3da278' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='25349018-fdf6-4938-a8ac-0361f492b9c6'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'25349018-fdf6-4938-a8ac-0361f492b9c6',1682,1682,'00000000-0000-0000-0000-000000000000',18,'申请日期',15,4,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2209" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1682" fieldname="申请日期" fldid="10" columntypeid="4" class="form-ctr">','',-1,93,-1,-1,1,'1682,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=10,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=18,[FieldName]='申请日期',[FieldNO]=15,[ColumnTypeId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2209" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1682" fieldname="申请日期" fldid="10" columntypeid="4" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1682,' where  [FldUId]='25349018-fdf6-4938-a8ac-0361f492b9c6' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='bd65df21-05ac-4273-aa72-1961a841611c'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'bd65df21-05ac-4273-aa72-1961a841611c',1682,1682,'00000000-0000-0000-0000-000000000000',19,'出差地点',16,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2210" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1682" fieldname="出差地点" fldid="11" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1682,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=11,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=19,[FieldName]='出差地点',[FieldNO]=16,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2210" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1682" fieldname="出差地点" fldid="11" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1682,' where  [FldUId]='bd65df21-05ac-4273-aa72-1961a841611c' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='62a13d0e-5658-4181-b3f3-30fb237407d3'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(12,'62a13d0e-5658-4181-b3f3-30fb237407d3',1682,1682,'00000000-0000-0000-0000-000000000000',21,'出差事由',17,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2211" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1682" fieldname="出差事由" fldid="12" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1682,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=12,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=21,[FieldName]='出差事由',[FieldNO]=17,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2211" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1682" fieldname="出差事由" fldid="12" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1682,' where  [FldUId]='62a13d0e-5658-4181-b3f3-30fb237407d3' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='b4020431-8ff5-40b6-b66b-9904d99e5fdc'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(13,'b4020431-8ff5-40b6-b66b-9904d99e5fdc',1682,1682,'00000000-0000-0000-0000-000000000000',22,'出差起始日期',18,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2212" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1682" fieldname="出差起始日期" fldid="13" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1682,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=13,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=22,[FieldName]='出差起始日期',[FieldNO]=18,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2212" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1682" fieldname="出差起始日期" fldid="13" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1682,' where  [FldUId]='b4020431-8ff5-40b6-b66b-9904d99e5fdc' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='c9f8074c-fdf9-45f5-8d3e-d9aaa489adf9'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(14,'c9f8074c-fdf9-45f5-8d3e-d9aaa489adf9',1682,1682,'00000000-0000-0000-0000-000000000000',23,'出差结束日期',19,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2213" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1682" fieldname="出差结束日期" fldid="14" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1682,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=14,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=23,[FieldName]='出差结束日期',[FieldNO]=19,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2213" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1682" fieldname="出差结束日期" fldid="14" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1682,' where  [FldUId]='c9f8074c-fdf9-45f5-8d3e-d9aaa489adf9' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='f50fc5e9-171e-4ae0-815c-de72c81338ed'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(15,'f50fc5e9-171e-4ae0-815c-de72c81338ed',1682,1682,'00000000-0000-0000-0000-000000000000',24,'总共天数',20,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2214" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1682" fieldname="总共天数" fldid="15" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1682,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=15,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=24,[FieldName]='总共天数',[FieldNO]=20,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2214" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1682" fieldname="总共天数" fldid="15" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1682,' where  [FldUId]='f50fc5e9-171e-4ae0-815c-de72c81338ed' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='6220e272-8854-48f9-8d19-e42d673861ee'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(16,'6220e272-8854-48f9-8d19-e42d673861ee',1682,1682,'00000000-0000-0000-0000-000000000000',25,'交通工具安排',21,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2215" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1682" fieldname="交通工具安排" fldid="16" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1682,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=16,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=25,[FieldName]='交通工具安排',[FieldNO]=21,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2215" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1682" fieldname="交通工具安排" fldid="16" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1682,' where  [FldUId]='6220e272-8854-48f9-8d19-e42d673861ee' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='630cd7dd-0167-4c06-bae8-a6eaefc28cc2'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(17,'630cd7dd-0167-4c06-bae8-a6eaefc28cc2',1682,1682,'00000000-0000-0000-0000-000000000000',26,'申请出差费用',22,3,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2216" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1682" fieldname="申请出差费用" fldid="17" columntypeid="3" class="form-ctr">￥','',-1,93,-1,-1,1,'1682,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=17,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=26,[FieldName]='申请出差费用',[FieldNO]=22,[ColumnTypeId]=3,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2216" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1682" fieldname="申请出差费用" fldid="17" columntypeid="3" class="form-ctr">￥',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1682,' where  [FldUId]='630cd7dd-0167-4c06-bae8-a6eaefc28cc2' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='ed82beb5-dd6b-416f-9982-d2cfe1fd83cf'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(155,'ed82beb5-dd6b-416f-9982-d2cfe1fd83cf',1682,1682,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',23,1,'',2,21,0,'','','','</span>
  </div>
</li><li areaid="2217" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,1682,''ListR_'',''','',-1,93,-1,-1,1,'1682,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=155,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=23,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2217" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,1682,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1682,' where  [FldUId]='ed82beb5-dd6b-416f-9982-d2cfe1fd83cf' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='60650027-edb1-49da-a2aa-48508e789c38'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(156,'60650027-edb1-49da-a2aa-48508e789c38',1682,1682,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',24,1,'',2,21,0,'','','',''',null,1040,480);">
<span class="i">办理</span></a></div>
</li><li areaid="2218" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1682,''ListR_'',''','',-1,93,-1,-1,1,'1682,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=156,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=24,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">办理</span></a></div>
</li><li areaid="2218" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1682,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1682,' where  [FldUId]='60650027-edb1-49da-a2aa-48508e789c38' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='7db11b80-62c2-4327-a786-0d482058ed1b'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(157,'7db11b80-62c2-4327-a786-0d482058ed1b',1682,1682,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',25,1,'',2,21,0,'','','',''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="2219" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,1682,''ListR_'',''','',-1,93,-1,-1,1,'1682,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=157,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=25,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="2219" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,1682,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1682,' where  [FldUId]='7db11b80-62c2-4327-a786-0d482058ed1b' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='75bac290-d3dd-0e2b-c214-cac6a6635114'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(387,'75bac290-d3dd-0e2b-c214-cac6a6635114',1682,1682,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',26,-1,'varchar',2,13,0,'','','',''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>','</div>
</div>
<!-- 结束 --></div>',-1,93,-1,-1,1,'1682,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=387,[Report_EntId]=1682,[EntId]=1682,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=26,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>',[LastHtml]='</div>
</div>
<!-- 结束 --></div>',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1682,' where  [FldUId]='75bac290-d3dd-0e2b-c214-cac6a6635114' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=1103

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=1103  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(1103,null,'行政_出差申请单','行政_出差申请单',0,0,0,0,0,1,1,1,3,'admin','2013-12-15 17:32:53',3,'admin','2013-12-15 17:32:53',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='行政_出差申请单',[DBTableByName]='行政_出差申请单',[IsForbid]=0,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=1,[SystemId]=1,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:53',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:53',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=1103 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1103  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2367,1,1,1103,'int',1,1,1,'行政_出差申请单','LD_Id','LD_Id','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_出差申请单',[FieldName]='LD_Id',[FieldByname]='LD_Id',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1103  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1103  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2368,2,1,1103,'varchar',2,1,1,'行政_出差申请单','WFState','WFState','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_出差申请单',[FieldName]='WFState',[FieldByname]='WFState',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1103  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1103  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2369,3,1,1103,'varchar',2,1,1,'行政_出差申请单','WFUserName','WFUserName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_出差申请单',[FieldName]='WFUserName',[FieldByname]='WFUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1103  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1103  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2370,4,1,1103,'bit',4,1,1,'行政_出差申请单','WFIsFinish','WFIsFinish','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_出差申请单',[FieldName]='WFIsFinish',[FieldByname]='WFIsFinish',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1103  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1103  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2371,5,1,1103,'bit',4,1,1,'行政_出差申请单','WFIsStart','WFIsStart','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_出差申请单',[FieldName]='WFIsStart',[FieldByname]='WFIsStart',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1103  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1103  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2372,6,1,1103,'varchar',2,1,1,'行政_出差申请单','WFAllUser','WFAllUser','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_出差申请单',[FieldName]='WFAllUser',[FieldByname]='WFAllUser',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1103  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1103  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2373,7,1,1103,'varchar',2,1,1,'行政_出差申请单','WFOpinion','WFOpinion','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_出差申请单',[FieldName]='WFOpinion',[FieldByname]='WFOpinion',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1103  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1103  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2374,8,1,1103,'int',1,1,1,'行政_出差申请单','WFRunId','WFRunId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_出差申请单',[FieldName]='WFRunId',[FieldByname]='WFRunId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1103  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1103  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2375,9,1,1103,'int',1,1,1,'行政_出差申请单','WFFlowId','WFFlowId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_出差申请单',[FieldName]='WFFlowId',[FieldByname]='WFFlowId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1103  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1103  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2376,10,1,1103,'int',1,1,1,'行政_出差申请单','WFPrcsId','WFPrcsId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_出差申请单',[FieldName]='WFPrcsId',[FieldByname]='WFPrcsId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1103  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1103  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2377,11,1,1103,'varchar',2,1,1,'行政_出差申请单','出差编号','出差编号','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_出差申请单',[FieldName]='出差编号',[FieldByname]='出差编号',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1103  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1103  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2378,12,1,1103,'varchar',2,1,1,'行政_出差申请单','出差人','出差人','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_出差申请单',[FieldName]='出差人',[FieldByname]='出差人',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1103  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1103  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2379,13,1,1103,'varchar',2,1,1,'行政_出差申请单','员工编号','员工编号','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_出差申请单',[FieldName]='员工编号',[FieldByname]='员工编号',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1103  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1103  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2380,14,1,1103,'datetime',3,1,1,'行政_出差申请单','入职日期','入职日期','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_出差申请单',[FieldName]='入职日期',[FieldByname]='入职日期',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1103  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1103  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2381,15,1,1103,'varchar',2,1,1,'行政_出差申请单','所在部门编号','所在部门编号','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_出差申请单',[FieldName]='所在部门编号',[FieldByname]='所在部门编号',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1103  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1103  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2382,16,1,1103,'varchar',2,1,1,'行政_出差申请单','所在部门','所在部门','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_出差申请单',[FieldName]='所在部门',[FieldByname]='所在部门',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1103  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1103  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2383,17,1,1103,'varchar',2,1,1,'行政_出差申请单','职务','职务','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_出差申请单',[FieldName]='职务',[FieldByname]='职务',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1103  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1103  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2384,18,1,1103,'datetime',3,1,1,'行政_出差申请单','申请日期','申请日期','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_出差申请单',[FieldName]='申请日期',[FieldByname]='申请日期',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1103  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1103  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2385,19,1,1103,'varchar',2,1,1,'行政_出差申请单','出差地点','出差地点','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_出差申请单',[FieldName]='出差地点',[FieldByname]='出差地点',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1103  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1103  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2386,20,1,1103,'varchar',2,1,1,'行政_出差申请单','出差期间工作代理人','出差期间工作代理人','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_出差申请单',[FieldName]='出差期间工作代理人',[FieldByname]='出差期间工作代理人',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1103  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1103  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2387,21,1,1103,'varchar',2,1,1,'行政_出差申请单','出差事由','出差事由','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_出差申请单',[FieldName]='出差事由',[FieldByname]='出差事由',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1103  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1103  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2388,22,1,1103,'datetime',3,1,1,'行政_出差申请单','出差起始日期','出差起始日期','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_出差申请单',[FieldName]='出差起始日期',[FieldByname]='出差起始日期',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1103  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1103  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2389,23,1,1103,'datetime',3,1,1,'行政_出差申请单','出差结束日期','出差结束日期','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_出差申请单',[FieldName]='出差结束日期',[FieldByname]='出差结束日期',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1103  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1103  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2390,24,1,1103,'int',1,1,1,'行政_出差申请单','总共天数','总共天数','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_出差申请单',[FieldName]='总共天数',[FieldByname]='总共天数',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1103  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1103  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2391,25,1,1103,'varchar',2,1,1,'行政_出差申请单','交通工具安排','交通工具安排','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_出差申请单',[FieldName]='交通工具安排',[FieldByname]='交通工具安排',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1103  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1103  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2392,26,1,1103,'money',5,1,1,'行政_出差申请单','申请出差费用','申请出差费用','',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_出差申请单',[FieldName]='申请出差费用',[FieldByname]='申请出差费用',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1103  and  [FieldId]=26 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1103  and  [FieldId]=27  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2393,27,1,1103,'varchar',2,1,1,'行政_出差申请单','部门主管签名','部门主管签名','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_出差申请单',[FieldName]='部门主管签名',[FieldByname]='部门主管签名',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1103  and  [FieldId]=27 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1103  and  [FieldId]=28  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2394,28,1,1103,'varchar',2,1,1,'行政_出差申请单','部门经理签名','部门经理签名','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_出差申请单',[FieldName]='部门经理签名',[FieldByname]='部门经理签名',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1103  and  [FieldId]=28 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1103  and  [FieldId]=29  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2395,29,1,1103,'varchar',2,1,1,'行政_出差申请单','综合办签名','综合办签名','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_出差申请单',[FieldName]='综合办签名',[FieldByname]='综合办签名',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1103  and  [FieldId]=29 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1103  and  [FieldId]=30  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2396,30,1,1103,'varchar',2,1,1,'行政_出差申请单','总经理审批意见','总经理审批意见','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_出差申请单',[FieldName]='总经理审批意见',[FieldByname]='总经理审批意见',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1103  and  [FieldId]=30 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--WF_FlowType

     SET IDENTITY_INSERT [WF_FlowType] ON 
      if (select count(1) from [WF_FlowType] where  [FlowId]=102  )<1 
      begin 
           Insert into [WF_FlowType] ([FlowId],[FlowName],[FlowNo],[SortId],[EntId],[EntName],[AutoName],[ManageUsers],[ManageNames],[QueryUsers],[QueryNames],[CanQueryRoles],[CanQueryRolesId],[CanManageRoles],[CanManageRolesId],[CanStartUsers],[CanStartNames],[CanStartRoles],[CanStartRolesId],[AttachMaxSize],[FlowAttach],[IsPigeonhole],[PigeonholedSQL],[IsFreeFlow],[QueryItem],[LaunchIsOpen],[FormUrl],[BrowseUrl],[ListUrl],[Detail],[CreatorId],[Creator],[CreateTime],[EditTime],[Editor],[EditorId],[AccountId])values(102,'出差及费用申请',0,31,1682,'出差及费用申请',null,'admin','admin','admin','admin','系统管理员','3','系统管理员','3',null,null,'Public','1',0,0,0,'',null,null,null,null,null,null,'',0,'admin','2013-11-30 1:06:40',null,null,null,1)
      end
      else 
      begin 
           update [WF_FlowType] set [FlowName]='出差及费用申请',[FlowNo]=0,[SortId]=31,[EntId]=1682,[EntName]='出差及费用申请',[AutoName]=null,[ManageUsers]='admin',[ManageNames]='admin',[QueryUsers]='admin',[QueryNames]='admin',[CanQueryRoles]='系统管理员',[CanQueryRolesId]='3',[CanManageRoles]='系统管理员',[CanManageRolesId]='3',[CanStartUsers]=null,[CanStartNames]=null,[CanStartRoles]='Public',[CanStartRolesId]='1',[AttachMaxSize]=0,[FlowAttach]=0,[IsPigeonhole]=0,[PigeonholedSQL]='',[IsFreeFlow]=null,[QueryItem]=null,[LaunchIsOpen]=null,[FormUrl]=null,[BrowseUrl]=null,[ListUrl]=null,[Detail]='',[CreatorId]=0,[Creator]='admin',[CreateTime]='2013-11-30 1:06:40',[EditTime]=null,[Editor]=null,[EditorId]=null,[AccountId]=1 where  [FlowId]=102 
      end

     SET IDENTITY_INSERT [WF_FlowType] OFF 



Delete from [WF_FlowNode]  where isnull([FlowId],0)=102 

--WF_FlowNode

     SET IDENTITY_INSERT [WF_FlowNode] ON 
      if (select count(1) from [WF_FlowNode] where  [NodeId]=545  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(545,102,'起草申请',1,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','546',0,1,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','',null,0,'',20,40,null,null,null,null,null,null,null,null,null,null,'3262,3263,3264,3265,3266,3267,3268,3269,3270,3271,3272,3273,3274,3275,3276,3277',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=102,[NodeName]='起草申请',[Step]=1,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='546',[AllowLastNodeBoss]=0,[AllowWorkCreator]=1,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=20,[Pointy]=40,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='3262,3263,3264,3265,3266,3267,3268,3269,3270,3271,3272,3273,3274,3275,3276,3277',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=545 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=546  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(546,102,'部门审批',2,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','547',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','',null,0,'',103,232,null,null,null,null,null,null,null,null,null,null,'3278',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=102,[NodeName]='部门审批',[Step]=2,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='547',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=103,[Pointy]=232,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='3278',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=546 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=547  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(547,102,'领导审批',3,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','548',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','',null,0,'',306,42,null,null,null,null,null,null,null,null,null,null,'3279',null,null,null,'63,65,62',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=102,[NodeName]='领导审批',[Step]=3,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='548',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=306,[Pointy]=42,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='3279',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='63,65,62',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=547 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=548  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(548,102,'财务部审批',4,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','549,550',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','',null,0,'',499,166,null,null,null,null,null,null,null,null,null,null,'3281',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=102,[NodeName]='财务部审批',[Step]=4,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='549,550',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=499,[Pointy]=166,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='3281',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=548 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=549  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(549,102,'申请成功，通知申请人',5,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','-1',0,1,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','<$462:Begin$>
		--流出到<结束>节点时 

		
update  行政_出差申请单 set WFIsFinish=1,WFIsStart=1 where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''

		</$462:End$>',null,0,'',660,52,null,null,null,null,null,null,null,null,null,null,'',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=102,[NodeName]='申请成功，通知申请人',[Step]=5,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='-1',[AllowLastNodeBoss]=0,[AllowWorkCreator]=1,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='<$462:Begin$>
		--流出到<结束>节点时 

		
update  行政_出差申请单 set WFIsFinish=1,WFIsStart=1 where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''

		</$462:End$>',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=660,[Pointy]=52,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=549 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=550  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(550,102,'申请失败，通知申请人',6,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','-1',0,1,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','<$462:Begin$>
		--流出到<结束>节点时 

		
update 行政_出差申请单  set WFIsFinish=1,WFIsStart=0 where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''

		</$462:End$>',null,0,'',666,234,null,null,null,null,null,null,null,null,null,null,'',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=102,[NodeName]='申请失败，通知申请人',[Step]=6,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='-1',[AllowLastNodeBoss]=0,[AllowWorkCreator]=1,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='<$462:Begin$>
		--流出到<结束>节点时 

		
update 行政_出差申请单  set WFIsFinish=1,WFIsStart=0 where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''

		</$462:End$>',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=666,[Pointy]=234,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=550 
      end

     SET IDENTITY_INSERT [WF_FlowNode] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=1967  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1967,102,545,1682,'出差及费用申请',3262,'出差编号','出差编号','出差及费用申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=102,[NodeId]=545,[EntId]=1682,[EntName]='出差及费用申请',[FldId]=3262,[FieldName]='出差编号',[CtrlByName]='出差编号',[FlowName]='出差及费用申请',[TypeId]=1 where  [Id]=1967 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1968  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1968,102,545,1682,'出差及费用申请',3263,'出差人','出差人','出差及费用申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=102,[NodeId]=545,[EntId]=1682,[EntName]='出差及费用申请',[FldId]=3263,[FieldName]='出差人',[CtrlByName]='出差人',[FlowName]='出差及费用申请',[TypeId]=1 where  [Id]=1968 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1969  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1969,102,545,1682,'出差及费用申请',3264,'员工编号','员工编号','出差及费用申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=102,[NodeId]=545,[EntId]=1682,[EntName]='出差及费用申请',[FldId]=3264,[FieldName]='员工编号',[CtrlByName]='员工编号',[FlowName]='出差及费用申请',[TypeId]=1 where  [Id]=1969 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1970  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1970,102,545,1682,'出差及费用申请',3265,'入职日期','入职日期','出差及费用申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=102,[NodeId]=545,[EntId]=1682,[EntName]='出差及费用申请',[FldId]=3265,[FieldName]='入职日期',[CtrlByName]='入职日期',[FlowName]='出差及费用申请',[TypeId]=1 where  [Id]=1970 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1971  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1971,102,545,1682,'出差及费用申请',3266,'所在部门编号','所在部门编号','出差及费用申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=102,[NodeId]=545,[EntId]=1682,[EntName]='出差及费用申请',[FldId]=3266,[FieldName]='所在部门编号',[CtrlByName]='所在部门编号',[FlowName]='出差及费用申请',[TypeId]=1 where  [Id]=1971 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1972  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1972,102,545,1682,'出差及费用申请',3267,'所在部门','所在部门','出差及费用申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=102,[NodeId]=545,[EntId]=1682,[EntName]='出差及费用申请',[FldId]=3267,[FieldName]='所在部门',[CtrlByName]='所在部门',[FlowName]='出差及费用申请',[TypeId]=1 where  [Id]=1972 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1973  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1973,102,545,1682,'出差及费用申请',3268,'职务','职务','出差及费用申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=102,[NodeId]=545,[EntId]=1682,[EntName]='出差及费用申请',[FldId]=3268,[FieldName]='职务',[CtrlByName]='职务',[FlowName]='出差及费用申请',[TypeId]=1 where  [Id]=1973 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1974  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1974,102,545,1682,'出差及费用申请',3269,'申请日期','申请日期','出差及费用申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=102,[NodeId]=545,[EntId]=1682,[EntName]='出差及费用申请',[FldId]=3269,[FieldName]='申请日期',[CtrlByName]='申请日期',[FlowName]='出差及费用申请',[TypeId]=1 where  [Id]=1974 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1975  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1975,102,545,1682,'出差及费用申请',3270,'出差地点','出差地点','出差及费用申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=102,[NodeId]=545,[EntId]=1682,[EntName]='出差及费用申请',[FldId]=3270,[FieldName]='出差地点',[CtrlByName]='出差地点',[FlowName]='出差及费用申请',[TypeId]=1 where  [Id]=1975 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1976  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1976,102,545,1682,'出差及费用申请',3271,'出差期间工作代理人','出差期间工作代理人','出差及费用申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=102,[NodeId]=545,[EntId]=1682,[EntName]='出差及费用申请',[FldId]=3271,[FieldName]='出差期间工作代理人',[CtrlByName]='出差期间工作代理人',[FlowName]='出差及费用申请',[TypeId]=1 where  [Id]=1976 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1977  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1977,102,545,1682,'出差及费用申请',3272,'出差事由','出差事由','出差及费用申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=102,[NodeId]=545,[EntId]=1682,[EntName]='出差及费用申请',[FldId]=3272,[FieldName]='出差事由',[CtrlByName]='出差事由',[FlowName]='出差及费用申请',[TypeId]=1 where  [Id]=1977 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1978  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1978,102,545,1682,'出差及费用申请',3273,'出差起始日期','出差起始日期','出差及费用申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=102,[NodeId]=545,[EntId]=1682,[EntName]='出差及费用申请',[FldId]=3273,[FieldName]='出差起始日期',[CtrlByName]='出差起始日期',[FlowName]='出差及费用申请',[TypeId]=1 where  [Id]=1978 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1979  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1979,102,545,1682,'出差及费用申请',3274,'出差结束日期','出差结束日期','出差及费用申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=102,[NodeId]=545,[EntId]=1682,[EntName]='出差及费用申请',[FldId]=3274,[FieldName]='出差结束日期',[CtrlByName]='出差结束日期',[FlowName]='出差及费用申请',[TypeId]=1 where  [Id]=1979 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1980  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1980,102,545,1682,'出差及费用申请',3275,'总共天数','总共天数','出差及费用申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=102,[NodeId]=545,[EntId]=1682,[EntName]='出差及费用申请',[FldId]=3275,[FieldName]='总共天数',[CtrlByName]='总共天数',[FlowName]='出差及费用申请',[TypeId]=1 where  [Id]=1980 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1981  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1981,102,545,1682,'出差及费用申请',3276,'交通工具安排','交通工具安排','出差及费用申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=102,[NodeId]=545,[EntId]=1682,[EntName]='出差及费用申请',[FldId]=3276,[FieldName]='交通工具安排',[CtrlByName]='交通工具安排',[FlowName]='出差及费用申请',[TypeId]=1 where  [Id]=1981 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=1982  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1982,102,545,1682,'出差及费用申请',3277,'申请出差费用','申请出差费用','出差及费用申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=102,[NodeId]=545,[EntId]=1682,[EntName]='出差及费用申请',[FldId]=3277,[FieldName]='申请出差费用',[CtrlByName]='申请出差费用',[FlowName]='出差及费用申请',[TypeId]=1 where  [Id]=1982 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=1983  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1983,102,546,1682,'出差及费用申请',3278,'部门主管签名','部门主管签名','出差及费用申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=102,[NodeId]=546,[EntId]=1682,[EntName]='出差及费用申请',[FldId]=3278,[FieldName]='部门主管签名',[CtrlByName]='部门主管签名',[FlowName]='出差及费用申请',[TypeId]=1 where  [Id]=1983 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=1984  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1984,102,547,1682,'出差及费用申请',3279,'部门经理签名','部门经理签名','出差及费用申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=102,[NodeId]=547,[EntId]=1682,[EntName]='出差及费用申请',[FldId]=3279,[FieldName]='部门经理签名',[CtrlByName]='部门经理签名',[FlowName]='出差及费用申请',[TypeId]=1 where  [Id]=1984 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=1985  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(1985,102,548,1682,'出差及费用申请',3281,'总经理审批意见','总经理审批意见','出差及费用申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=102,[NodeId]=548,[EntId]=1682,[EntName]='出差及费用申请',[FldId]=3281,[FieldName]='总经理审批意见',[CtrlByName]='总经理审批意见',[FlowName]='出差及费用申请',[TypeId]=1 where  [Id]=1985 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=2900  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2900,'850705a2-d437-4693-b59e-fd5d9342d35b','差旅费报销申请',2896,'/Template/default/ListReport/ListReport_Tree001.aspx',1,'/images/default.gif','/images/default.gif',6,'',null,0,null,1,0,1,1,1,1,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='850705a2-d437-4693-b59e-fd5d9342d35b',[MenuName]='差旅费报销申请',[ParentId]=2896,[ProPath]='/Template/default/ListReport/ListReport_Tree001.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=6,[Target]='',[IsOpen]=null,[IsHidden]=0,[Remark]=null,[SSystemId]=1,[SMenuId]=0,[SystemId]=1,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=2900 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=2900  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(679,2900,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=2900  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=1683  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(1683,2900,'差旅费用报销',1,1099,0,'行政_差旅费报销单',0,0,1,1,1683,null,null,1,null,1,null,88,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=2900,[EntName]='差旅费用报销',[MEnt]=1,[DBTableId]=1099,[DBConnectId]=0,[DBTableName]='行政_差旅费报销单',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=1,[SEntId]=1683,[FSystemId]=null,[FEntId]=null,[SystemId]=1,[Remark]=null,[IsFlow]=1,[IsChecked]=null,[FlowId]=88,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=1683 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=1683

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=1683  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11431,-1,1683,1,1,1,1,0,1,0,0,0,1,0,0,0,0,0,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=0,[CanUpdate]=1,[CanOutPut]=0,[CanInput]=0,[CanCopy]=0,[CanPrint]=1,[CanCheck]=0,[CanClean]=0,[CanRecycle]=0,[CanExecute]=0,[CanDesign]=0,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=1683  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=1683  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(10816,2900,1683,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=2900,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=1683  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=1683

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1683  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18116,1,2900,1683,13,1,1,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2900,[TemplateId]=13,[ModuleId]=1,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1683  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1683  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18117,1,2900,1683,13,2,9,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2900,[TemplateId]=13,[ModuleId]=9,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1683  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1683  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18118,1,2900,1683,13,3,14,1,4,2,'/Template/Default/Form/AjaxForm/AjaxForm008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2900,[TemplateId]=13,[ModuleId]=14,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='/Template/Default/Form/AjaxForm/AjaxForm008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1683  and  [ModuleTypeId]=3 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1683  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18119,1,2900,1683,13,16,31,1,5,2,'/Template/Default/Browse/Browse008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2900,[TemplateId]=13,[ModuleId]=31,[GroupId]=1,[AreaId]=5,[ShowMode]=2,[AreaUrl]='/Template/Default/Browse/Browse008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1683  and  [ModuleTypeId]=16 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_AjaxForm_Run]  where [EntId]=1683

--Dcx_AjaxForm_Run
      if (select count(1) from [Dcx_AjaxForm_Run] where  [EntId]=1683  )<1 
      begin 
           Insert into [Dcx_AjaxForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('09458dc2-f3b5-4cb4-9006-989af1263164','差旅费用报销',1683,14,'','',0,'<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>','','DcxRun.AjaxF_1683= {"MenuId":2900,"MEntId":1683,"EntName":"差旅费用报销","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":true,"EntMsg":{"E1683":{"EntId":1683,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
GetLinkCtrlData_AjaxF_1683_245(null,null);
GetLinkCtrlData_AjaxF_1683_247(null,null);
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_1683.EntMsg.E1683.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"行政_差旅费报销单","EntId":1683,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"出差编号":{"DtId":2,"DB":1,"CId":34,"FL":0},"出差人":{"DtId":2,"DB":1,"CId":4,"FL":-1},"员工编号":{"DtId":2,"DB":1,"CId":4,"FL":-1},"入职日期":{"DtId":3,"DB":1,"CId":4,"FL":-1},"所在部门":{"DtId":2,"DB":1,"CId":4,"FL":-1},"职务":{"DtId":2,"DB":1,"CId":4,"FL":-1},"出差地点":{"DtId":2,"DB":1,"CId":1,"FL":0},"出差事由":{"DtId":6,"DB":1,"CId":2,"FL":0},"出差起始日期":{"DtId":3,"DB":1,"CId":6,"FL":-1},"出差结束日期":{"DtId":3,"DB":1,"CId":6,"FL":-1},"总共天数":{"DtId":1,"DB":1,"CId":1,"FL":-1},"交通讯费":{"DtId":5,"DB":1,"CId":1,"FL":-1},"餐费":{"DtId":5,"DB":1,"CId":1,"FL":-1},"住宿费":{"DtId":5,"DB":1,"CId":1,"FL":-1},"通讯费":{"DtId":5,"DB":1,"CId":1,"FL":-1},"其他费":{"DtId":5,"DB":1,"CId":1,"FL":-1},"费用合计":{"DtId":2,"DB":1,"CId":1,"FL":0},"报销日期":{"DtId":3,"DB":1,"CId":4,"FL":-1},"部门审批意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"财务部审批意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"批准人":{"DtId":2,"DB":1,"CId":1,"FL":-1},"预支金额":{"DtId":5,"DB":1,"CId":1,"FL":-1},"应退或补金额":{"DtId":5,"DB":1,"CId":1,"FL":0}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_1683.EntMsg.E1683.GetDataRowModel=function()
{
    return {"出差编号":"","出差人":"","员工编号":"","入职日期":new Date(),"所在部门":"","职务":"","出差地点":"","出差事由":"","出差起始日期":new Date(),"出差结束日期":new Date(),"总共天数":-1,"交通讯费":"0","餐费":"0","住宿费":"0","通讯费":"0","其他费":"0","费用合计":"","报销日期":new Date(),"部门审批意见":"","财务部审批意见":"","批准人":"","预支金额":"0","应退或补金额":"0","Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_AjaxF_1683_238(obj,curFieldName){
 var EntId=1683;
 var FldId=3285;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''入职日期'';
 var $formContainer=DcxForm.GetHtmlContainer(1683,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1683,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"入职日期\",FldId:"+FldId+",EntId:1683,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1683,''AjaxF_'',''员工编号'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1683_入职日期");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1683_239(obj,curFieldName){
 var EntId=1683;
 var FldId=3287;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''职务'';
 var $formContainer=DcxForm.GetHtmlContainer(1683,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1683,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"职务\",FldId:"+FldId+",EntId:1683,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1683,''AjaxF_'',''员工编号'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1683_职务");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1683_240(obj,curFieldName){
 var EntId=1683;
 var FldId=3288;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''出差地点'';
 var $formContainer=DcxForm.GetHtmlContainer(1683,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1683,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"出差地点\",FldId:"+FldId+",EntId:1683,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:1,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''出差编号''==curFieldName)
  v_f1=DcxForm.GetBindingVCtrlValue($(obj));
else 
  v_f1=DcxForm.GetDdlValue(null,1683,''AjaxF_'',''出差编号'',34,$formContainer,false,false);
if(v_f1==null)
   v_f1='''';
 strData.data = strData.data + "{@出差编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1683_出差地点");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1683_241(obj,curFieldName){
 var EntId=1683;
 var FldId=3289;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''出差事由'';
 var $formContainer=DcxForm.GetHtmlContainer(1683,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1683,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"出差事由\",FldId:"+FldId+",EntId:1683,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:2,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''出差编号''==curFieldName)
  v_f1=DcxForm.GetBindingVCtrlValue($(obj));
else 
  v_f1=DcxForm.GetDdlValue(null,1683,''AjaxF_'',''出差编号'',34,$formContainer,false,false);
if(v_f1==null)
   v_f1='''';
 strData.data = strData.data + "{@出差编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1683_出差事由");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1683_242(obj,curFieldName){
 var EntId=1683;
 var FldId=3290;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''出差起始日期'';
 var $formContainer=DcxForm.GetHtmlContainer(1683,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1683,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"出差起始日期\",FldId:"+FldId+",EntId:1683,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:6,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''出差编号''==curFieldName)
  v_f1=DcxForm.GetBindingVCtrlValue($(obj));
else 
  v_f1=DcxForm.GetDdlValue(null,1683,''AjaxF_'',''出差编号'',34,$formContainer,false,false);
if(v_f1==null)
   v_f1='''';
 strData.data = strData.data + "{@出差编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1683_出差起始日期");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1683_243(obj,curFieldName){
 var EntId=1683;
 var FldId=3291;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''出差结束日期'';
 var $formContainer=DcxForm.GetHtmlContainer(1683,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1683,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"出差结束日期\",FldId:"+FldId+",EntId:1683,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:6,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''出差编号''==curFieldName)
  v_f1=DcxForm.GetBindingVCtrlValue($(obj));
else 
  v_f1=DcxForm.GetDdlValue(null,1683,''AjaxF_'',''出差编号'',34,$formContainer,false,false);
if(v_f1==null)
   v_f1='''';
 strData.data = strData.data + "{@出差编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1683_出差结束日期");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1683_244(obj,curFieldName){
 var EntId=1683;
 var FldId=3292;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''总共天数'';
 var $formContainer=DcxForm.GetHtmlContainer(1683,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1683,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"总共天数\",FldId:"+FldId+",EntId:1683,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:1,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''出差编号''==curFieldName)
  v_f1=DcxForm.GetBindingVCtrlValue($(obj));
else 
  v_f1=DcxForm.GetDdlValue(null,1683,''AjaxF_'',''出差编号'',34,$formContainer,false,false);
if(v_f1==null)
   v_f1='''';
 strData.data = strData.data + "{@出差编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1683_总共天数");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1683_245(obj,curFieldName){
 var EntId=1683;
 var FldId=3298;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''费用合计'';
 var $formContainer=DcxForm.GetHtmlContainer(1683,''AjaxF_'');
 var $ddlContainer=null;
var strCode="{@交通讯费}+{@餐费}+{@住宿费}+{@通讯费}+{@其他费}" ;
var v_f1=null;
if(''交通讯费''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,1683,''AjaxF_'',''交通讯费'',$formContainer);
if(v_f1==null)
   return;
v_f1 = v_f1.replaceAll('','','''');
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0.00";
strCode=strCode.replaceAll("{@交通讯费}",v_f1);
var v_f1=null;
if(''餐费''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,1683,''AjaxF_'',''餐费'',$formContainer);
if(v_f1==null)
   return;
v_f1 = v_f1.replaceAll('','','''');
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0.00";
strCode=strCode.replaceAll("{@餐费}",v_f1);
var v_f1=null;
if(''住宿费''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,1683,''AjaxF_'',''住宿费'',$formContainer);
if(v_f1==null)
   return;
v_f1 = v_f1.replaceAll('','','''');
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0.00";
strCode=strCode.replaceAll("{@住宿费}",v_f1);
var v_f1=null;
if(''通讯费''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,1683,''AjaxF_'',''通讯费'',$formContainer);
if(v_f1==null)
   return;
v_f1 = v_f1.replaceAll('','','''');
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0.00";
strCode=strCode.replaceAll("{@通讯费}",v_f1);
var v_f1=null;
if(''其他费''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,1683,''AjaxF_'',''其他费'',$formContainer);
if(v_f1==null)
   return;
v_f1 = v_f1.replaceAll('','','''');
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0.00";
strCode=strCode.replaceAll("{@其他费}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d1683_费用合计");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
function GetLinkCtrlData_AjaxF_1683_246(obj,curFieldName){
 var EntId=1683;
 var FldId=3303;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''预支金额'';
 var $formContainer=DcxForm.GetHtmlContainer(1683,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1683,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"预支金额\",FldId:"+FldId+",EntId:1683,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:1,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''出差编号''==curFieldName)
  v_f1=DcxForm.GetBindingVCtrlValue($(obj));
else 
  v_f1=DcxForm.GetDdlValue(null,1683,''AjaxF_'',''出差编号'',34,$formContainer,false,false);
if(v_f1==null)
   v_f1='''';
 strData.data = strData.data + "{@出差编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1683_预支金额");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1683_247(obj,curFieldName){
 var EntId=1683;
 var FldId=3304;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''应退或补金额'';
 var $formContainer=DcxForm.GetHtmlContainer(1683,''AjaxF_'');
 var $ddlContainer=null;
var strCode="{@预支金额}-{@费用合计}" ;
var v_f1=null;
if(''预支金额''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,1683,''AjaxF_'',''预支金额'',$formContainer);
if(v_f1==null)
   return;
v_f1 = v_f1.replaceAll('','','''');
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0.00";
strCode=strCode.replaceAll("{@预支金额}",v_f1);
var v_f1=null;
if(''费用合计''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,1683,''AjaxF_'',''费用合计'',$formContainer);
if(v_f1==null)
   return;
strCode=strCode.replaceAll("{@费用合计}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal)||isNaN(myVal))
myVal = 0.00;
myVal =Dcx.ConvertMoney(myVal);
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d1683_应退或补金额");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_1683.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1683,''AjaxF_'',buildNew,closeDlg);

}','<$1683$>select [出差编号],[出差人],[员工编号],[入职日期],[所在部门],[职务],[出差地点],[出差事由],[出差起始日期],[出差结束日期],[总共天数],[交通讯费],[餐费],[住宿费],[通讯费],[其他费],[费用合计],[预支金额],[应退或补金额],[部门审批意见],[财务部审批意见],[报销日期],[批准人],[LD_Id] from 行政_差旅费报销单 where [LD_Id]=''{$keyfieldvalue}''</$1683$>',20,'','','','1683*LD_Id*2**2*行政_差旅费报销单*差旅费用报销',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 7:02:48',3,'admin','2013-11-30 7:39:37',1)
      end
      else 
      begin 
           update [Dcx_AjaxForm_Run] set [FormId]='09458dc2-f3b5-4cb4-9006-989af1263164',[FormName]='差旅费用报销',[ModuleId]=14,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.AjaxF_1683= {"MenuId":2900,"MEntId":1683,"EntName":"差旅费用报销","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":true,"EntMsg":{"E1683":{"EntId":1683,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
GetLinkCtrlData_AjaxF_1683_245(null,null);
GetLinkCtrlData_AjaxF_1683_247(null,null);
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_1683.EntMsg.E1683.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"行政_差旅费报销单","EntId":1683,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"出差编号":{"DtId":2,"DB":1,"CId":34,"FL":0},"出差人":{"DtId":2,"DB":1,"CId":4,"FL":-1},"员工编号":{"DtId":2,"DB":1,"CId":4,"FL":-1},"入职日期":{"DtId":3,"DB":1,"CId":4,"FL":-1},"所在部门":{"DtId":2,"DB":1,"CId":4,"FL":-1},"职务":{"DtId":2,"DB":1,"CId":4,"FL":-1},"出差地点":{"DtId":2,"DB":1,"CId":1,"FL":0},"出差事由":{"DtId":6,"DB":1,"CId":2,"FL":0},"出差起始日期":{"DtId":3,"DB":1,"CId":6,"FL":-1},"出差结束日期":{"DtId":3,"DB":1,"CId":6,"FL":-1},"总共天数":{"DtId":1,"DB":1,"CId":1,"FL":-1},"交通讯费":{"DtId":5,"DB":1,"CId":1,"FL":-1},"餐费":{"DtId":5,"DB":1,"CId":1,"FL":-1},"住宿费":{"DtId":5,"DB":1,"CId":1,"FL":-1},"通讯费":{"DtId":5,"DB":1,"CId":1,"FL":-1},"其他费":{"DtId":5,"DB":1,"CId":1,"FL":-1},"费用合计":{"DtId":2,"DB":1,"CId":1,"FL":0},"报销日期":{"DtId":3,"DB":1,"CId":4,"FL":-1},"部门审批意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"财务部审批意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"批准人":{"DtId":2,"DB":1,"CId":1,"FL":-1},"预支金额":{"DtId":5,"DB":1,"CId":1,"FL":-1},"应退或补金额":{"DtId":5,"DB":1,"CId":1,"FL":0}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_1683.EntMsg.E1683.GetDataRowModel=function()
{
    return {"出差编号":"","出差人":"","员工编号":"","入职日期":new Date(),"所在部门":"","职务":"","出差地点":"","出差事由":"","出差起始日期":new Date(),"出差结束日期":new Date(),"总共天数":-1,"交通讯费":"0","餐费":"0","住宿费":"0","通讯费":"0","其他费":"0","费用合计":"","报销日期":new Date(),"部门审批意见":"","财务部审批意见":"","批准人":"","预支金额":"0","应退或补金额":"0","Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_AjaxF_1683_238(obj,curFieldName){
 var EntId=1683;
 var FldId=3285;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''入职日期'';
 var $formContainer=DcxForm.GetHtmlContainer(1683,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1683,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"入职日期\",FldId:"+FldId+",EntId:1683,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1683,''AjaxF_'',''员工编号'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1683_入职日期");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1683_239(obj,curFieldName){
 var EntId=1683;
 var FldId=3287;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''职务'';
 var $formContainer=DcxForm.GetHtmlContainer(1683,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1683,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"职务\",FldId:"+FldId+",EntId:1683,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1683,''AjaxF_'',''员工编号'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1683_职务");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1683_240(obj,curFieldName){
 var EntId=1683;
 var FldId=3288;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''出差地点'';
 var $formContainer=DcxForm.GetHtmlContainer(1683,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1683,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"出差地点\",FldId:"+FldId+",EntId:1683,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:1,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''出差编号''==curFieldName)
  v_f1=DcxForm.GetBindingVCtrlValue($(obj));
else 
  v_f1=DcxForm.GetDdlValue(null,1683,''AjaxF_'',''出差编号'',34,$formContainer,false,false);
if(v_f1==null)
   v_f1='''';
 strData.data = strData.data + "{@出差编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1683_出差地点");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1683_241(obj,curFieldName){
 var EntId=1683;
 var FldId=3289;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''出差事由'';
 var $formContainer=DcxForm.GetHtmlContainer(1683,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1683,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"出差事由\",FldId:"+FldId+",EntId:1683,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:2,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''出差编号''==curFieldName)
  v_f1=DcxForm.GetBindingVCtrlValue($(obj));
else 
  v_f1=DcxForm.GetDdlValue(null,1683,''AjaxF_'',''出差编号'',34,$formContainer,false,false);
if(v_f1==null)
   v_f1='''';
 strData.data = strData.data + "{@出差编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1683_出差事由");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1683_242(obj,curFieldName){
 var EntId=1683;
 var FldId=3290;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''出差起始日期'';
 var $formContainer=DcxForm.GetHtmlContainer(1683,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1683,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"出差起始日期\",FldId:"+FldId+",EntId:1683,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:6,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''出差编号''==curFieldName)
  v_f1=DcxForm.GetBindingVCtrlValue($(obj));
else 
  v_f1=DcxForm.GetDdlValue(null,1683,''AjaxF_'',''出差编号'',34,$formContainer,false,false);
if(v_f1==null)
   v_f1='''';
 strData.data = strData.data + "{@出差编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1683_出差起始日期");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1683_243(obj,curFieldName){
 var EntId=1683;
 var FldId=3291;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''出差结束日期'';
 var $formContainer=DcxForm.GetHtmlContainer(1683,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1683,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"出差结束日期\",FldId:"+FldId+",EntId:1683,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:6,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''出差编号''==curFieldName)
  v_f1=DcxForm.GetBindingVCtrlValue($(obj));
else 
  v_f1=DcxForm.GetDdlValue(null,1683,''AjaxF_'',''出差编号'',34,$formContainer,false,false);
if(v_f1==null)
   v_f1='''';
 strData.data = strData.data + "{@出差编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1683_出差结束日期");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1683_244(obj,curFieldName){
 var EntId=1683;
 var FldId=3292;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''总共天数'';
 var $formContainer=DcxForm.GetHtmlContainer(1683,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1683,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"总共天数\",FldId:"+FldId+",EntId:1683,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:1,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''出差编号''==curFieldName)
  v_f1=DcxForm.GetBindingVCtrlValue($(obj));
else 
  v_f1=DcxForm.GetDdlValue(null,1683,''AjaxF_'',''出差编号'',34,$formContainer,false,false);
if(v_f1==null)
   v_f1='''';
 strData.data = strData.data + "{@出差编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1683_总共天数");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1683_245(obj,curFieldName){
 var EntId=1683;
 var FldId=3298;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''费用合计'';
 var $formContainer=DcxForm.GetHtmlContainer(1683,''AjaxF_'');
 var $ddlContainer=null;
var strCode="{@交通讯费}+{@餐费}+{@住宿费}+{@通讯费}+{@其他费}" ;
var v_f1=null;
if(''交通讯费''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,1683,''AjaxF_'',''交通讯费'',$formContainer);
if(v_f1==null)
   return;
v_f1 = v_f1.replaceAll('','','''');
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0.00";
strCode=strCode.replaceAll("{@交通讯费}",v_f1);
var v_f1=null;
if(''餐费''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,1683,''AjaxF_'',''餐费'',$formContainer);
if(v_f1==null)
   return;
v_f1 = v_f1.replaceAll('','','''');
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0.00";
strCode=strCode.replaceAll("{@餐费}",v_f1);
var v_f1=null;
if(''住宿费''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,1683,''AjaxF_'',''住宿费'',$formContainer);
if(v_f1==null)
   return;
v_f1 = v_f1.replaceAll('','','''');
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0.00";
strCode=strCode.replaceAll("{@住宿费}",v_f1);
var v_f1=null;
if(''通讯费''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,1683,''AjaxF_'',''通讯费'',$formContainer);
if(v_f1==null)
   return;
v_f1 = v_f1.replaceAll('','','''');
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0.00";
strCode=strCode.replaceAll("{@通讯费}",v_f1);
var v_f1=null;
if(''其他费''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,1683,''AjaxF_'',''其他费'',$formContainer);
if(v_f1==null)
   return;
v_f1 = v_f1.replaceAll('','','''');
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0.00";
strCode=strCode.replaceAll("{@其他费}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d1683_费用合计");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
function GetLinkCtrlData_AjaxF_1683_246(obj,curFieldName){
 var EntId=1683;
 var FldId=3303;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''预支金额'';
 var $formContainer=DcxForm.GetHtmlContainer(1683,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1683,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"预支金额\",FldId:"+FldId+",EntId:1683,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:1,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''出差编号''==curFieldName)
  v_f1=DcxForm.GetBindingVCtrlValue($(obj));
else 
  v_f1=DcxForm.GetDdlValue(null,1683,''AjaxF_'',''出差编号'',34,$formContainer,false,false);
if(v_f1==null)
   v_f1='''';
 strData.data = strData.data + "{@出差编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1683_预支金额");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1683_247(obj,curFieldName){
 var EntId=1683;
 var FldId=3304;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''应退或补金额'';
 var $formContainer=DcxForm.GetHtmlContainer(1683,''AjaxF_'');
 var $ddlContainer=null;
var strCode="{@预支金额}-{@费用合计}" ;
var v_f1=null;
if(''预支金额''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,1683,''AjaxF_'',''预支金额'',$formContainer);
if(v_f1==null)
   return;
v_f1 = v_f1.replaceAll('','','''');
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0.00";
strCode=strCode.replaceAll("{@预支金额}",v_f1);
var v_f1=null;
if(''费用合计''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,1683,''AjaxF_'',''费用合计'',$formContainer);
if(v_f1==null)
   return;
strCode=strCode.replaceAll("{@费用合计}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal)||isNaN(myVal))
myVal = 0.00;
myVal =Dcx.ConvertMoney(myVal);
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d1683_应退或补金额");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_1683.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1683,''AjaxF_'',buildNew,closeDlg);

}',[LoadingSql]='<$1683$>select [出差编号],[出差人],[员工编号],[入职日期],[所在部门],[职务],[出差地点],[出差事由],[出差起始日期],[出差结束日期],[总共天数],[交通讯费],[餐费],[住宿费],[通讯费],[其他费],[费用合计],[预支金额],[应退或补金额],[部门审批意见],[财务部审批意见],[报销日期],[批准人],[LD_Id] from 行政_差旅费报销单 where [LD_Id]=''{$keyfieldvalue}''</$1683$>',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='1683*LD_Id*2**2*行政_差旅费报销单*差旅费用报销',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 7:02:48',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-30 7:39:37',[AccountId]=1 where  [EntId]=1683 
      end




--Dcx_AjaxFormField_Run
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='a9b19017-4fd1-11b5-16db-23897c4bd930'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3282,'a9b19017-4fd1-11b5-16db-23897c4bd930',1683,1683,'00000000-0000-0000-0000-000000000000','出差编号',2,2,11,'Select top 1 [出差编号]  from  行政_出差申请单   Where  出差人=''{$UserName}'' order by LD_Id desc',2,2,1,0,34,1,1,1,-1,0,0,'','','','{$UserName},','<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="1683" groupid="176" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="1032" class="li-area-title" scroll="no" style="width: 111px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">差旅费用报销</span></div>
</li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="177" entid="1683" class="ul-mform" ctrlprex="AjaxF_" isrple="1">
<li areaid="1033" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3282" istitle="1">相关出差</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<div id="d1683_出差编号" class="form-ddl" style="-width:231px;" CBack=1  IsForField=1 EntId="1683" FId="3282" Vtp="2" RId="2" Isc="1" CId="34" FieldName="出差编号" ><input  id="d1683_出差编号_Text" type="text" class="form-ddl-txt" readonly="readOnly"  CId="34" FId="3282" Vtp="2"  RId="2" Isc="1"  style="width:201px;" onclick ="javascript:DcxDdl.ShowDialogAf(this,1683,''出差编号'',false);" onchange ="javascript:GetLinkCtrlData_AjaxF_1683_240(this,''出差编号'');GetLinkCtrlData_AjaxF_1683_241(this,''出差编号'');GetLinkCtrlData_AjaxF_1683_242(this,''出差编号'');GetLinkCtrlData_AjaxF_1683_243(this,''出差编号'');GetLinkCtrlData_AjaxF_1683_244(this,''出差编号'');GetLinkCtrlData_AjaxF_1683_246(this,''出差编号'');if(!DcxVld.Validate(this,1683,''AjaxF_'',1683,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1683,''AjaxF_'',1683);" onkeyup ="javascript:DcxDdl.ShowDialogAf(this,1683,''出差编号'',true);" CBack=1  value="','" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d1683_出差编号_hid" type="hidden"  EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="出差编号" dType="2" Vtp="2" RDT="2" Isc="1" RId="2" CId="34" FId="3282" vlk=0    value="','"/>',-1,-1,-1,-1,0,'1683,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3282,[Form_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='出差编号',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=11,[DefaultValue]='Select top 1 [出差编号]  from  行政_出差申请单   Where  出差人=''{$UserName}'' order by LD_Id desc',[ValueType]=2,[RunValueType]=2,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=34,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$UserName},',[BeforeHtml]='<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="1683" groupid="176" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="1032" class="li-area-title" scroll="no" style="width: 111px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">差旅费用报销</span></div>
</li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="177" entid="1683" class="ul-mform" ctrlprex="AjaxF_" isrple="1">
<li areaid="1033" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3282" istitle="1">相关出差</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d1683_出差编号" class="form-ddl" style="-width:231px;" CBack=1  IsForField=1 EntId="1683" FId="3282" Vtp="2" RId="2" Isc="1" CId="34" FieldName="出差编号" ><input  id="d1683_出差编号_Text" type="text" class="form-ddl-txt" readonly="readOnly"  CId="34" FId="3282" Vtp="2"  RId="2" Isc="1"  style="width:201px;" onclick ="javascript:DcxDdl.ShowDialogAf(this,1683,''出差编号'',false);" onchange ="javascript:GetLinkCtrlData_AjaxF_1683_240(this,''出差编号'');GetLinkCtrlData_AjaxF_1683_241(this,''出差编号'');GetLinkCtrlData_AjaxF_1683_242(this,''出差编号'');GetLinkCtrlData_AjaxF_1683_243(this,''出差编号'');GetLinkCtrlData_AjaxF_1683_244(this,''出差编号'');GetLinkCtrlData_AjaxF_1683_246(this,''出差编号'');if(!DcxVld.Validate(this,1683,''AjaxF_'',1683,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1683,''AjaxF_'',1683);" onkeyup ="javascript:DcxDdl.ShowDialogAf(this,1683,''出差编号'',true);" CBack=1  value="',[CtrlbackHtml]='" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d1683_出差编号_hid" type="hidden"  EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="出差编号" dType="2" Vtp="2" RDT="2" Isc="1" RId="2" CId="34" FId="3282" vlk=0    value="',[CtrlLastHtml]='"/>',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1683,' where  [FldUId]='a9b19017-4fd1-11b5-16db-23897c4bd930' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='80c15b9d-6119-39ca-069f-e71198245668'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3283,'80c15b9d-6119-39ca-069f-e71198245668',1683,1683,'00000000-0000-0000-0000-000000000000','出差人',2,2,12,'{$UserName}',0,9,null,0,4,1,0,2,-1,0,0,'','','','{$UserName},','</span>
</div>
</li>
<li areaid="1034" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3283" istitle="1">出差人 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d1683_出差人" class="form-lbl" style="width:201px;" IsForField=1 EntId="1683" CId="4" FId="3283" Vtp="0"  >','</span><input id="d1683_出差人_hid" type="hidden"  EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="出差人" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="3283" vlk=0    value="','" />',-1,-1,-1,-1,0,'1683,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3283,[Form_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='出差人',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=12,[DefaultValue]='{$UserName}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=2,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$UserName},',[BeforeHtml]='</span>
</div>
</li>
<li areaid="1034" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3283" istitle="1">出差人 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1683_出差人" class="form-lbl" style="width:201px;" IsForField=1 EntId="1683" CId="4" FId="3283" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d1683_出差人_hid" type="hidden"  EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="出差人" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="3283" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1683,' where  [FldUId]='80c15b9d-6119-39ca-069f-e71198245668' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='9112bdf3-fada-9e56-6900-2666417a5e18'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3284,'9112bdf3-fada-9e56-6900-2666417a5e18',1683,1683,'00000000-0000-0000-0000-000000000000','员工编号',2,2,13,'{$staffNO}',0,9,null,0,4,1,0,3,-1,0,0,'','','','{$staffNO},','</span>
</div>
</li>
<li areaid="1035" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3284">员工编号  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d1683_员工编号" class="form-lbl" style="width:201px;" IsForField=1 EntId="1683" CId="4" FId="3284" Vtp="0"  CBack=1  >','</span><input id="d1683_员工编号_hid" type="hidden"  EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="员工编号" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="3284" vlk=0    value="','" />',-1,-1,-1,-1,0,'1683,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3284,[Form_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='员工编号',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=13,[DefaultValue]='{$staffNO}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=3,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$staffNO},',[BeforeHtml]='</span>
</div>
</li>
<li areaid="1035" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3284">员工编号  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1683_员工编号" class="form-lbl" style="width:201px;" IsForField=1 EntId="1683" CId="4" FId="3284" Vtp="0"  CBack=1  >',[CtrlbackHtml]='</span><input id="d1683_员工编号_hid" type="hidden"  EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="员工编号" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="3284" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1683,' where  [FldUId]='9112bdf3-fada-9e56-6900-2666417a5e18' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='85a6d2b2-e643-07c3-5e1e-0b17fc82ec80'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3285,'85a6d2b2-e643-07c3-5e1e-0b17fc82ec80',1683,1683,'00000000-0000-0000-0000-000000000000','入职日期',3,3,14,'Select  [Dcx_Employee].EntryDate  from  [Dcx_Employee] where [EmployeeCode] =''{@员工编号}''',2,9,null,0,4,1,0,4,-1,0,0,'','','员工编号,','','</span>
  </div>
</li>
<li areaid="1036" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3285">入职日期  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d1683_入职日期" class="form-lbl" style="width:201px;" IsForField=1 EntId="1683" CId="4" FId="3285" Vtp="2"  >','</span><input id="d1683_入职日期_hid" type="hidden"  EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="入职日期" dType="3" Vtp="2" RDT="3" Isc="0" RId="9" CId="4" FId="3285" vlk=0    value="','" />',-1,-1,-1,-1,0,'1683,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3285,[Form_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='入职日期',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=14,[DefaultValue]='Select  [Dcx_Employee].EntryDate  from  [Dcx_Employee] where [EmployeeCode] =''{@员工编号}''',[ValueType]=2,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=4,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='员工编号,',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1036" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3285">入职日期  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1683_入职日期" class="form-lbl" style="width:201px;" IsForField=1 EntId="1683" CId="4" FId="3285" Vtp="2"  >',[CtrlbackHtml]='</span><input id="d1683_入职日期_hid" type="hidden"  EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="入职日期" dType="3" Vtp="2" RDT="3" Isc="0" RId="9" CId="4" FId="3285" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1683,' where  [FldUId]='85a6d2b2-e643-07c3-5e1e-0b17fc82ec80' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='8267d8c5-7790-63df-f13d-d8d4b34c78df'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3286,'8267d8c5-7790-63df-f13d-d8d4b34c78df',1683,1683,'00000000-0000-0000-0000-000000000000','所在部门',2,2,15,'{$deptname}',0,9,null,0,4,1,0,5,-1,0,0,'','','','{$deptname},','</span>
  </div>
</li>
<li areaid="1037" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3286">所在部门  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d1683_所在部门" class="form-lbl" style="width:201px;" IsForField=1 EntId="1683" CId="4" FId="3286" Vtp="0"  >','</span><input id="d1683_所在部门_hid" type="hidden"  EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="所在部门" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="3286" vlk=0    value="','" />',-1,-1,-1,-1,0,'1683,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3286,[Form_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='所在部门',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=15,[DefaultValue]='{$deptname}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=5,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$deptname},',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1037" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3286">所在部门  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1683_所在部门" class="form-lbl" style="width:201px;" IsForField=1 EntId="1683" CId="4" FId="3286" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d1683_所在部门_hid" type="hidden"  EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="所在部门" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="3286" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1683,' where  [FldUId]='8267d8c5-7790-63df-f13d-d8d4b34c78df' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='d57d194b-9248-1632-285a-229ab9edbda0'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3287,'d57d194b-9248-1632-285a-229ab9edbda0',1683,1683,'00000000-0000-0000-0000-000000000000','职务',2,2,16,'Select  [Dcx_Employee].[PositionName]  from  [Dcx_Employee] where [EmployeeCode] =''{@员工编号}''',2,9,null,0,4,1,0,6,-1,0,0,'','','员工编号,','','</span>
  </div>
</li>
<li areaid="1038" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3287">职务  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d1683_职务" class="form-lbl" style="width:201px;" IsForField=1 EntId="1683" CId="4" FId="3287" Vtp="2"  >','</span><input id="d1683_职务_hid" type="hidden"  EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="职务" dType="2" Vtp="2" RDT="2" Isc="0" RId="9" CId="4" FId="3287" vlk=0    value="','" />',-1,-1,-1,-1,0,'1683,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3287,[Form_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='职务',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=16,[DefaultValue]='Select  [Dcx_Employee].[PositionName]  from  [Dcx_Employee] where [EmployeeCode] =''{@员工编号}''',[ValueType]=2,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=6,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='员工编号,',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1038" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3287">职务  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1683_职务" class="form-lbl" style="width:201px;" IsForField=1 EntId="1683" CId="4" FId="3287" Vtp="2"  >',[CtrlbackHtml]='</span><input id="d1683_职务_hid" type="hidden"  EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="职务" dType="2" Vtp="2" RDT="2" Isc="0" RId="9" CId="4" FId="3287" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1683,' where  [FldUId]='d57d194b-9248-1632-285a-229ab9edbda0' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='3d560291-4738-213f-baac-1075d18b72f8'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3288,'3d560291-4738-213f-baac-1075d18b72f8',1683,1683,'00000000-0000-0000-0000-000000000000','出差地点',2,2,17,'Select  行政_出差申请单.[出差地点]  from  行政_出差申请单  Where   出差编号 Like ''{@出差编号}''',2,1,1,0,1,1,1,7,-1,0,0,'','','出差编号,','','</span>
  </div>
</li>
<li areaid="1039" style="height: 38px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3288">出差地点</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1683_出差地点"   type="text" class="form-txt"  style="width:615px;" onblur ="javascript:if(!DcxVld.Validate(this,1683,''AjaxF_'',1683,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1683,''AjaxF_'',1683);" EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="出差地点" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="1" FId="3288" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1683,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3288,[Form_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='出差地点',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=17,[DefaultValue]='Select  行政_出差申请单.[出差地点]  from  行政_出差申请单  Where   出差编号 Like ''{@出差编号}''',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=7,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='出差编号,',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1039" style="height: 38px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3288">出差地点</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1683_出差地点"   type="text" class="form-txt"  style="width:615px;" onblur ="javascript:if(!DcxVld.Validate(this,1683,''AjaxF_'',1683,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1683,''AjaxF_'',1683);" EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="出差地点" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="1" FId="3288" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1683,' where  [FldUId]='3d560291-4738-213f-baac-1075d18b72f8' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='88ae54c9-ef22-3dd6-6a29-461662407492'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3289,'88ae54c9-ef22-3dd6-6a29-461662407492',1683,1683,'00000000-0000-0000-0000-000000000000','出差事由',6,2,18,'Select  行政_出差申请单.[出差事由]  from  行政_出差申请单  Where   出差编号 Like ''{@出差编号}''',2,1,1,0,2,1,1,8,-1,0,0,'','','出差编号,','','</span>
  </div>
</li>
<li areaid="1040" style="height: 138px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3289">出差事由</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1683_出差事由" class="form-txts"  style="width:615px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1683,''AjaxF_'',1683,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1683,''AjaxF_'',1683);" EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="出差事由" dType="6" Vtp="2" RDT="2" Isc="1" RId="1" CId="2" FId="3289" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1683,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3289,[Form_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='出差事由',[FieldDataTypeId]=6,[RunDataTypeId]=2,[DBFieldId]=18,[DefaultValue]='Select  行政_出差申请单.[出差事由]  from  行政_出差申请单  Where   出差编号 Like ''{@出差编号}''',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=8,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='出差编号,',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1040" style="height: 138px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3289">出差事由</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1683_出差事由" class="form-txts"  style="width:615px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1683,''AjaxF_'',1683,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1683,''AjaxF_'',1683);" EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="出差事由" dType="6" Vtp="2" RDT="2" Isc="1" RId="1" CId="2" FId="3289" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1683,' where  [FldUId]='88ae54c9-ef22-3dd6-6a29-461662407492' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='26a17075-c841-3525-0f1a-a4725f92ba32'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3290,'26a17075-c841-3525-0f1a-a4725f92ba32',1683,1683,'00000000-0000-0000-0000-000000000000','出差起始日期',3,3,19,'Select  行政_出差申请单.[出差起始日期]  from  行政_出差申请单  Where   出差编号 Like ''{@出差编号}''',2,1,null,0,6,1,0,9,-1,0,0,'','','出差编号,','','</span>
  </div>
</li>
<li areaid="1041" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3290">出差起始时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<div class="form-ddl"><input  id="d1683_出差起始日期"   type="text" class="form-ddl-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1683,''AjaxF_'',1683,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1683,''AjaxF_'',1683);DcxDTime.ShowCalendar(this,true);" EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="出差起始日期" dType="3" Vtp="2" RDT="3" Isc="0" RId="1" CId="6" FId="3290" vlk=0    value="','"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>','',-1,-1,-1,-1,0,'1683,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3290,[Form_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='出差起始日期',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=19,[DefaultValue]='Select  行政_出差申请单.[出差起始日期]  from  行政_出差申请单  Where   出差编号 Like ''{@出差编号}''',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=6,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=9,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='出差编号,',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1041" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3290">出差起始时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-ddl"><input  id="d1683_出差起始日期"   type="text" class="form-ddl-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1683,''AjaxF_'',1683,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1683,''AjaxF_'',1683);DcxDTime.ShowCalendar(this,true);" EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="出差起始日期" dType="3" Vtp="2" RDT="3" Isc="0" RId="1" CId="6" FId="3290" vlk=0    value="',[CtrlbackHtml]='"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1683,' where  [FldUId]='26a17075-c841-3525-0f1a-a4725f92ba32' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='f7e63e68-b6da-5000-fb9d-8558a2a773c5'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3291,'f7e63e68-b6da-5000-fb9d-8558a2a773c5',1683,1683,'00000000-0000-0000-0000-000000000000','出差结束日期',3,3,20,'Select  行政_出差申请单.[出差结束日期]  from  行政_出差申请单  Where   出差编号 Like ''{@出差编号}''',2,1,null,0,6,1,0,10,-1,0,0,'','','出差编号,','','</span>
  </div>
</li>
<li areaid="1042" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3291">出差结束时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<div class="form-ddl"><input  id="d1683_出差结束日期"   type="text" class="form-ddl-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1683,''AjaxF_'',1683,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1683,''AjaxF_'',1683);DcxDTime.ShowCalendar(this,true);" EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="出差结束日期" dType="3" Vtp="2" RDT="3" Isc="0" RId="1" CId="6" FId="3291" vlk=0    value="','"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>','',-1,-1,-1,-1,0,'1683,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3291,[Form_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='出差结束日期',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=20,[DefaultValue]='Select  行政_出差申请单.[出差结束日期]  from  行政_出差申请单  Where   出差编号 Like ''{@出差编号}''',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=6,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=10,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='出差编号,',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1042" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3291">出差结束时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-ddl"><input  id="d1683_出差结束日期"   type="text" class="form-ddl-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1683,''AjaxF_'',1683,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1683,''AjaxF_'',1683);DcxDTime.ShowCalendar(this,true);" EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="出差结束日期" dType="3" Vtp="2" RDT="3" Isc="0" RId="1" CId="6" FId="3291" vlk=0    value="',[CtrlbackHtml]='"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1683,' where  [FldUId]='f7e63e68-b6da-5000-fb9d-8558a2a773c5' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='bf9b994f-269a-1608-546a-2850ff1a65cf'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3292,'bf9b994f-269a-1608-546a-2850ff1a65cf',1683,1683,'00000000-0000-0000-0000-000000000000','总共天数',1,1,21,'Select  行政_出差申请单.[总共天数]  from  行政_出差申请单  Where   出差编号 Like ''{@出差编号}''',2,1,null,0,1,1,0,11,-1,0,0,'','','出差编号,','','</span>
  </div>
</li>
<li areaid="1043" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3292">总共天数  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1683_总共天数"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1683,''AjaxF_'',1683,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1683,''AjaxF_'',1683);" EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="总共天数" dType="1" Vtp="2" RDT="1" Isc="0" RId="1" CId="1" FId="3292" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1683,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3292,[Form_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='总共天数',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=21,[DefaultValue]='Select  行政_出差申请单.[总共天数]  from  行政_出差申请单  Where   出差编号 Like ''{@出差编号}''',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=11,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='出差编号,',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1043" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3292">总共天数  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1683_总共天数"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1683,''AjaxF_'',1683,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1683,''AjaxF_'',1683);" EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="总共天数" dType="1" Vtp="2" RDT="1" Isc="0" RId="1" CId="1" FId="3292" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1683,' where  [FldUId]='bf9b994f-269a-1608-546a-2850ff1a65cf' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='2ff47c71-6ee0-e1e5-91b4-98ce9ed6fe2a'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3293,'2ff47c71-6ee0-e1e5-91b4-98ce9ed6fe2a',1683,1683,'00000000-0000-0000-0000-000000000000','交通讯费',5,5,22,'0',5,1,null,0,1,1,0,12,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1044" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3293">交通讯费  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1683_交通讯费"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onchange ="javascript:GetLinkCtrlData_AjaxF_1683_245(this,''交通讯费'');" onblur ="javascript:if(!DcxVld.Validate(this,1683,''AjaxF_'',1683,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1683,''AjaxF_'',1683); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="交通讯费" dType="5" Vtp="5" RDT="5" Isc="0" RId="1" CId="1" FId="3293" vlk=0    CBack=1  value="','"/>','',-1,-1,-1,-1,0,'1683,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3293,[Form_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='交通讯费',[FieldDataTypeId]=5,[RunDataTypeId]=5,[DBFieldId]=22,[DefaultValue]='0',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=12,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1044" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3293">交通讯费  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1683_交通讯费"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onchange ="javascript:GetLinkCtrlData_AjaxF_1683_245(this,''交通讯费'');" onblur ="javascript:if(!DcxVld.Validate(this,1683,''AjaxF_'',1683,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1683,''AjaxF_'',1683); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="交通讯费" dType="5" Vtp="5" RDT="5" Isc="0" RId="1" CId="1" FId="3293" vlk=0    CBack=1  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1683,' where  [FldUId]='2ff47c71-6ee0-e1e5-91b4-98ce9ed6fe2a' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='ac6b57de-08e9-2fcf-fa2b-2e7dff5d399b'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3294,'ac6b57de-08e9-2fcf-fa2b-2e7dff5d399b',1683,1683,'00000000-0000-0000-0000-000000000000','餐费',5,5,23,'0',5,1,null,0,1,1,0,13,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1045" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3294">餐费  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1683_餐费"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onchange ="javascript:GetLinkCtrlData_AjaxF_1683_245(this,''餐费'');" onblur ="javascript:if(!DcxVld.Validate(this,1683,''AjaxF_'',1683,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1683,''AjaxF_'',1683); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="餐费" dType="5" Vtp="5" RDT="5" Isc="0" RId="1" CId="1" FId="3294" vlk=0    CBack=1  value="','"/>','',-1,-1,-1,-1,0,'1683,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3294,[Form_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='餐费',[FieldDataTypeId]=5,[RunDataTypeId]=5,[DBFieldId]=23,[DefaultValue]='0',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=13,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1045" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3294">餐费  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1683_餐费"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onchange ="javascript:GetLinkCtrlData_AjaxF_1683_245(this,''餐费'');" onblur ="javascript:if(!DcxVld.Validate(this,1683,''AjaxF_'',1683,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1683,''AjaxF_'',1683); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="餐费" dType="5" Vtp="5" RDT="5" Isc="0" RId="1" CId="1" FId="3294" vlk=0    CBack=1  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1683,' where  [FldUId]='ac6b57de-08e9-2fcf-fa2b-2e7dff5d399b' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='c1e30ce8-18bd-f1e9-dcbf-270140422a83'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3295,'c1e30ce8-18bd-f1e9-dcbf-270140422a83',1683,1683,'00000000-0000-0000-0000-000000000000','住宿费',5,5,24,'0',5,1,null,0,1,1,0,14,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1046" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3295">住宿费  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1683_住宿费"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onchange ="javascript:GetLinkCtrlData_AjaxF_1683_245(this,''住宿费'');" onblur ="javascript:if(!DcxVld.Validate(this,1683,''AjaxF_'',1683,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1683,''AjaxF_'',1683); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="住宿费" dType="5" Vtp="5" RDT="5" Isc="0" RId="1" CId="1" FId="3295" vlk=0    CBack=1  value="','"/>','',-1,-1,-1,-1,0,'1683,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3295,[Form_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='住宿费',[FieldDataTypeId]=5,[RunDataTypeId]=5,[DBFieldId]=24,[DefaultValue]='0',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=14,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1046" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3295">住宿费  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1683_住宿费"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onchange ="javascript:GetLinkCtrlData_AjaxF_1683_245(this,''住宿费'');" onblur ="javascript:if(!DcxVld.Validate(this,1683,''AjaxF_'',1683,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1683,''AjaxF_'',1683); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="住宿费" dType="5" Vtp="5" RDT="5" Isc="0" RId="1" CId="1" FId="3295" vlk=0    CBack=1  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1683,' where  [FldUId]='c1e30ce8-18bd-f1e9-dcbf-270140422a83' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='83eb168c-5478-da39-593c-4ce501c0055f'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3296,'83eb168c-5478-da39-593c-4ce501c0055f',1683,1683,'00000000-0000-0000-0000-000000000000','通讯费',5,5,25,'0',5,1,null,0,1,1,0,15,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1047" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3296">通讯费  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1683_通讯费"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onchange ="javascript:GetLinkCtrlData_AjaxF_1683_245(this,''通讯费'');" onblur ="javascript:if(!DcxVld.Validate(this,1683,''AjaxF_'',1683,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1683,''AjaxF_'',1683); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="通讯费" dType="5" Vtp="5" RDT="5" Isc="0" RId="1" CId="1" FId="3296" vlk=0    CBack=1  value="','"/>','',-1,-1,-1,-1,0,'1683,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3296,[Form_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='通讯费',[FieldDataTypeId]=5,[RunDataTypeId]=5,[DBFieldId]=25,[DefaultValue]='0',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=15,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1047" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3296">通讯费  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1683_通讯费"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onchange ="javascript:GetLinkCtrlData_AjaxF_1683_245(this,''通讯费'');" onblur ="javascript:if(!DcxVld.Validate(this,1683,''AjaxF_'',1683,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1683,''AjaxF_'',1683); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="通讯费" dType="5" Vtp="5" RDT="5" Isc="0" RId="1" CId="1" FId="3296" vlk=0    CBack=1  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1683,' where  [FldUId]='83eb168c-5478-da39-593c-4ce501c0055f' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='c8faa177-ed4e-7caa-c3fb-d6cc14b7b28a'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3297,'c8faa177-ed4e-7caa-c3fb-d6cc14b7b28a',1683,1683,'00000000-0000-0000-0000-000000000000','其他费',5,5,26,'0',5,1,null,0,1,1,0,16,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1048" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3297">其他费  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1683_其他费"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onchange ="javascript:GetLinkCtrlData_AjaxF_1683_245(this,''其他费'');" onblur ="javascript:if(!DcxVld.Validate(this,1683,''AjaxF_'',1683,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1683,''AjaxF_'',1683); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="其他费" dType="5" Vtp="5" RDT="5" Isc="0" RId="1" CId="1" FId="3297" vlk=0    CBack=1  value="','"/>','',-1,-1,-1,-1,0,'1683,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3297,[Form_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='其他费',[FieldDataTypeId]=5,[RunDataTypeId]=5,[DBFieldId]=26,[DefaultValue]='0',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=16,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1048" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3297">其他费  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1683_其他费"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onchange ="javascript:GetLinkCtrlData_AjaxF_1683_245(this,''其他费'');" onblur ="javascript:if(!DcxVld.Validate(this,1683,''AjaxF_'',1683,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1683,''AjaxF_'',1683); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="其他费" dType="5" Vtp="5" RDT="5" Isc="0" RId="1" CId="1" FId="3297" vlk=0    CBack=1  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1683,' where  [FldUId]='c8faa177-ed4e-7caa-c3fb-d6cc14b7b28a' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='8f579297-1a5e-1afa-2b05-bd981f859e32'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3298,'8f579297-1a5e-1afa-2b05-bd981f859e32',1683,1683,'00000000-0000-0000-0000-000000000000','费用合计',2,2,27,'',3,1,1,0,1,1,1,17,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1049" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3298">费用合计</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1683_费用合计"   type="text" class="form-txt"  style="width:201px;" onchange ="javascript:GetLinkCtrlData_AjaxF_1683_247(this,''费用合计'');" onblur ="javascript:if(!DcxVld.Validate(this,1683,''AjaxF_'',1683,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1683,''AjaxF_'',1683);" EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="费用合计" dType="2" Vtp="3" RDT="2" Isc="1" RId="1" CId="1" FId="3298" vlk=0    CBack=1  value="','"/>','',-1,-1,-1,-1,0,'1683,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3298,[Form_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='费用合计',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=27,[DefaultValue]='',[ValueType]=3,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=17,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1049" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3298">费用合计</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1683_费用合计"   type="text" class="form-txt"  style="width:201px;" onchange ="javascript:GetLinkCtrlData_AjaxF_1683_247(this,''费用合计'');" onblur ="javascript:if(!DcxVld.Validate(this,1683,''AjaxF_'',1683,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1683,''AjaxF_'',1683);" EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="费用合计" dType="2" Vtp="3" RDT="2" Isc="1" RId="1" CId="1" FId="3298" vlk=0    CBack=1  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1683,' where  [FldUId]='8f579297-1a5e-1afa-2b05-bd981f859e32' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='fa7e25f5-c48c-f706-a83c-752cc44bed7f'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3303,'fa7e25f5-c48c-f706-a83c-752cc44bed7f',1683,1683,'00000000-0000-0000-0000-000000000000','预支金额',5,5,33,'Select  行政_出差申请单.[申请出差费用]  from  行政_出差申请单  Where   出差编号 Like ''{@出差编号}''',2,1,null,0,1,1,0,18,-1,0,0,'','','出差编号,','','</span>
  </div>
</li>
<li areaid="1054" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3303">预支金额  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1683_预支金额"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onchange ="javascript:GetLinkCtrlData_AjaxF_1683_247(this,''预支金额'');" onblur ="javascript:if(!DcxVld.Validate(this,1683,''AjaxF_'',1683,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1683,''AjaxF_'',1683); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="预支金额" dType="5" Vtp="2" RDT="5" Isc="1" RId="1" CId="1" FId="3303" vlk=0    CBack=1  value="','"/>','',-1,-1,-1,-1,0,'1683,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3303,[Form_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='预支金额',[FieldDataTypeId]=5,[RunDataTypeId]=5,[DBFieldId]=33,[DefaultValue]='Select  行政_出差申请单.[申请出差费用]  from  行政_出差申请单  Where   出差编号 Like ''{@出差编号}''',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=18,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='出差编号,',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1054" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3303">预支金额  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1683_预支金额"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onchange ="javascript:GetLinkCtrlData_AjaxF_1683_247(this,''预支金额'');" onblur ="javascript:if(!DcxVld.Validate(this,1683,''AjaxF_'',1683,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1683,''AjaxF_'',1683); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="预支金额" dType="5" Vtp="2" RDT="5" Isc="1" RId="1" CId="1" FId="3303" vlk=0    CBack=1  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1683,' where  [FldUId]='fa7e25f5-c48c-f706-a83c-752cc44bed7f' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='5127cac6-15a7-40ea-6e92-a6ab6e54e49e'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3304,'5127cac6-15a7-40ea-6e92-a6ab6e54e49e',1683,1683,'00000000-0000-0000-0000-000000000000','应退或补金额',5,5,34,'',3,1,1,0,1,1,1,19,-1,0,0,'','','','','</span>
  </div>
</li><li areaid="1055" style="height: 38px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3304">应退或补金额</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1683_应退或补金额"   type="text" class="form-txt"  style="width:600px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,1683,''AjaxF_'',1683,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1683,''AjaxF_'',1683); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="应退或补金额" dType="5" Vtp="3" RDT="5" Isc="1" RId="1" CId="1" FId="3304" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1683,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3304,[Form_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='应退或补金额',[FieldDataTypeId]=5,[RunDataTypeId]=5,[DBFieldId]=34,[DefaultValue]='',[ValueType]=3,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=19,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1055" style="height: 38px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3304">应退或补金额</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1683_应退或补金额"   type="text" class="form-txt"  style="width:600px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,1683,''AjaxF_'',1683,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1683,''AjaxF_'',1683); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="应退或补金额" dType="5" Vtp="3" RDT="5" Isc="1" RId="1" CId="1" FId="3304" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1683,' where  [FldUId]='5127cac6-15a7-40ea-6e92-a6ab6e54e49e' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='4b85d58d-60a9-d9f9-dd9b-5fa9f824df67'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3300,'4b85d58d-60a9-d9f9-dd9b-5fa9f824df67',1683,1683,'00000000-0000-0000-0000-000000000000','部门审批意见',2,2,30,'',5,1,null,0,2,1,0,20,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1051" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3300">部门审批意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1683_部门审批意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1683,''AjaxF_'',1683,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1683,''AjaxF_'',1683);" EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="部门审批意见" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="3300" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1683,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3300,[Form_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='部门审批意见',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=30,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=20,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1051" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3300">部门审批意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1683_部门审批意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1683,''AjaxF_'',1683,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1683,''AjaxF_'',1683);" EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="部门审批意见" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="3300" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1683,' where  [FldUId]='4b85d58d-60a9-d9f9-dd9b-5fa9f824df67' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='8a9e1b22-3bee-d098-0565-cb85fa8500c4'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3301,'8a9e1b22-3bee-d098-0565-cb85fa8500c4',1683,1683,'00000000-0000-0000-0000-000000000000','财务部审批意见',2,2,31,'',5,1,null,0,2,1,0,21,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1052" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3301">财务部审批意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1683_财务部审批意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1683,''AjaxF_'',1683,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1683,''AjaxF_'',1683);" EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="财务部审批意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="3301" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1683,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3301,[Form_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='财务部审批意见',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=31,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=21,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1052" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3301">财务部审批意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1683_财务部审批意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1683,''AjaxF_'',1683,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1683,''AjaxF_'',1683);" EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="财务部审批意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="3301" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1683,' where  [FldUId]='8a9e1b22-3bee-d098-0565-cb85fa8500c4' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='389f89cd-dd2c-eb2d-02e0-0d640b67b13d'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3299,'389f89cd-dd2c-eb2d-02e0-0d640b67b13d',1683,1683,'00000000-0000-0000-0000-000000000000','报销日期',3,3,28,'{$date}',0,9,null,0,4,1,0,22,-1,0,0,'','','','{$date},','</span>
  </div>
</li><li areaid="1050" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3299">报销日期  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d1683_报销日期" class="form-lbl" style="width:201px;" IsForField=1 EntId="1683" CId="4" FId="3299" Vtp="0"  >','</span><input id="d1683_报销日期_hid" type="hidden"  EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="报销日期" dType="3" Vtp="0" RDT="3" Isc="0" RId="9" CId="4" FId="3299" vlk=0    value="','" />',-1,-1,-1,-1,0,'1683,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3299,[Form_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='报销日期',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=28,[DefaultValue]='{$date}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=22,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$date},',[BeforeHtml]='</span>
  </div>
</li><li areaid="1050" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3299">报销日期  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1683_报销日期" class="form-lbl" style="width:201px;" IsForField=1 EntId="1683" CId="4" FId="3299" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d1683_报销日期_hid" type="hidden"  EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="报销日期" dType="3" Vtp="0" RDT="3" Isc="0" RId="9" CId="4" FId="3299" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1683,' where  [FldUId]='389f89cd-dd2c-eb2d-02e0-0d640b67b13d' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='b65fff01-8319-b020-0b25-53e9b07b5d78'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3302,'b65fff01-8319-b020-0b25-53e9b07b5d78',1683,1683,'00000000-0000-0000-0000-000000000000','批准人',2,2,32,'',5,1,null,0,1,1,0,23,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1053" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3302">批准人  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','</span>
  </div>
</li>


</ul>
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="178" entid="1683" class="tab_ul" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="1056" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li areaid="1057" istab="1" tabid="2" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1" style="">
<ul isgroup="1" groupid="179" entid="1683" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="1058" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="180" entid="1683" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="1059" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="1683" groupid="181" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="1060" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
<li areaid="1061" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>','','','<input  id="d1683_批准人"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1683,''AjaxF_'',1683,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1683,''AjaxF_'',1683);" EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="批准人" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="3302" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1683,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3302,[Form_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='批准人',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=32,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=23,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1053" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3302">批准人  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
  </div>
</li>


</ul>
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="178" entid="1683" class="tab_ul" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="1056" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li areaid="1057" istab="1" tabid="2" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1" style="">
<ul isgroup="1" groupid="179" entid="1683" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="1058" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="180" entid="1683" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="1059" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="1683" groupid="181" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="1060" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
<li areaid="1061" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1683_批准人"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1683,''AjaxF_'',1683,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1683,''AjaxF_'',1683);" EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="批准人" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="3302" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1683,' where  [FldUId]='b65fff01-8319-b020-0b25-53e9b07b5d78' 
      end



Delete from [Dcx_SearchForm_Run]  where [EntId]=1683

--Dcx_SearchForm_Run
      if (select count(1) from [Dcx_SearchForm_Run] where  [EntId]=1683  )<1 
      begin 
           Insert into [Dcx_SearchForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('e59e22e3-0166-44e2-951b-2c7d5f232647','差旅费用报销',1683,9,'','',0,'<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>','','DcxRun.SearchF_1683= {"MenuId":2900,"MEntId":1683,"EntName":"差旅费用报销","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1683":{"EntId":1683,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_1683.EntMsg.E1683.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"行政_差旅费报销单","EntId":1683,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"出差人":{"DtId":2,"DB":1,"CId":1,"FL":100},"所在部门":{"DtId":2,"DB":1,"CId":3,"FL":100},"流程是否已结束":{"DtId":4,"DB":0,"CId":3,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.SearchF_1683.EntMsg.E1683.GetDataRowModel=function()
{
    return {"出差人":"","所在部门":"","流程是否已结束":false,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_1683.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1683,''SearchF_'',buildNew,closeDlg);

}','',20,'','','','1683*LD_Id*2**2*行政_差旅费报销单*差旅费用报销',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 5:45:57',3,'admin','2013-11-16 17:36:14',1)
      end
      else 
      begin 
           update [Dcx_SearchForm_Run] set [FormId]='e59e22e3-0166-44e2-951b-2c7d5f232647',[FormName]='差旅费用报销',[ModuleId]=9,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.SearchF_1683= {"MenuId":2900,"MEntId":1683,"EntName":"差旅费用报销","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1683":{"EntId":1683,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_1683.EntMsg.E1683.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"行政_差旅费报销单","EntId":1683,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"出差人":{"DtId":2,"DB":1,"CId":1,"FL":100},"所在部门":{"DtId":2,"DB":1,"CId":3,"FL":100},"流程是否已结束":{"DtId":4,"DB":0,"CId":3,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.SearchF_1683.EntMsg.E1683.GetDataRowModel=function()
{
    return {"出差人":"","所在部门":"","流程是否已结束":false,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_1683.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1683,''SearchF_'',buildNew,closeDlg);

}',[LoadingSql]='',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='1683*LD_Id*2**2*行政_差旅费报销单*差旅费用报销',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 5:45:57',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-16 17:36:14',[AccountId]=1 where  [EntId]=1683 
      end




--Dcx_SearchFormField_Run
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='2b0227d9-949f-4882-ad20-6ae00fc6fc81'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'2b0227d9-949f-4882-ad20-6ae00fc6fc81',1683,1683,'00000000-0000-0000-0000-000000000000',1,'Like','出差人',2,2,12,'',5,1,1,0,1,1,0,-1,1,0,'','','','','<div class="searchform">
<ul class="search-block w920" entid="1683" isgroup="1" groupid="27" ctrlprex="SearchF_" isrple="1">
<li style="position: static;" class="search-li w240 h32" scroll="no" areaid="105"><label class="search-title pad7" fldid="1" istitle="1">出差人</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">','','','','<input  id="d1683_出差人"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1683,''SearchF_'',1683,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1683,''SearchF_'',1683);" EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="出差人" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'1683,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=1,[Form_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[CompareOperatorType]='Like',[FieldName]='出差人',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=12,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="searchform">
<ul class="search-block w920" entid="1683" isgroup="1" groupid="27" ctrlprex="SearchF_" isrple="1">
<li style="position: static;" class="search-li w240 h32" scroll="no" areaid="105"><label class="search-title pad7" fldid="1" istitle="1">出差人</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1683_出差人"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1683,''SearchF_'',1683,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1683,''SearchF_'',1683);" EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="出差人" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1683,' where  [FldUId]='2b0227d9-949f-4882-ad20-6ae00fc6fc81' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='0fdb7c58-d743-4903-9a5b-9198426a9dbd'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'0fdb7c58-d743-4903-9a5b-9198426a9dbd',1683,1683,'00000000-0000-0000-0000-000000000000',2,'Like','所在部门',2,2,15,'select '''' union SELECT [DeptName] FROM [Dcx_Dept]',2,1,1,0,3,1,0,-1,1,0,'','','','','</span> </div></li>
<li style="position: static;" class="search-li w240 h32" scroll="no" areaid="106"><label class="search-title pad7" fldid="2" istitle="1">所在部门</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">','','','','<select id="d1683_所在部门" name="d1683_所在部门" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1683,''SearchF_'',1683,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1683,''SearchF_'',1683);" EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="所在部门" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="3" FId="2" vlk=0    Cpre="Like"  style="width:150px;">','</select>','',1,-1,-1,-1,-1,0,'1683,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=2,[Form_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[CompareOperatorType]='Like',[FieldName]='所在部门',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=15,[DefaultValue]='select '''' union SELECT [DeptName] FROM [Dcx_Dept]',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="position: static;" class="search-li w240 h32" scroll="no" areaid="106"><label class="search-title pad7" fldid="2" istitle="1">所在部门</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1683_所在部门" name="d1683_所在部门" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1683,''SearchF_'',1683,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1683,''SearchF_'',1683);" EntId="1683" IsField=1 DBField=1 IsPost=1 FieldName="所在部门" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="3" FId="2" vlk=0    Cpre="Like"  style="width:150px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1683,' where  [FldUId]='0fdb7c58-d743-4903-9a5b-9198426a9dbd' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='8cf642d5-4e30-4f36-bd60-5fd132db8d27'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'8cf642d5-4e30-4f36-bd60-5fd132db8d27',1683,1683,'00000000-0000-0000-0000-000000000000',3,'=','流程是否已结束',4,4,-1,'',1,1,1,0,3,1,0,-1,1,0,'','','','','</span> </div></li>
<li style="position: static;" class="search-li w270 h32" scroll="no" areaid="107"><label class="search-title pad7" fldid="3" istitle="1">流程已结束</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">','</span> </div></li>
<li style="position: static;" class="search-li w100 h32" scroll="no" areaid="108">
<div class="searchform-button" onclick="javascript:return VL_Search(1683);">
<div class="search-btn">&nbsp;</div><a id="1683_searchBT" href="javascript:void(0);">搜索</a> </div></li></ul></div>','','','<select id="d1683_流程是否已结束" name="d1683_流程是否已结束" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1683,''SearchF_'',1683,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1683,''SearchF_'',1683);" EntId="1683" IsField=1 DBField=0 IsPost=1 FieldName="流程是否已结束" dType="4" Vtp="1" RDT="4" Isc="1" RId="1" CId="3" FId="3" vlk=0    Cpre="="  style="width:150px;">','<option  value="False"  >否</option>
<option  value="True"  >是</option>
</select>','',1,-1,-1,-1,-1,0,'1683,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=3,[Form_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[CompareOperatorType]='=',[FieldName]='流程是否已结束',[FieldDataTypeId]=4,[RunDataTypeId]=4,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=1,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="position: static;" class="search-li w270 h32" scroll="no" areaid="107"><label class="search-title pad7" fldid="3" istitle="1">流程已结束</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">',[LastHtml]='</span> </div></li>
<li style="position: static;" class="search-li w100 h32" scroll="no" areaid="108">
<div class="searchform-button" onclick="javascript:return VL_Search(1683);">
<div class="search-btn">&nbsp;</div><a id="1683_searchBT" href="javascript:void(0);">搜索</a> </div></li></ul></div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1683_流程是否已结束" name="d1683_流程是否已结束" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1683,''SearchF_'',1683,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1683,''SearchF_'',1683);" EntId="1683" IsField=1 DBField=0 IsPost=1 FieldName="流程是否已结束" dType="4" Vtp="1" RDT="4" Isc="1" RId="1" CId="3" FId="3" vlk=0    Cpre="="  style="width:150px;">',[CtrlbackHtml]='<option  value="False"  >否</option>
<option  value="True"  >是</option>
</select>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1683,' where  [FldUId]='8cf642d5-4e30-4f36-bd60-5fd132db8d27' 
      end



Delete from [Dcx_BrowseReport_Run]  where [EntId]=1683

--Dcx_BrowseReport_Run
      if (select count(1) from [Dcx_BrowseReport_Run] where  [EntId]=1683  )<1 
      begin 
           Insert into [Dcx_BrowseReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[DIYJsCss],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('40a38a00-43fb-4f00-bd2a-dc3147276647','差旅费用报销',1683,31,'','<$1683$>select [WFState],[WFUserName],[出差人],[所在部门],[职务],[交通讯费],[餐费],[住宿费],[通讯费],[其他费],[费用合计],[报销日期],[所在部门编号],[LD_Id] from 行政_差旅费报销单 where [LD_Id]=''{$keyfieldvalue}''</$1683$>',1,1,20,'','DcxRun.MChildR_1683= {"MenuId":2900,"MEntId":1683,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"差旅费用报销","EntMsg":{"E1683":{"EntId":1683,"EntName":"差旅费用报销","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":88,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1683*LD_Id*2**2*行政_差旅费报销单*差旅费用报销',3,'','2012-12-21 11:03:02',3,'','2013-11-17 2:53:50',1)
      end
      else 
      begin 
           update [Dcx_BrowseReport_Run] set [ReportId]='40a38a00-43fb-4f00-bd2a-dc3147276647',[ReportName]='差旅费用报销',[ModuleId]=31,[StaticHtml]='',[LoadingSql]='<$1683$>select [WFState],[WFUserName],[出差人],[所在部门],[职务],[交通讯费],[餐费],[住宿费],[通讯费],[其他费],[费用合计],[报销日期],[所在部门编号],[LD_Id] from 行政_差旅费报销单 where [LD_Id]=''{$keyfieldvalue}''</$1683$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[DIYJsCss]='',[AutoPublicJs]='DcxRun.MChildR_1683= {"MenuId":2900,"MEntId":1683,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"差旅费用报销","EntMsg":{"E1683":{"EntId":1683,"EntName":"差旅费用报销","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":88,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1683*LD_Id*2**2*行政_差旅费报销单*差旅费用报销',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-21 11:03:02',[EditorId]=3,[Editor]='',[EditTime]='2013-11-17 2:53:50',[AccountId]=1 where  [EntId]=1683 
      end




--Dcx_BrowseReportField_Run
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='7776b0fb-7a98-4ced-af3c-f7f5cd40f3b8'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'7776b0fb-7a98-4ced-af3c-f7f5cd40f3b8',1683,1683,'00000000-0000-0000-0000-000000000000',2,'WFState',1,1,'varchar',2,1,0,'','','','<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1683" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="573" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">差旅费用报销</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1683" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="574" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">当前状态  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1683" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1683,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=1,[Report_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='WFState',[FieldNO]=1,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1683" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="573" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">差旅费用报销</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1683" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="574" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">当前状态  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1683" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1683,' where  [FldUId]='7776b0fb-7a98-4ced-af3c-f7f5cd40f3b8' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='ba96ff6f-4cdd-41e1-a610-49c329d78853'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'ba96ff6f-4cdd-41e1-a610-49c329d78853',1683,1683,'00000000-0000-0000-0000-000000000000',3,'WFUserName',2,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="575" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">当前办理人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1683" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1683,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=2,[Report_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='WFUserName',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="575" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">当前办理人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1683" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1683,' where  [FldUId]='ba96ff6f-4cdd-41e1-a610-49c329d78853' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='2779c510-0150-4852-a108-728170b13e1d'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'2779c510-0150-4852-a108-728170b13e1d',1683,1683,'00000000-0000-0000-0000-000000000000',12,'出差人',3,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="576" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">出差人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1683" fieldname="出差人" fldid="3" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1683,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=3,[Report_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=12,[FieldName]='出差人',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="576" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">出差人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1683" fieldname="出差人" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1683,' where  [FldUId]='2779c510-0150-4852-a108-728170b13e1d' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='6a92f486-bbdc-4df7-8c76-24a69b1abc62'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'6a92f486-bbdc-4df7-8c76-24a69b1abc62',1683,1683,'00000000-0000-0000-0000-000000000000',15,'所在部门',4,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="577" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">所在部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1683" fieldname="所在部门" fldid="4" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1683,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=4,[Report_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=15,[FieldName]='所在部门',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="577" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">所在部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1683" fieldname="所在部门" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1683,' where  [FldUId]='6a92f486-bbdc-4df7-8c76-24a69b1abc62' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='273e0b51-f175-44a7-a377-08bdc6734684'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'273e0b51-f175-44a7-a377-08bdc6734684',1683,1683,'00000000-0000-0000-0000-000000000000',16,'职务',5,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="578" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">职务  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1683" fieldname="职务" fldid="5" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1683,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=5,[Report_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=16,[FieldName]='职务',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="578" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">职务  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1683" fieldname="职务" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1683,' where  [FldUId]='273e0b51-f175-44a7-a377-08bdc6734684' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='207ee23f-d781-413c-b666-ebaee8dc225f'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'207ee23f-d781-413c-b666-ebaee8dc225f',1683,1683,'00000000-0000-0000-0000-000000000000',22,'交通讯费',6,3,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="579" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">交通讯费  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1683" fieldname="交通讯费" fldid="6" columntypeid="3" class="form-ctr">￥','',-1,-1,-1,-1,0,'1683,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=6,[Report_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=22,[FieldName]='交通讯费',[FieldNO]=6,[ColumnTypeId]=3,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="579" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">交通讯费  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1683" fieldname="交通讯费" fldid="6" columntypeid="3" class="form-ctr">￥',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1683,' where  [FldUId]='207ee23f-d781-413c-b666-ebaee8dc225f' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='50baba48-3055-4835-a46d-f32d0a258309'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'50baba48-3055-4835-a46d-f32d0a258309',1683,1683,'00000000-0000-0000-0000-000000000000',23,'餐费',7,3,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="580" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">餐费  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1683" fieldname="餐费" fldid="7" columntypeid="3" class="form-ctr">￥','',-1,-1,-1,-1,0,'1683,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=7,[Report_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=23,[FieldName]='餐费',[FieldNO]=7,[ColumnTypeId]=3,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="580" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">餐费  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1683" fieldname="餐费" fldid="7" columntypeid="3" class="form-ctr">￥',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1683,' where  [FldUId]='50baba48-3055-4835-a46d-f32d0a258309' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='05165bd4-e29b-4a23-9fe4-78fd2e35d45e'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'05165bd4-e29b-4a23-9fe4-78fd2e35d45e',1683,1683,'00000000-0000-0000-0000-000000000000',24,'住宿费',8,3,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="581" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="8">住宿费  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1683" fieldname="住宿费" fldid="8" columntypeid="3" class="form-ctr">￥','',-1,-1,-1,-1,0,'1683,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=8,[Report_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=24,[FieldName]='住宿费',[FieldNO]=8,[ColumnTypeId]=3,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="581" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="8">住宿费  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1683" fieldname="住宿费" fldid="8" columntypeid="3" class="form-ctr">￥',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1683,' where  [FldUId]='05165bd4-e29b-4a23-9fe4-78fd2e35d45e' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='5d897611-7d0c-4a64-af18-3f9423cae40d'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'5d897611-7d0c-4a64-af18-3f9423cae40d',1683,1683,'00000000-0000-0000-0000-000000000000',25,'通讯费',9,3,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="582" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="9">通讯费  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1683" fieldname="通讯费" fldid="9" columntypeid="3" class="form-ctr">￥','',-1,-1,-1,-1,0,'1683,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=9,[Report_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=25,[FieldName]='通讯费',[FieldNO]=9,[ColumnTypeId]=3,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="582" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="9">通讯费  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1683" fieldname="通讯费" fldid="9" columntypeid="3" class="form-ctr">￥',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1683,' where  [FldUId]='5d897611-7d0c-4a64-af18-3f9423cae40d' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='a02f8f1b-c4dd-4ecc-8602-fb37b1aba3c9'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'a02f8f1b-c4dd-4ecc-8602-fb37b1aba3c9',1683,1683,'00000000-0000-0000-0000-000000000000',26,'其他费',10,3,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="583" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="10">其他费  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1683" fieldname="其他费" fldid="10" columntypeid="3" class="form-ctr">￥','',-1,-1,-1,-1,0,'1683,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=10,[Report_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=26,[FieldName]='其他费',[FieldNO]=10,[ColumnTypeId]=3,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="583" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="10">其他费  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1683" fieldname="其他费" fldid="10" columntypeid="3" class="form-ctr">￥',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1683,' where  [FldUId]='a02f8f1b-c4dd-4ecc-8602-fb37b1aba3c9' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='fbd1e395-782e-4bd4-b39b-b89603f8b2e8'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'fbd1e395-782e-4bd4-b39b-b89603f8b2e8',1683,1683,'00000000-0000-0000-0000-000000000000',27,'费用合计',11,3,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="584" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="11">费用合计  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1683" fieldname="费用合计" fldid="11" columntypeid="3" class="form-ctr">￥','',-1,-1,-1,-1,0,'1683,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=11,[Report_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=27,[FieldName]='费用合计',[FieldNO]=11,[ColumnTypeId]=3,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="584" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="11">费用合计  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1683" fieldname="费用合计" fldid="11" columntypeid="3" class="form-ctr">￥',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1683,' where  [FldUId]='fbd1e395-782e-4bd4-b39b-b89603f8b2e8' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='91878ba0-b7fd-43f6-b188-c548b66c7206'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(12,'91878ba0-b7fd-43f6-b188-c548b66c7206',1683,1683,'00000000-0000-0000-0000-000000000000',28,'报销日期',12,4,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="585" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="12">报销日期  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1683" fieldname="报销日期" fldid="12" columntypeid="4" class="form-ctr">','',-1,-1,-1,-1,0,'1683,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=12,[Report_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=28,[FieldName]='报销日期',[FieldNO]=12,[ColumnTypeId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="585" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="12">报销日期  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1683" fieldname="报销日期" fldid="12" columntypeid="4" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1683,' where  [FldUId]='91878ba0-b7fd-43f6-b188-c548b66c7206' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='5beef777-8538-4a9a-bd21-a83d45db348b'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(13,'5beef777-8538-4a9a-bd21-a83d45db348b',1683,1683,'00000000-0000-0000-0000-000000000000',29,'所在部门编号',13,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="586" style="height: 38px; width: 792px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="13">所在部门编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1683" fieldname="所在部门编号" fldid="13" columntypeid="1" class="form-ctr">','</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1683" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="591" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="592" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1683" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="593" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1683" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="594" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1683" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="595" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="596" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',-1,-1,-1,-1,0,'1683,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=13,[Report_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=29,[FieldName]='所在部门编号',[FieldNO]=13,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="586" style="height: 38px; width: 792px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="13">所在部门编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1683" fieldname="所在部门编号" fldid="13" columntypeid="1" class="form-ctr">',[LastHtml]='</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1683" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="591" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="592" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1683" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="593" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1683" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="594" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1683" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="595" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="596" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1683,' where  [FldUId]='5beef777-8538-4a9a-bd21-a83d45db348b' 
      end



Delete from [Dcx_ListReport_Run]  where [EntId]=1683

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=1683  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('84ed6c85-f75e-42f6-8d64-1cf87b737ff9','差旅费用报销',1683,1,'','','<$1683$>select *  from (select row_number() over( order by [LD_Id])as dcx_rowid,[WFState],[WFFlowId],[WFRunId],[WFPrcsId],[WFUserName],[出差人],[所在部门],[职务],[交通讯费],[餐费],[住宿费],[通讯费],[其他费],[费用合计],[报销日期],[所在部门编号],[LD_Id] from 行政_差旅费报销单  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1683$><$1683:Count$>select count([LD_Id]) from 行政_差旅费报销单 where {$SearchArea}</$1683:Count$>',1,1,20,'DcxRun.ListR_1683= {"MenuId":2900,"MEntId":1683,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"差旅费用报销","EntMsg":{"E1683":{"EntId":1683,"EntName":"差旅费用报销","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":88,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1683*LD_Id*2**2*行政_差旅费报销单*差旅费用报销',3,'','2012-12-22 5:16:19',3,'','2013-11-16 20:07:02',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='84ed6c85-f75e-42f6-8d64-1cf87b737ff9',[ReportName]='差旅费用报销',[ModuleId]=1,[StaticHtml]='',[DIYJsCss]='',[LoadingSql]='<$1683$>select *  from (select row_number() over( order by [LD_Id])as dcx_rowid,[WFState],[WFFlowId],[WFRunId],[WFPrcsId],[WFUserName],[出差人],[所在部门],[职务],[交通讯费],[餐费],[住宿费],[通讯费],[其他费],[费用合计],[报销日期],[所在部门编号],[LD_Id] from 行政_差旅费报销单  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1683$><$1683:Count$>select count([LD_Id]) from 行政_差旅费报销单 where {$SearchArea}</$1683:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[AutoPublicJs]='DcxRun.ListR_1683= {"MenuId":2900,"MEntId":1683,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"差旅费用报销","EntMsg":{"E1683":{"EntId":1683,"EntName":"差旅费用报销","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":88,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1683*LD_Id*2**2*行政_差旅费报销单*差旅费用报销',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-22 5:16:19',[EditorId]=3,[Editor]='',[EditTime]='2013-11-16 20:07:02',[AccountId]=1 where  [EntId]=1683 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='3926b940-0448-bf45-7cbe-03595235bdb4'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(389,'3926b940-0448-bf45-7cbe-03595235bdb4',1683,1683,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="91" entid="1683" style="width: 1610px;" ctrlprex="ListR_" isrple="1"> <li areaid="1813" class="tool-li" style="position: static;">
</li><li areaid="1814" class="tool-li" style="position: static;"><a id="ListR_1683_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1683,''ListR_'');">删   除</a></li>
<li areaid="1815" class="tool-li" style="position: static;"><a id="ListR_1683_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1683,''ListR_'');">导   出</a></li>
<li areaid="1816" class="tool-li" style="position: static;"><a id="ListR_1683_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1683,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1683" style="position: static;">
<a id="ListR_1683_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1683,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1683_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1683,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1683_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1683,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1683_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="92" entid="1683" class="list-head-ul" style="width: 1670px;" ctrlprex="ListR_" isrple="1">
<li areaid="1818" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1683" onclick="javascript:DcxCom.CheckedAll(this,1683,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="1819" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">当前状态 </label></li><li areaid="1820" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">当前办理人 </label></li><li areaid="1821" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">出差人 </label></li><li areaid="1822" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">所在部门 </label></li><li areaid="1823" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">职务 </label></li><li areaid="1824" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">交通讯费 </label></li><li areaid="1825" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">餐费 </label></li><li areaid="1826" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">住宿费 </label></li><li areaid="1827" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">通讯费 </label></li><li areaid="1828" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">其他费 </label></li><li areaid="1829" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">费用合计 </label></li><li areaid="1830" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">报销日期 </label></li><li areaid="1831" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">所在部门编号 </label></li><li areaid="1832" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="办理"><span class="i">办理</span></a></div></li><li areaid="1833" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="1834" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">','',-1,93,-1,-1,1,'1683,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=389,[Report_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="91" entid="1683" style="width: 1610px;" ctrlprex="ListR_" isrple="1"> <li areaid="1813" class="tool-li" style="position: static;">
</li><li areaid="1814" class="tool-li" style="position: static;"><a id="ListR_1683_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1683,''ListR_'');">删   除</a></li>
<li areaid="1815" class="tool-li" style="position: static;"><a id="ListR_1683_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1683,''ListR_'');">导   出</a></li>
<li areaid="1816" class="tool-li" style="position: static;"><a id="ListR_1683_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1683,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1683" style="position: static;">
<a id="ListR_1683_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1683,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1683_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1683,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1683_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1683,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1683_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="92" entid="1683" class="list-head-ul" style="width: 1670px;" ctrlprex="ListR_" isrple="1">
<li areaid="1818" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1683" onclick="javascript:DcxCom.CheckedAll(this,1683,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="1819" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">当前状态 </label></li><li areaid="1820" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">当前办理人 </label></li><li areaid="1821" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">出差人 </label></li><li areaid="1822" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">所在部门 </label></li><li areaid="1823" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">职务 </label></li><li areaid="1824" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">交通讯费 </label></li><li areaid="1825" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">餐费 </label></li><li areaid="1826" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">住宿费 </label></li><li areaid="1827" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">通讯费 </label></li><li areaid="1828" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">其他费 </label></li><li areaid="1829" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">费用合计 </label></li><li areaid="1830" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">报销日期 </label></li><li areaid="1831" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">所在部门编号 </label></li><li areaid="1832" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="办理"><span class="i">办理</span></a></div></li><li areaid="1833" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="1834" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1683,' where  [FldUId]='3926b940-0448-bf45-7cbe-03595235bdb4' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='4de8f3e1-5ce7-487c-aa8b-0116540922ce'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(154,'4de8f3e1-5ce7-487c-aa8b-0116540922ce',1683,1683,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',2,1,'',2,21,0,'','','','islonly="1" isgroup="1" groupid="93" class="list-body-ul" style="width: 1670px;" isrple="1">
<li areaid="1835" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1683" issyscheck="1" keyvalue="','',-1,93,-1,-1,1,'1683,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=154,[Report_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='islonly="1" isgroup="1" groupid="93" class="list-body-ul" style="width: 1670px;" isrple="1">
<li areaid="1835" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1683" issyscheck="1" keyvalue="',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1683,' where  [FldUId]='4de8f3e1-5ce7-487c-aa8b-0116540922ce' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='9b3e3580-2211-4966-a732-9438194ba62c'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'9b3e3580-2211-4966-a732-9438194ba62c',1683,1683,'00000000-0000-0000-0000-000000000000',2,'WFState',3,1,'varchar',2,1,0,'','','','" type="checkbox"></li><li areaid="1836" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowCurWfDlg(this);">
   <span isfield="1" entid="1683" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1683,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=1,[Report_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='WFState',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='" type="checkbox"></li><li areaid="1836" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowCurWfDlg(this);">
   <span isfield="1" entid="1683" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1683,' where  [FldUId]='9b3e3580-2211-4966-a732-9438194ba62c' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='f4701362-3196-4299-a3e4-ba2709fb19e5'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(336,'f4701362-3196-4299-a3e4-ba2709fb19e5',1683,1683,'00000000-0000-0000-0000-000000000000',9,'WFFlowId',4,1,'',1,1,0,'','','','</span>
   </a>
   <span isfield="1" entid="1683" fieldname="WFFlowId" fldid="336" columntypeid="1" class="form-ctr" style="display: none;">','',-1,93,-1,-1,1,'1683,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=336,[Report_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=9,[FieldName]='WFFlowId',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   </a>
   <span isfield="1" entid="1683" fieldname="WFFlowId" fldid="336" columntypeid="1" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1683,' where  [FldUId]='f4701362-3196-4299-a3e4-ba2709fb19e5' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='14484201-bbea-4af7-bdfe-bec2d651aebf'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(337,'14484201-bbea-4af7-bdfe-bec2d651aebf',1683,1683,'00000000-0000-0000-0000-000000000000',8,'WFRunId',5,1,'',1,1,0,'','','','</span>
   <span isfield="1" entid="1683" fieldname="WFRunId" fldid="337" columntypeid="1" class="form-ctr" style="display: none;">','',-1,93,-1,-1,1,'1683,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=337,[Report_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=8,[FieldName]='WFRunId',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   <span isfield="1" entid="1683" fieldname="WFRunId" fldid="337" columntypeid="1" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1683,' where  [FldUId]='14484201-bbea-4af7-bdfe-bec2d651aebf' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='6ae0d22e-3cea-4bc2-aff0-79c2f6fd7932'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(338,'6ae0d22e-3cea-4bc2-aff0-79c2f6fd7932',1683,1683,'00000000-0000-0000-0000-000000000000',10,'WFPrcsId',6,1,'',1,1,0,'','','','</span>
   <span isfield="1" entid="1683" fieldname="WFPrcsId" fldid="338" columntypeid="1" class="form-ctr" style="display: none;">','',-1,93,-1,-1,1,'1683,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=338,[Report_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=10,[FieldName]='WFPrcsId',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   <span isfield="1" entid="1683" fieldname="WFPrcsId" fldid="338" columntypeid="1" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1683,' where  [FldUId]='6ae0d22e-3cea-4bc2-aff0-79c2f6fd7932' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='21fe9b62-6ea2-4070-8fc5-321ab0842416'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'21fe9b62-6ea2-4070-8fc5-321ab0842416',1683,1683,'00000000-0000-0000-0000-000000000000',3,'WFUserName',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1837" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowWfCurUserDlg(this);">
   <span isfield="1" entid="1683" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1683,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=2,[Report_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='WFUserName',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1837" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowWfCurUserDlg(this);">
   <span isfield="1" entid="1683" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1683,' where  [FldUId]='21fe9b62-6ea2-4070-8fc5-321ab0842416' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='1233d560-0012-4ee8-9b5e-380304717fa2'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'1233d560-0012-4ee8-9b5e-380304717fa2',1683,1683,'00000000-0000-0000-0000-000000000000',12,'出差人',8,1,'varchar',2,1,0,'','','','</span>
   </a>
  </div>
</li><li areaid="1838" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1683" fieldname="出差人" fldid="3" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1683,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=3,[Report_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=12,[FieldName]='出差人',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   </a>
  </div>
</li><li areaid="1838" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1683" fieldname="出差人" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1683,' where  [FldUId]='1233d560-0012-4ee8-9b5e-380304717fa2' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='85f1246b-d5bd-49b6-800e-d681d691ce4b'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'85f1246b-d5bd-49b6-800e-d681d691ce4b',1683,1683,'00000000-0000-0000-0000-000000000000',15,'所在部门',9,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1839" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1683" fieldname="所在部门" fldid="4" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1683,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=4,[Report_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=15,[FieldName]='所在部门',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1839" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1683" fieldname="所在部门" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1683,' where  [FldUId]='85f1246b-d5bd-49b6-800e-d681d691ce4b' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='cb9e73d6-37c2-46a9-818d-937b394b8cc1'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'cb9e73d6-37c2-46a9-818d-937b394b8cc1',1683,1683,'00000000-0000-0000-0000-000000000000',16,'职务',10,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1840" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1683" fieldname="职务" fldid="5" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1683,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=5,[Report_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=16,[FieldName]='职务',[FieldNO]=10,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1840" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1683" fieldname="职务" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1683,' where  [FldUId]='cb9e73d6-37c2-46a9-818d-937b394b8cc1' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='995bb917-9518-4028-a872-6724d38990d4'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'995bb917-9518-4028-a872-6724d38990d4',1683,1683,'00000000-0000-0000-0000-000000000000',22,'交通讯费',11,3,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1841" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1683" fieldname="交通讯费" fldid="6" columntypeid="3" class="form-ctr">￥','',-1,93,-1,-1,1,'1683,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=6,[Report_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=22,[FieldName]='交通讯费',[FieldNO]=11,[ColumnTypeId]=3,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1841" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1683" fieldname="交通讯费" fldid="6" columntypeid="3" class="form-ctr">￥',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1683,' where  [FldUId]='995bb917-9518-4028-a872-6724d38990d4' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='e0c3bb23-3af2-4bb5-99ae-8bf6be612634'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'e0c3bb23-3af2-4bb5-99ae-8bf6be612634',1683,1683,'00000000-0000-0000-0000-000000000000',23,'餐费',12,3,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1842" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1683" fieldname="餐费" fldid="7" columntypeid="3" class="form-ctr">￥','',-1,93,-1,-1,1,'1683,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=7,[Report_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=23,[FieldName]='餐费',[FieldNO]=12,[ColumnTypeId]=3,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1842" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1683" fieldname="餐费" fldid="7" columntypeid="3" class="form-ctr">￥',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1683,' where  [FldUId]='e0c3bb23-3af2-4bb5-99ae-8bf6be612634' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='649700d7-7e75-4fbf-9274-8af0811f7124'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'649700d7-7e75-4fbf-9274-8af0811f7124',1683,1683,'00000000-0000-0000-0000-000000000000',24,'住宿费',13,3,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1843" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1683" fieldname="住宿费" fldid="8" columntypeid="3" class="form-ctr">￥','',-1,93,-1,-1,1,'1683,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=8,[Report_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=24,[FieldName]='住宿费',[FieldNO]=13,[ColumnTypeId]=3,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1843" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1683" fieldname="住宿费" fldid="8" columntypeid="3" class="form-ctr">￥',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1683,' where  [FldUId]='649700d7-7e75-4fbf-9274-8af0811f7124' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='3c164b42-05c7-496a-a177-00b59a44ea94'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'3c164b42-05c7-496a-a177-00b59a44ea94',1683,1683,'00000000-0000-0000-0000-000000000000',25,'通讯费',14,3,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1844" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1683" fieldname="通讯费" fldid="9" columntypeid="3" class="form-ctr">￥','',-1,93,-1,-1,1,'1683,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=9,[Report_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=25,[FieldName]='通讯费',[FieldNO]=14,[ColumnTypeId]=3,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1844" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1683" fieldname="通讯费" fldid="9" columntypeid="3" class="form-ctr">￥',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1683,' where  [FldUId]='3c164b42-05c7-496a-a177-00b59a44ea94' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='bd9d900d-3534-43a3-8f47-b06fa893612a'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'bd9d900d-3534-43a3-8f47-b06fa893612a',1683,1683,'00000000-0000-0000-0000-000000000000',26,'其他费',15,3,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1845" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1683" fieldname="其他费" fldid="10" columntypeid="3" class="form-ctr">￥','',-1,93,-1,-1,1,'1683,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=10,[Report_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=26,[FieldName]='其他费',[FieldNO]=15,[ColumnTypeId]=3,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1845" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1683" fieldname="其他费" fldid="10" columntypeid="3" class="form-ctr">￥',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1683,' where  [FldUId]='bd9d900d-3534-43a3-8f47-b06fa893612a' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='866f1cdc-79be-4d8c-8c3d-32dc34d96558'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'866f1cdc-79be-4d8c-8c3d-32dc34d96558',1683,1683,'00000000-0000-0000-0000-000000000000',27,'费用合计',16,3,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1846" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1683" fieldname="费用合计" fldid="11" columntypeid="3" class="form-ctr">￥','',-1,93,-1,-1,1,'1683,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=11,[Report_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=27,[FieldName]='费用合计',[FieldNO]=16,[ColumnTypeId]=3,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1846" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1683" fieldname="费用合计" fldid="11" columntypeid="3" class="form-ctr">￥',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1683,' where  [FldUId]='866f1cdc-79be-4d8c-8c3d-32dc34d96558' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='4965bf7e-8b0c-4bbf-8111-f94f055b7eb8'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(12,'4965bf7e-8b0c-4bbf-8111-f94f055b7eb8',1683,1683,'00000000-0000-0000-0000-000000000000',28,'报销日期',17,4,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1847" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1683" fieldname="报销日期" fldid="12" columntypeid="4" class="form-ctr">','',-1,93,-1,-1,1,'1683,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=12,[Report_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=28,[FieldName]='报销日期',[FieldNO]=17,[ColumnTypeId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1847" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1683" fieldname="报销日期" fldid="12" columntypeid="4" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1683,' where  [FldUId]='4965bf7e-8b0c-4bbf-8111-f94f055b7eb8' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='1ba954b1-a5ed-4bfa-87f2-08f8989cbc1b'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(13,'1ba954b1-a5ed-4bfa-87f2-08f8989cbc1b',1683,1683,'00000000-0000-0000-0000-000000000000',29,'所在部门编号',18,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1848" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1683" fieldname="所在部门编号" fldid="13" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1683,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=13,[Report_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=29,[FieldName]='所在部门编号',[FieldNO]=18,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1848" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1683" fieldname="所在部门编号" fldid="13" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1683,' where  [FldUId]='1ba954b1-a5ed-4bfa-87f2-08f8989cbc1b' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='9c63cdeb-f162-4194-88b0-a67e910aefbd'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(155,'9c63cdeb-f162-4194-88b0-a67e910aefbd',1683,1683,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',19,1,'',2,21,0,'','','','</span>
  </div>
</li><li areaid="1849" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,1683,''ListR_'',''','',-1,93,-1,-1,1,'1683,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=155,[Report_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=19,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1849" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,1683,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1683,' where  [FldUId]='9c63cdeb-f162-4194-88b0-a67e910aefbd' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='8bb11808-834d-49b2-bd42-63d05cddffdc'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(156,'8bb11808-834d-49b2-bd42-63d05cddffdc',1683,1683,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',20,1,'',2,21,0,'','','',''',null,1040,480);">
<span class="i">办理</span></a></div>
</li><li areaid="1850" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1683,''ListR_'',''','',-1,93,-1,-1,1,'1683,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=156,[Report_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=20,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">办理</span></a></div>
</li><li areaid="1850" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1683,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1683,' where  [FldUId]='8bb11808-834d-49b2-bd42-63d05cddffdc' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='b355f7d7-3218-4d0d-8938-84b07ef43f13'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(157,'b355f7d7-3218-4d0d-8938-84b07ef43f13',1683,1683,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',21,1,'',2,21,0,'','','',''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="1851" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,1683,''ListR_'',''','',-1,93,-1,-1,1,'1683,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=157,[Report_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=21,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="1851" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,1683,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1683,' where  [FldUId]='b355f7d7-3218-4d0d-8938-84b07ef43f13' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='4071161f-010d-54a4-721e-8aa9afa4d9ac'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(390,'4071161f-010d-54a4-721e-8aa9afa4d9ac',1683,1683,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',22,-1,'varchar',2,13,0,'','','',''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>','</div>
</div>
<!-- 结束 --></div>',-1,93,-1,-1,1,'1683,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=390,[Report_EntId]=1683,[EntId]=1683,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=22,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>',[LastHtml]='</div>
</div>
<!-- 结束 --></div>',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1683,' where  [FldUId]='4071161f-010d-54a4-721e-8aa9afa4d9ac' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=1099

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=1099  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(1099,null,'行政_差旅费报销单','行政_差旅费报销单',0,0,0,0,0,1,1,1,3,'admin','2013-12-15 17:32:53',3,'admin','2013-12-15 17:32:53',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='行政_差旅费报销单',[DBTableByName]='行政_差旅费报销单',[IsForbid]=0,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=1,[SystemId]=1,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:53',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:53',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=1099 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1099  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2273,1,1,1099,'int',1,1,1,'行政_差旅费报销单','LD_Id','LD_Id','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_差旅费报销单',[FieldName]='LD_Id',[FieldByname]='LD_Id',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1099  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1099  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2274,2,1,1099,'varchar',2,1,1,'行政_差旅费报销单','WFState','WFState','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_差旅费报销单',[FieldName]='WFState',[FieldByname]='WFState',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1099  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1099  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2275,3,1,1099,'varchar',2,1,1,'行政_差旅费报销单','WFUserName','WFUserName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_差旅费报销单',[FieldName]='WFUserName',[FieldByname]='WFUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1099  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1099  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2276,4,1,1099,'bit',4,1,1,'行政_差旅费报销单','WFIsFinish','WFIsFinish','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_差旅费报销单',[FieldName]='WFIsFinish',[FieldByname]='WFIsFinish',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1099  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1099  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2277,5,1,1099,'bit',4,1,1,'行政_差旅费报销单','WFIsStart','WFIsStart','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_差旅费报销单',[FieldName]='WFIsStart',[FieldByname]='WFIsStart',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1099  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1099  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2278,6,1,1099,'varchar',2,1,1,'行政_差旅费报销单','WFAllUser','WFAllUser','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_差旅费报销单',[FieldName]='WFAllUser',[FieldByname]='WFAllUser',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1099  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1099  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2279,7,1,1099,'varchar',2,1,1,'行政_差旅费报销单','WFOpinion','WFOpinion','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_差旅费报销单',[FieldName]='WFOpinion',[FieldByname]='WFOpinion',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1099  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1099  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2280,8,1,1099,'int',1,1,1,'行政_差旅费报销单','WFRunId','WFRunId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_差旅费报销单',[FieldName]='WFRunId',[FieldByname]='WFRunId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1099  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1099  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2281,9,1,1099,'int',1,1,1,'行政_差旅费报销单','WFFlowId','WFFlowId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_差旅费报销单',[FieldName]='WFFlowId',[FieldByname]='WFFlowId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1099  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1099  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2282,10,1,1099,'int',1,1,1,'行政_差旅费报销单','WFPrcsId','WFPrcsId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_差旅费报销单',[FieldName]='WFPrcsId',[FieldByname]='WFPrcsId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1099  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1099  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2283,11,1,1099,'varchar',2,1,1,'行政_差旅费报销单','出差编号','出差编号','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_差旅费报销单',[FieldName]='出差编号',[FieldByname]='出差编号',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1099  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1099  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2284,12,1,1099,'varchar',2,1,1,'行政_差旅费报销单','出差人','出差人','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_差旅费报销单',[FieldName]='出差人',[FieldByname]='出差人',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1099  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1099  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2285,13,1,1099,'varchar',2,1,1,'行政_差旅费报销单','员工编号','员工编号','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_差旅费报销单',[FieldName]='员工编号',[FieldByname]='员工编号',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1099  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1099  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2286,14,1,1099,'datetime',3,1,1,'行政_差旅费报销单','入职日期','入职日期','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_差旅费报销单',[FieldName]='入职日期',[FieldByname]='入职日期',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1099  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1099  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2287,15,1,1099,'varchar',2,1,1,'行政_差旅费报销单','所在部门','所在部门','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_差旅费报销单',[FieldName]='所在部门',[FieldByname]='所在部门',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1099  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1099  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2288,16,1,1099,'varchar',2,1,1,'行政_差旅费报销单','职务','职务','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_差旅费报销单',[FieldName]='职务',[FieldByname]='职务',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1099  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1099  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2289,17,1,1099,'varchar',2,1,1,'行政_差旅费报销单','出差地点','出差地点','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_差旅费报销单',[FieldName]='出差地点',[FieldByname]='出差地点',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1099  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1099  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2290,18,1,1099,'varchar',2,1,1,'行政_差旅费报销单','出差事由','出差事由','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_差旅费报销单',[FieldName]='出差事由',[FieldByname]='出差事由',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1099  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1099  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2291,19,1,1099,'datetime',3,1,1,'行政_差旅费报销单','出差起始日期','出差起始日期','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_差旅费报销单',[FieldName]='出差起始日期',[FieldByname]='出差起始日期',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1099  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1099  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2292,20,1,1099,'datetime',3,1,1,'行政_差旅费报销单','出差结束日期','出差结束日期','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_差旅费报销单',[FieldName]='出差结束日期',[FieldByname]='出差结束日期',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1099  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1099  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2293,21,1,1099,'int',1,1,1,'行政_差旅费报销单','总共天数','总共天数','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_差旅费报销单',[FieldName]='总共天数',[FieldByname]='总共天数',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1099  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1099  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2294,22,1,1099,'money',5,1,1,'行政_差旅费报销单','交通讯费','交通讯费','',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_差旅费报销单',[FieldName]='交通讯费',[FieldByname]='交通讯费',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1099  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1099  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2295,23,1,1099,'money',5,1,1,'行政_差旅费报销单','餐费','餐费','',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_差旅费报销单',[FieldName]='餐费',[FieldByname]='餐费',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1099  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1099  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2296,24,1,1099,'money',5,1,1,'行政_差旅费报销单','住宿费','住宿费','',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_差旅费报销单',[FieldName]='住宿费',[FieldByname]='住宿费',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1099  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1099  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2297,25,1,1099,'money',5,1,1,'行政_差旅费报销单','通讯费','通讯费','',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_差旅费报销单',[FieldName]='通讯费',[FieldByname]='通讯费',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1099  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1099  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2298,26,1,1099,'money',5,1,1,'行政_差旅费报销单','其他费','其他费','',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_差旅费报销单',[FieldName]='其他费',[FieldByname]='其他费',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1099  and  [FieldId]=26 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1099  and  [FieldId]=27  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2299,27,1,1099,'money',5,1,1,'行政_差旅费报销单','费用合计','费用合计','',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_差旅费报销单',[FieldName]='费用合计',[FieldByname]='费用合计',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1099  and  [FieldId]=27 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1099  and  [FieldId]=28  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2300,28,1,1099,'datetime',3,1,1,'行政_差旅费报销单','报销日期','报销日期','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_差旅费报销单',[FieldName]='报销日期',[FieldByname]='报销日期',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1099  and  [FieldId]=28 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1099  and  [FieldId]=29  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2301,29,1,1099,'varchar',2,1,1,'行政_差旅费报销单','所在部门编号','所在部门编号','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_差旅费报销单',[FieldName]='所在部门编号',[FieldByname]='所在部门编号',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1099  and  [FieldId]=29 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1099  and  [FieldId]=30  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2302,30,1,1099,'varchar',2,1,1,'行政_差旅费报销单','部门审批意见','部门审批意见','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_差旅费报销单',[FieldName]='部门审批意见',[FieldByname]='部门审批意见',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1099  and  [FieldId]=30 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1099  and  [FieldId]=31  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2303,31,1,1099,'varchar',2,1,1,'行政_差旅费报销单','财务部审批意见','财务部审批意见','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_差旅费报销单',[FieldName]='财务部审批意见',[FieldByname]='财务部审批意见',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1099  and  [FieldId]=31 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1099  and  [FieldId]=32  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2304,32,1,1099,'varchar',2,1,1,'行政_差旅费报销单','批准人','批准人','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_差旅费报销单',[FieldName]='批准人',[FieldByname]='批准人',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1099  and  [FieldId]=32 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1099  and  [FieldId]=33  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2305,33,1,1099,'money',5,1,1,'行政_差旅费报销单','预支金额','预支金额','',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_差旅费报销单',[FieldName]='预支金额',[FieldByname]='预支金额',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1099  and  [FieldId]=33 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1099  and  [FieldId]=34  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2306,34,1,1099,'money',5,1,1,'行政_差旅费报销单','应退或补金额','应退或补金额','',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_差旅费报销单',[FieldName]='应退或补金额',[FieldByname]='应退或补金额',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1099  and  [FieldId]=34 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1099  and  [FieldId]=35  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2307,35,1,1099,'varchar',2,1,1,'行政_差旅费报销单','费用合计大写','费用合计大写','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_差旅费报销单',[FieldName]='费用合计大写',[FieldByname]='费用合计大写',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1099  and  [FieldId]=35 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1099  and  [FieldId]=36  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2308,36,1,1099,'varchar',2,1,1,'行政_差旅费报销单','预支金额大写','预支金额大写','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_差旅费报销单',[FieldName]='预支金额大写',[FieldByname]='预支金额大写',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1099  and  [FieldId]=36 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1099  and  [FieldId]=37  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2309,37,1,1099,'varchar',2,1,1,'行政_差旅费报销单','应退或补金额大写','应退或补金额大写','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_差旅费报销单',[FieldName]='应退或补金额大写',[FieldByname]='应退或补金额大写',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1099  and  [FieldId]=37 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--WF_FlowType

     SET IDENTITY_INSERT [WF_FlowType] ON 
      if (select count(1) from [WF_FlowType] where  [FlowId]=88  )<1 
      begin 
           Insert into [WF_FlowType] ([FlowId],[FlowName],[FlowNo],[SortId],[EntId],[EntName],[AutoName],[ManageUsers],[ManageNames],[QueryUsers],[QueryNames],[CanQueryRoles],[CanQueryRolesId],[CanManageRoles],[CanManageRolesId],[CanStartUsers],[CanStartNames],[CanStartRoles],[CanStartRolesId],[AttachMaxSize],[FlowAttach],[IsPigeonhole],[PigeonholedSQL],[IsFreeFlow],[QueryItem],[LaunchIsOpen],[FormUrl],[BrowseUrl],[ListUrl],[Detail],[CreatorId],[Creator],[CreateTime],[EditTime],[Editor],[EditorId],[AccountId])values(88,'差旅费报销申请',1,33,1683,'差旅费用报销',null,'admin','admin','admin','admin','系统管理员','3','系统管理员','3',null,null,'Public','1',0,0,null,null,null,null,null,null,null,null,'',0,'admin','2013-11-30 1:06:40',null,null,null,1)
      end
      else 
      begin 
           update [WF_FlowType] set [FlowName]='差旅费报销申请',[FlowNo]=1,[SortId]=33,[EntId]=1683,[EntName]='差旅费用报销',[AutoName]=null,[ManageUsers]='admin',[ManageNames]='admin',[QueryUsers]='admin',[QueryNames]='admin',[CanQueryRoles]='系统管理员',[CanQueryRolesId]='3',[CanManageRoles]='系统管理员',[CanManageRolesId]='3',[CanStartUsers]=null,[CanStartNames]=null,[CanStartRoles]='Public',[CanStartRolesId]='1',[AttachMaxSize]=0,[FlowAttach]=0,[IsPigeonhole]=null,[PigeonholedSQL]=null,[IsFreeFlow]=null,[QueryItem]=null,[LaunchIsOpen]=null,[FormUrl]=null,[BrowseUrl]=null,[ListUrl]=null,[Detail]='',[CreatorId]=0,[Creator]='admin',[CreateTime]='2013-11-30 1:06:40',[EditTime]=null,[Editor]=null,[EditorId]=null,[AccountId]=1 where  [FlowId]=88 
      end

     SET IDENTITY_INSERT [WF_FlowType] OFF 



Delete from [WF_FlowNode]  where isnull([FlowId],0)=88 

--WF_FlowNode

     SET IDENTITY_INSERT [WF_FlowNode] ON 
      if (select count(1) from [WF_FlowNode] where  [NodeId]=385  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(385,88,'起草申请',1,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','386',0,1,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','',null,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'3282,3283,3284,3285,3286,3287,3288,3289,3290,3291,3292,3293,3294,3295,3296,3297,3298,3299,3303,3304',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=88,[NodeName]='起草申请',[Step]=1,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='386',[AllowLastNodeBoss]=0,[AllowWorkCreator]=1,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='3282,3283,3284,3285,3286,3287,3288,3289,3290,3291,3292,3293,3294,3295,3296,3297,3298,3299,3303,3304',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=385 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=386  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(386,88,'部门经理审批',2,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','387',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','',null,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'3300',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=88,[NodeName]='部门经理审批',[Step]=2,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='387',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='3300',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=386 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=387  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(387,88,'主管副总审批',3,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','388',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','',null,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=88,[NodeName]='主管副总审批',[Step]=3,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='388',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=387 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=388  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(388,88,'财务经理审批',4,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','389',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','',null,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'3301',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=88,[NodeName]='财务经理审批',[Step]=4,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='389',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='3301',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=388 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=389  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(389,88,'出纳出款',5,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','-1',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','<$462:Begin$>
		--流出到<结束>节点时 

		
update 行政_差旅费报销单 set WFIsFinish=1,WFIsStart=1 where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''

		</$462:End$>',null,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=88,[NodeName]='出纳出款',[Step]=5,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='-1',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='<$462:Begin$>
		--流出到<结束>节点时 

		
update 行政_差旅费报销单 set WFIsFinish=1,WFIsStart=1 where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''

		</$462:End$>',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=389 
      end

     SET IDENTITY_INSERT [WF_FlowNode] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=2042  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2042,88,385,1683,'差旅费用报销',3282,'出差编号','相关出差','差旅费报销审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=88,[NodeId]=385,[EntId]=1683,[EntName]='差旅费用报销',[FldId]=3282,[FieldName]='出差编号',[CtrlByName]='相关出差',[FlowName]='差旅费报销审批',[TypeId]=1 where  [Id]=2042 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2043  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2043,88,385,1683,'差旅费用报销',3283,'出差人','出差人','差旅费报销审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=88,[NodeId]=385,[EntId]=1683,[EntName]='差旅费用报销',[FldId]=3283,[FieldName]='出差人',[CtrlByName]='出差人',[FlowName]='差旅费报销审批',[TypeId]=1 where  [Id]=2043 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2044  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2044,88,385,1683,'差旅费用报销',3284,'员工编号','员工编号','差旅费报销审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=88,[NodeId]=385,[EntId]=1683,[EntName]='差旅费用报销',[FldId]=3284,[FieldName]='员工编号',[CtrlByName]='员工编号',[FlowName]='差旅费报销审批',[TypeId]=1 where  [Id]=2044 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2045  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2045,88,385,1683,'差旅费用报销',3285,'入职日期','入职日期','差旅费报销审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=88,[NodeId]=385,[EntId]=1683,[EntName]='差旅费用报销',[FldId]=3285,[FieldName]='入职日期',[CtrlByName]='入职日期',[FlowName]='差旅费报销审批',[TypeId]=1 where  [Id]=2045 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2046  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2046,88,385,1683,'差旅费用报销',3286,'所在部门','所在部门','差旅费报销审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=88,[NodeId]=385,[EntId]=1683,[EntName]='差旅费用报销',[FldId]=3286,[FieldName]='所在部门',[CtrlByName]='所在部门',[FlowName]='差旅费报销审批',[TypeId]=1 where  [Id]=2046 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2047  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2047,88,385,1683,'差旅费用报销',3287,'职务','职务','差旅费报销审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=88,[NodeId]=385,[EntId]=1683,[EntName]='差旅费用报销',[FldId]=3287,[FieldName]='职务',[CtrlByName]='职务',[FlowName]='差旅费报销审批',[TypeId]=1 where  [Id]=2047 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2048  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2048,88,385,1683,'差旅费用报销',3288,'出差地点','出差地点','差旅费报销审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=88,[NodeId]=385,[EntId]=1683,[EntName]='差旅费用报销',[FldId]=3288,[FieldName]='出差地点',[CtrlByName]='出差地点',[FlowName]='差旅费报销审批',[TypeId]=1 where  [Id]=2048 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2049  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2049,88,385,1683,'差旅费用报销',3289,'出差事由','出差事由','差旅费报销审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=88,[NodeId]=385,[EntId]=1683,[EntName]='差旅费用报销',[FldId]=3289,[FieldName]='出差事由',[CtrlByName]='出差事由',[FlowName]='差旅费报销审批',[TypeId]=1 where  [Id]=2049 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2050  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2050,88,385,1683,'差旅费用报销',3290,'出差起始日期','出差起始日期','差旅费报销审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=88,[NodeId]=385,[EntId]=1683,[EntName]='差旅费用报销',[FldId]=3290,[FieldName]='出差起始日期',[CtrlByName]='出差起始日期',[FlowName]='差旅费报销审批',[TypeId]=1 where  [Id]=2050 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2051  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2051,88,385,1683,'差旅费用报销',3291,'出差结束日期','出差结束日期','差旅费报销审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=88,[NodeId]=385,[EntId]=1683,[EntName]='差旅费用报销',[FldId]=3291,[FieldName]='出差结束日期',[CtrlByName]='出差结束日期',[FlowName]='差旅费报销审批',[TypeId]=1 where  [Id]=2051 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2052  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2052,88,385,1683,'差旅费用报销',3292,'总共天数','总共天数','差旅费报销审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=88,[NodeId]=385,[EntId]=1683,[EntName]='差旅费用报销',[FldId]=3292,[FieldName]='总共天数',[CtrlByName]='总共天数',[FlowName]='差旅费报销审批',[TypeId]=1 where  [Id]=2052 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2053  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2053,88,385,1683,'差旅费用报销',3293,'交通讯费','交通讯费','差旅费报销审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=88,[NodeId]=385,[EntId]=1683,[EntName]='差旅费用报销',[FldId]=3293,[FieldName]='交通讯费',[CtrlByName]='交通讯费',[FlowName]='差旅费报销审批',[TypeId]=1 where  [Id]=2053 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2054  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2054,88,385,1683,'差旅费用报销',3294,'餐费','餐费','差旅费报销审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=88,[NodeId]=385,[EntId]=1683,[EntName]='差旅费用报销',[FldId]=3294,[FieldName]='餐费',[CtrlByName]='餐费',[FlowName]='差旅费报销审批',[TypeId]=1 where  [Id]=2054 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2055  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2055,88,385,1683,'差旅费用报销',3295,'住宿费','住宿费','差旅费报销审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=88,[NodeId]=385,[EntId]=1683,[EntName]='差旅费用报销',[FldId]=3295,[FieldName]='住宿费',[CtrlByName]='住宿费',[FlowName]='差旅费报销审批',[TypeId]=1 where  [Id]=2055 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2056  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2056,88,385,1683,'差旅费用报销',3296,'通讯费','通讯费','差旅费报销审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=88,[NodeId]=385,[EntId]=1683,[EntName]='差旅费用报销',[FldId]=3296,[FieldName]='通讯费',[CtrlByName]='通讯费',[FlowName]='差旅费报销审批',[TypeId]=1 where  [Id]=2056 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2057  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2057,88,385,1683,'差旅费用报销',3297,'其他费','其他费','差旅费报销审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=88,[NodeId]=385,[EntId]=1683,[EntName]='差旅费用报销',[FldId]=3297,[FieldName]='其他费',[CtrlByName]='其他费',[FlowName]='差旅费报销审批',[TypeId]=1 where  [Id]=2057 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2058  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2058,88,385,1683,'差旅费用报销',3298,'费用合计','费用合计','差旅费报销审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=88,[NodeId]=385,[EntId]=1683,[EntName]='差旅费用报销',[FldId]=3298,[FieldName]='费用合计',[CtrlByName]='费用合计',[FlowName]='差旅费报销审批',[TypeId]=1 where  [Id]=2058 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2059  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2059,88,385,1683,'差旅费用报销',3299,'报销日期','报销日期','差旅费报销审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=88,[NodeId]=385,[EntId]=1683,[EntName]='差旅费用报销',[FldId]=3299,[FieldName]='报销日期',[CtrlByName]='报销日期',[FlowName]='差旅费报销审批',[TypeId]=1 where  [Id]=2059 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2060  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2060,88,385,1683,'差旅费用报销',3303,'预支金额','预支金额','差旅费报销审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=88,[NodeId]=385,[EntId]=1683,[EntName]='差旅费用报销',[FldId]=3303,[FieldName]='预支金额',[CtrlByName]='预支金额',[FlowName]='差旅费报销审批',[TypeId]=1 where  [Id]=2060 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2061  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2061,88,385,1683,'差旅费用报销',3304,'应退或补金额','应退或补金额','差旅费报销审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=88,[NodeId]=385,[EntId]=1683,[EntName]='差旅费用报销',[FldId]=3304,[FieldName]='应退或补金额',[CtrlByName]='应退或补金额',[FlowName]='差旅费报销审批',[TypeId]=1 where  [Id]=2061 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=2062  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2062,88,386,1683,'差旅费用报销',3300,'部门审批意见','部门审批意见','差旅费报销审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=88,[NodeId]=386,[EntId]=1683,[EntName]='差旅费用报销',[FldId]=3300,[FieldName]='部门审批意见',[CtrlByName]='部门审批意见',[FlowName]='差旅费报销审批',[TypeId]=1 where  [Id]=2062 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=2063  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2063,88,388,1683,'差旅费用报销',3301,'财务部审批意见','财务部审批意见','差旅费报销审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=88,[NodeId]=388,[EntId]=1683,[EntName]='差旅费用报销',[FldId]=3301,[FieldName]='财务部审批意见',[CtrlByName]='财务部审批意见',[FlowName]='差旅费报销审批',[TypeId]=1 where  [Id]=2063 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=3056  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(3056,'aef6b545-459f-4b33-b9da-3a1d4f581dbe','请假申请',2905,'/Template/default/ListReport/ListReport_Tree001.aspx',1,'/images/default.gif','/images/default.gif',2,'right_fram',null,0,null,4,0,4,1,1,1,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='aef6b545-459f-4b33-b9da-3a1d4f581dbe',[MenuName]='请假申请',[ParentId]=2905,[ProPath]='/Template/default/ListReport/ListReport_Tree001.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=2,[Target]='right_fram',[IsOpen]=null,[IsHidden]=0,[Remark]=null,[SSystemId]=4,[SMenuId]=0,[SystemId]=4,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=3056 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3056  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(831,3056,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3056  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=1771  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(1771,3056,'请假审批',1,1024,0,'人事_请假表',0,0,1,4,1771,null,null,4,null,1,null,115,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3056,[EntName]='请假审批',[MEnt]=1,[DBTableId]=1024,[DBConnectId]=0,[DBTableName]='人事_请假表',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=4,[SEntId]=1771,[FSystemId]=null,[FEntId]=null,[SystemId]=4,[Remark]=null,[IsFlow]=1,[IsChecked]=null,[FlowId]=115,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=1771 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=1771

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=1771  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11440,-1,1771,1,1,1,1,0,1,0,0,0,1,0,0,0,0,0,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=0,[CanUpdate]=1,[CanOutPut]=0,[CanInput]=0,[CanCopy]=0,[CanPrint]=1,[CanCheck]=0,[CanClean]=0,[CanRecycle]=0,[CanExecute]=0,[CanDesign]=0,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=1771  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=1771  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(10897,3056,1771,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=3056,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=1771  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=1771

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1771  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(19052,4,3056,1771,13,1,1,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=4,[MenuId]=3056,[TemplateId]=13,[ModuleId]=1,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1771  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1771  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(19053,4,3056,1771,13,2,9,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=4,[MenuId]=3056,[TemplateId]=13,[ModuleId]=9,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1771  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1771  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(19054,4,3056,1771,13,3,14,1,4,2,'/Template/Default/Form/AjaxForm/AjaxForm008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=4,[MenuId]=3056,[TemplateId]=13,[ModuleId]=14,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='/Template/Default/Form/AjaxForm/AjaxForm008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1771  and  [ModuleTypeId]=3 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1771  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(19055,4,3056,1771,13,16,31,1,5,2,'/Template/Default/Browse/Browse008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=4,[MenuId]=3056,[TemplateId]=13,[ModuleId]=31,[GroupId]=1,[AreaId]=5,[ShowMode]=2,[AreaUrl]='/Template/Default/Browse/Browse008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1771  and  [ModuleTypeId]=16 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_AjaxForm_Run]  where [EntId]=1771

--Dcx_AjaxForm_Run
      if (select count(1) from [Dcx_AjaxForm_Run] where  [EntId]=1771  )<1 
      begin 
           Insert into [Dcx_AjaxForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('39cb9e51-1508-47f6-9277-d36a1063b566','请假审批',1771,14,'','',0,'<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>','','DcxRun.AjaxF_1771= {"MenuId":3056,"MEntId":1771,"EntName":"请假审批","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":true,"EntMsg":{"E1771":{"EntId":1771,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
GetLinkCtrlData_AjaxF_1771_441(null,null);
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_1771.EntMsg.E1771.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"人事_请假表","EntId":1771,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"员工编号":{"DtId":2,"DB":1,"CId":4,"FL":-1},"员工姓名":{"DtId":2,"DB":1,"CId":4,"FL":-1},"所属部门":{"DtId":2,"DB":1,"CId":4,"FL":-1},"岗位":{"DtId":2,"DB":1,"CId":4,"FL":0},"请假类型":{"DtId":2,"DB":1,"CId":34,"FL":0},"请假起始时间":{"DtId":3,"DB":1,"CId":6,"FL":0},"请假结束时间":{"DtId":3,"DB":1,"CId":6,"FL":-1},"请假天数":{"DtId":7,"DB":1,"CId":1,"FL":0},"请假原因":{"DtId":2,"DB":1,"CId":2,"FL":0},"部门意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"分公司领导意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"公司领导意见":{"DtId":2,"DB":1,"CId":2,"FL":0}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_1771.EntMsg.E1771.GetDataRowModel=function()
{
    return {"员工编号":"","员工姓名":"","所属部门":"","岗位":"","请假类型":"","请假起始时间":new Date(),"请假结束时间":new Date(),"请假天数":"0","请假原因":"","部门意见":"","分公司领导意见":"","公司领导意见":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_AjaxF_1771_440(obj,curFieldName){
 var EntId=1771;
 var FldId=3935;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''岗位'';
 var $formContainer=DcxForm.GetHtmlContainer(1771,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1771,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"岗位\",FldId:"+FldId+",EntId:1771,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1771,''AjaxF_'',''员工编号'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1771_岗位");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1771_441(obj,curFieldName){
 var EntId=1771;
 var FldId=3939;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''请假天数'';
 var $formContainer=DcxForm.GetHtmlContainer(1771,''AjaxF_'');
 var $ddlContainer=null;
var strCode="Dcx.DateDiff(''{@请假起始时间}'',''{@请假结束时间}'');" ;
var v_f1=null;
if(''请假起始时间''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,1771,''AjaxF_'',''请假起始时间'',$formContainer);
if(v_f1==null)
   return;
strCode=strCode.replaceAll("{@请假起始时间}",v_f1);
var v_f1=null;
if(''请假结束时间''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,1771,''AjaxF_'',''请假结束时间'',$formContainer);
if(v_f1==null)
   return;
strCode=strCode.replaceAll("{@请假结束时间}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal)||isNaN(myVal))
myVal = 0.00;
myVal =Dcx.ConvertMoney(myVal);
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d1771_请假天数");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_1771.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1771,''AjaxF_'',buildNew,closeDlg);

}','<$1771$>select [员工编号],[员工姓名],[所属部门],[岗位],[请假起始时间],[请假结束时间],[请假天数],[请假类型],[请假原因],[部门意见],[分公司领导意见],[公司领导意见],[LD_Id] from 人事_请假表 where [LD_Id]=''{$keyfieldvalue}''</$1771$>',20,'','','','1771*LD_Id*2**2*人事_请假表*请假审批',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 7:02:48',3,'admin','2013-11-30 7:15:51',1)
      end
      else 
      begin 
           update [Dcx_AjaxForm_Run] set [FormId]='39cb9e51-1508-47f6-9277-d36a1063b566',[FormName]='请假审批',[ModuleId]=14,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.AjaxF_1771= {"MenuId":3056,"MEntId":1771,"EntName":"请假审批","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":true,"EntMsg":{"E1771":{"EntId":1771,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
GetLinkCtrlData_AjaxF_1771_441(null,null);
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_1771.EntMsg.E1771.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"人事_请假表","EntId":1771,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"员工编号":{"DtId":2,"DB":1,"CId":4,"FL":-1},"员工姓名":{"DtId":2,"DB":1,"CId":4,"FL":-1},"所属部门":{"DtId":2,"DB":1,"CId":4,"FL":-1},"岗位":{"DtId":2,"DB":1,"CId":4,"FL":0},"请假类型":{"DtId":2,"DB":1,"CId":34,"FL":0},"请假起始时间":{"DtId":3,"DB":1,"CId":6,"FL":0},"请假结束时间":{"DtId":3,"DB":1,"CId":6,"FL":-1},"请假天数":{"DtId":7,"DB":1,"CId":1,"FL":0},"请假原因":{"DtId":2,"DB":1,"CId":2,"FL":0},"部门意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"分公司领导意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"公司领导意见":{"DtId":2,"DB":1,"CId":2,"FL":0}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_1771.EntMsg.E1771.GetDataRowModel=function()
{
    return {"员工编号":"","员工姓名":"","所属部门":"","岗位":"","请假类型":"","请假起始时间":new Date(),"请假结束时间":new Date(),"请假天数":"0","请假原因":"","部门意见":"","分公司领导意见":"","公司领导意见":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_AjaxF_1771_440(obj,curFieldName){
 var EntId=1771;
 var FldId=3935;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''岗位'';
 var $formContainer=DcxForm.GetHtmlContainer(1771,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1771,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"岗位\",FldId:"+FldId+",EntId:1771,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,1771,''AjaxF_'',''员工编号'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1771_岗位");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1771_441(obj,curFieldName){
 var EntId=1771;
 var FldId=3939;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''请假天数'';
 var $formContainer=DcxForm.GetHtmlContainer(1771,''AjaxF_'');
 var $ddlContainer=null;
var strCode="Dcx.DateDiff(''{@请假起始时间}'',''{@请假结束时间}'');" ;
var v_f1=null;
if(''请假起始时间''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,1771,''AjaxF_'',''请假起始时间'',$formContainer);
if(v_f1==null)
   return;
strCode=strCode.replaceAll("{@请假起始时间}",v_f1);
var v_f1=null;
if(''请假结束时间''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,1771,''AjaxF_'',''请假结束时间'',$formContainer);
if(v_f1==null)
   return;
strCode=strCode.replaceAll("{@请假结束时间}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal)||isNaN(myVal))
myVal = 0.00;
myVal =Dcx.ConvertMoney(myVal);
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d1771_请假天数");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_1771.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1771,''AjaxF_'',buildNew,closeDlg);

}',[LoadingSql]='<$1771$>select [员工编号],[员工姓名],[所属部门],[岗位],[请假起始时间],[请假结束时间],[请假天数],[请假类型],[请假原因],[部门意见],[分公司领导意见],[公司领导意见],[LD_Id] from 人事_请假表 where [LD_Id]=''{$keyfieldvalue}''</$1771$>',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='1771*LD_Id*2**2*人事_请假表*请假审批',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 7:02:48',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-30 7:15:51',[AccountId]=1 where  [EntId]=1771 
      end




--Dcx_AjaxFormField_Run
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='2b7f8b6d-65e8-d01d-e92f-07b477a0c355'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3932,'2b7f8b6d-65e8-d01d-e92f-07b477a0c355',1771,1771,'00000000-0000-0000-0000-000000000000','员工编号',2,2,12,'{$staffNO}',0,9,null,0,4,1,0,1,-1,0,0,'','','','{$staffNO},','<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="1771" groupid="176" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="647" class="li-area-title" scroll="no" style="width: 77px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">请假审批</span></div>
</li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="177" entid="1771" class="ul-mform" ctrlprex="AjaxF_" isrple="1">
<li areaid="648" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3932" istitle="1">员工编号 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d1771_员工编号" class="form-lbl" style="width:201px;" IsForField=1 EntId="1771" CId="4" FId="3932" Vtp="0"  CBack=1  >','</span><input id="d1771_员工编号_hid" type="hidden"  EntId="1771" IsField=1 DBField=1 IsPost=1 FieldName="员工编号" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="3932" vlk=0    value="','" />',-1,-1,-1,-1,0,'1771,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3932,[Form_EntId]=1771,[EntId]=1771,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='员工编号',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=12,[DefaultValue]='{$staffNO}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$staffNO},',[BeforeHtml]='<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="1771" groupid="176" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="647" class="li-area-title" scroll="no" style="width: 77px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">请假审批</span></div>
</li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="177" entid="1771" class="ul-mform" ctrlprex="AjaxF_" isrple="1">
<li areaid="648" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3932" istitle="1">员工编号 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1771_员工编号" class="form-lbl" style="width:201px;" IsForField=1 EntId="1771" CId="4" FId="3932" Vtp="0"  CBack=1  >',[CtrlbackHtml]='</span><input id="d1771_员工编号_hid" type="hidden"  EntId="1771" IsField=1 DBField=1 IsPost=1 FieldName="员工编号" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="3932" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1771,' where  [FldUId]='2b7f8b6d-65e8-d01d-e92f-07b477a0c355' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='d1f77b6d-b276-e948-86a9-826793eaae0a'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3933,'d1f77b6d-b276-e948-86a9-826793eaae0a',1771,1771,'00000000-0000-0000-0000-000000000000','员工姓名',2,2,13,'{$UserName}',0,9,null,0,4,1,0,2,-1,0,0,'','','','{$UserName},','</span>
</div>
</li>
<li areaid="649" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3933" istitle="1">员工姓名 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d1771_员工姓名" class="form-lbl" style="width:201px;" IsForField=1 EntId="1771" CId="4" FId="3933" Vtp="0"  >','</span><input id="d1771_员工姓名_hid" type="hidden"  EntId="1771" IsField=1 DBField=1 IsPost=1 FieldName="员工姓名" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="3933" vlk=0    value="','" />',-1,-1,-1,-1,0,'1771,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3933,[Form_EntId]=1771,[EntId]=1771,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='员工姓名',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=13,[DefaultValue]='{$UserName}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=2,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$UserName},',[BeforeHtml]='</span>
</div>
</li>
<li areaid="649" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3933" istitle="1">员工姓名 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1771_员工姓名" class="form-lbl" style="width:201px;" IsForField=1 EntId="1771" CId="4" FId="3933" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d1771_员工姓名_hid" type="hidden"  EntId="1771" IsField=1 DBField=1 IsPost=1 FieldName="员工姓名" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="3933" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1771,' where  [FldUId]='d1f77b6d-b276-e948-86a9-826793eaae0a' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='5afa8bb3-d3f9-388a-c9b4-736f48c58715'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3934,'5afa8bb3-d3f9-388a-c9b4-736f48c58715',1771,1771,'00000000-0000-0000-0000-000000000000','所属部门',2,2,14,'{$deptname}',0,9,null,0,4,1,0,3,-1,0,0,'','','','{$deptname},','</span>
</div>
</li>
<li areaid="650" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3934">所属部门  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d1771_所属部门" class="form-lbl" style="width:201px;" IsForField=1 EntId="1771" CId="4" FId="3934" Vtp="0"  >','</span><input id="d1771_所属部门_hid" type="hidden"  EntId="1771" IsField=1 DBField=1 IsPost=1 FieldName="所属部门" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="3934" vlk=0    value="','" />',-1,-1,-1,-1,0,'1771,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3934,[Form_EntId]=1771,[EntId]=1771,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='所属部门',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=14,[DefaultValue]='{$deptname}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=3,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$deptname},',[BeforeHtml]='</span>
</div>
</li>
<li areaid="650" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3934">所属部门  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1771_所属部门" class="form-lbl" style="width:201px;" IsForField=1 EntId="1771" CId="4" FId="3934" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d1771_所属部门_hid" type="hidden"  EntId="1771" IsField=1 DBField=1 IsPost=1 FieldName="所属部门" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="3934" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1771,' where  [FldUId]='5afa8bb3-d3f9-388a-c9b4-736f48c58715' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='788dca10-2c26-82ea-d772-e06a0240b523'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3935,'788dca10-2c26-82ea-d772-e06a0240b523',1771,1771,'00000000-0000-0000-0000-000000000000','岗位',2,2,15,'Select  [Dcx_Employee].[PositionName]  from  [Dcx_Employee] where [EmployeeCode] =''{@员工编号}''',2,9,1,0,4,1,1,4,-1,0,0,'','','员工编号,','','</span>
  </div>
</li>
<li areaid="651" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3935">岗位</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d1771_岗位" class="form-lbl" style="width:201px;" IsForField=1 EntId="1771" CId="4" FId="3935" Vtp="2"  >','</span><input id="d1771_岗位_hid" type="hidden"  EntId="1771" IsField=1 DBField=1 IsPost=1 FieldName="岗位" dType="2" Vtp="2" RDT="2" Isc="1" RId="9" CId="4" FId="3935" vlk=0    value="','" />',-1,-1,-1,-1,0,'1771,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3935,[Form_EntId]=1771,[EntId]=1771,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='岗位',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=15,[DefaultValue]='Select  [Dcx_Employee].[PositionName]  from  [Dcx_Employee] where [EmployeeCode] =''{@员工编号}''',[ValueType]=2,[RunValueType]=9,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=4,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='员工编号,',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="651" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3935">岗位</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1771_岗位" class="form-lbl" style="width:201px;" IsForField=1 EntId="1771" CId="4" FId="3935" Vtp="2"  >',[CtrlbackHtml]='</span><input id="d1771_岗位_hid" type="hidden"  EntId="1771" IsField=1 DBField=1 IsPost=1 FieldName="岗位" dType="2" Vtp="2" RDT="2" Isc="1" RId="9" CId="4" FId="3935" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1771,' where  [FldUId]='788dca10-2c26-82ea-d772-e06a0240b523' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='414a050e-0862-9840-bd10-b1d8a6561546'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3937,'414a050e-0862-9840-bd10-b1d8a6561546',1771,1771,'00000000-0000-0000-0000-000000000000','请假起始时间',3,3,17,'{$date}',0,1,1,0,6,1,1,5,-1,0,0,'','','','{$date},','</span>
  </div>
</li>

<li areaid="653" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3937">请假起始时间</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<div class="form-ddl"><input  id="d1771_请假起始时间"   type="text" class="form-ddl-txt"  style="width:201px;" onchange ="javascript:GetLinkCtrlData_AjaxF_1771_441(this,''请假起始时间'');" onblur ="javascript:if(!DcxVld.Validate(this,1771,''AjaxF_'',1771,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1771,''AjaxF_'',1771);DcxDTime.ShowCalendar(this,true);" EntId="1771" IsField=1 DBField=1 IsPost=1 FieldName="请假起始时间" dType="3" Vtp="0" RDT="3" Isc="1" RId="1" CId="6" FId="3937" vlk=0    CBack=1  value="','"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>','',-1,-1,-1,-1,0,'1771,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3937,[Form_EntId]=1771,[EntId]=1771,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='请假起始时间',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=17,[DefaultValue]='{$date}',[ValueType]=0,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=6,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=5,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$date},',[BeforeHtml]='</span>
  </div>
</li>

<li areaid="653" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3937">请假起始时间</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-ddl"><input  id="d1771_请假起始时间"   type="text" class="form-ddl-txt"  style="width:201px;" onchange ="javascript:GetLinkCtrlData_AjaxF_1771_441(this,''请假起始时间'');" onblur ="javascript:if(!DcxVld.Validate(this,1771,''AjaxF_'',1771,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1771,''AjaxF_'',1771);DcxDTime.ShowCalendar(this,true);" EntId="1771" IsField=1 DBField=1 IsPost=1 FieldName="请假起始时间" dType="3" Vtp="0" RDT="3" Isc="1" RId="1" CId="6" FId="3937" vlk=0    CBack=1  value="',[CtrlbackHtml]='"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1771,' where  [FldUId]='414a050e-0862-9840-bd10-b1d8a6561546' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='3bc831d5-2912-e945-ade7-92e289374732'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3938,'3bc831d5-2912-e945-ade7-92e289374732',1771,1771,'00000000-0000-0000-0000-000000000000','请假结束时间',3,3,18,'',5,1,null,0,6,1,0,6,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="654" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3938">请假结束时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<div class="form-ddl"><input  id="d1771_请假结束时间"   type="text" class="form-ddl-txt"  style="width:201px;" onchange ="javascript:GetLinkCtrlData_AjaxF_1771_441(this,''请假结束时间'');" onblur ="javascript:if(!DcxVld.Validate(this,1771,''AjaxF_'',1771,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1771,''AjaxF_'',1771);DcxDTime.ShowCalendar(this,true);" EntId="1771" IsField=1 DBField=1 IsPost=1 FieldName="请假结束时间" dType="3" Vtp="5" RDT="3" Isc="1" RId="1" CId="6" FId="3938" vlk=0    CBack=1  value="','"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>','',-1,-1,-1,-1,0,'1771,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3938,[Form_EntId]=1771,[EntId]=1771,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='请假结束时间',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=18,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=6,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=6,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="654" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3938">请假结束时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-ddl"><input  id="d1771_请假结束时间"   type="text" class="form-ddl-txt"  style="width:201px;" onchange ="javascript:GetLinkCtrlData_AjaxF_1771_441(this,''请假结束时间'');" onblur ="javascript:if(!DcxVld.Validate(this,1771,''AjaxF_'',1771,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1771,''AjaxF_'',1771);DcxDTime.ShowCalendar(this,true);" EntId="1771" IsField=1 DBField=1 IsPost=1 FieldName="请假结束时间" dType="3" Vtp="5" RDT="3" Isc="1" RId="1" CId="6" FId="3938" vlk=0    CBack=1  value="',[CtrlbackHtml]='"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1771,' where  [FldUId]='3bc831d5-2912-e945-ade7-92e289374732' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='0111f2ad-b1f2-42b0-beed-3a5341d82e33'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3939,'0111f2ad-b1f2-42b0-beed-3a5341d82e33',1771,1771,'00000000-0000-0000-0000-000000000000','请假天数',7,5,19,'',3,1,1,0,1,1,1,7,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="655" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3939">请假天数</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1771_请假天数"   type="text" class="form-txt"  style="width:221px;" onblur ="javascript:if(!DcxVld.Validate(this,1771,''AjaxF_'',1771,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1771,''AjaxF_'',1771);" EntId="1771" IsField=1 DBField=1 IsPost=1 FieldName="请假天数" dType="7" Vtp="3" RDT="5" Isc="1" RId="1" CId="1" FId="3939" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1771,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3939,[Form_EntId]=1771,[EntId]=1771,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='请假天数',[FieldDataTypeId]=7,[RunDataTypeId]=5,[DBFieldId]=19,[DefaultValue]='',[ValueType]=3,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=7,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="655" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3939">请假天数</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1771_请假天数"   type="text" class="form-txt"  style="width:221px;" onblur ="javascript:if(!DcxVld.Validate(this,1771,''AjaxF_'',1771,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1771,''AjaxF_'',1771);" EntId="1771" IsField=1 DBField=1 IsPost=1 FieldName="请假天数" dType="7" Vtp="3" RDT="5" Isc="1" RId="1" CId="1" FId="3939" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1771,' where  [FldUId]='0111f2ad-b1f2-42b0-beed-3a5341d82e33' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='ba612cd0-bb1a-d137-6c42-5387e9abe304'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3936,'ba612cd0-bb1a-d137-6c42-5387e9abe304',1771,1771,'00000000-0000-0000-0000-000000000000','请假类型',2,2,16,'事假|',1,2,1,0,34,1,1,8,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="652" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3936">请假类型</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','<!--dds_1771_请假类型_begin-->
<div style="display: none;" id="dds_d1771_请假类型" class="selector-ddl">
<div id="dds_d1771_请假类型_title" class="sel_title">请选择</div>
<div id="dds_d1771_请假类型_content" class="sel_list"><ul id="dds_d1771_请假类型_ul">
<li onclick="javascript:DcxDdl.GetValueAf(this,0);" id="dds_d1771_请假类型_li0" class="sel_li">
<a class="op_a" id="d1771_请假类型a" href="javascript:void(0);"><span id="d1771_请假类型s" IsT=1>事假</span><em id="d1771_请假类型e" IsV=1></em></a>
</li>
<li onclick="javascript:DcxDdl.GetValueAf(this,1);" id="dds_d1771_请假类型_li1" class="sel_li">
<a class="op_a" id="d1771_请假类型a" href="javascript:void(0);"><span id="d1771_请假类型s" IsT=1>病假</span><em id="d1771_请假类型e" IsV=1>病假</em></a>
</li>
<li onclick="javascript:DcxDdl.GetValueAf(this,2);" id="dds_d1771_请假类型_li2" class="sel_li">
<a class="op_a" id="d1771_请假类型a" href="javascript:void(0);"><span id="d1771_请假类型s" IsT=1>补休假</span><em id="d1771_请假类型e" IsV=1>补休假</em></a>
</li>
<li onclick="javascript:DcxDdl.GetValueAf(this,3);" id="dds_d1771_请假类型_li3" class="sel_li">
<a class="op_a" id="d1771_请假类型a" href="javascript:void(0);"><span id="d1771_请假类型s" IsT=1>年休假</span><em id="d1771_请假类型e" IsV=1>年休假</em></a>
</li>
<li onclick="javascript:DcxDdl.GetValueAf(this,4);" id="dds_d1771_请假类型_li4" class="sel_li">
<a class="op_a" id="d1771_请假类型a" href="javascript:void(0);"><span id="d1771_请假类型s" IsT=1>婚假</span><em id="d1771_请假类型e" IsV=1>婚假</em></a>
</li>
<li onclick="javascript:DcxDdl.GetValueAf(this,5);" id="dds_d1771_请假类型_li5" class="sel_li">
<a class="op_a" id="d1771_请假类型a" href="javascript:void(0);"><span id="d1771_请假类型s" IsT=1>其他</span><em id="d1771_请假类型e" IsV=1>其他</em></a>
</li>
</ul>
<ul id="dds_d1771_请假类型_search_ul"></ul>
</div>
<iframe style="z-index: -1; border-bottom: 0px; position: absolute; filter: alpha(opacity = 0);
border-left: 0px; width: 106px; background: #fff; overflow: hidden; border-top: 0px;
top: -8px; border-right: 0px; left: -8px; opacity: 0" id="mgiframe" marginheight="0"
frameborder="0" marginwidth="0" src=""></iframe>
</div>

<!--dds_1771_请假类型_end-->','','<div id="d1771_请假类型" class="form-ddl" style="-width:231px;" IsForField=1 EntId="1771" FId="3936" Vtp="1" RId="2" Isc="1" CId="34" FieldName="请假类型" ><input  id="d1771_请假类型_Text" type="text" class="form-ddl-txt" readonly="readOnly"  CId="34" FId="3936" Vtp="1"  RId="2" Isc="1"  style="width:201px;" onclick ="javascript:DcxDdl.ShowDialogAf(this,1771,''请假类型'',false);" onchange ="javascript:if(!DcxVld.Validate(this,1771,''AjaxF_'',1771,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1771,''AjaxF_'',1771);" onkeyup ="javascript:DcxDdl.ShowDialogAf(this,1771,''请假类型'',true);" value="','" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d1771_请假类型_hid" type="hidden"  EntId="1771" IsField=1 DBField=1 IsPost=1 FieldName="请假类型" dType="2" Vtp="1" RDT="2" Isc="1" RId="2" CId="34" FId="3936" vlk=0    value="','"/>',-1,-1,-1,-1,0,'1771,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3936,[Form_EntId]=1771,[EntId]=1771,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='请假类型',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=16,[DefaultValue]='事假|',[ValueType]=1,[RunValueType]=2,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=34,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=8,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="652" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3936">请假类型</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='<!--dds_1771_请假类型_begin-->
<div style="display: none;" id="dds_d1771_请假类型" class="selector-ddl">
<div id="dds_d1771_请假类型_title" class="sel_title">请选择</div>
<div id="dds_d1771_请假类型_content" class="sel_list"><ul id="dds_d1771_请假类型_ul">
<li onclick="javascript:DcxDdl.GetValueAf(this,0);" id="dds_d1771_请假类型_li0" class="sel_li">
<a class="op_a" id="d1771_请假类型a" href="javascript:void(0);"><span id="d1771_请假类型s" IsT=1>事假</span><em id="d1771_请假类型e" IsV=1></em></a>
</li>
<li onclick="javascript:DcxDdl.GetValueAf(this,1);" id="dds_d1771_请假类型_li1" class="sel_li">
<a class="op_a" id="d1771_请假类型a" href="javascript:void(0);"><span id="d1771_请假类型s" IsT=1>病假</span><em id="d1771_请假类型e" IsV=1>病假</em></a>
</li>
<li onclick="javascript:DcxDdl.GetValueAf(this,2);" id="dds_d1771_请假类型_li2" class="sel_li">
<a class="op_a" id="d1771_请假类型a" href="javascript:void(0);"><span id="d1771_请假类型s" IsT=1>补休假</span><em id="d1771_请假类型e" IsV=1>补休假</em></a>
</li>
<li onclick="javascript:DcxDdl.GetValueAf(this,3);" id="dds_d1771_请假类型_li3" class="sel_li">
<a class="op_a" id="d1771_请假类型a" href="javascript:void(0);"><span id="d1771_请假类型s" IsT=1>年休假</span><em id="d1771_请假类型e" IsV=1>年休假</em></a>
</li>
<li onclick="javascript:DcxDdl.GetValueAf(this,4);" id="dds_d1771_请假类型_li4" class="sel_li">
<a class="op_a" id="d1771_请假类型a" href="javascript:void(0);"><span id="d1771_请假类型s" IsT=1>婚假</span><em id="d1771_请假类型e" IsV=1>婚假</em></a>
</li>
<li onclick="javascript:DcxDdl.GetValueAf(this,5);" id="dds_d1771_请假类型_li5" class="sel_li">
<a class="op_a" id="d1771_请假类型a" href="javascript:void(0);"><span id="d1771_请假类型s" IsT=1>其他</span><em id="d1771_请假类型e" IsV=1>其他</em></a>
</li>
</ul>
<ul id="dds_d1771_请假类型_search_ul"></ul>
</div>
<iframe style="z-index: -1; border-bottom: 0px; position: absolute; filter: alpha(opacity = 0);
border-left: 0px; width: 106px; background: #fff; overflow: hidden; border-top: 0px;
top: -8px; border-right: 0px; left: -8px; opacity: 0" id="mgiframe" marginheight="0"
frameborder="0" marginwidth="0" src=""></iframe>
</div>

<!--dds_1771_请假类型_end-->',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d1771_请假类型" class="form-ddl" style="-width:231px;" IsForField=1 EntId="1771" FId="3936" Vtp="1" RId="2" Isc="1" CId="34" FieldName="请假类型" ><input  id="d1771_请假类型_Text" type="text" class="form-ddl-txt" readonly="readOnly"  CId="34" FId="3936" Vtp="1"  RId="2" Isc="1"  style="width:201px;" onclick ="javascript:DcxDdl.ShowDialogAf(this,1771,''请假类型'',false);" onchange ="javascript:if(!DcxVld.Validate(this,1771,''AjaxF_'',1771,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1771,''AjaxF_'',1771);" onkeyup ="javascript:DcxDdl.ShowDialogAf(this,1771,''请假类型'',true);" value="',[CtrlbackHtml]='" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d1771_请假类型_hid" type="hidden"  EntId="1771" IsField=1 DBField=1 IsPost=1 FieldName="请假类型" dType="2" Vtp="1" RDT="2" Isc="1" RId="2" CId="34" FId="3936" vlk=0    value="',[CtrlLastHtml]='"/>',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1771,' where  [FldUId]='ba612cd0-bb1a-d137-6c42-5387e9abe304' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='b99c9ab3-67d3-14a3-dc57-1f6e2b338c18'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3940,'b99c9ab3-67d3-14a3-dc57-1f6e2b338c18',1771,1771,'00000000-0000-0000-0000-000000000000','请假原因',2,2,20,'',5,1,1,0,2,1,1,9,-1,0,0,'','','','','</span>
  </div>
</li><li areaid="656" style="height: 138px; width: 792px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3940" istitle="1">请假原因</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1771_请假原因" class="form-txts"  style="width:575px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1771,''AjaxF_'',1771,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1771,''AjaxF_'',1771);" EntId="1771" IsField=1 DBField=1 IsPost=1 FieldName="请假原因" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="3940" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1771,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3940,[Form_EntId]=1771,[EntId]=1771,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='请假原因',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=20,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=9,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="656" style="height: 138px; width: 792px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3940" istitle="1">请假原因</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1771_请假原因" class="form-txts"  style="width:575px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1771,''AjaxF_'',1771,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1771,''AjaxF_'',1771);" EntId="1771" IsField=1 DBField=1 IsPost=1 FieldName="请假原因" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="3940" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1771,' where  [FldUId]='b99c9ab3-67d3-14a3-dc57-1f6e2b338c18' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='511ec128-8cf1-d6a8-431d-b08d4bc13e34'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3941,'511ec128-8cf1-d6a8-431d-b08d4bc13e34',1771,1771,'00000000-0000-0000-0000-000000000000','部门意见',2,2,21,'',5,1,null,0,2,1,0,10,-1,0,0,'','','','','</span>
</div>
</li>
<li areaid="657" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3941" istitle="1">部门意见 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1771_部门意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1771,''AjaxF_'',1771,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1771,''AjaxF_'',1771);" EntId="1771" IsField=1 DBField=1 IsPost=1 FieldName="部门意见" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="3941" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1771,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3941,[Form_EntId]=1771,[EntId]=1771,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='部门意见',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=21,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=10,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="657" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3941" istitle="1">部门意见 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1771_部门意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1771,''AjaxF_'',1771,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1771,''AjaxF_'',1771);" EntId="1771" IsField=1 DBField=1 IsPost=1 FieldName="部门意见" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="3941" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1771,' where  [FldUId]='511ec128-8cf1-d6a8-431d-b08d4bc13e34' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='52295203-77ab-6622-4fcd-e251b7ce50a2'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3942,'52295203-77ab-6622-4fcd-e251b7ce50a2',1771,1771,'00000000-0000-0000-0000-000000000000','分公司领导意见',2,2,22,'',5,1,null,0,2,1,0,11,-1,0,0,'','','','','</span>
</div>
</li>
<li areaid="658" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3942">分公司领导意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1771_分公司领导意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1771,''AjaxF_'',1771,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1771,''AjaxF_'',1771);" EntId="1771" IsField=1 DBField=1 IsPost=1 FieldName="分公司领导意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="3942" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1771,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3942,[Form_EntId]=1771,[EntId]=1771,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='分公司领导意见',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=22,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=11,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="658" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3942">分公司领导意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1771_分公司领导意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1771,''AjaxF_'',1771,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1771,''AjaxF_'',1771);" EntId="1771" IsField=1 DBField=1 IsPost=1 FieldName="分公司领导意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="3942" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1771,' where  [FldUId]='52295203-77ab-6622-4fcd-e251b7ce50a2' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='df6d9b37-4062-ddd0-90db-ab62499cbeaf'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3943,'df6d9b37-4062-ddd0-90db-ab62499cbeaf',1771,1771,'00000000-0000-0000-0000-000000000000','公司领导意见',2,2,23,'',5,1,1,0,2,1,1,12,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="659" style="height: 138px; width: 792px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3943" istitle="1">公司领导意见</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','</span>
</div>
</li>
</ul>
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="178" entid="1771" class="tab_ul" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="660" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li areaid="661" istab="1" tabid="2" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1" style="">
<ul isgroup="1" groupid="179" entid="1771" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="662" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="180" entid="1771" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="663" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="1771" groupid="181" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="664" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
<li areaid="665" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>','','','<textarea  id="d1771_公司领导意见" class="form-txts"  style="width:575px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1771,''AjaxF_'',1771,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1771,''AjaxF_'',1771);" EntId="1771" IsField=1 DBField=1 IsPost=1 FieldName="公司领导意见" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="3943" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1771,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3943,[Form_EntId]=1771,[EntId]=1771,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='公司领导意见',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=23,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=12,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="659" style="height: 138px; width: 792px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3943" istitle="1">公司领导意见</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
</div>
</li>
</ul>
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="178" entid="1771" class="tab_ul" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="660" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li areaid="661" istab="1" tabid="2" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1" style="">
<ul isgroup="1" groupid="179" entid="1771" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="662" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="180" entid="1771" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="663" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="1771" groupid="181" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="664" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
<li areaid="665" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1771_公司领导意见" class="form-txts"  style="width:575px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1771,''AjaxF_'',1771,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1771,''AjaxF_'',1771);" EntId="1771" IsField=1 DBField=1 IsPost=1 FieldName="公司领导意见" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="3943" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1771,' where  [FldUId]='df6d9b37-4062-ddd0-90db-ab62499cbeaf' 
      end



Delete from [Dcx_SearchForm_Run]  where [EntId]=1771

--Dcx_SearchForm_Run
      if (select count(1) from [Dcx_SearchForm_Run] where  [EntId]=1771  )<1 
      begin 
           Insert into [Dcx_SearchForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('bbe6514f-1777-4c19-91f0-a4a29a78ba2e','请假审批',1771,9,'','',0,'<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>','','DcxRun.SearchF_1771= {"MenuId":3056,"MEntId":1771,"EntName":"请假审批","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1771":{"EntId":1771,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_1771.EntMsg.E1771.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"人事_请假表","EntId":1771,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"员工姓名":{"DtId":2,"DB":1,"CId":1,"FL":100},"所属部门":{"DtId":2,"DB":1,"CId":8,"FL":100},"岗位":{"DtId":2,"DB":1,"CId":8,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.SearchF_1771.EntMsg.E1771.GetDataRowModel=function()
{
    return {"员工姓名":"","所属部门":"","岗位":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_1771.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1771,''SearchF_'',buildNew,closeDlg);

}','',20,'','','','1771*LD_Id*2**2*人事_请假表*请假审批',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 5:45:57',3,'admin','2013-11-16 17:38:22',1)
      end
      else 
      begin 
           update [Dcx_SearchForm_Run] set [FormId]='bbe6514f-1777-4c19-91f0-a4a29a78ba2e',[FormName]='请假审批',[ModuleId]=9,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.SearchF_1771= {"MenuId":3056,"MEntId":1771,"EntName":"请假审批","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1771":{"EntId":1771,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_1771.EntMsg.E1771.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"人事_请假表","EntId":1771,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"员工姓名":{"DtId":2,"DB":1,"CId":1,"FL":100},"所属部门":{"DtId":2,"DB":1,"CId":8,"FL":100},"岗位":{"DtId":2,"DB":1,"CId":8,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.SearchF_1771.EntMsg.E1771.GetDataRowModel=function()
{
    return {"员工姓名":"","所属部门":"","岗位":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_1771.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1771,''SearchF_'',buildNew,closeDlg);

}',[LoadingSql]='',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='1771*LD_Id*2**2*人事_请假表*请假审批',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 5:45:57',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-16 17:38:22',[AccountId]=1 where  [EntId]=1771 
      end




--Dcx_SearchFormField_Run
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='cd6e8bbc-04d7-4fab-9571-1994f5e1bf01'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'cd6e8bbc-04d7-4fab-9571-1994f5e1bf01',1771,1771,'00000000-0000-0000-0000-000000000000',1,'Like','员工姓名',2,2,13,'',5,1,1,0,1,1,0,-1,1,0,'','','','','<div class="searchform">
<ul isgroup="1" groupid="27" entid="1771" class="search-block w920" ctrlprex="SearchF_" isrple="1">
<li areaid="105" class="search-li w240 h32" scroll="no" style="width: 241px; position: static;">
<label class="search-title pad7" istitle="1" fldid="1">员工姓名</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">','','','','<input  id="d1771_员工姓名"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1771,''SearchF_'',1771,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1771,''SearchF_'',1771);" EntId="1771" IsField=1 DBField=1 IsPost=1 FieldName="员工姓名" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'1771,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=1,[Form_EntId]=1771,[EntId]=1771,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[CompareOperatorType]='Like',[FieldName]='员工姓名',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=13,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="searchform">
<ul isgroup="1" groupid="27" entid="1771" class="search-block w920" ctrlprex="SearchF_" isrple="1">
<li areaid="105" class="search-li w240 h32" scroll="no" style="width: 241px; position: static;">
<label class="search-title pad7" istitle="1" fldid="1">员工姓名</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1771_员工姓名"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1771,''SearchF_'',1771,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1771,''SearchF_'',1771);" EntId="1771" IsField=1 DBField=1 IsPost=1 FieldName="员工姓名" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1771,' where  [FldUId]='cd6e8bbc-04d7-4fab-9571-1994f5e1bf01' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='ff65df06-1d2a-439e-8c83-a1a12081ad16'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'ff65df06-1d2a-439e-8c83-a1a12081ad16',1771,1771,'00000000-0000-0000-0000-000000000000',2,'Like','所属部门',2,2,14,'select '''' union SELECT [DeptName]  FROM [Dcx_Dept]',2,-1,1,0,8,1,0,-1,1,0,'','','','','</span>
  </div>
</li>
<li areaid="106" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="2">部门</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">','','','','<input  id="d1771_所属部门"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1771,''SearchF_'',1771,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1771,''SearchF_'',1771);" EntId="1771" IsField=1 DBField=1 IsPost=1 FieldName="所属部门" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="8" FId="2" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'1771,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=2,[Form_EntId]=1771,[EntId]=1771,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[CompareOperatorType]='Like',[FieldName]='所属部门',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=14,[DefaultValue]='select '''' union SELECT [DeptName]  FROM [Dcx_Dept]',[ValueType]=2,[RunValueType]=-1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=8,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="106" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="2">部门</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1771_所属部门"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1771,''SearchF_'',1771,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1771,''SearchF_'',1771);" EntId="1771" IsField=1 DBField=1 IsPost=1 FieldName="所属部门" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="8" FId="2" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1771,' where  [FldUId]='ff65df06-1d2a-439e-8c83-a1a12081ad16' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='145da114-87f2-4101-84df-981e3c7f9944'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'145da114-87f2-4101-84df-981e3c7f9944',1771,1771,'00000000-0000-0000-0000-000000000000',3,'Like','岗位',2,2,15,'select '''' union SELECT [Position_Name] FROM [Dcx_Position]',2,-1,1,0,8,1,0,-1,1,0,'','','','','</span>
  </div>
</li>
<li areaid="107" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="3">岗位</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">','</span>
  </div>
</li>
<li areaid="108" class="search-li w100 h32" scroll="no" style="position: static;">
<div class="searchform-button" onclick="javascript:return VL_Search(1771);">
<div class="search-btn">&nbsp;</div>
<a href="javascript:void(0);" id="1771_searchBT">搜索</a>
</div>
</li>
</ul>
</div>','','','<input  id="d1771_岗位"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1771,''SearchF_'',1771,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1771,''SearchF_'',1771);" EntId="1771" IsField=1 DBField=1 IsPost=1 FieldName="岗位" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="8" FId="3" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'1771,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=3,[Form_EntId]=1771,[EntId]=1771,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[CompareOperatorType]='Like',[FieldName]='岗位',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=15,[DefaultValue]='select '''' union SELECT [Position_Name] FROM [Dcx_Position]',[ValueType]=2,[RunValueType]=-1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=8,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="107" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="3">岗位</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
  </div>
</li>
<li areaid="108" class="search-li w100 h32" scroll="no" style="position: static;">
<div class="searchform-button" onclick="javascript:return VL_Search(1771);">
<div class="search-btn">&nbsp;</div>
<a href="javascript:void(0);" id="1771_searchBT">搜索</a>
</div>
</li>
</ul>
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1771_岗位"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1771,''SearchF_'',1771,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1771,''SearchF_'',1771);" EntId="1771" IsField=1 DBField=1 IsPost=1 FieldName="岗位" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="8" FId="3" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1771,' where  [FldUId]='145da114-87f2-4101-84df-981e3c7f9944' 
      end



Delete from [Dcx_BrowseReport_Run]  where [EntId]=1771

--Dcx_BrowseReport_Run
      if (select count(1) from [Dcx_BrowseReport_Run] where  [EntId]=1771  )<1 
      begin 
           Insert into [Dcx_BrowseReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[DIYJsCss],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('05a22872-d608-4c25-bc6d-c3e32e6f3aac','请假审批',1771,31,'','<$1771$>select [员工编号],[员工姓名],[所属部门],[岗位],[请假类型],[请假起始时间],[请假结束时间],[请假天数],[LD_Id] from 人事_请假表 where [LD_Id]=''{$keyfieldvalue}''</$1771$>',1,1,20,'','DcxRun.MChildR_1771= {"MenuId":3056,"MEntId":1771,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"请假审批","EntMsg":{"E1771":{"EntId":1771,"EntName":"请假审批","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":115,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1771*LD_Id*2**2*人事_请假表*请假审批',3,'','2012-12-21 11:03:02',3,'','2013-11-17 3:04:09',1)
      end
      else 
      begin 
           update [Dcx_BrowseReport_Run] set [ReportId]='05a22872-d608-4c25-bc6d-c3e32e6f3aac',[ReportName]='请假审批',[ModuleId]=31,[StaticHtml]='',[LoadingSql]='<$1771$>select [员工编号],[员工姓名],[所属部门],[岗位],[请假类型],[请假起始时间],[请假结束时间],[请假天数],[LD_Id] from 人事_请假表 where [LD_Id]=''{$keyfieldvalue}''</$1771$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[DIYJsCss]='',[AutoPublicJs]='DcxRun.MChildR_1771= {"MenuId":3056,"MEntId":1771,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"请假审批","EntMsg":{"E1771":{"EntId":1771,"EntName":"请假审批","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":115,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1771*LD_Id*2**2*人事_请假表*请假审批',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-21 11:03:02',[EditorId]=3,[Editor]='',[EditTime]='2013-11-17 3:04:09',[AccountId]=1 where  [EntId]=1771 
      end




--Dcx_BrowseReportField_Run
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='09f9d1c0-229f-43a7-83f0-801eec4752ea'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'09f9d1c0-229f-43a7-83f0-801eec4752ea',1771,1771,'00000000-0000-0000-0000-000000000000',12,'员工编号',1,1,'varchar',2,1,0,'','','','<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1771" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="443" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">请假审批</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1771" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="444" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">员工编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1771" fieldname="员工编号" fldid="1" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1771,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=1,[Report_EntId]=1771,[EntId]=1771,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=12,[FieldName]='员工编号',[FieldNO]=1,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1771" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="443" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">请假审批</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1771" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="444" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">员工编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1771" fieldname="员工编号" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1771,' where  [FldUId]='09f9d1c0-229f-43a7-83f0-801eec4752ea' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='83d27307-30ec-476f-a91c-7555c58a6065'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'83d27307-30ec-476f-a91c-7555c58a6065',1771,1771,'00000000-0000-0000-0000-000000000000',13,'员工姓名',2,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="445" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">员工姓名  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1771" fieldname="员工姓名" fldid="2" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1771,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=2,[Report_EntId]=1771,[EntId]=1771,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=13,[FieldName]='员工姓名',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="445" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">员工姓名  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1771" fieldname="员工姓名" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1771,' where  [FldUId]='83d27307-30ec-476f-a91c-7555c58a6065' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='b3cdb876-3c61-4406-a7da-08ddc1405be5'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'b3cdb876-3c61-4406-a7da-08ddc1405be5',1771,1771,'00000000-0000-0000-0000-000000000000',14,'所属部门',3,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="446" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">所属部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1771" fieldname="所属部门" fldid="3" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1771,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=3,[Report_EntId]=1771,[EntId]=1771,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=14,[FieldName]='所属部门',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="446" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">所属部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1771" fieldname="所属部门" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1771,' where  [FldUId]='b3cdb876-3c61-4406-a7da-08ddc1405be5' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='b196e5e1-7f45-4c4a-8f61-75cc44abce91'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'b196e5e1-7f45-4c4a-8f61-75cc44abce91',1771,1771,'00000000-0000-0000-0000-000000000000',15,'岗位',4,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="447" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">岗位  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1771" fieldname="岗位" fldid="4" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1771,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=4,[Report_EntId]=1771,[EntId]=1771,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=15,[FieldName]='岗位',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="447" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">岗位  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1771" fieldname="岗位" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1771,' where  [FldUId]='b196e5e1-7f45-4c4a-8f61-75cc44abce91' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='26086b9a-5b44-46a9-b930-6b5545ed1d64'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'26086b9a-5b44-46a9-b930-6b5545ed1d64',1771,1771,'00000000-0000-0000-0000-000000000000',16,'请假类型',5,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="448" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">请假类型  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1771" fieldname="请假类型" fldid="5" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1771,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=5,[Report_EntId]=1771,[EntId]=1771,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=16,[FieldName]='请假类型',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="448" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">请假类型  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1771" fieldname="请假类型" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1771,' where  [FldUId]='26086b9a-5b44-46a9-b930-6b5545ed1d64' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='bb5942d3-26d6-44e5-8b2a-fb3576e85e12'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'bb5942d3-26d6-44e5-8b2a-fb3576e85e12',1771,1771,'00000000-0000-0000-0000-000000000000',17,'请假起始时间',6,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="449" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">起始时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1771" fieldname="请假起始时间" fldid="6" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1771,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=6,[Report_EntId]=1771,[EntId]=1771,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=17,[FieldName]='请假起始时间',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="449" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">起始时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1771" fieldname="请假起始时间" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1771,' where  [FldUId]='bb5942d3-26d6-44e5-8b2a-fb3576e85e12' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='896e2ea5-4bb8-4a9d-ae7d-257b8b264dc6'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'896e2ea5-4bb8-4a9d-ae7d-257b8b264dc6',1771,1771,'00000000-0000-0000-0000-000000000000',18,'请假结束时间',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="450" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">结束时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1771" fieldname="请假结束时间" fldid="7" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1771,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=7,[Report_EntId]=1771,[EntId]=1771,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=18,[FieldName]='请假结束时间',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="450" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">结束时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1771" fieldname="请假结束时间" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1771,' where  [FldUId]='896e2ea5-4bb8-4a9d-ae7d-257b8b264dc6' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='3bf648a2-9a84-4064-8e0c-c410d90882db'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'3bf648a2-9a84-4064-8e0c-c410d90882db',1771,1771,'00000000-0000-0000-0000-000000000000',19,'请假天数',8,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="451" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="8">请假天数  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1771" fieldname="请假天数" fldid="8" columntypeid="1" class="form-ctr">','</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1771" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="456" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="457" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1771" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="458" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1771" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="459" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1771" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="460" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="461" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',-1,-1,-1,-1,0,'1771,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=8,[Report_EntId]=1771,[EntId]=1771,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=19,[FieldName]='请假天数',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="451" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="8">请假天数  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1771" fieldname="请假天数" fldid="8" columntypeid="1" class="form-ctr">',[LastHtml]='</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1771" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="456" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="457" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1771" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="458" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1771" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="459" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1771" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="460" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="461" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1771,' where  [FldUId]='3bf648a2-9a84-4064-8e0c-c410d90882db' 
      end



Delete from [Dcx_ListReport_Run]  where [EntId]=1771

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=1771  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('ae83a30b-442d-438d-a2b5-105fa1b9d2ca','请假审批',1771,1,'','','<$1771$>select *  from (select row_number() over( order by [LD_Id])as dcx_rowid,[员工编号],[WFFlowId],[WFRunId],[WFPrcsId],[员工姓名],[所属部门],[岗位],[请假类型],[请假起始时间],[请假结束时间],[请假天数],[LD_Id] from 人事_请假表  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1771$><$1771:Count$>select count([LD_Id]) from 人事_请假表 where {$SearchArea}</$1771:Count$>',1,1,20,'DcxRun.ListR_1771= {"MenuId":3056,"MEntId":1771,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"请假审批","EntMsg":{"E1771":{"EntId":1771,"EntName":"请假审批","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":115,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1771*LD_Id*2**2*人事_请假表*请假审批',3,'','2012-12-22 5:16:19',3,'','2013-11-16 20:11:47',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='ae83a30b-442d-438d-a2b5-105fa1b9d2ca',[ReportName]='请假审批',[ModuleId]=1,[StaticHtml]='',[DIYJsCss]='',[LoadingSql]='<$1771$>select *  from (select row_number() over( order by [LD_Id])as dcx_rowid,[员工编号],[WFFlowId],[WFRunId],[WFPrcsId],[员工姓名],[所属部门],[岗位],[请假类型],[请假起始时间],[请假结束时间],[请假天数],[LD_Id] from 人事_请假表  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1771$><$1771:Count$>select count([LD_Id]) from 人事_请假表 where {$SearchArea}</$1771:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[AutoPublicJs]='DcxRun.ListR_1771= {"MenuId":3056,"MEntId":1771,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"请假审批","EntMsg":{"E1771":{"EntId":1771,"EntName":"请假审批","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":115,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1771*LD_Id*2**2*人事_请假表*请假审批',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-22 5:16:19',[EditorId]=3,[Editor]='',[EditTime]='2013-11-16 20:11:47',[AccountId]=1 where  [EntId]=1771 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='40de7e9b-ce00-8953-f0c2-85d0f1686e58'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(454,'40de7e9b-ce00-8953-f0c2-85d0f1686e58',1771,1771,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="101" entid="1771" style="width: 1060px;" ctrlprex="ListR_" isrple="1"> <li areaid="1489" class="tool-li" style="position: static;">
</li><li areaid="1490" class="tool-li" style="position: static;"><a id="ListR_1771_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1771,''ListR_'');">删   除</a></li>
<li areaid="1491" class="tool-li" style="position: static;"><a id="ListR_1771_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1771,''ListR_'');">导   出</a></li>
<li areaid="1492" class="tool-li" style="position: static;"><a id="ListR_1771_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1771,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1771" style="position: static;">
<a id="ListR_1771_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1771,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1771_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1771,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1771_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1771,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1771_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="102" entid="1771" class="list-head-ul" style="width: 1080px;" ctrlprex="ListR_" isrple="1">
<li areaid="1494" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1771" onclick="javascript:DcxCom.CheckedAll(this,1771,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="1495" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">员工编号 </label></li><li areaid="1496" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">员工姓名 </label></li><li areaid="1497" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">所属部门 </label></li><li areaid="1498" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">岗位 </label></li><li areaid="1499" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">请假类型 </label></li><li areaid="1500" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">起始时间 </label></li><li areaid="1501" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">结束时间 </label></li><li areaid="1502" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">请假天数 </label></li><li areaid="1503" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="办理"><span class="i">办理</span></a></div></li><li areaid="1504" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="1505" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">','',-1,103,-1,-1,1,'1771,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=454,[Report_EntId]=1771,[EntId]=1771,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="101" entid="1771" style="width: 1060px;" ctrlprex="ListR_" isrple="1"> <li areaid="1489" class="tool-li" style="position: static;">
</li><li areaid="1490" class="tool-li" style="position: static;"><a id="ListR_1771_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1771,''ListR_'');">删   除</a></li>
<li areaid="1491" class="tool-li" style="position: static;"><a id="ListR_1771_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1771,''ListR_'');">导   出</a></li>
<li areaid="1492" class="tool-li" style="position: static;"><a id="ListR_1771_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1771,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1771" style="position: static;">
<a id="ListR_1771_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1771,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1771_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1771,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1771_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1771,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1771_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="102" entid="1771" class="list-head-ul" style="width: 1080px;" ctrlprex="ListR_" isrple="1">
<li areaid="1494" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1771" onclick="javascript:DcxCom.CheckedAll(this,1771,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="1495" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">员工编号 </label></li><li areaid="1496" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">员工姓名 </label></li><li areaid="1497" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">所属部门 </label></li><li areaid="1498" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">岗位 </label></li><li areaid="1499" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">请假类型 </label></li><li areaid="1500" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">起始时间 </label></li><li areaid="1501" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">结束时间 </label></li><li areaid="1502" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">请假天数 </label></li><li areaid="1503" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="办理"><span class="i">办理</span></a></div></li><li areaid="1504" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="1505" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1771,' where  [FldUId]='40de7e9b-ce00-8953-f0c2-85d0f1686e58' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='c587a5d9-cfa2-4227-9202-e3900b062ee0'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(154,'c587a5d9-cfa2-4227-9202-e3900b062ee0',1771,1771,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',2,1,'',2,21,0,'','','','islonly="1" isgroup="1" groupid="103" class="list-body-ul" style="width: 1080px;" isrple="1">
<li areaid="1506" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1771" issyscheck="1" keyvalue="','',-1,103,-1,-1,1,'1771,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=154,[Report_EntId]=1771,[EntId]=1771,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='islonly="1" isgroup="1" groupid="103" class="list-body-ul" style="width: 1080px;" isrple="1">
<li areaid="1506" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1771" issyscheck="1" keyvalue="',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1771,' where  [FldUId]='c587a5d9-cfa2-4227-9202-e3900b062ee0' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='ef0597b9-d79e-4d22-9773-7a1d544db922'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'ef0597b9-d79e-4d22-9773-7a1d544db922',1771,1771,'00000000-0000-0000-0000-000000000000',12,'员工编号',3,1,'varchar',2,1,0,'','','','" type="checkbox"></li><li areaid="1507" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1771" fieldname="员工编号" fldid="1" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1771,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=1,[Report_EntId]=1771,[EntId]=1771,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=12,[FieldName]='员工编号',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='" type="checkbox"></li><li areaid="1507" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1771" fieldname="员工编号" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1771,' where  [FldUId]='ef0597b9-d79e-4d22-9773-7a1d544db922' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='559807c6-303f-4347-8222-dd0a1a0083e7'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(405,'559807c6-303f-4347-8222-dd0a1a0083e7',1771,1771,'00000000-0000-0000-0000-000000000000',9,'WFFlowId',4,1,'',1,1,0,'','','','</span>
   <span isfield="1" entid="1771" fieldname="WFFlowId" fldid="405" columntypeid="1" class="form-ctr" style="display: none;">','',-1,103,-1,-1,1,'1771,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=405,[Report_EntId]=1771,[EntId]=1771,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=9,[FieldName]='WFFlowId',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   <span isfield="1" entid="1771" fieldname="WFFlowId" fldid="405" columntypeid="1" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1771,' where  [FldUId]='559807c6-303f-4347-8222-dd0a1a0083e7' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='f30da0ab-91e7-444b-a2f3-fbdbbbc325ac'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(406,'f30da0ab-91e7-444b-a2f3-fbdbbbc325ac',1771,1771,'00000000-0000-0000-0000-000000000000',8,'WFRunId',5,1,'',1,1,0,'','','','</span>
   <span isfield="1" entid="1771" fieldname="WFRunId" fldid="406" columntypeid="1" class="form-ctr" style="display: none;">','',-1,103,-1,-1,1,'1771,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=406,[Report_EntId]=1771,[EntId]=1771,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=8,[FieldName]='WFRunId',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   <span isfield="1" entid="1771" fieldname="WFRunId" fldid="406" columntypeid="1" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1771,' where  [FldUId]='f30da0ab-91e7-444b-a2f3-fbdbbbc325ac' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='915c0dfe-790a-4e00-ab96-00b1a036135a'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(407,'915c0dfe-790a-4e00-ab96-00b1a036135a',1771,1771,'00000000-0000-0000-0000-000000000000',10,'WFPrcsId',6,1,'',1,1,0,'','','','</span>
   <span isfield="1" entid="1771" fieldname="WFPrcsId" fldid="407" columntypeid="1" class="form-ctr" style="display: none;">','',-1,103,-1,-1,1,'1771,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=407,[Report_EntId]=1771,[EntId]=1771,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=10,[FieldName]='WFPrcsId',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   <span isfield="1" entid="1771" fieldname="WFPrcsId" fldid="407" columntypeid="1" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1771,' where  [FldUId]='915c0dfe-790a-4e00-ab96-00b1a036135a' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='edb37b28-d688-4c3f-a37c-0a1f384c19e4'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'edb37b28-d688-4c3f-a37c-0a1f384c19e4',1771,1771,'00000000-0000-0000-0000-000000000000',13,'员工姓名',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1508" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1771" fieldname="员工姓名" fldid="2" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1771,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=2,[Report_EntId]=1771,[EntId]=1771,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=13,[FieldName]='员工姓名',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1508" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1771" fieldname="员工姓名" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1771,' where  [FldUId]='edb37b28-d688-4c3f-a37c-0a1f384c19e4' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='37b2c811-fe66-4568-9470-3b34e8f70d56'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'37b2c811-fe66-4568-9470-3b34e8f70d56',1771,1771,'00000000-0000-0000-0000-000000000000',14,'所属部门',8,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1509" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1771" fieldname="所属部门" fldid="3" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1771,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=3,[Report_EntId]=1771,[EntId]=1771,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=14,[FieldName]='所属部门',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1509" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1771" fieldname="所属部门" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1771,' where  [FldUId]='37b2c811-fe66-4568-9470-3b34e8f70d56' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='3ca0ecfb-3ece-4f02-bbcc-5c2fd6f34287'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'3ca0ecfb-3ece-4f02-bbcc-5c2fd6f34287',1771,1771,'00000000-0000-0000-0000-000000000000',15,'岗位',9,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1510" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1771" fieldname="岗位" fldid="4" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1771,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=4,[Report_EntId]=1771,[EntId]=1771,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=15,[FieldName]='岗位',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1510" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1771" fieldname="岗位" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1771,' where  [FldUId]='3ca0ecfb-3ece-4f02-bbcc-5c2fd6f34287' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='b1f07bf6-7a69-496c-be9f-08e85e2ba9fb'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'b1f07bf6-7a69-496c-be9f-08e85e2ba9fb',1771,1771,'00000000-0000-0000-0000-000000000000',16,'请假类型',10,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1511" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1771" fieldname="请假类型" fldid="5" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1771,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=5,[Report_EntId]=1771,[EntId]=1771,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=16,[FieldName]='请假类型',[FieldNO]=10,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1511" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1771" fieldname="请假类型" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1771,' where  [FldUId]='b1f07bf6-7a69-496c-be9f-08e85e2ba9fb' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='91194055-5654-4be6-9c90-3d1e2cfa19c5'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'91194055-5654-4be6-9c90-3d1e2cfa19c5',1771,1771,'00000000-0000-0000-0000-000000000000',17,'请假起始时间',11,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1512" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1771" fieldname="请假起始时间" fldid="6" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1771,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=6,[Report_EntId]=1771,[EntId]=1771,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=17,[FieldName]='请假起始时间',[FieldNO]=11,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1512" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1771" fieldname="请假起始时间" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1771,' where  [FldUId]='91194055-5654-4be6-9c90-3d1e2cfa19c5' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='ffef8561-35f6-460e-96e3-76f6e578e0a3'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'ffef8561-35f6-460e-96e3-76f6e578e0a3',1771,1771,'00000000-0000-0000-0000-000000000000',18,'请假结束时间',12,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1513" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1771" fieldname="请假结束时间" fldid="7" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1771,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=7,[Report_EntId]=1771,[EntId]=1771,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=18,[FieldName]='请假结束时间',[FieldNO]=12,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1513" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1771" fieldname="请假结束时间" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1771,' where  [FldUId]='ffef8561-35f6-460e-96e3-76f6e578e0a3' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='795b6c28-d589-4f0c-8a26-d77042a8dd36'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'795b6c28-d589-4f0c-8a26-d77042a8dd36',1771,1771,'00000000-0000-0000-0000-000000000000',19,'请假天数',13,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1514" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1771" fieldname="请假天数" fldid="8" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1771,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=8,[Report_EntId]=1771,[EntId]=1771,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=19,[FieldName]='请假天数',[FieldNO]=13,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1514" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1771" fieldname="请假天数" fldid="8" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1771,' where  [FldUId]='795b6c28-d589-4f0c-8a26-d77042a8dd36' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='cb6b6b5e-0258-4e9c-9625-7fe336772f45'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(155,'cb6b6b5e-0258-4e9c-9625-7fe336772f45',1771,1771,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',14,1,'',2,21,0,'','','','</span>
  </div>
</li><li areaid="1515" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,1771,''ListR_'',''','',-1,103,-1,-1,1,'1771,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=155,[Report_EntId]=1771,[EntId]=1771,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=14,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1515" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,1771,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1771,' where  [FldUId]='cb6b6b5e-0258-4e9c-9625-7fe336772f45' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='c2af418e-1ddb-40a3-9607-84392bf52b4b'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(156,'c2af418e-1ddb-40a3-9607-84392bf52b4b',1771,1771,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',15,1,'',2,21,0,'','','',''',null,1040,480);">
<span class="i">办理</span></a></div>
</li><li areaid="1516" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1771,''ListR_'',''','',-1,103,-1,-1,1,'1771,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=156,[Report_EntId]=1771,[EntId]=1771,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=15,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">办理</span></a></div>
</li><li areaid="1516" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1771,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1771,' where  [FldUId]='c2af418e-1ddb-40a3-9607-84392bf52b4b' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='5704ec21-6fcd-43dc-941c-3037d9f9adfb'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(157,'5704ec21-6fcd-43dc-941c-3037d9f9adfb',1771,1771,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',16,1,'',2,21,0,'','','',''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="1517" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,1771,''ListR_'',''','',-1,103,-1,-1,1,'1771,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=157,[Report_EntId]=1771,[EntId]=1771,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=16,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="1517" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,1771,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1771,' where  [FldUId]='5704ec21-6fcd-43dc-941c-3037d9f9adfb' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='8835b853-889b-e460-94a3-ff0edde8771d'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(455,'8835b853-889b-e460-94a3-ff0edde8771d',1771,1771,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',17,-1,'varchar',2,13,0,'','','',''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>','</div>
</div>
<!-- 结束 --></div>',-1,103,-1,-1,1,'1771,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=455,[Report_EntId]=1771,[EntId]=1771,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=17,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>',[LastHtml]='</div>
</div>
<!-- 结束 --></div>',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1771,' where  [FldUId]='8835b853-889b-e460-94a3-ff0edde8771d' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=1024

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=1024  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(1024,null,'人事_请假表','人事_请假表',0,0,0,0,0,1,4,1,3,'admin','2013-12-15 17:32:51',3,'admin','2013-12-15 17:32:51',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='人事_请假表',[DBTableByName]='人事_请假表',[IsForbid]=0,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=1,[SystemId]=4,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:51',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:51',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=1024 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1024  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6972,1,4,1024,'int',1,1,1,'人事_请假表','LD_Id','LD_Id','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_请假表',[FieldName]='LD_Id',[FieldByname]='LD_Id',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1024  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1024  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6973,2,4,1024,'varchar',2,1,1,'人事_请假表','WFState','WFState','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_请假表',[FieldName]='WFState',[FieldByname]='WFState',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1024  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1024  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6974,3,4,1024,'varchar',2,1,1,'人事_请假表','WFUserName','WFUserName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_请假表',[FieldName]='WFUserName',[FieldByname]='WFUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1024  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1024  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6975,4,4,1024,'bit',4,1,1,'人事_请假表','WFIsFinish','WFIsFinish','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_请假表',[FieldName]='WFIsFinish',[FieldByname]='WFIsFinish',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1024  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1024  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6976,5,4,1024,'bit',4,1,1,'人事_请假表','WFIsStart','WFIsStart','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_请假表',[FieldName]='WFIsStart',[FieldByname]='WFIsStart',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1024  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1024  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6977,6,4,1024,'varchar',2,1,1,'人事_请假表','WFAllUser','WFAllUser','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_请假表',[FieldName]='WFAllUser',[FieldByname]='WFAllUser',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1024  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1024  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6978,7,4,1024,'varchar',2,1,1,'人事_请假表','WFOpinion','WFOpinion','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_请假表',[FieldName]='WFOpinion',[FieldByname]='WFOpinion',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1024  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1024  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6979,8,4,1024,'int',1,1,1,'人事_请假表','WFRunId','WFRunId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_请假表',[FieldName]='WFRunId',[FieldByname]='WFRunId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1024  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1024  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6980,9,4,1024,'int',1,1,1,'人事_请假表','WFFlowId','WFFlowId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_请假表',[FieldName]='WFFlowId',[FieldByname]='WFFlowId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1024  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1024  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6981,10,4,1024,'int',1,1,1,'人事_请假表','WFPrcsId','WFPrcsId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_请假表',[FieldName]='WFPrcsId',[FieldByname]='WFPrcsId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1024  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1024  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6982,11,4,1024,'bit',4,1,1,'人事_请假表','结果有效','结果有效','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_请假表',[FieldName]='结果有效',[FieldByname]='结果有效',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1024  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1024  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6983,12,4,1024,'varchar',2,1,1,'人事_请假表','员工编号','员工编号','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_请假表',[FieldName]='员工编号',[FieldByname]='员工编号',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1024  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1024  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6984,13,4,1024,'varchar',2,1,1,'人事_请假表','员工姓名','员工姓名','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_请假表',[FieldName]='员工姓名',[FieldByname]='员工姓名',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1024  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1024  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6985,14,4,1024,'varchar',2,1,1,'人事_请假表','所属部门','所属部门','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_请假表',[FieldName]='所属部门',[FieldByname]='所属部门',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1024  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1024  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6986,15,4,1024,'varchar',2,1,1,'人事_请假表','岗位','岗位','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_请假表',[FieldName]='岗位',[FieldByname]='岗位',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1024  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1024  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6987,16,4,1024,'varchar',2,1,1,'人事_请假表','请假类型','请假类型','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_请假表',[FieldName]='请假类型',[FieldByname]='请假类型',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1024  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1024  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6988,17,4,1024,'datetime',3,1,1,'人事_请假表','请假起始时间','请假起始时间','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_请假表',[FieldName]='请假起始时间',[FieldByname]='请假起始时间',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1024  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1024  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6989,18,4,1024,'datetime',3,1,1,'人事_请假表','请假结束时间','请假结束时间','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_请假表',[FieldName]='请假结束时间',[FieldByname]='请假结束时间',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1024  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1024  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6990,19,4,1024,'decimal',7,1,1,'人事_请假表','请假天数','请假天数','',0,0,1,9,18,1,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='decimal',[FieldDataTypeId]=7,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_请假表',[FieldName]='请假天数',[FieldByname]='请假天数',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=9,[Precision]=18,[Scale]=1,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1024  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1024  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6991,20,4,1024,'varchar',2,1,1,'人事_请假表','请假原因','请假原因','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_请假表',[FieldName]='请假原因',[FieldByname]='请假原因',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1024  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1024  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6992,21,4,1024,'varchar',2,1,1,'人事_请假表','部门意见','部门意见','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_请假表',[FieldName]='部门意见',[FieldByname]='部门意见',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1024  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1024  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6993,22,4,1024,'varchar',2,1,1,'人事_请假表','分公司领导意见','分公司领导意见','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_请假表',[FieldName]='分公司领导意见',[FieldByname]='分公司领导意见',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1024  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1024  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(6994,23,4,1024,'varchar',2,1,1,'人事_请假表','公司领导意见','公司领导意见','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_请假表',[FieldName]='公司领导意见',[FieldByname]='公司领导意见',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1024  and  [FieldId]=23 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--WF_FlowType

     SET IDENTITY_INSERT [WF_FlowType] ON 
      if (select count(1) from [WF_FlowType] where  [FlowId]=115  )<1 
      begin 
           Insert into [WF_FlowType] ([FlowId],[FlowName],[FlowNo],[SortId],[EntId],[EntName],[AutoName],[ManageUsers],[ManageNames],[QueryUsers],[QueryNames],[CanQueryRoles],[CanQueryRolesId],[CanManageRoles],[CanManageRolesId],[CanStartUsers],[CanStartNames],[CanStartRoles],[CanStartRolesId],[AttachMaxSize],[FlowAttach],[IsPigeonhole],[PigeonholedSQL],[IsFreeFlow],[QueryItem],[LaunchIsOpen],[FormUrl],[BrowseUrl],[ListUrl],[Detail],[CreatorId],[Creator],[CreateTime],[EditTime],[Editor],[EditorId],[AccountId])values(115,'请假申请',0,25,1771,'请假审批',null,'admin','admin','admin','admin','系统管理员','3','系统管理员','3',null,null,'Public','1',0,0,0,'',null,null,null,null,null,null,'',0,'admin','2013-11-30 1:06:40',null,null,null,1)
      end
      else 
      begin 
           update [WF_FlowType] set [FlowName]='请假申请',[FlowNo]=0,[SortId]=25,[EntId]=1771,[EntName]='请假审批',[AutoName]=null,[ManageUsers]='admin',[ManageNames]='admin',[QueryUsers]='admin',[QueryNames]='admin',[CanQueryRoles]='系统管理员',[CanQueryRolesId]='3',[CanManageRoles]='系统管理员',[CanManageRolesId]='3',[CanStartUsers]=null,[CanStartNames]=null,[CanStartRoles]='Public',[CanStartRolesId]='1',[AttachMaxSize]=0,[FlowAttach]=0,[IsPigeonhole]=0,[PigeonholedSQL]='',[IsFreeFlow]=null,[QueryItem]=null,[LaunchIsOpen]=null,[FormUrl]=null,[BrowseUrl]=null,[ListUrl]=null,[Detail]='',[CreatorId]=0,[Creator]='admin',[CreateTime]='2013-11-30 1:06:40',[EditTime]=null,[Editor]=null,[EditorId]=null,[AccountId]=1 where  [FlowId]=115 
      end

     SET IDENTITY_INSERT [WF_FlowType] OFF 



Delete from [WF_FlowNode]  where isnull([FlowId],0)=115 

--WF_FlowNode

     SET IDENTITY_INSERT [WF_FlowNode] ON 
      if (select count(1) from [WF_FlowNode] where  [NodeId]=621  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(621,115,'发起请假流程',1,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','622',0,1,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',null,null,0,0,null,null,null,null,null,null,null,null,null,null,null,null,null,'3936,3937,3938,3940',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=115,[NodeName]='发起请假流程',[Step]=1,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='622',[AllowLastNodeBoss]=0,[AllowWorkCreator]=1,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]=null,[TriggerAfter]=null,[CanReject]=0,[CanPigeonhole]=0,[PigeonholedSQL]=null,[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='3936,3937,3938,3940',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=621 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=622  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(622,115,'部门/项目部审批',2,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','623',0,1,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',null,null,0,0,null,null,null,null,null,null,null,null,null,null,null,null,null,'3941',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=115,[NodeName]='部门/项目部审批',[Step]=2,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='623',[AllowLastNodeBoss]=0,[AllowWorkCreator]=1,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]=null,[TriggerAfter]=null,[CanReject]=0,[CanPigeonhole]=0,[PigeonholedSQL]=null,[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='3941',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=622 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=623  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(623,115,'分公司审批',3,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','624,625',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','<$462:Begin$>
		--流出到<通知申请人>节点时 

		
Update   人事_请假表  Set   [结果有效]=1   where  {{@keyfieldname@}} = {{@主键值

		</$462:End$>',0,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'3942',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=115,[NodeName]='分公司审批',[Step]=3,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='624,625',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='<$462:Begin$>
		--流出到<通知申请人>节点时 

		
Update   人事_请假表  Set   [结果有效]=1   where  {{@keyfieldname@}} = {{@主键值

		</$462:End$>',[CanReject]=0,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='3942',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=623 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=624  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(624,115,'公司审批',4,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','625',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','<$462:Begin$>
		--流出到<通知申请人>节点时 

		
Update   人事_请假表  Set   [结果有效]=1   where  {{@keyfieldname@}} = {{@主键值

		</$462:End$>',0,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'3943',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=115,[NodeName]='公司审批',[Step]=4,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='625',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='<$462:Begin$>
		--流出到<通知申请人>节点时 

		
Update   人事_请假表  Set   [结果有效]=1   where  {{@keyfieldname@}} = {{@主键值

		</$462:End$>',[CanReject]=0,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='3943',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=624 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=625  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(625,115,'通知申请人',5,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','-1',0,1,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',null,null,0,0,null,null,null,null,null,null,null,null,null,null,null,null,null,'',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=115,[NodeName]='通知申请人',[Step]=5,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='-1',[AllowLastNodeBoss]=0,[AllowWorkCreator]=1,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]=null,[TriggerAfter]=null,[CanReject]=0,[CanPigeonhole]=0,[PigeonholedSQL]=null,[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=625 
      end

     SET IDENTITY_INSERT [WF_FlowNode] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=2541  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2541,115,621,1771,'请假审批',3936,'请假类型','请假类型','人事_请假审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=115,[NodeId]=621,[EntId]=1771,[EntName]='请假审批',[FldId]=3936,[FieldName]='请假类型',[CtrlByName]='请假类型',[FlowName]='人事_请假审批',[TypeId]=1 where  [Id]=2541 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2542  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2542,115,621,1771,'请假审批',3937,'请假起始时间','请假起始时间','人事_请假审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=115,[NodeId]=621,[EntId]=1771,[EntName]='请假审批',[FldId]=3937,[FieldName]='请假起始时间',[CtrlByName]='请假起始时间',[FlowName]='人事_请假审批',[TypeId]=1 where  [Id]=2542 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2543  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2543,115,621,1771,'请假审批',3938,'请假结束时间','请假结束时间','人事_请假审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=115,[NodeId]=621,[EntId]=1771,[EntName]='请假审批',[FldId]=3938,[FieldName]='请假结束时间',[CtrlByName]='请假结束时间',[FlowName]='人事_请假审批',[TypeId]=1 where  [Id]=2543 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2544  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2544,115,621,1771,'请假审批',3940,'请假原因','请假原因','人事_请假审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=115,[NodeId]=621,[EntId]=1771,[EntName]='请假审批',[FldId]=3940,[FieldName]='请假原因',[CtrlByName]='请假原因',[FlowName]='人事_请假审批',[TypeId]=1 where  [Id]=2544 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=2546  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2546,115,622,1771,'请假审批',3941,'部门意见','员工编号','人事_请假审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=115,[NodeId]=622,[EntId]=1771,[EntName]='请假审批',[FldId]=3941,[FieldName]='部门意见',[CtrlByName]='员工编号',[FlowName]='人事_请假审批',[TypeId]=1 where  [Id]=2546 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=2547  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2547,115,623,1771,'请假审批',3942,'分公司领导意见','分公司领导意见','人事_请假审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=115,[NodeId]=623,[EntId]=1771,[EntName]='请假审批',[FldId]=3942,[FieldName]='分公司领导意见',[CtrlByName]='分公司领导意见',[FlowName]='人事_请假审批',[TypeId]=1 where  [Id]=2547 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_NodeCondition

     SET IDENTITY_INSERT [WF_NodeCondition] ON 
      if (select count(1) from [WF_NodeCondition] where  [Id]=39  )<1 
      begin 
           Insert into [WF_NodeCondition] ([Id],[NodeId],[NodeName],[FlowId],[FlowName],[InOutType],[FieldName],[ConditionRelation],[CompareType],[DataType],[CompareValue],[SQLExpression],[PromptContent])values(39,623,'分公司审批',115,'人事_请假审批','入','人事_请假表.[请假天数]','and','大于等于','int','5','StringTrim([请假天数]) >= 5','23232')
      end
      else 
      begin 
           update [WF_NodeCondition] set [NodeId]=623,[NodeName]='分公司审批',[FlowId]=115,[FlowName]='人事_请假审批',[InOutType]='入',[FieldName]='人事_请假表.[请假天数]',[ConditionRelation]='and',[CompareType]='大于等于',[DataType]='int',[CompareValue]='5',[SQLExpression]='StringTrim([请假天数]) >= 5',[PromptContent]='23232' where  [Id]=39 
      end

     SET IDENTITY_INSERT [WF_NodeCondition] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=2548  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2548,115,624,1771,'请假审批',3943,'公司领导意见','公司领导意见','人事_请假审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=115,[NodeId]=624,[EntId]=1771,[EntName]='请假审批',[FldId]=3943,[FieldName]='公司领导意见',[CtrlByName]='公司领导意见',[FlowName]='人事_请假审批',[TypeId]=1 where  [Id]=2548 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_NodeCondition

     SET IDENTITY_INSERT [WF_NodeCondition] ON 
      if (select count(1) from [WF_NodeCondition] where  [Id]=40  )<1 
      begin 
           Insert into [WF_NodeCondition] ([Id],[NodeId],[NodeName],[FlowId],[FlowName],[InOutType],[FieldName],[ConditionRelation],[CompareType],[DataType],[CompareValue],[SQLExpression],[PromptContent])values(40,624,'公司审批',115,'人事_请假审批','出','人事_请假表.[请假天数]','and','数字等于','decimal','10','[请假天数] == 10','请假时间不能超过10天！')
      end
      else 
      begin 
           update [WF_NodeCondition] set [NodeId]=624,[NodeName]='公司审批',[FlowId]=115,[FlowName]='人事_请假审批',[InOutType]='出',[FieldName]='人事_请假表.[请假天数]',[ConditionRelation]='and',[CompareType]='数字等于',[DataType]='decimal',[CompareValue]='10',[SQLExpression]='[请假天数] == 10',[PromptContent]='请假时间不能超过10天！' where  [Id]=40 
      end

     SET IDENTITY_INSERT [WF_NodeCondition] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=3059  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(3059,'0ccef5ea-9341-48f2-930b-17bb24f92d82','转正申请',2905,'/Template/default/ListReport/ListReport_Tree001.aspx',1,'/images/default.gif','/images/default.gif',11,'right_fram',null,0,null,4,0,4,2,1,1,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='0ccef5ea-9341-48f2-930b-17bb24f92d82',[MenuName]='转正申请',[ParentId]=2905,[ProPath]='/Template/default/ListReport/ListReport_Tree001.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=11,[Target]='right_fram',[IsOpen]=null,[IsHidden]=0,[Remark]=null,[SSystemId]=4,[SMenuId]=0,[SystemId]=4,[EntityCount]=2,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=3059 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3059  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(834,3059,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3059  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=1774  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(1774,3059,'转正审批',1,1049,0,'人事_转正申请表',0,0,1,4,1774,null,null,4,null,1,null,116,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3059,[EntName]='转正审批',[MEnt]=1,[DBTableId]=1049,[DBConnectId]=0,[DBTableName]='人事_转正申请表',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=4,[SEntId]=1774,[FSystemId]=null,[FEntId]=null,[SystemId]=4,[Remark]=null,[IsFlow]=1,[IsChecked]=null,[FlowId]=116,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=1774 
      end
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=1777  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(1777,3059,'试用期考核成绩',0,1030,0,'人事_试用期考核成绩表',1774,0,1,4,1777,null,null,4,null,null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3059,[EntName]='试用期考核成绩',[MEnt]=0,[DBTableId]=1030,[DBConnectId]=0,[DBTableName]='人事_试用期考核成绩表',[ParentId]=1774,[OrderBy]=0,[CheckPower]=1,[SSystemId]=4,[SEntId]=1777,[FSystemId]=null,[FEntId]=null,[SystemId]=4,[Remark]=null,[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=1777 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=1774

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=1774  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11441,-1,1774,1,1,1,1,0,1,0,0,0,1,0,0,0,0,0,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=0,[CanUpdate]=1,[CanOutPut]=0,[CanInput]=0,[CanCopy]=0,[CanPrint]=1,[CanCheck]=0,[CanClean]=0,[CanRecycle]=0,[CanExecute]=0,[CanDesign]=0,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=1774  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=1774  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(10900,3059,1774,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=3059,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=1774  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=1774

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1774  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(19056,4,3059,1774,13,1,1,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=4,[MenuId]=3059,[TemplateId]=13,[ModuleId]=1,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1774  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1774  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(19057,4,3059,1774,13,2,9,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=4,[MenuId]=3059,[TemplateId]=13,[ModuleId]=9,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1774  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1774  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(19058,4,3059,1774,13,3,14,1,4,2,'/Template/Default/Form/AjaxForm/AjaxForm008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=4,[MenuId]=3059,[TemplateId]=13,[ModuleId]=14,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='/Template/Default/Form/AjaxForm/AjaxForm008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1774  and  [ModuleTypeId]=3 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1774  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(19059,4,3059,1774,13,16,31,1,5,2,'/Template/Default/Browse/Browse008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=4,[MenuId]=3059,[TemplateId]=13,[ModuleId]=31,[GroupId]=1,[AreaId]=5,[ShowMode]=2,[AreaUrl]='/Template/Default/Browse/Browse008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1774  and  [ModuleTypeId]=16 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_AjaxForm_Run]  where [EntId]=1774

--Dcx_AjaxForm_Run
      if (select count(1) from [Dcx_AjaxForm_Run] where  [EntId]=1774  )<1 
      begin 
           Insert into [Dcx_AjaxForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('e463e592-1149-4566-8534-c54cab44b449','转正审批',1774,14,'','',0,'<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>','','DcxRun.AjaxF_1774= {"MenuId":3059,"MEntId":1774,"EntName":"转正审批","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":true,"EntMsg":{"E1774":{"EntId":1774,"KeyFieldValue":"","DBTableName":"","KeyField":"转正编号","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""},"E1777":{"EntId":1777,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"转正编号","JKeydtId":2,"IsMEnt":false,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}


if(runObj.NoInit)
{
   entMsg.E1777.FormData=null;
   mEntMsg.RowCount=0;mEntMsg.RecortCount=0;entMsg.E1777.RowCount=0;

}

 DcxForm.InitSheetForm(1777,''AjaxF_'',entMsg.E1777.FormData,entMsg.E1777.$listContainer);


}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_1774.EntMsg.E1774.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"人事_转正申请表","EntId":1774,"KeyField":"转正编号","MKeyField":"转正编号","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":1},"FieldDefine":{"转正编号":{"DtId":2,"DB":1,"CId":1,"FL":-1},"员工编号":{"DtId":2,"DB":1,"CId":1,"FL":-1},"员工姓名":{"DtId":2,"DB":1,"CId":1,"FL":-1},"部门":{"DtId":2,"DB":1,"CId":1,"FL":-1},"岗位":{"DtId":2,"DB":1,"CId":1,"FL":0},"入职日期":{"DtId":3,"DB":1,"CId":5,"FL":0},"上岗证种类及有效期":{"DtId":2,"DB":1,"CId":2,"FL":-1},"员工自评":{"DtId":6,"DB":1,"CId":2,"FL":-1},"直接上级主管评语":{"DtId":2,"DB":1,"CId":2,"FL":0},"综合考核得分":{"DtId":9,"DB":1,"CId":1,"FL":-1},"综合考核系数":{"DtId":9,"DB":1,"CId":1,"FL":-1},"综合评定结果":{"DtId":2,"DB":1,"CId":34,"FL":0},"试用期月基本工资":{"DtId":5,"DB":1,"CId":1,"FL":-1},"试用期月考核工资":{"DtId":5,"DB":1,"CId":1,"FL":-1},"试用期月工资合计":{"DtId":5,"DB":1,"CId":1,"FL":-1},"转正后工资等级":{"DtId":9,"DB":1,"CId":1,"FL":-1},"转正后月基本工资":{"DtId":5,"DB":1,"CId":1,"FL":-1},"转正后月考核工资":{"DtId":5,"DB":1,"CId":1,"FL":-1},"转正后月工资合计":{"DtId":5,"DB":1,"CId":1,"FL":-1},"转正后年度考核工资":{"DtId":5,"DB":1,"CId":1,"FL":-1},"转正后年薪合计":{"DtId":5,"DB":1,"CId":1,"FL":-1},"部门或项目部意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"分公司意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"董事长或总经理意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"申请转正日期":{"DtId":3,"DB":1,"CId":1,"FL":-1}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_1774.EntMsg.E1774.GetDataRowModel=function()
{
    return {"转正编号":"","员工编号":"","员工姓名":"","部门":"","岗位":"","入职日期":new Date(),"上岗证种类及有效期":"","员工自评":"","直接上级主管评语":"","综合考核得分":"0","综合考核系数":"0","综合评定结果":"","试用期月基本工资":"0","试用期月考核工资":"0","试用期月工资合计":"0","转正后工资等级":"0","转正后月基本工资":"0","转正后月考核工资":"0","转正后月工资合计":"0","转正后年度考核工资":"0","转正后年薪合计":"0","部门或项目部意见":"","分公司意见":"","董事长或总经理意见":"","申请转正日期":new Date(),"Dcx_Keymsg":{"RowIx":-1,"KeyField":"转正编号","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
DcxRun.AjaxF_1774.EntMsg.E1777.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"人事_试用期考核成绩表","EntId":1777,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"JoinKeyField":"转正编号","JKeydtId":2,"OpType":1,"IsMEnt":false,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null},"FieldDefine":{"考核日期":{"DtId":3,"DB":1,"CId":5,"FL":-1},"考核得分":{"DtId":9,"DB":1,"CId":1,"FL":-1},"考核系数":{"DtId":9,"DB":1,"CId":1,"FL":0},"评语":{"DtId":2,"DB":1,"CId":1,"FL":-1},"KeyFieldValue":{"DtId":2,"DB":0,"CId":-1,"FL":0}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_1774.EntMsg.E1777.GetDataRowModel=function()
{
    return {"考核日期":new Date(),"考核得分":"0","考核系数":"0","评语":"","KeyFieldValue":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_AjaxF_1774_692(obj,curFieldName){
 var EntId=1774;
 var FldId=3948;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''岗位'';
 var $formContainer=DcxForm.GetHtmlContainer(1774,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1774,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"岗位\",FldId:"+FldId+",EntId:1774,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"转正编号\",CtrlTypeId:1,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,1774,''AjaxF_'',''员工编号'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1774_岗位");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}



 function GetLinkCtrl_AjaxF_1777(obj,FieldName,EntId)
{

}
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_1774.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1774,''AjaxF_'',buildNew,closeDlg);

}','<$1774$>select [转正编号],[员工编号],[员工姓名],[部门],[岗位],[入职日期],[上岗证种类及有效期],[员工自评],[直接上级主管评语],[综合考核得分],[综合考核系数],[综合评定结果],[试用期月基本工资],[试用期月考核工资],[试用期月工资合计],[转正后工资等级],[转正后月基本工资],[转正后月考核工资],[转正后月工资合计],[转正后年度考核工资],[转正后年薪合计],[部门或项目部意见],[分公司意见],[董事长或总经理意见],[申请转正日期] from 人事_转正申请表 where [转正编号]=''{$keyfieldvalue}''</$1774$><$1777$>select [考核日期],[考核得分],[考核系数],[评语],[Id],[转正编号] from 人事_试用期考核成绩表 where [转正编号]=''{$mkeyValue}''</$1777$>',20,'','','','1774*转正编号*2**2*人事_转正申请表*转正审批,1777*Id*2*转正编号*2*人事_试用期考核成绩表*试用期考核成绩',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 7:02:48',3,'admin','2013-11-30 7:23:46',1)
      end
      else 
      begin 
           update [Dcx_AjaxForm_Run] set [FormId]='e463e592-1149-4566-8534-c54cab44b449',[FormName]='转正审批',[ModuleId]=14,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.AjaxF_1774= {"MenuId":3059,"MEntId":1774,"EntName":"转正审批","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":true,"EntMsg":{"E1774":{"EntId":1774,"KeyFieldValue":"","DBTableName":"","KeyField":"转正编号","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""},"E1777":{"EntId":1777,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"转正编号","JKeydtId":2,"IsMEnt":false,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}


if(runObj.NoInit)
{
   entMsg.E1777.FormData=null;
   mEntMsg.RowCount=0;mEntMsg.RecortCount=0;entMsg.E1777.RowCount=0;

}

 DcxForm.InitSheetForm(1777,''AjaxF_'',entMsg.E1777.FormData,entMsg.E1777.$listContainer);


}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_1774.EntMsg.E1774.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"人事_转正申请表","EntId":1774,"KeyField":"转正编号","MKeyField":"转正编号","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":1},"FieldDefine":{"转正编号":{"DtId":2,"DB":1,"CId":1,"FL":-1},"员工编号":{"DtId":2,"DB":1,"CId":1,"FL":-1},"员工姓名":{"DtId":2,"DB":1,"CId":1,"FL":-1},"部门":{"DtId":2,"DB":1,"CId":1,"FL":-1},"岗位":{"DtId":2,"DB":1,"CId":1,"FL":0},"入职日期":{"DtId":3,"DB":1,"CId":5,"FL":0},"上岗证种类及有效期":{"DtId":2,"DB":1,"CId":2,"FL":-1},"员工自评":{"DtId":6,"DB":1,"CId":2,"FL":-1},"直接上级主管评语":{"DtId":2,"DB":1,"CId":2,"FL":0},"综合考核得分":{"DtId":9,"DB":1,"CId":1,"FL":-1},"综合考核系数":{"DtId":9,"DB":1,"CId":1,"FL":-1},"综合评定结果":{"DtId":2,"DB":1,"CId":34,"FL":0},"试用期月基本工资":{"DtId":5,"DB":1,"CId":1,"FL":-1},"试用期月考核工资":{"DtId":5,"DB":1,"CId":1,"FL":-1},"试用期月工资合计":{"DtId":5,"DB":1,"CId":1,"FL":-1},"转正后工资等级":{"DtId":9,"DB":1,"CId":1,"FL":-1},"转正后月基本工资":{"DtId":5,"DB":1,"CId":1,"FL":-1},"转正后月考核工资":{"DtId":5,"DB":1,"CId":1,"FL":-1},"转正后月工资合计":{"DtId":5,"DB":1,"CId":1,"FL":-1},"转正后年度考核工资":{"DtId":5,"DB":1,"CId":1,"FL":-1},"转正后年薪合计":{"DtId":5,"DB":1,"CId":1,"FL":-1},"部门或项目部意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"分公司意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"董事长或总经理意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"申请转正日期":{"DtId":3,"DB":1,"CId":1,"FL":-1}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_1774.EntMsg.E1774.GetDataRowModel=function()
{
    return {"转正编号":"","员工编号":"","员工姓名":"","部门":"","岗位":"","入职日期":new Date(),"上岗证种类及有效期":"","员工自评":"","直接上级主管评语":"","综合考核得分":"0","综合考核系数":"0","综合评定结果":"","试用期月基本工资":"0","试用期月考核工资":"0","试用期月工资合计":"0","转正后工资等级":"0","转正后月基本工资":"0","转正后月考核工资":"0","转正后月工资合计":"0","转正后年度考核工资":"0","转正后年薪合计":"0","部门或项目部意见":"","分公司意见":"","董事长或总经理意见":"","申请转正日期":new Date(),"Dcx_Keymsg":{"RowIx":-1,"KeyField":"转正编号","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
DcxRun.AjaxF_1774.EntMsg.E1777.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"人事_试用期考核成绩表","EntId":1777,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"JoinKeyField":"转正编号","JKeydtId":2,"OpType":1,"IsMEnt":false,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null},"FieldDefine":{"考核日期":{"DtId":3,"DB":1,"CId":5,"FL":-1},"考核得分":{"DtId":9,"DB":1,"CId":1,"FL":-1},"考核系数":{"DtId":9,"DB":1,"CId":1,"FL":0},"评语":{"DtId":2,"DB":1,"CId":1,"FL":-1},"KeyFieldValue":{"DtId":2,"DB":0,"CId":-1,"FL":0}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_1774.EntMsg.E1777.GetDataRowModel=function()
{
    return {"考核日期":new Date(),"考核得分":"0","考核系数":"0","评语":"","KeyFieldValue":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_AjaxF_1774_692(obj,curFieldName){
 var EntId=1774;
 var FldId=3948;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''岗位'';
 var $formContainer=DcxForm.GetHtmlContainer(1774,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1774,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"岗位\",FldId:"+FldId+",EntId:1774,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"转正编号\",CtrlTypeId:1,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,1774,''AjaxF_'',''员工编号'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1774_岗位");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}



 function GetLinkCtrl_AjaxF_1777(obj,FieldName,EntId)
{

}
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_1774.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1774,''AjaxF_'',buildNew,closeDlg);

}',[LoadingSql]='<$1774$>select [转正编号],[员工编号],[员工姓名],[部门],[岗位],[入职日期],[上岗证种类及有效期],[员工自评],[直接上级主管评语],[综合考核得分],[综合考核系数],[综合评定结果],[试用期月基本工资],[试用期月考核工资],[试用期月工资合计],[转正后工资等级],[转正后月基本工资],[转正后月考核工资],[转正后月工资合计],[转正后年度考核工资],[转正后年薪合计],[部门或项目部意见],[分公司意见],[董事长或总经理意见],[申请转正日期] from 人事_转正申请表 where [转正编号]=''{$keyfieldvalue}''</$1774$><$1777$>select [考核日期],[考核得分],[考核系数],[评语],[Id],[转正编号] from 人事_试用期考核成绩表 where [转正编号]=''{$mkeyValue}''</$1777$>',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='1774*转正编号*2**2*人事_转正申请表*转正审批,1777*Id*2*转正编号*2*人事_试用期考核成绩表*试用期考核成绩',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 7:02:48',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-30 7:23:46',[AccountId]=1 where  [EntId]=1774 
      end




--Dcx_AjaxFormField_Run
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='943c0e0f-1741-fe3d-62ea-b51c82465556'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3944,'943c0e0f-1741-fe3d-62ea-b51c82465556',1774,1774,'00000000-0000-0000-0000-000000000000','转正编号',2,2,11,'select convert(char(4),getdate(),112)+Substring( cast((case when count(转正编号)=0 then 0 when count(转正编号)>0 then max(cast(Substring(转正编号,5,4) as int)) end )+10001 as varchar),2,4)  from   人事_转正申请表  where 转正编号 like  convert(char(4),getdate(),112)+''%''',2,1,null,0,1,1,0,1,-1,0,0,'','','','','<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="1774" groupid="230" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="1690" class="li-area-title" scroll="no" style="width: 77px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">转正审批</span></div>
</li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="231" entid="1774" class="ul-mform" style="width: 794px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="1691" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3944" istitle="1">转正编号 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d1774_转正编号"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="转正编号" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="1" FId="3944" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1774,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3944,[Form_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='转正编号',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=11,[DefaultValue]='select convert(char(4),getdate(),112)+Substring( cast((case when count(转正编号)=0 then 0 when count(转正编号)>0 then max(cast(Substring(转正编号,5,4) as int)) end )+10001 as varchar),2,4)  from   人事_转正申请表  where 转正编号 like  convert(char(4),getdate(),112)+''%''',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="1774" groupid="230" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="1690" class="li-area-title" scroll="no" style="width: 77px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">转正审批</span></div>
</li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="231" entid="1774" class="ul-mform" style="width: 794px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="1691" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3944" istitle="1">转正编号 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1774_转正编号"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="转正编号" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="1" FId="3944" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1774,' where  [FldUId]='943c0e0f-1741-fe3d-62ea-b51c82465556' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='3e0cf88e-16a3-b4da-d078-4cd453b3d806'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3945,'3e0cf88e-16a3-b4da-d078-4cd453b3d806',1774,1774,'00000000-0000-0000-0000-000000000000','员工编号',2,2,12,'{$staffNO}',0,1,null,0,1,1,0,2,-1,0,0,'','','','{$staffNO},','</span>
</div>
</li>
<li areaid="1692" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3945" istitle="1">员工编号 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d1774_员工编号"   type="text" class="form-txt"  style="width:201px;" onchange ="javascript:GetLinkCtrlData_AjaxF_1774_692(this,''员工编号'');" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="员工编号" dType="2" Vtp="0" RDT="2" Isc="0" RId="1" CId="1" FId="3945" vlk=0    CBack=1  value="','"/>','',-1,-1,-1,-1,0,'1774,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3945,[Form_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='员工编号',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=12,[DefaultValue]='{$staffNO}',[ValueType]=0,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=2,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$staffNO},',[BeforeHtml]='</span>
</div>
</li>
<li areaid="1692" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3945" istitle="1">员工编号 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1774_员工编号"   type="text" class="form-txt"  style="width:201px;" onchange ="javascript:GetLinkCtrlData_AjaxF_1774_692(this,''员工编号'');" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="员工编号" dType="2" Vtp="0" RDT="2" Isc="0" RId="1" CId="1" FId="3945" vlk=0    CBack=1  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1774,' where  [FldUId]='3e0cf88e-16a3-b4da-d078-4cd453b3d806' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='147d9a61-eb79-5cc4-8a19-5f6cdebee3d9'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3946,'147d9a61-eb79-5cc4-8a19-5f6cdebee3d9',1774,1774,'00000000-0000-0000-0000-000000000000','员工姓名',2,2,13,'{$UserName}',0,1,null,0,1,1,0,3,-1,0,0,'','','','{$UserName},','</span>
</div>
</li>
<li areaid="1693" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3946">员工姓名  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1774_员工姓名"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="员工姓名" dType="2" Vtp="0" RDT="2" Isc="1" RId="1" CId="1" FId="3946" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1774,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3946,[Form_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='员工姓名',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=13,[DefaultValue]='{$UserName}',[ValueType]=0,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=3,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$UserName},',[BeforeHtml]='</span>
</div>
</li>
<li areaid="1693" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3946">员工姓名  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1774_员工姓名"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="员工姓名" dType="2" Vtp="0" RDT="2" Isc="1" RId="1" CId="1" FId="3946" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1774,' where  [FldUId]='147d9a61-eb79-5cc4-8a19-5f6cdebee3d9' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='5f180e38-9aac-3289-f6d2-4d6031e8c7b9'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3947,'5f180e38-9aac-3289-f6d2-4d6031e8c7b9',1774,1774,'00000000-0000-0000-0000-000000000000','部门',2,2,14,'{$deptname}',0,1,null,0,1,1,0,4,-1,0,0,'','','','{$deptname},','</span>
  </div>
</li>
<li areaid="1694" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3947">部门  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1774_部门"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="部门" dType="2" Vtp="0" RDT="2" Isc="1" RId="1" CId="1" FId="3947" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1774,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3947,[Form_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='部门',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=14,[DefaultValue]='{$deptname}',[ValueType]=0,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=4,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$deptname},',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1694" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3947">部门  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1774_部门"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="部门" dType="2" Vtp="0" RDT="2" Isc="1" RId="1" CId="1" FId="3947" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1774,' where  [FldUId]='5f180e38-9aac-3289-f6d2-4d6031e8c7b9' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='8132d371-9178-279a-62ff-f4d403f3e0f7'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3948,'8132d371-9178-279a-62ff-f4d403f3e0f7',1774,1774,'00000000-0000-0000-0000-000000000000','岗位',2,2,15,'Select  [Dcx_Employee].[PositionName]  from  [Dcx_Employee] where [EmployeeCode] =''{@员工编号}''',2,1,1,0,1,1,1,5,-1,0,0,'','','员工编号,','','</span>
  </div>
</li>
<li areaid="1695" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3948">岗位</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1774_岗位"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="岗位" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="1" FId="3948" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1774,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3948,[Form_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='岗位',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=15,[DefaultValue]='Select  [Dcx_Employee].[PositionName]  from  [Dcx_Employee] where [EmployeeCode] =''{@员工编号}''',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=5,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='员工编号,',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1695" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3948">岗位</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1774_岗位"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="岗位" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="1" FId="3948" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1774,' where  [FldUId]='8132d371-9178-279a-62ff-f4d403f3e0f7' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='ade7d4c7-4710-1102-01ba-423a5fb3ba4a'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3949,'ade7d4c7-4710-1102-01ba-423a5fb3ba4a',1774,1774,'00000000-0000-0000-0000-000000000000','入职日期',3,3,16,'{$date}',0,1,1,0,5,1,1,6,-1,0,0,'','','','{$date},','</span>
  </div>
</li>
<li areaid="1696" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3949">入职日期</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<div class="form-ddl"><input  id="d1774_入职日期"   type="text" class="form-ddl-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774);DcxDTime.ShowCalendar(this);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="入职日期" dType="3" Vtp="0" RDT="3" Isc="1" RId="1" CId="5" FId="3949" vlk=0    value="','"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>','',-1,-1,-1,-1,0,'1774,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3949,[Form_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='入职日期',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=16,[DefaultValue]='{$date}',[ValueType]=0,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=5,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=6,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$date},',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1696" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3949">入职日期</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-ddl"><input  id="d1774_入职日期"   type="text" class="form-ddl-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774);DcxDTime.ShowCalendar(this);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="入职日期" dType="3" Vtp="0" RDT="3" Isc="1" RId="1" CId="5" FId="3949" vlk=0    value="',[CtrlbackHtml]='"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1774,' where  [FldUId]='ade7d4c7-4710-1102-01ba-423a5fb3ba4a' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='2f449841-56a9-db32-3245-96233e4c7f71'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3950,'2f449841-56a9-db32-3245-96233e4c7f71',1774,1774,'00000000-0000-0000-0000-000000000000','上岗证种类及有效期',2,2,17,'',5,1,1,0,2,1,0,7,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1697" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3950">上岗证种类</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1774_上岗证种类及有效期" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="上岗证种类及有效期" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="3950" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1774,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3950,[Form_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='上岗证种类及有效期',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=17,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=7,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1697" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3950">上岗证种类</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1774_上岗证种类及有效期" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="上岗证种类及有效期" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="3950" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1774,' where  [FldUId]='2f449841-56a9-db32-3245-96233e4c7f71' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='207a6871-ee96-99aa-b6df-516df674205f'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3951,'207a6871-ee96-99aa-b6df-516df674205f',1774,1774,'00000000-0000-0000-0000-000000000000','员工自评',6,2,18,'',5,1,null,0,2,1,0,8,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1698" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3951">员工自评  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1774_员工自评" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="员工自评" dType="6" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="3951" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1774,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3951,[Form_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='员工自评',[FieldDataTypeId]=6,[RunDataTypeId]=2,[DBFieldId]=18,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=8,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1698" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3951">员工自评  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1774_员工自评" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="员工自评" dType="6" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="3951" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1774,' where  [FldUId]='207a6871-ee96-99aa-b6df-516df674205f' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='5f477a1a-4295-9960-8ba7-3397942a5e7c'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3952,'5f477a1a-4295-9960-8ba7-3397942a5e7c',1774,1774,'00000000-0000-0000-0000-000000000000','直接上级主管评语',2,2,19,'',5,1,1,0,2,1,1,9,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1699" style="height: 138px; width: 792px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3952" istitle="1">直接上级主管评语</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1774_直接上级主管评语" class="form-txts"  style="width:615px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="直接上级主管评语" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="3952" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1774,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3952,[Form_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='直接上级主管评语',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=19,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=9,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1699" style="height: 138px; width: 792px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3952" istitle="1">直接上级主管评语</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1774_直接上级主管评语" class="form-txts"  style="width:615px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="直接上级主管评语" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="3952" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1774,' where  [FldUId]='5f477a1a-4295-9960-8ba7-3397942a5e7c' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='8bf23261-191b-b50f-aa15-9e39adbb03c0'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3953,'8bf23261-191b-b50f-aa15-9e39adbb03c0',1774,1774,'00000000-0000-0000-0000-000000000000','综合考核得分',9,5,20,'',5,1,null,0,1,1,0,10,-1,0,0,'','','','','</span>
</div>
</li>
<li areaid="1700" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3953">综合考核得分  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1774_综合考核得分"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="综合考核得分" dType="9" Vtp="5" RDT="5" Isc="0" RId="1" CId="1" FId="3953" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1774,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3953,[Form_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='综合考核得分',[FieldDataTypeId]=9,[RunDataTypeId]=5,[DBFieldId]=20,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=10,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="1700" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3953">综合考核得分  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1774_综合考核得分"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="综合考核得分" dType="9" Vtp="5" RDT="5" Isc="0" RId="1" CId="1" FId="3953" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1774,' where  [FldUId]='8bf23261-191b-b50f-aa15-9e39adbb03c0' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='40de3059-dd46-6b52-b351-1877c5a5a5f8'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3954,'40de3059-dd46-6b52-b351-1877c5a5a5f8',1774,1774,'00000000-0000-0000-0000-000000000000','综合考核系数',9,5,21,'',5,1,null,0,1,1,0,11,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1701" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3954">综合考核系数  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1774_综合考核系数"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="综合考核系数" dType="9" Vtp="5" RDT="5" Isc="0" RId="1" CId="1" FId="3954" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1774,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3954,[Form_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='综合考核系数',[FieldDataTypeId]=9,[RunDataTypeId]=5,[DBFieldId]=21,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=11,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1701" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3954">综合考核系数  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1774_综合考核系数"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="综合考核系数" dType="9" Vtp="5" RDT="5" Isc="0" RId="1" CId="1" FId="3954" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1774,' where  [FldUId]='40de3059-dd46-6b52-b351-1877c5a5a5f8' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='d73faffa-d7c5-dbe5-336b-c540a7e7b414'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3955,'d73faffa-d7c5-dbe5-336b-c540a7e7b414',1774,1774,'00000000-0000-0000-0000-000000000000','综合评定结果',2,2,22,'',1,2,1,0,34,1,1,12,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1702" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3955">综合评定结果</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','<!--dds_1774_综合评定结果_begin-->
<div style="display: none;" id="dds_d1774_综合评定结果" class="selector-ddl">
<div id="dds_d1774_综合评定结果_title" class="sel_title">请选择</div>
<div id="dds_d1774_综合评定结果_content" class="sel_list"><ul id="dds_d1774_综合评定结果_ul">
<li onclick="javascript:DcxDdl.GetValueAf(this,0);" id="dds_d1774_综合评定结果_li0" class="sel_li">
<a class="op_a" id="d1774_综合评定结果a" href="javascript:void(0);"><span id="d1774_综合评定结果s" IsT=1>合格，予以录用</span><em id="d1774_综合评定结果e" IsV=1>合格，予以录用</em></a>
</li>
<li onclick="javascript:DcxDdl.GetValueAf(this,1);" id="dds_d1774_综合评定结果_li1" class="sel_li">
<a class="op_a" id="d1774_综合评定结果a" href="javascript:void(0);"><span id="d1774_综合评定结果s" IsT=1>暂未达到要求，考虑延长试用期</span><em id="d1774_综合评定结果e" IsV=1>暂未达到要求，考虑延长试用期</em></a>
</li>
<li onclick="javascript:DcxDdl.GetValueAf(this,2);" id="dds_d1774_综合评定结果_li2" class="sel_li">
<a class="op_a" id="d1774_综合评定结果a" href="javascript:void(0);"><span id="d1774_综合评定结果s" IsT=1>不合格，不予以录用</span><em id="d1774_综合评定结果e" IsV=1>不合格，不予以录用</em></a>
</li>
</ul>
<ul id="dds_d1774_综合评定结果_search_ul"></ul>
</div>
<iframe style="z-index: -1; border-bottom: 0px; position: absolute; filter: alpha(opacity = 0);
border-left: 0px; width: 106px; background: #fff; overflow: hidden; border-top: 0px;
top: -8px; border-right: 0px; left: -8px; opacity: 0" id="mgiframe" marginheight="0"
frameborder="0" marginwidth="0" src=""></iframe>
</div>

<!--dds_1774_综合评定结果_end-->','','<div id="d1774_综合评定结果" class="form-ddl" style="-width:231px;" IsForField=1 EntId="1774" FId="3955" Vtp="1" RId="2" Isc="1" CId="34" FieldName="综合评定结果" ><input  id="d1774_综合评定结果_Text" type="text" class="form-ddl-txt" readonly="readOnly"  CId="34" FId="3955" Vtp="1"  RId="2" Isc="1"  style="width:201px;" onclick ="javascript:DcxDdl.ShowDialogAf(this,1774,''综合评定结果'',false);" onchange ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774);" onkeyup ="javascript:DcxDdl.ShowDialogAf(this,1774,''综合评定结果'',true);" value="','" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d1774_综合评定结果_hid" type="hidden"  EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="综合评定结果" dType="2" Vtp="1" RDT="2" Isc="1" RId="2" CId="34" FId="3955" vlk=0    value="','"/>',-1,-1,-1,-1,0,'1774,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3955,[Form_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='综合评定结果',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=22,[DefaultValue]='',[ValueType]=1,[RunValueType]=2,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=34,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=12,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1702" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3955">综合评定结果</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='<!--dds_1774_综合评定结果_begin-->
<div style="display: none;" id="dds_d1774_综合评定结果" class="selector-ddl">
<div id="dds_d1774_综合评定结果_title" class="sel_title">请选择</div>
<div id="dds_d1774_综合评定结果_content" class="sel_list"><ul id="dds_d1774_综合评定结果_ul">
<li onclick="javascript:DcxDdl.GetValueAf(this,0);" id="dds_d1774_综合评定结果_li0" class="sel_li">
<a class="op_a" id="d1774_综合评定结果a" href="javascript:void(0);"><span id="d1774_综合评定结果s" IsT=1>合格，予以录用</span><em id="d1774_综合评定结果e" IsV=1>合格，予以录用</em></a>
</li>
<li onclick="javascript:DcxDdl.GetValueAf(this,1);" id="dds_d1774_综合评定结果_li1" class="sel_li">
<a class="op_a" id="d1774_综合评定结果a" href="javascript:void(0);"><span id="d1774_综合评定结果s" IsT=1>暂未达到要求，考虑延长试用期</span><em id="d1774_综合评定结果e" IsV=1>暂未达到要求，考虑延长试用期</em></a>
</li>
<li onclick="javascript:DcxDdl.GetValueAf(this,2);" id="dds_d1774_综合评定结果_li2" class="sel_li">
<a class="op_a" id="d1774_综合评定结果a" href="javascript:void(0);"><span id="d1774_综合评定结果s" IsT=1>不合格，不予以录用</span><em id="d1774_综合评定结果e" IsV=1>不合格，不予以录用</em></a>
</li>
</ul>
<ul id="dds_d1774_综合评定结果_search_ul"></ul>
</div>
<iframe style="z-index: -1; border-bottom: 0px; position: absolute; filter: alpha(opacity = 0);
border-left: 0px; width: 106px; background: #fff; overflow: hidden; border-top: 0px;
top: -8px; border-right: 0px; left: -8px; opacity: 0" id="mgiframe" marginheight="0"
frameborder="0" marginwidth="0" src=""></iframe>
</div>

<!--dds_1774_综合评定结果_end-->',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d1774_综合评定结果" class="form-ddl" style="-width:231px;" IsForField=1 EntId="1774" FId="3955" Vtp="1" RId="2" Isc="1" CId="34" FieldName="综合评定结果" ><input  id="d1774_综合评定结果_Text" type="text" class="form-ddl-txt" readonly="readOnly"  CId="34" FId="3955" Vtp="1"  RId="2" Isc="1"  style="width:201px;" onclick ="javascript:DcxDdl.ShowDialogAf(this,1774,''综合评定结果'',false);" onchange ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774);" onkeyup ="javascript:DcxDdl.ShowDialogAf(this,1774,''综合评定结果'',true);" value="',[CtrlbackHtml]='" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d1774_综合评定结果_hid" type="hidden"  EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="综合评定结果" dType="2" Vtp="1" RDT="2" Isc="1" RId="2" CId="34" FId="3955" vlk=0    value="',[CtrlLastHtml]='"/>',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1774,' where  [FldUId]='d73faffa-d7c5-dbe5-336b-c540a7e7b414' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='194ccac7-41c9-6f29-4fe1-54b78cee5f36'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3956,'194ccac7-41c9-6f29-4fe1-54b78cee5f36',1774,1774,'00000000-0000-0000-0000-000000000000','试用期月基本工资',5,5,23,'',5,1,null,0,1,1,0,13,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1703" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3956" istitle="1">试用期月基本工资 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d1774_试用期月基本工资"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="试用期月基本工资" dType="5" Vtp="5" RDT="5" Isc="0" RId="1" CId="1" FId="3956" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1774,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3956,[Form_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='试用期月基本工资',[FieldDataTypeId]=5,[RunDataTypeId]=5,[DBFieldId]=23,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=13,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1703" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3956" istitle="1">试用期月基本工资 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1774_试用期月基本工资"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="试用期月基本工资" dType="5" Vtp="5" RDT="5" Isc="0" RId="1" CId="1" FId="3956" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1774,' where  [FldUId]='194ccac7-41c9-6f29-4fe1-54b78cee5f36' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='b42b11a0-e6a3-a825-3c6a-31ac2bf3f63f'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3957,'b42b11a0-e6a3-a825-3c6a-31ac2bf3f63f',1774,1774,'00000000-0000-0000-0000-000000000000','试用期月考核工资',5,5,24,'',5,1,null,0,1,1,0,14,-1,0,0,'','','','','</span>
</div>
</li>
<li areaid="1704" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3957">试用期月考核工资  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1774_试用期月考核工资"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="试用期月考核工资" dType="5" Vtp="5" RDT="5" Isc="1" RId="1" CId="1" FId="3957" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1774,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3957,[Form_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='试用期月考核工资',[FieldDataTypeId]=5,[RunDataTypeId]=5,[DBFieldId]=24,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=14,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="1704" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3957">试用期月考核工资  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1774_试用期月考核工资"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="试用期月考核工资" dType="5" Vtp="5" RDT="5" Isc="1" RId="1" CId="1" FId="3957" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1774,' where  [FldUId]='b42b11a0-e6a3-a825-3c6a-31ac2bf3f63f' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='c7b1ba0a-2555-92da-b6dc-79669c0bc35a'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3958,'c7b1ba0a-2555-92da-b6dc-79669c0bc35a',1774,1774,'00000000-0000-0000-0000-000000000000','试用期月工资合计',5,5,25,'',3,1,null,0,1,1,0,15,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1705" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3958">试用期月工资合计  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1774_试用期月工资合计"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="试用期月工资合计" dType="5" Vtp="3" RDT="5" Isc="0" RId="1" CId="1" FId="3958" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1774,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3958,[Form_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='试用期月工资合计',[FieldDataTypeId]=5,[RunDataTypeId]=5,[DBFieldId]=25,[DefaultValue]='',[ValueType]=3,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=15,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1705" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3958">试用期月工资合计  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1774_试用期月工资合计"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="试用期月工资合计" dType="5" Vtp="3" RDT="5" Isc="0" RId="1" CId="1" FId="3958" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1774,' where  [FldUId]='c7b1ba0a-2555-92da-b6dc-79669c0bc35a' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='1f2f123d-8396-e915-e80c-44a1d294413d'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3959,'1f2f123d-8396-e915-e80c-44a1d294413d',1774,1774,'00000000-0000-0000-0000-000000000000','转正后工资等级',9,5,26,'',5,1,null,0,1,1,0,16,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1706" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3959">转正后工资等级  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1774_转正后工资等级"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="转正后工资等级" dType="9" Vtp="5" RDT="5" Isc="0" RId="1" CId="1" FId="3959" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1774,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3959,[Form_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='转正后工资等级',[FieldDataTypeId]=9,[RunDataTypeId]=5,[DBFieldId]=26,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=16,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1706" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3959">转正后工资等级  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1774_转正后工资等级"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="转正后工资等级" dType="9" Vtp="5" RDT="5" Isc="0" RId="1" CId="1" FId="3959" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1774,' where  [FldUId]='1f2f123d-8396-e915-e80c-44a1d294413d' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='96f64709-59af-81fb-f932-8a81313a8a61'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3960,'96f64709-59af-81fb-f932-8a81313a8a61',1774,1774,'00000000-0000-0000-0000-000000000000','转正后月基本工资',5,5,27,'',5,1,null,0,1,1,0,17,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1707" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3960">转正后月基本工资  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1774_转正后月基本工资"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="转正后月基本工资" dType="5" Vtp="5" RDT="5" Isc="0" RId="1" CId="1" FId="3960" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1774,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3960,[Form_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='转正后月基本工资',[FieldDataTypeId]=5,[RunDataTypeId]=5,[DBFieldId]=27,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=17,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1707" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3960">转正后月基本工资  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1774_转正后月基本工资"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="转正后月基本工资" dType="5" Vtp="5" RDT="5" Isc="0" RId="1" CId="1" FId="3960" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1774,' where  [FldUId]='96f64709-59af-81fb-f932-8a81313a8a61' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='a3d8be73-b096-deb6-18ab-634ac83b2bfc'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3961,'a3d8be73-b096-deb6-18ab-634ac83b2bfc',1774,1774,'00000000-0000-0000-0000-000000000000','转正后月考核工资',5,5,28,'',5,1,null,0,1,1,0,18,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1708" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3961">转正后月考核工资  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1774_转正后月考核工资"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="转正后月考核工资" dType="5" Vtp="5" RDT="5" Isc="1" RId="1" CId="1" FId="3961" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1774,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3961,[Form_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='转正后月考核工资',[FieldDataTypeId]=5,[RunDataTypeId]=5,[DBFieldId]=28,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=18,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1708" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3961">转正后月考核工资  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1774_转正后月考核工资"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="转正后月考核工资" dType="5" Vtp="5" RDT="5" Isc="1" RId="1" CId="1" FId="3961" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1774,' where  [FldUId]='a3d8be73-b096-deb6-18ab-634ac83b2bfc' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='18acb95d-34e4-683b-7492-50da8e0cd51f'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3962,'18acb95d-34e4-683b-7492-50da8e0cd51f',1774,1774,'00000000-0000-0000-0000-000000000000','转正后月工资合计',5,5,29,'',5,1,null,0,1,1,0,19,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1709" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3962">转正后月工资合计  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1774_转正后月工资合计"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="转正后月工资合计" dType="5" Vtp="5" RDT="5" Isc="0" RId="1" CId="1" FId="3962" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1774,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3962,[Form_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='转正后月工资合计',[FieldDataTypeId]=5,[RunDataTypeId]=5,[DBFieldId]=29,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=19,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1709" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3962">转正后月工资合计  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1774_转正后月工资合计"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="转正后月工资合计" dType="5" Vtp="5" RDT="5" Isc="0" RId="1" CId="1" FId="3962" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1774,' where  [FldUId]='18acb95d-34e4-683b-7492-50da8e0cd51f' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='6c5214fa-3166-9c6e-31c6-f7d0e3b15367'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3963,'6c5214fa-3166-9c6e-31c6-f7d0e3b15367',1774,1774,'00000000-0000-0000-0000-000000000000','转正后年度考核工资',5,5,30,'',5,1,1,0,1,1,0,20,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1710" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3963" istitle="1">转后年度考核工资</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d1774_转正后年度考核工资"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="转正后年度考核工资" dType="5" Vtp="5" RDT="5" Isc="1" RId="1" CId="1" FId="3963" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1774,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3963,[Form_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='转正后年度考核工资',[FieldDataTypeId]=5,[RunDataTypeId]=5,[DBFieldId]=30,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=20,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1710" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3963" istitle="1">转后年度考核工资</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1774_转正后年度考核工资"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="转正后年度考核工资" dType="5" Vtp="5" RDT="5" Isc="1" RId="1" CId="1" FId="3963" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1774,' where  [FldUId]='6c5214fa-3166-9c6e-31c6-f7d0e3b15367' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='0360a80a-1c9a-e513-a6ba-17477bde5fa2'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3964,'0360a80a-1c9a-e513-a6ba-17477bde5fa2',1774,1774,'00000000-0000-0000-0000-000000000000','转正后年薪合计',5,5,31,'',5,1,null,0,1,1,0,21,-1,0,0,'','','','','</span>
</div>
</li>
<li areaid="1711" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3964" istitle="1">转正后年薪合计 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d1774_转正后年薪合计"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="转正后年薪合计" dType="5" Vtp="5" RDT="5" Isc="0" RId="1" CId="1" FId="3964" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1774,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3964,[Form_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='转正后年薪合计',[FieldDataTypeId]=5,[RunDataTypeId]=5,[DBFieldId]=31,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=21,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="1711" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3964" istitle="1">转正后年薪合计 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1774_转正后年薪合计"   type="text" class="form-txt"  style="width:201px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="转正后年薪合计" dType="5" Vtp="5" RDT="5" Isc="0" RId="1" CId="1" FId="3964" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1774,' where  [FldUId]='0360a80a-1c9a-e513-a6ba-17477bde5fa2' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='9116b391-902c-09d7-544e-20c560dc5ccf'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3965,'9116b391-902c-09d7-544e-20c560dc5ccf',1774,1774,'00000000-0000-0000-0000-000000000000','部门或项目部意见',2,2,32,'',5,1,1,0,2,1,0,22,-1,0,0,'','','','','</span>
</div>
</li>
<li areaid="1712" style="height: 138px; width: 792px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3965" istitle="1">部门意见</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1774_部门或项目部意见" class="form-txts"  style="width:432px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="部门或项目部意见" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="3965" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1774,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3965,[Form_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='部门或项目部意见',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=32,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=22,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="1712" style="height: 138px; width: 792px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3965" istitle="1">部门意见</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1774_部门或项目部意见" class="form-txts"  style="width:432px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="部门或项目部意见" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="3965" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1774,' where  [FldUId]='9116b391-902c-09d7-544e-20c560dc5ccf' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='3d276a8a-1c1f-bddb-a612-c99f817d9d73'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3966,'3d276a8a-1c1f-bddb-a612-c99f817d9d73',1774,1774,'00000000-0000-0000-0000-000000000000','分公司意见',2,2,33,'',5,1,null,0,2,1,0,23,-1,0,0,'','','','','</span>
</div>
</li>
<li areaid="1713" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3966" istitle="1">分公司意见 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1774_分公司意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="分公司意见" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="3966" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1774,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3966,[Form_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='分公司意见',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=33,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=23,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="1713" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3966" istitle="1">分公司意见 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1774_分公司意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="分公司意见" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="3966" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1774,' where  [FldUId]='3d276a8a-1c1f-bddb-a612-c99f817d9d73' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='4b1286ab-0ee5-3b79-e677-b6874ec13381'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3968,'4b1286ab-0ee5-3b79-e677-b6874ec13381',1774,1774,'00000000-0000-0000-0000-000000000000','董事长或总经理意见',2,2,35,'',5,1,1,0,2,1,0,24,-1,0,0,'','','','','</span>
</div>
</li>

<li areaid="1715" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3968">总经理意见</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1774_董事长或总经理意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="董事长或总经理意见" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="3968" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1774,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3968,[Form_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='董事长或总经理意见',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=35,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=24,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>

<li areaid="1715" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3968">总经理意见</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1774_董事长或总经理意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="董事长或总经理意见" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="3968" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1774,' where  [FldUId]='4b1286ab-0ee5-3b79-e677-b6874ec13381' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='7d6ac1a3-79d4-f17d-9f2d-2351cf8a214b'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3969,'7d6ac1a3-79d4-f17d-9f2d-2351cf8a214b',1774,1774,'00000000-0000-0000-0000-000000000000','申请转正日期',3,3,36,'{$date}',0,1,null,0,1,1,0,25,-1,0,0,'','','','{$date},','</span>
  </div>
</li>
<li areaid="1716" style="height: 38px; width: 792px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3969" istitle="1">申请转正日期 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d1774_申请转正日期"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="申请转正日期" dType="3" Vtp="0" RDT="3" Isc="0" RId="1" CId="1" FId="3969" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1774,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3969,[Form_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='申请转正日期',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=36,[DefaultValue]='{$date}',[ValueType]=0,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=25,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$date},',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1716" style="height: 38px; width: 792px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3969" istitle="1">申请转正日期 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1774_申请转正日期"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''AjaxF_'',1774,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''AjaxF_'',1774);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="申请转正日期" dType="3" Vtp="0" RDT="3" Isc="0" RId="1" CId="1" FId="3969" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1774,' where  [FldUId]='7d6ac1a3-79d4-f17d-9f2d-2351cf8a214b' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='f375f39c-f87b-26ee-5506-e7d95441d094'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4062,'f375f39c-f87b-26ee-5506-e7d95441d094',1774,1777,'00000000-0000-0000-0000-000000000000','CEntBegin',-1,2,-1,'',5,-1,1,0,-1,10,-1,26,-1,0,0,'','','','','</span>
</div>
</li>
</ul>
</div> 
<div class="div_tabs">
<ul islonly="1" isgroup="1" groupid="232" entid="1774" class="tab_ul" istab="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="1717" istab="1" tabid="1" style="height: 29px; width: 70px; position: static; z-index: 3;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">试用期考核成绩</a></li>
</ul><div class="tabs-content" tabid="1">
<!-- 开始 -->
<!-- 功能键栏 -->
<div class="ajaxform toolbar-opt">
<!--功能键栏-->
<ul islonly="1" class="tool-ul" isgroup="1" groupid="232" entid="1777" ctrlprex="AjaxF_" isrple="1"> <li areaid="1718" class="tool-li" scroll="no" style="width: 61px; height: 28px; position: static;"><a class="list-bt-add" href="javascript:void(0);" id="AjaxF_1777_btn_buildNew" onclick="javascript:DcxForm.AddRow(this,1,1777,''AjaxF_'');" title="添   加">添 加</a></li>
<li areaid="1719" class="tool-li" scroll="no" style="width: 78px; height: 28px; position: static;"><a class="list-bt-other" href="javascript:void(0);" id="AjaxF_1777_btn_buildNew" onclick="javascript:DcxForm.AddRow(this,5,1777,''AjaxF_'');" title="添加5行">添加5行</a></li>

<li areaid="1721" class="tool-li" scroll="no" style="width: 62px; height: 30px; position: static;"><a class="lform-bt-delete" href="javascript:void(0);" id="AjaxF_1777_deletebut" onclick="javascript:DcxForm.DeleteRow(this,1777,''AjaxF_'');" title="删   除">删 除</a></li>
<li areaid="1722" class="tool-li" scroll="no" style="width: 83px; height: 31px; position: static;"><a class="list-bt-other" href="javascript:void(0);" id="AjaxF_1777_deletebut" onclick="javascript:DcxForm.DeleteAllRow(this,1777,''AjaxF_'');" title="删除全部">删除全部</a></li>

</ul>
</div>
<div class="ajaxform listarea">
<div class="lf-head">
     <ul isgroup="1" islonly="1" islisthead="1" groupid="233" entid="1777" class="ul-listtitle" style="width: 758px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="1724" class="list-head-select" style="width: 32px; height: 30px; clear: none; float: left; position: static;" scroll="no"><input class="chPut ifselect" id="ckb_CheckAllAjaxF_1777" onclick="javascript:DcxCom.CheckedAll(this,1777,''AjaxF_'');" rel="chkall" type="checkbox"></li><li areaid="1726" class="li-head-item" style="width: 179px; height: 30px; clear: none; float: left; position: static;" scroll="no"><label class="head-label" istitle="1">考核日期 </label></li><li areaid="1728" class="li-head-item" style="width: 179px; height: 30px; clear: none; float: left; position: static;" scroll="no">
<label class="head-label" istitle="1">考核得分 </label></li><li areaid="1730" class="li-head-item" style="width: 179px; height: 30px; clear: none; float: left; position: static;" scroll="no">
<label class="head-label" istitle="1">考核系数 </label></li><li areaid="1732" class="li-head-item" style="width: 179px; height: 30px; clear: right; float: left; position: static;" scroll="no">
<label class="head-label" istitle="1">评语 </label></li></ul>
</div>
<div class="lf-body">','','','','','','',234,-1,-1,-1,1,'1777,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4062,[Form_EntId]=1774,[EntId]=1777,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='CEntBegin',[FieldDataTypeId]=-1,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=-1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=-1,[FieldTypeId]=10,[RepeatColumns]=-1,[FieldNO]=26,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
</ul>
</div> 
<div class="div_tabs">
<ul islonly="1" isgroup="1" groupid="232" entid="1774" class="tab_ul" istab="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="1717" istab="1" tabid="1" style="height: 29px; width: 70px; position: static; z-index: 3;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">试用期考核成绩</a></li>
</ul><div class="tabs-content" tabid="1">
<!-- 开始 -->
<!-- 功能键栏 -->
<div class="ajaxform toolbar-opt">
<!--功能键栏-->
<ul islonly="1" class="tool-ul" isgroup="1" groupid="232" entid="1777" ctrlprex="AjaxF_" isrple="1"> <li areaid="1718" class="tool-li" scroll="no" style="width: 61px; height: 28px; position: static;"><a class="list-bt-add" href="javascript:void(0);" id="AjaxF_1777_btn_buildNew" onclick="javascript:DcxForm.AddRow(this,1,1777,''AjaxF_'');" title="添   加">添 加</a></li>
<li areaid="1719" class="tool-li" scroll="no" style="width: 78px; height: 28px; position: static;"><a class="list-bt-other" href="javascript:void(0);" id="AjaxF_1777_btn_buildNew" onclick="javascript:DcxForm.AddRow(this,5,1777,''AjaxF_'');" title="添加5行">添加5行</a></li>

<li areaid="1721" class="tool-li" scroll="no" style="width: 62px; height: 30px; position: static;"><a class="lform-bt-delete" href="javascript:void(0);" id="AjaxF_1777_deletebut" onclick="javascript:DcxForm.DeleteRow(this,1777,''AjaxF_'');" title="删   除">删 除</a></li>
<li areaid="1722" class="tool-li" scroll="no" style="width: 83px; height: 31px; position: static;"><a class="list-bt-other" href="javascript:void(0);" id="AjaxF_1777_deletebut" onclick="javascript:DcxForm.DeleteAllRow(this,1777,''AjaxF_'');" title="删除全部">删除全部</a></li>

</ul>
</div>
<div class="ajaxform listarea">
<div class="lf-head">
     <ul isgroup="1" islonly="1" islisthead="1" groupid="233" entid="1777" class="ul-listtitle" style="width: 758px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="1724" class="list-head-select" style="width: 32px; height: 30px; clear: none; float: left; position: static;" scroll="no"><input class="chPut ifselect" id="ckb_CheckAllAjaxF_1777" onclick="javascript:DcxCom.CheckedAll(this,1777,''AjaxF_'');" rel="chkall" type="checkbox"></li><li areaid="1726" class="li-head-item" style="width: 179px; height: 30px; clear: none; float: left; position: static;" scroll="no"><label class="head-label" istitle="1">考核日期 </label></li><li areaid="1728" class="li-head-item" style="width: 179px; height: 30px; clear: none; float: left; position: static;" scroll="no">
<label class="head-label" istitle="1">考核得分 </label></li><li areaid="1730" class="li-head-item" style="width: 179px; height: 30px; clear: none; float: left; position: static;" scroll="no">
<label class="head-label" istitle="1">考核系数 </label></li><li areaid="1732" class="li-head-item" style="width: 179px; height: 30px; clear: right; float: left; position: static;" scroll="no">
<label class="head-label" istitle="1">评语 </label></li></ul>
</div>
<div class="lf-body">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='',[CtrlbackHtml]='',[CtrlLastHtml]='',[TableIndex]=234,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1777,' where  [FldUId]='f375f39c-f87b-26ee-5506-e7d95441d094' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='0389677a-6125-83d0-54ed-f76a592a448d'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3974,'0389677a-6125-83d0-54ed-f76a592a448d',1774,1777,'00000000-0000-0000-0000-000000000000','KeyFieldValue',2,2,-1,'',0,-1,1,0,-1,21,-1,27,-1,0,0,'','','','','isgroup="1" islonly="1" groupid="234" class="ul-listfield" style="width: 758px;" isrple="1">
<li areaid="1725" class="list-body-select" style="width: 32px; height: 40px; clear: none; float: left; position: static;" scroll="no"><input class="ckb_del" ctrlprex="AjaxF_" entid="1777" issyscheck="1" keyvalue="','','','','','','',234,0,0,0,1,'1777,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3974,[Form_EntId]=1774,[EntId]=1777,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='KeyFieldValue',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=0,[RunValueType]=-1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=-1,[FieldTypeId]=21,[RepeatColumns]=-1,[FieldNO]=27,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='isgroup="1" islonly="1" groupid="234" class="ul-listfield" style="width: 758px;" isrple="1">
<li areaid="1725" class="list-body-select" style="width: 32px; height: 40px; clear: none; float: left; position: static;" scroll="no"><input class="ckb_del" ctrlprex="AjaxF_" entid="1777" issyscheck="1" keyvalue="',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='',[CtrlbackHtml]='',[CtrlLastHtml]='',[TableIndex]=234,[RowIndex]=0,[Parent_TableIndex]=0,[Parent_RowIndex]=0,[HaveChildEntity]=1,[SameRowChildEntId]='1777,' where  [FldUId]='0389677a-6125-83d0-54ed-f76a592a448d' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='44595875-ca63-8f07-28a3-8d1d6dbb28d9'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3970,'44595875-ca63-8f07-28a3-8d1d6dbb28d9',1774,1777,'00000000-0000-0000-0000-000000000000','考核日期',3,3,5,'',5,1,0,0,5,1,0,28,-1,0,0,'','','','','" type="checkbox"></li><li areaid="1727" class="li-listfield" style="width: 179px; height: 40px; clear: none; float: left; position: static;" scroll="no"><div class="list-field">
	<span class="form-ctr" isfcontain="1">','','','<div class="lt-dll-div"><input  id="d1777_考核日期%trindex%" CtrlPrex="AjaxF_"','type="text" class="lt-ddl"  style="width:139px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,1777,''AjaxF_'');" onblur ="javascript:if(!DcxVld.Validate(this,1777,''AjaxF_'',1774,true,$(this).val()))return false;" onfocus ="javascript:DcxDTime.ShowCalendar(this);DcxVld.ValidateFocus(this,1777,''AjaxF_'',1774,true);" EntId="1777" IsField=1 DBField=1 IsPost=1 FieldName="考核日期" dType="3" Vtp="5" RDT="3" Isc="1" RId="1" CId="5" FId="3970" vlk=0    value="','" /><span class="lt-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>','',234,-1,-1,-1,1,'1777,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3970,[Form_EntId]=1774,[EntId]=1777,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='考核日期',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=5,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=0,[CtrlStyleId]=0,[CtrlTypeId]=5,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=28,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='" type="checkbox"></li><li areaid="1727" class="li-listfield" style="width: 179px; height: 40px; clear: none; float: left; position: static;" scroll="no"><div class="list-field">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<div class="lt-dll-div"><input  id="d1777_考核日期%trindex%" CtrlPrex="AjaxF_"',[CtrlfrontHtml]='type="text" class="lt-ddl"  style="width:139px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,1777,''AjaxF_'');" onblur ="javascript:if(!DcxVld.Validate(this,1777,''AjaxF_'',1774,true,$(this).val()))return false;" onfocus ="javascript:DcxDTime.ShowCalendar(this);DcxVld.ValidateFocus(this,1777,''AjaxF_'',1774,true);" EntId="1777" IsField=1 DBField=1 IsPost=1 FieldName="考核日期" dType="3" Vtp="5" RDT="3" Isc="1" RId="1" CId="5" FId="3970" vlk=0    value="',[CtrlbackHtml]='" /><span class="lt-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>',[CtrlLastHtml]='',[TableIndex]=234,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1777,' where  [FldUId]='44595875-ca63-8f07-28a3-8d1d6dbb28d9' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='c54eaad8-cc1c-a245-93c2-77c365438d68'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3971,'c54eaad8-cc1c-a245-93c2-77c365438d68',1774,1777,'00000000-0000-0000-0000-000000000000','考核得分',9,5,6,'',5,1,0,0,1,1,0,29,-1,0,0,'','','','','</span>
</div>
</li><li areaid="1729" class="li-listfield" style="width: 179px; height: 40px; clear: none; float: left; position: static;" scroll="no">
   <div class="list-field">
   <span class="form-ctr" isfcontain="1">','','','<input  id="d1777_考核得分%trindex%" CtrlPrex="AjaxF_"','type="text" class="lt-txt"  style="width:139px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,1777,''AjaxF_'');" onblur ="javascript:if(!DcxVld.Validate(this,1777,''AjaxF_'',1774,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1777,''AjaxF_'',1774,true);" EntId="1777" IsField=1 DBField=1 IsPost=1 FieldName="考核得分" dType="9" Vtp="5" RDT="5" Isc="1" RId="1" CId="1" FId="3971" vlk=0    value="','" />','',234,-1,-1,-1,1,'1777,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3971,[Form_EntId]=1774,[EntId]=1777,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='考核得分',[FieldDataTypeId]=9,[RunDataTypeId]=5,[DBFieldId]=6,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=0,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=29,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li areaid="1729" class="li-listfield" style="width: 179px; height: 40px; clear: none; float: left; position: static;" scroll="no">
   <div class="list-field">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<input  id="d1777_考核得分%trindex%" CtrlPrex="AjaxF_"',[CtrlfrontHtml]='type="text" class="lt-txt"  style="width:139px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,1777,''AjaxF_'');" onblur ="javascript:if(!DcxVld.Validate(this,1777,''AjaxF_'',1774,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1777,''AjaxF_'',1774,true);" EntId="1777" IsField=1 DBField=1 IsPost=1 FieldName="考核得分" dType="9" Vtp="5" RDT="5" Isc="1" RId="1" CId="1" FId="3971" vlk=0    value="',[CtrlbackHtml]='" />',[CtrlLastHtml]='',[TableIndex]=234,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1777,' where  [FldUId]='c54eaad8-cc1c-a245-93c2-77c365438d68' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='3f46f82e-2eec-bc56-34e9-986cd89d568b'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3972,'3f46f82e-2eec-bc56-34e9-986cd89d568b',1774,1777,'00000000-0000-0000-0000-000000000000','考核系数',9,5,7,'',1,1,1,0,1,1,1,30,-1,0,0,'','','','','</span>
  </div>
</li><li areaid="1731" class="li-listfield" style="width: 179px; height: 40px; clear: none; float: left; position: static;" scroll="no">
   <div class="list-field">
   <span class="form-ctr" isfcontain="1">','','','<input  id="d1777_考核系数%trindex%" CtrlPrex="AjaxF_"','type="text" class="lt-txt"  style="width:139px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,1777,''AjaxF_'');" onblur ="javascript:if(!DcxVld.Validate(this,1777,''AjaxF_'',1774,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1777,''AjaxF_'',1774,true);" EntId="1777" IsField=1 DBField=1 IsPost=1 FieldName="考核系数" dType="9" Vtp="1" RDT="5" Isc="1" RId="1" CId="1" FId="3972" vlk=0    value="','" />','',234,-1,-1,-1,1,'1777,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3972,[Form_EntId]=1774,[EntId]=1777,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='考核系数',[FieldDataTypeId]=9,[RunDataTypeId]=5,[DBFieldId]=7,[DefaultValue]='',[ValueType]=1,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=30,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1731" class="li-listfield" style="width: 179px; height: 40px; clear: none; float: left; position: static;" scroll="no">
   <div class="list-field">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<input  id="d1777_考核系数%trindex%" CtrlPrex="AjaxF_"',[CtrlfrontHtml]='type="text" class="lt-txt"  style="width:139px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,1777,''AjaxF_'');" onblur ="javascript:if(!DcxVld.Validate(this,1777,''AjaxF_'',1774,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1777,''AjaxF_'',1774,true);" EntId="1777" IsField=1 DBField=1 IsPost=1 FieldName="考核系数" dType="9" Vtp="1" RDT="5" Isc="1" RId="1" CId="1" FId="3972" vlk=0    value="',[CtrlbackHtml]='" />',[CtrlLastHtml]='',[TableIndex]=234,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1777,' where  [FldUId]='3f46f82e-2eec-bc56-34e9-986cd89d568b' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='1f83af5e-fb91-11de-9198-48d32f6abf08'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3973,'1f83af5e-fb91-11de-9198-48d32f6abf08',1774,1777,'00000000-0000-0000-0000-000000000000','评语',2,2,8,'',5,1,0,0,1,1,0,31,-1,0,0,'','','','','</span>
  </div>
</li><li areaid="1733" class="li-listfield" style="width: 179px; height: 40px; clear: right; float: left; position: static;" scroll="no">
   <div class="list-field">
   <span class="form-ctr" isfcontain="1">','','','<input  id="d1777_评语%trindex%" CtrlPrex="AjaxF_"','type="text" class="lt-txt"  style="width:139px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,1777,''AjaxF_'');" onblur ="javascript:if(!DcxVld.Validate(this,1777,''AjaxF_'',1774,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1777,''AjaxF_'',1774,true);" EntId="1777" IsField=1 DBField=1 IsPost=1 FieldName="评语" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="3973" vlk=0    value="','" />','',234,-1,-1,-1,1,'1777,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3973,[Form_EntId]=1774,[EntId]=1777,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='评语',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=8,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=0,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=31,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1733" class="li-listfield" style="width: 179px; height: 40px; clear: right; float: left; position: static;" scroll="no">
   <div class="list-field">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<input  id="d1777_评语%trindex%" CtrlPrex="AjaxF_"',[CtrlfrontHtml]='type="text" class="lt-txt"  style="width:139px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,1777,''AjaxF_'');" onblur ="javascript:if(!DcxVld.Validate(this,1777,''AjaxF_'',1774,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1777,''AjaxF_'',1774,true);" EntId="1777" IsField=1 DBField=1 IsPost=1 FieldName="评语" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="3973" vlk=0    value="',[CtrlbackHtml]='" />',[CtrlLastHtml]='',[TableIndex]=234,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1777,' where  [FldUId]='1f83af5e-fb91-11de-9198-48d32f6abf08' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='2a806bb4-5184-6ee7-f371-0bc3f7a0650e'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4063,'2a806bb4-5184-6ee7-f371-0bc3f7a0650e',1774,1777,'00000000-0000-0000-0000-000000000000','CEntEnd',-1,2,-1,'',5,-1,1,0,-1,11,-1,32,-1,0,0,'','','','','</span>
  </div>
</li></ul>','</div>
</div>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="1774" groupid="235" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="1734" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
<li areaid="1735" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>','','','','','',234,-1,-1,-1,1,'1777,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4063,[Form_EntId]=1774,[EntId]=1777,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='CEntEnd',[FieldDataTypeId]=-1,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=-1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=-1,[FieldTypeId]=11,[RepeatColumns]=-1,[FieldNO]=32,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li></ul>',[LastHtml]='</div>
</div>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="1774" groupid="235" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="1734" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
<li areaid="1735" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='',[CtrlbackHtml]='',[CtrlLastHtml]='',[TableIndex]=234,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1777,' where  [FldUId]='2a806bb4-5184-6ee7-f371-0bc3f7a0650e' 
      end



Delete from [Dcx_SearchForm_Run]  where [EntId]=1774

--Dcx_SearchForm_Run
      if (select count(1) from [Dcx_SearchForm_Run] where  [EntId]=1774  )<1 
      begin 
           Insert into [Dcx_SearchForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('e625bdc2-e8ab-4cef-b05f-8a769387147a','转正审批',1774,9,'','',0,'<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>','','DcxRun.SearchF_1774= {"MenuId":3059,"MEntId":1774,"EntName":"转正审批","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1774":{"EntId":1774,"KeyFieldValue":"","DBTableName":"","KeyField":"转正编号","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_1774.EntMsg.E1774.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"人事_转正申请表","EntId":1774,"KeyField":"转正编号","MKeyField":"转正编号","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"员工姓名":{"DtId":2,"DB":1,"CId":1,"FL":100},"部门":{"DtId":2,"DB":1,"CId":8,"FL":100},"岗位":{"DtId":2,"DB":1,"CId":8,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.SearchF_1774.EntMsg.E1774.GetDataRowModel=function()
{
    return {"员工姓名":"","部门":"","岗位":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"转正编号","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_1774.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1774,''SearchF_'',buildNew,closeDlg);

}','',20,'','','','1774*转正编号*2**2*人事_转正申请表*转正审批',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 5:45:57',3,'admin','2013-11-16 17:38:22',1)
      end
      else 
      begin 
           update [Dcx_SearchForm_Run] set [FormId]='e625bdc2-e8ab-4cef-b05f-8a769387147a',[FormName]='转正审批',[ModuleId]=9,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.SearchF_1774= {"MenuId":3059,"MEntId":1774,"EntName":"转正审批","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1774":{"EntId":1774,"KeyFieldValue":"","DBTableName":"","KeyField":"转正编号","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_1774.EntMsg.E1774.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"人事_转正申请表","EntId":1774,"KeyField":"转正编号","MKeyField":"转正编号","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"员工姓名":{"DtId":2,"DB":1,"CId":1,"FL":100},"部门":{"DtId":2,"DB":1,"CId":8,"FL":100},"岗位":{"DtId":2,"DB":1,"CId":8,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.SearchF_1774.EntMsg.E1774.GetDataRowModel=function()
{
    return {"员工姓名":"","部门":"","岗位":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"转正编号","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_1774.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1774,''SearchF_'',buildNew,closeDlg);

}',[LoadingSql]='',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='1774*转正编号*2**2*人事_转正申请表*转正审批',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 5:45:57',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-16 17:38:22',[AccountId]=1 where  [EntId]=1774 
      end




--Dcx_SearchFormField_Run
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='68a13f04-79cc-416e-8b2a-da9a2c6ed542'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'68a13f04-79cc-416e-8b2a-da9a2c6ed542',1774,1774,'00000000-0000-0000-0000-000000000000',1,'Like','员工姓名',2,2,13,'',5,1,1,0,1,1,0,-1,1,0,'','','','','<div class="searchform">
<ul isgroup="1" groupid="27" entid="1774" class="search-block w920" ctrlprex="SearchF_" isrple="1">
<li areaid="105" class="search-li w240 h32" scroll="no" style="width: 241px; position: static;">
<label class="search-title pad7" istitle="1" fldid="1">员工姓名</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">','','','','<input  id="d1774_员工姓名"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''SearchF_'',1774,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''SearchF_'',1774);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="员工姓名" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'1774,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=1,[Form_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[CompareOperatorType]='Like',[FieldName]='员工姓名',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=13,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="searchform">
<ul isgroup="1" groupid="27" entid="1774" class="search-block w920" ctrlprex="SearchF_" isrple="1">
<li areaid="105" class="search-li w240 h32" scroll="no" style="width: 241px; position: static;">
<label class="search-title pad7" istitle="1" fldid="1">员工姓名</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1774_员工姓名"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''SearchF_'',1774,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''SearchF_'',1774);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="员工姓名" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1774,' where  [FldUId]='68a13f04-79cc-416e-8b2a-da9a2c6ed542' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='d62b771e-f50f-4d11-8c61-913101f1c843'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'d62b771e-f50f-4d11-8c61-913101f1c843',1774,1774,'00000000-0000-0000-0000-000000000000',2,'Like','部门',2,2,14,'select '''' union SELECT [DeptName]  FROM [Dcx_Dept]',2,-1,1,0,8,1,0,-1,1,0,'','','','','</span>
  </div>
</li>
<li areaid="106" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="2">部门</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">','','','','<input  id="d1774_部门"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''SearchF_'',1774,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''SearchF_'',1774);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="部门" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="8" FId="2" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'1774,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=2,[Form_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[CompareOperatorType]='Like',[FieldName]='部门',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=14,[DefaultValue]='select '''' union SELECT [DeptName]  FROM [Dcx_Dept]',[ValueType]=2,[RunValueType]=-1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=8,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="106" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="2">部门</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1774_部门"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''SearchF_'',1774,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''SearchF_'',1774);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="部门" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="8" FId="2" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1774,' where  [FldUId]='d62b771e-f50f-4d11-8c61-913101f1c843' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='28ed08f1-74dc-4e18-acfc-563991bc43f1'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'28ed08f1-74dc-4e18-acfc-563991bc43f1',1774,1774,'00000000-0000-0000-0000-000000000000',3,'Like','岗位',2,2,15,'select '''' union SELECT [Position_Name] FROM [Dcx_Position]',2,-1,1,0,8,1,0,-1,1,0,'','','','','</span>
  </div>
</li>
<li areaid="107" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="3">岗位</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">','</span>
  </div>
</li>
<li areaid="108" class="search-li w100 h32" scroll="no" style="position: static;">
<div class="searchform-button" onclick="javascript:return VL_Search(1774);">
<div class="search-btn">&nbsp;</div>
<a href="javascript:void(0);" id="1774_searchBT">搜索</a>
</div>
</li>
</ul>
</div>','','','<input  id="d1774_岗位"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''SearchF_'',1774,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''SearchF_'',1774);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="岗位" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="8" FId="3" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'1774,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=3,[Form_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[CompareOperatorType]='Like',[FieldName]='岗位',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=15,[DefaultValue]='select '''' union SELECT [Position_Name] FROM [Dcx_Position]',[ValueType]=2,[RunValueType]=-1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=8,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="107" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="3">岗位</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
  </div>
</li>
<li areaid="108" class="search-li w100 h32" scroll="no" style="position: static;">
<div class="searchform-button" onclick="javascript:return VL_Search(1774);">
<div class="search-btn">&nbsp;</div>
<a href="javascript:void(0);" id="1774_searchBT">搜索</a>
</div>
</li>
</ul>
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1774_岗位"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1774,''SearchF_'',1774,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1774,''SearchF_'',1774);" EntId="1774" IsField=1 DBField=1 IsPost=1 FieldName="岗位" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="8" FId="3" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1774,' where  [FldUId]='28ed08f1-74dc-4e18-acfc-563991bc43f1' 
      end



Delete from [Dcx_BrowseReport_Run]  where [EntId]=1774

--Dcx_BrowseReport_Run
      if (select count(1) from [Dcx_BrowseReport_Run] where  [EntId]=1774  )<1 
      begin 
           Insert into [Dcx_BrowseReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[DIYJsCss],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('934c7764-6ce6-498b-a222-2a037d2ac9f4','转正审批',1774,31,'','<$1774$>select [员工姓名],[部门],[岗位],[入职日期],[申请转正日期],[综合考核得分],[综合考核系数],[综合评定结果],[转正编号] from 人事_转正申请表 where [转正编号]=''{$keyfieldvalue}''</$1774$><$1777$>select [Id][转正编号] from 人事_试用期考核成绩表 where [转正编号]=''{$mkeyValue}''</$1777$>',1,1,20,'','DcxRun.MChildR_1774= {"MenuId":3059,"MEntId":1774,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"转正审批","EntMsg":{"E1774":{"EntId":1774,"EntName":"转正审批","KeyFieldValue":"","DBTableName":"","KeyField":"转正编号","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":116,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null},"E1777":{"EntId":1777,"EntName":"试用期考核成绩","KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"转正编号","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":false,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1774*转正编号*2**2*人事_转正申请表*转正审批,1777*Id*2*转正编号*2*人事_试用期考核成绩表*试用期考核成绩',3,'','2012-12-21 11:03:02',3,'','2013-11-17 3:04:11',1)
      end
      else 
      begin 
           update [Dcx_BrowseReport_Run] set [ReportId]='934c7764-6ce6-498b-a222-2a037d2ac9f4',[ReportName]='转正审批',[ModuleId]=31,[StaticHtml]='',[LoadingSql]='<$1774$>select [员工姓名],[部门],[岗位],[入职日期],[申请转正日期],[综合考核得分],[综合考核系数],[综合评定结果],[转正编号] from 人事_转正申请表 where [转正编号]=''{$keyfieldvalue}''</$1774$><$1777$>select [Id][转正编号] from 人事_试用期考核成绩表 where [转正编号]=''{$mkeyValue}''</$1777$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[DIYJsCss]='',[AutoPublicJs]='DcxRun.MChildR_1774= {"MenuId":3059,"MEntId":1774,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"转正审批","EntMsg":{"E1774":{"EntId":1774,"EntName":"转正审批","KeyFieldValue":"","DBTableName":"","KeyField":"转正编号","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":116,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null},"E1777":{"EntId":1777,"EntName":"试用期考核成绩","KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"转正编号","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":false,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1774*转正编号*2**2*人事_转正申请表*转正审批,1777*Id*2*转正编号*2*人事_试用期考核成绩表*试用期考核成绩',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-21 11:03:02',[EditorId]=3,[Editor]='',[EditTime]='2013-11-17 3:04:11',[AccountId]=1 where  [EntId]=1774 
      end




--Dcx_BrowseReportField_Run
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='7ff2a369-8553-4c5e-803d-ac7982ec0c77'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'7ff2a369-8553-4c5e-803d-ac7982ec0c77',1774,1774,'00000000-0000-0000-0000-000000000000',13,'员工姓名',1,1,'varchar',2,1,0,'','','','<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1774" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="443" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">转正审批</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1774" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="444" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">员工姓名  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1774" fieldname="员工姓名" fldid="1" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1774,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=1,[Report_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=13,[FieldName]='员工姓名',[FieldNO]=1,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1774" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="443" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">转正审批</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1774" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="444" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">员工姓名  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1774" fieldname="员工姓名" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1774,' where  [FldUId]='7ff2a369-8553-4c5e-803d-ac7982ec0c77' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='f594b32c-e37d-4009-b1ae-21e6f33a9113'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'f594b32c-e37d-4009-b1ae-21e6f33a9113',1774,1774,'00000000-0000-0000-0000-000000000000',14,'部门',2,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="445" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1774" fieldname="部门" fldid="2" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1774,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=2,[Report_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=14,[FieldName]='部门',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="445" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1774" fieldname="部门" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1774,' where  [FldUId]='f594b32c-e37d-4009-b1ae-21e6f33a9113' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='48141a22-3bdb-4b0c-9206-193a213a357f'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'48141a22-3bdb-4b0c-9206-193a213a357f',1774,1774,'00000000-0000-0000-0000-000000000000',15,'岗位',3,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="446" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">岗位  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1774" fieldname="岗位" fldid="3" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1774,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=3,[Report_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=15,[FieldName]='岗位',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="446" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">岗位  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1774" fieldname="岗位" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1774,' where  [FldUId]='48141a22-3bdb-4b0c-9206-193a213a357f' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='af70c409-c29b-4a54-9f49-fd898431d011'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'af70c409-c29b-4a54-9f49-fd898431d011',1774,1774,'00000000-0000-0000-0000-000000000000',16,'入职日期',4,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="447" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">入职日期  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1774" fieldname="入职日期" fldid="4" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1774,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=4,[Report_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=16,[FieldName]='入职日期',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="447" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">入职日期  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1774" fieldname="入职日期" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1774,' where  [FldUId]='af70c409-c29b-4a54-9f49-fd898431d011' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='5e32ea2a-6a4b-47f1-a6d0-d54ee08ee8f9'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'5e32ea2a-6a4b-47f1-a6d0-d54ee08ee8f9',1774,1774,'00000000-0000-0000-0000-000000000000',36,'申请转正日期',5,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="448" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">申请转正日期  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1774" fieldname="申请转正日期" fldid="5" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1774,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=5,[Report_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=36,[FieldName]='申请转正日期',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="448" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">申请转正日期  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1774" fieldname="申请转正日期" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1774,' where  [FldUId]='5e32ea2a-6a4b-47f1-a6d0-d54ee08ee8f9' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='fa19e7ff-18ee-4a52-942b-2f6f412c787b'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'fa19e7ff-18ee-4a52-942b-2f6f412c787b',1774,1774,'00000000-0000-0000-0000-000000000000',20,'综合考核得分',6,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="449" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">综合考核得分  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1774" fieldname="综合考核得分" fldid="6" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1774,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=6,[Report_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=20,[FieldName]='综合考核得分',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="449" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">综合考核得分  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1774" fieldname="综合考核得分" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1774,' where  [FldUId]='fa19e7ff-18ee-4a52-942b-2f6f412c787b' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='388d8266-b01b-46ee-a7b3-7943df769509'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'388d8266-b01b-46ee-a7b3-7943df769509',1774,1774,'00000000-0000-0000-0000-000000000000',21,'综合考核系数',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="450" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">综合考核系数  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1774" fieldname="综合考核系数" fldid="7" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1774,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=7,[Report_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=21,[FieldName]='综合考核系数',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="450" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">综合考核系数  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1774" fieldname="综合考核系数" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1774,' where  [FldUId]='388d8266-b01b-46ee-a7b3-7943df769509' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='d23f0675-f765-4a0f-be86-b7747aeb8acb'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'d23f0675-f765-4a0f-be86-b7747aeb8acb',1774,1774,'00000000-0000-0000-0000-000000000000',22,'综合评定结果',8,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="451" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="8">综合评定结果  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1774" fieldname="综合评定结果" fldid="8" columntypeid="1" class="form-ctr">','</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1774" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="456" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="457" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1774" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="458" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1774" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="459" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1774" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="460" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="461" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',-1,-1,-1,-1,0,'1774,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=8,[Report_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=22,[FieldName]='综合评定结果',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="451" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="8">综合评定结果  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1774" fieldname="综合评定结果" fldid="8" columntypeid="1" class="form-ctr">',[LastHtml]='</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1774" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="456" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="457" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1774" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="458" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1774" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="459" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1774" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="460" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="461" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1774,' where  [FldUId]='d23f0675-f765-4a0f-be86-b7747aeb8acb' 
      end



Delete from [Dcx_ListReport_Run]  where [EntId]=1774

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=1774  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('e0e7ecad-ee15-43a1-bb52-0483704450cb','转正审批',1774,1,'','','<$1774$>select *  from (select row_number() over( order by [转正编号])as dcx_rowid,[员工姓名],[WFFlowId],[WFRunId],[WFPrcsId],[部门],[岗位],[入职日期],[申请转正日期],[综合考核得分],[综合考核系数],[综合评定结果],[转正编号] from 人事_转正申请表  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1774$><$1774:Count$>select count([转正编号]) from 人事_转正申请表 where {$SearchArea}</$1774:Count$>',1,1,20,'DcxRun.ListR_1774= {"MenuId":3059,"MEntId":1774,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"转正审批","EntMsg":{"E1774":{"EntId":1774,"EntName":"转正审批","KeyFieldValue":"","DBTableName":"","KeyField":"转正编号","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":116,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1774*转正编号*2**2*人事_转正申请表*转正审批',3,'','2012-12-22 5:16:19',3,'','2013-11-16 20:11:48',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='e0e7ecad-ee15-43a1-bb52-0483704450cb',[ReportName]='转正审批',[ModuleId]=1,[StaticHtml]='',[DIYJsCss]='',[LoadingSql]='<$1774$>select *  from (select row_number() over( order by [转正编号])as dcx_rowid,[员工姓名],[WFFlowId],[WFRunId],[WFPrcsId],[部门],[岗位],[入职日期],[申请转正日期],[综合考核得分],[综合考核系数],[综合评定结果],[转正编号] from 人事_转正申请表  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1774$><$1774:Count$>select count([转正编号]) from 人事_转正申请表 where {$SearchArea}</$1774:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[AutoPublicJs]='DcxRun.ListR_1774= {"MenuId":3059,"MEntId":1774,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"转正审批","EntMsg":{"E1774":{"EntId":1774,"EntName":"转正审批","KeyFieldValue":"","DBTableName":"","KeyField":"转正编号","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":116,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1774*转正编号*2**2*人事_转正申请表*转正审批',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-22 5:16:19',[EditorId]=3,[Editor]='',[EditTime]='2013-11-16 20:11:48',[AccountId]=1 where  [EntId]=1774 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='9c1aeb3a-cc61-9822-9654-ec42431a15fa'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(457,'9c1aeb3a-cc61-9822-9654-ec42431a15fa',1774,1774,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="103" entid="1774" style="width: 1060px;" ctrlprex="ListR_" isrple="1"> <li areaid="1520" class="tool-li" style="position: static;">
</li><li areaid="1521" class="tool-li" style="position: static;"><a id="ListR_1774_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1774,''ListR_'');">删   除</a></li>
<li areaid="1522" class="tool-li" style="position: static;"><a id="ListR_1774_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1774,''ListR_'');">导   出</a></li>
<li areaid="1523" class="tool-li" style="position: static;"><a id="ListR_1774_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1774,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1774" style="position: static;">
<a id="ListR_1774_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1774,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1774_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1774,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1774_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1774,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1774_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="104" entid="1774" class="list-head-ul" style="width: 1080px;" ctrlprex="ListR_" isrple="1">
<li areaid="1525" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1774" onclick="javascript:DcxCom.CheckedAll(this,1774,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="1526" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">员工姓名 </label></li><li areaid="1527" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">部门 </label></li><li areaid="1528" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">岗位 </label></li><li areaid="1529" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">入职日期 </label></li><li areaid="1530" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请转正日期 </label></li><li areaid="1531" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">综合考核得分 </label></li><li areaid="1532" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">综合考核系数 </label></li><li areaid="1533" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">综合评定结果 </label></li><li areaid="1534" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="办理"><span class="i">办理</span></a></div></li><li areaid="1535" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="1536" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">','',-1,105,-1,-1,1,'1774,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=457,[Report_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="103" entid="1774" style="width: 1060px;" ctrlprex="ListR_" isrple="1"> <li areaid="1520" class="tool-li" style="position: static;">
</li><li areaid="1521" class="tool-li" style="position: static;"><a id="ListR_1774_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1774,''ListR_'');">删   除</a></li>
<li areaid="1522" class="tool-li" style="position: static;"><a id="ListR_1774_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1774,''ListR_'');">导   出</a></li>
<li areaid="1523" class="tool-li" style="position: static;"><a id="ListR_1774_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1774,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1774" style="position: static;">
<a id="ListR_1774_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1774,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1774_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1774,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1774_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1774,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1774_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="104" entid="1774" class="list-head-ul" style="width: 1080px;" ctrlprex="ListR_" isrple="1">
<li areaid="1525" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1774" onclick="javascript:DcxCom.CheckedAll(this,1774,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="1526" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">员工姓名 </label></li><li areaid="1527" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">部门 </label></li><li areaid="1528" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">岗位 </label></li><li areaid="1529" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">入职日期 </label></li><li areaid="1530" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请转正日期 </label></li><li areaid="1531" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">综合考核得分 </label></li><li areaid="1532" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">综合考核系数 </label></li><li areaid="1533" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">综合评定结果 </label></li><li areaid="1534" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="办理"><span class="i">办理</span></a></div></li><li areaid="1535" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="1536" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=105,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1774,' where  [FldUId]='9c1aeb3a-cc61-9822-9654-ec42431a15fa' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='1f2568d8-4cec-47a0-9507-836b56b9de56'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(154,'1f2568d8-4cec-47a0-9507-836b56b9de56',1774,1774,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',2,1,'',2,21,0,'','','','islonly="1" isgroup="1" groupid="105" class="list-body-ul" style="width: 1080px;" isrple="1">
<li areaid="1537" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1774" issyscheck="1" keyvalue="','',-1,105,-1,-1,1,'1774,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=154,[Report_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='islonly="1" isgroup="1" groupid="105" class="list-body-ul" style="width: 1080px;" isrple="1">
<li areaid="1537" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1774" issyscheck="1" keyvalue="',[LastHtml]='',[RowIndex]=-1,[TableIndex]=105,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1774,' where  [FldUId]='1f2568d8-4cec-47a0-9507-836b56b9de56' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='9a3cc53d-f284-4539-bad0-571feb5c27f2'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'9a3cc53d-f284-4539-bad0-571feb5c27f2',1774,1774,'00000000-0000-0000-0000-000000000000',13,'员工姓名',3,1,'varchar',2,1,0,'','','','" type="checkbox"></li><li areaid="1538" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1774" fieldname="员工姓名" fldid="1" columntypeid="1" class="form-ctr">','',-1,105,-1,-1,1,'1774,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=1,[Report_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=13,[FieldName]='员工姓名',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='" type="checkbox"></li><li areaid="1538" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1774" fieldname="员工姓名" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=105,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1774,' where  [FldUId]='9a3cc53d-f284-4539-bad0-571feb5c27f2' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='61d6ebe7-49a3-4108-ad63-23112bcd6eff'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(408,'61d6ebe7-49a3-4108-ad63-23112bcd6eff',1774,1774,'00000000-0000-0000-0000-000000000000',9,'WFFlowId',4,1,'',1,1,0,'','','','</span>
   <span isfield="1" entid="1774" fieldname="WFFlowId" fldid="408" columntypeid="1" class="form-ctr" style="display: none;">','',-1,105,-1,-1,1,'1774,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=408,[Report_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=9,[FieldName]='WFFlowId',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   <span isfield="1" entid="1774" fieldname="WFFlowId" fldid="408" columntypeid="1" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=105,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1774,' where  [FldUId]='61d6ebe7-49a3-4108-ad63-23112bcd6eff' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='24ffd401-8fe3-45fd-9403-90bc6d1301d2'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(409,'24ffd401-8fe3-45fd-9403-90bc6d1301d2',1774,1774,'00000000-0000-0000-0000-000000000000',8,'WFRunId',5,1,'',1,1,0,'','','','</span>
   <span isfield="1" entid="1774" fieldname="WFRunId" fldid="409" columntypeid="1" class="form-ctr" style="display: none;">','',-1,105,-1,-1,1,'1774,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=409,[Report_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=8,[FieldName]='WFRunId',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   <span isfield="1" entid="1774" fieldname="WFRunId" fldid="409" columntypeid="1" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=105,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1774,' where  [FldUId]='24ffd401-8fe3-45fd-9403-90bc6d1301d2' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='c85ad8ce-f543-463a-ae80-42d35fb5e16b'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(410,'c85ad8ce-f543-463a-ae80-42d35fb5e16b',1774,1774,'00000000-0000-0000-0000-000000000000',10,'WFPrcsId',6,1,'',1,1,0,'','','','</span>
   <span isfield="1" entid="1774" fieldname="WFPrcsId" fldid="410" columntypeid="1" class="form-ctr" style="display: none;">','',-1,105,-1,-1,1,'1774,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=410,[Report_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=10,[FieldName]='WFPrcsId',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   <span isfield="1" entid="1774" fieldname="WFPrcsId" fldid="410" columntypeid="1" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=105,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1774,' where  [FldUId]='c85ad8ce-f543-463a-ae80-42d35fb5e16b' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='4c6b9973-1589-43de-ba4e-66568a080c4b'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'4c6b9973-1589-43de-ba4e-66568a080c4b',1774,1774,'00000000-0000-0000-0000-000000000000',14,'部门',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1539" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1774" fieldname="部门" fldid="2" columntypeid="1" class="form-ctr">','',-1,105,-1,-1,1,'1774,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=2,[Report_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=14,[FieldName]='部门',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1539" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1774" fieldname="部门" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=105,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1774,' where  [FldUId]='4c6b9973-1589-43de-ba4e-66568a080c4b' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='9358c259-d815-4fe8-842d-c769edce9de2'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'9358c259-d815-4fe8-842d-c769edce9de2',1774,1774,'00000000-0000-0000-0000-000000000000',15,'岗位',8,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1540" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1774" fieldname="岗位" fldid="3" columntypeid="1" class="form-ctr">','',-1,105,-1,-1,1,'1774,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=3,[Report_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=15,[FieldName]='岗位',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1540" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1774" fieldname="岗位" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=105,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1774,' where  [FldUId]='9358c259-d815-4fe8-842d-c769edce9de2' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='2ecb0029-e6b3-43ca-a0af-9ac693739f03'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'2ecb0029-e6b3-43ca-a0af-9ac693739f03',1774,1774,'00000000-0000-0000-0000-000000000000',16,'入职日期',9,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1541" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1774" fieldname="入职日期" fldid="4" columntypeid="1" class="form-ctr">','',-1,105,-1,-1,1,'1774,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=4,[Report_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=16,[FieldName]='入职日期',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1541" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1774" fieldname="入职日期" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=105,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1774,' where  [FldUId]='2ecb0029-e6b3-43ca-a0af-9ac693739f03' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='75caff53-9b68-4514-ac10-451794102926'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'75caff53-9b68-4514-ac10-451794102926',1774,1774,'00000000-0000-0000-0000-000000000000',36,'申请转正日期',10,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1542" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1774" fieldname="申请转正日期" fldid="5" columntypeid="1" class="form-ctr">','',-1,105,-1,-1,1,'1774,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=5,[Report_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=36,[FieldName]='申请转正日期',[FieldNO]=10,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1542" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1774" fieldname="申请转正日期" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=105,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1774,' where  [FldUId]='75caff53-9b68-4514-ac10-451794102926' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='60cb4a6c-cdbe-4a36-b7ac-34e874a7dc5e'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'60cb4a6c-cdbe-4a36-b7ac-34e874a7dc5e',1774,1774,'00000000-0000-0000-0000-000000000000',20,'综合考核得分',11,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1543" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1774" fieldname="综合考核得分" fldid="6" columntypeid="1" class="form-ctr">','',-1,105,-1,-1,1,'1774,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=6,[Report_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=20,[FieldName]='综合考核得分',[FieldNO]=11,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1543" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1774" fieldname="综合考核得分" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=105,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1774,' where  [FldUId]='60cb4a6c-cdbe-4a36-b7ac-34e874a7dc5e' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='f39c9782-cea7-4297-bab9-368e19bb67e0'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'f39c9782-cea7-4297-bab9-368e19bb67e0',1774,1774,'00000000-0000-0000-0000-000000000000',21,'综合考核系数',12,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1544" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1774" fieldname="综合考核系数" fldid="7" columntypeid="1" class="form-ctr">','',-1,105,-1,-1,1,'1774,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=7,[Report_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=21,[FieldName]='综合考核系数',[FieldNO]=12,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1544" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1774" fieldname="综合考核系数" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=105,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1774,' where  [FldUId]='f39c9782-cea7-4297-bab9-368e19bb67e0' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='c9a0c757-a856-4067-b025-7603f6925173'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'c9a0c757-a856-4067-b025-7603f6925173',1774,1774,'00000000-0000-0000-0000-000000000000',22,'综合评定结果',13,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1545" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1774" fieldname="综合评定结果" fldid="8" columntypeid="1" class="form-ctr">','',-1,105,-1,-1,1,'1774,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=8,[Report_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=22,[FieldName]='综合评定结果',[FieldNO]=13,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1545" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1774" fieldname="综合评定结果" fldid="8" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=105,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1774,' where  [FldUId]='c9a0c757-a856-4067-b025-7603f6925173' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='a6f18269-2576-467f-9503-f2d0f6dbae89'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(155,'a6f18269-2576-467f-9503-f2d0f6dbae89',1774,1774,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',14,1,'',2,21,0,'','','','</span>
  </div>
</li><li areaid="1546" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,1774,''ListR_'',''','',-1,105,-1,-1,1,'1774,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=155,[Report_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=14,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1546" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,1774,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=105,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1774,' where  [FldUId]='a6f18269-2576-467f-9503-f2d0f6dbae89' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='a3319541-b684-42f4-a38b-7379fbc804b4'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(156,'a3319541-b684-42f4-a38b-7379fbc804b4',1774,1774,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',15,1,'',2,21,0,'','','',''',null,1040,480);">
<span class="i">办理</span></a></div>
</li><li areaid="1547" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1774,''ListR_'',''','',-1,105,-1,-1,1,'1774,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=156,[Report_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=15,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">办理</span></a></div>
</li><li areaid="1547" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1774,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=105,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1774,' where  [FldUId]='a3319541-b684-42f4-a38b-7379fbc804b4' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='73cabb1b-6bfc-4a9c-b036-f51a65e7d6fc'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(157,'73cabb1b-6bfc-4a9c-b036-f51a65e7d6fc',1774,1774,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',16,1,'',2,21,0,'','','',''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="1548" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,1774,''ListR_'',''','',-1,105,-1,-1,1,'1774,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=157,[Report_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=16,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="1548" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,1774,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=105,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1774,' where  [FldUId]='73cabb1b-6bfc-4a9c-b036-f51a65e7d6fc' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='d476f216-7970-bdb6-da24-308ecf182643'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(458,'d476f216-7970-bdb6-da24-308ecf182643',1774,1774,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',17,-1,'varchar',2,13,0,'','','',''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>','</div>
</div>
<!-- 结束 --></div>',-1,105,-1,-1,1,'1774,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=458,[Report_EntId]=1774,[EntId]=1774,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=17,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>',[LastHtml]='</div>
</div>
<!-- 结束 --></div>',[RowIndex]=-1,[TableIndex]=105,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1774,' where  [FldUId]='d476f216-7970-bdb6-da24-308ecf182643' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=1049

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=1049  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(1049,null,'人事_转正申请表','人事_转正申请表',0,0,0,0,0,1,4,1,3,'admin','2013-12-15 17:32:51',3,'admin','2013-12-15 17:32:51',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='人事_转正申请表',[DBTableByName]='人事_转正申请表',[IsForbid]=0,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=1,[SystemId]=4,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:51',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:51',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=1049 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1049  and  [FieldId]=36  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7581,36,4,1049,'datetime',3,1,1,'人事_转正申请表','申请转正日期','申请转正日期','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_转正申请表',[FieldName]='申请转正日期',[FieldByname]='申请转正日期',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1049  and  [FieldId]=36 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1049  and  [FieldId]=35  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7582,35,4,1049,'varchar',2,1,1,'人事_转正申请表','董事长或总经理意见','董事长或总经理意见','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_转正申请表',[FieldName]='董事长或总经理意见',[FieldByname]='董事长或总经理意见',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1049  and  [FieldId]=35 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1049  and  [FieldId]=34  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7583,34,4,1049,'varchar',2,1,1,'人事_转正申请表','生产管理部意见','生产管理部意见','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_转正申请表',[FieldName]='生产管理部意见',[FieldByname]='生产管理部意见',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1049  and  [FieldId]=34 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1049  and  [FieldId]=33  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7584,33,4,1049,'varchar',2,1,1,'人事_转正申请表','分公司意见','分公司意见','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_转正申请表',[FieldName]='分公司意见',[FieldByname]='分公司意见',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1049  and  [FieldId]=33 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1049  and  [FieldId]=32  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7585,32,4,1049,'varchar',2,1,1,'人事_转正申请表','部门或项目部意见','部门或项目部意见','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_转正申请表',[FieldName]='部门或项目部意见',[FieldByname]='部门或项目部意见',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1049  and  [FieldId]=32 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1049  and  [FieldId]=31  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7586,31,4,1049,'money',5,1,1,'人事_转正申请表','转正后年薪合计','转正后年薪合计','',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_转正申请表',[FieldName]='转正后年薪合计',[FieldByname]='转正后年薪合计',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1049  and  [FieldId]=31 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1049  and  [FieldId]=30  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7587,30,4,1049,'money',5,1,1,'人事_转正申请表','转正后年度考核工资','转正后年度考核工资','',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_转正申请表',[FieldName]='转正后年度考核工资',[FieldByname]='转正后年度考核工资',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1049  and  [FieldId]=30 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1049  and  [FieldId]=29  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7588,29,4,1049,'money',5,1,1,'人事_转正申请表','转正后月工资合计','转正后月工资合计','',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_转正申请表',[FieldName]='转正后月工资合计',[FieldByname]='转正后月工资合计',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1049  and  [FieldId]=29 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1049  and  [FieldId]=28  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7589,28,4,1049,'money',5,1,1,'人事_转正申请表','转正后月考核工资','转正后月考核工资','',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_转正申请表',[FieldName]='转正后月考核工资',[FieldByname]='转正后月考核工资',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1049  and  [FieldId]=28 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1049  and  [FieldId]=27  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7590,27,4,1049,'money',5,1,1,'人事_转正申请表','转正后月基本工资','转正后月基本工资','',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_转正申请表',[FieldName]='转正后月基本工资',[FieldByname]='转正后月基本工资',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1049  and  [FieldId]=27 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1049  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7591,26,4,1049,'numeric',9,1,1,'人事_转正申请表','转正后工资等级','转正后工资等级','',0,0,1,9,18,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='numeric',[FieldDataTypeId]=9,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_转正申请表',[FieldName]='转正后工资等级',[FieldByname]='转正后工资等级',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=9,[Precision]=18,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1049  and  [FieldId]=26 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1049  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7592,25,4,1049,'money',5,1,1,'人事_转正申请表','试用期月工资合计','试用期月工资合计','',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_转正申请表',[FieldName]='试用期月工资合计',[FieldByname]='试用期月工资合计',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1049  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1049  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7593,24,4,1049,'money',5,1,1,'人事_转正申请表','试用期月考核工资','试用期月考核工资','',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_转正申请表',[FieldName]='试用期月考核工资',[FieldByname]='试用期月考核工资',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1049  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1049  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7594,23,4,1049,'money',5,1,1,'人事_转正申请表','试用期月基本工资','试用期月基本工资','',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_转正申请表',[FieldName]='试用期月基本工资',[FieldByname]='试用期月基本工资',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1049  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1049  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7595,22,4,1049,'varchar',2,1,1,'人事_转正申请表','综合评定结果','综合评定结果','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_转正申请表',[FieldName]='综合评定结果',[FieldByname]='综合评定结果',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1049  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1049  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7596,21,4,1049,'numeric',9,1,1,'人事_转正申请表','综合考核系数','综合考核系数','',0,0,1,9,18,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='numeric',[FieldDataTypeId]=9,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_转正申请表',[FieldName]='综合考核系数',[FieldByname]='综合考核系数',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=9,[Precision]=18,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1049  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1049  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7597,20,4,1049,'numeric',9,1,1,'人事_转正申请表','综合考核得分','综合考核得分','',0,0,1,9,18,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='numeric',[FieldDataTypeId]=9,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_转正申请表',[FieldName]='综合考核得分',[FieldByname]='综合考核得分',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=9,[Precision]=18,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1049  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1049  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7598,19,4,1049,'varchar',2,1,1,'人事_转正申请表','直接上级主管评语','直接上级主管评语','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_转正申请表',[FieldName]='直接上级主管评语',[FieldByname]='直接上级主管评语',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1049  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1049  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7599,18,4,1049,'varchar',2,1,1,'人事_转正申请表','员工自评','员工自评','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_转正申请表',[FieldName]='员工自评',[FieldByname]='员工自评',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1049  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1049  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7600,17,4,1049,'varchar',2,1,1,'人事_转正申请表','上岗证种类及有效期','上岗证种类及有效期','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_转正申请表',[FieldName]='上岗证种类及有效期',[FieldByname]='上岗证种类及有效期',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1049  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1049  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7601,16,4,1049,'datetime',3,1,1,'人事_转正申请表','入职日期','入职日期','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_转正申请表',[FieldName]='入职日期',[FieldByname]='入职日期',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1049  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1049  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7602,15,4,1049,'varchar',2,1,1,'人事_转正申请表','岗位','岗位','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_转正申请表',[FieldName]='岗位',[FieldByname]='岗位',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1049  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1049  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7603,14,4,1049,'varchar',2,1,1,'人事_转正申请表','部门','部门','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_转正申请表',[FieldName]='部门',[FieldByname]='部门',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1049  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1049  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7604,13,4,1049,'varchar',2,1,1,'人事_转正申请表','员工姓名','员工姓名','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_转正申请表',[FieldName]='员工姓名',[FieldByname]='员工姓名',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1049  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1049  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7605,12,4,1049,'varchar',2,1,1,'人事_转正申请表','员工编号','员工编号','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_转正申请表',[FieldName]='员工编号',[FieldByname]='员工编号',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1049  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1049  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7606,11,4,1049,'varchar',2,1,1,'人事_转正申请表','转正编号','转正编号','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_转正申请表',[FieldName]='转正编号',[FieldByname]='转正编号',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1049  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1049  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7607,10,4,1049,'int',1,1,1,'人事_转正申请表','WFPrcsId','WFPrcsId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_转正申请表',[FieldName]='WFPrcsId',[FieldByname]='WFPrcsId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1049  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1049  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7608,9,4,1049,'int',1,1,1,'人事_转正申请表','WFFlowId','WFFlowId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_转正申请表',[FieldName]='WFFlowId',[FieldByname]='WFFlowId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1049  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1049  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7609,8,4,1049,'int',1,1,1,'人事_转正申请表','WFRunId','WFRunId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_转正申请表',[FieldName]='WFRunId',[FieldByname]='WFRunId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1049  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1049  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7610,7,4,1049,'varchar',2,1,1,'人事_转正申请表','WFOpinion','WFOpinion','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_转正申请表',[FieldName]='WFOpinion',[FieldByname]='WFOpinion',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1049  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1049  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7611,6,4,1049,'varchar',2,1,1,'人事_转正申请表','WFAllUser','WFAllUser','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_转正申请表',[FieldName]='WFAllUser',[FieldByname]='WFAllUser',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1049  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1049  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7612,5,4,1049,'bit',4,1,1,'人事_转正申请表','WFIsStart','WFIsStart','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_转正申请表',[FieldName]='WFIsStart',[FieldByname]='WFIsStart',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1049  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1049  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7613,4,4,1049,'bit',4,1,1,'人事_转正申请表','WFIsFinish','WFIsFinish','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_转正申请表',[FieldName]='WFIsFinish',[FieldByname]='WFIsFinish',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1049  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1049  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7614,3,4,1049,'varchar',2,1,1,'人事_转正申请表','WFUserName','WFUserName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_转正申请表',[FieldName]='WFUserName',[FieldByname]='WFUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1049  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1049  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7615,2,4,1049,'varchar',2,1,1,'人事_转正申请表','WFState','WFState','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_转正申请表',[FieldName]='WFState',[FieldByname]='WFState',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1049  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1049  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7616,1,4,1049,'int',1,1,1,'人事_转正申请表','LD_Id','LD_Id','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_转正申请表',[FieldName]='LD_Id',[FieldByname]='LD_Id',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1049  and  [FieldId]=1 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--WF_FlowType

     SET IDENTITY_INSERT [WF_FlowType] ON 
      if (select count(1) from [WF_FlowType] where  [FlowId]=116  )<1 
      begin 
           Insert into [WF_FlowType] ([FlowId],[FlowName],[FlowNo],[SortId],[EntId],[EntName],[AutoName],[ManageUsers],[ManageNames],[QueryUsers],[QueryNames],[CanQueryRoles],[CanQueryRolesId],[CanManageRoles],[CanManageRolesId],[CanStartUsers],[CanStartNames],[CanStartRoles],[CanStartRolesId],[AttachMaxSize],[FlowAttach],[IsPigeonhole],[PigeonholedSQL],[IsFreeFlow],[QueryItem],[LaunchIsOpen],[FormUrl],[BrowseUrl],[ListUrl],[Detail],[CreatorId],[Creator],[CreateTime],[EditTime],[Editor],[EditorId],[AccountId])values(116,'转正申请',0,25,1774,'转正审批',null,'admin','admin','admin','admin','系统管理员','3','系统管理员','3',null,null,'Public','1',0,0,0,'',null,null,null,null,null,null,'',0,'admin','2013-11-30 1:06:40',null,null,null,1)
      end
      else 
      begin 
           update [WF_FlowType] set [FlowName]='转正申请',[FlowNo]=0,[SortId]=25,[EntId]=1774,[EntName]='转正审批',[AutoName]=null,[ManageUsers]='admin',[ManageNames]='admin',[QueryUsers]='admin',[QueryNames]='admin',[CanQueryRoles]='系统管理员',[CanQueryRolesId]='3',[CanManageRoles]='系统管理员',[CanManageRolesId]='3',[CanStartUsers]=null,[CanStartNames]=null,[CanStartRoles]='Public',[CanStartRolesId]='1',[AttachMaxSize]=0,[FlowAttach]=0,[IsPigeonhole]=0,[PigeonholedSQL]='',[IsFreeFlow]=null,[QueryItem]=null,[LaunchIsOpen]=null,[FormUrl]=null,[BrowseUrl]=null,[ListUrl]=null,[Detail]='',[CreatorId]=0,[Creator]='admin',[CreateTime]='2013-11-30 1:06:40',[EditTime]=null,[Editor]=null,[EditorId]=null,[AccountId]=1 where  [FlowId]=116 
      end

     SET IDENTITY_INSERT [WF_FlowType] OFF 



Delete from [WF_FlowNode]  where isnull([FlowId],0)=116 

--WF_FlowNode

     SET IDENTITY_INSERT [WF_FlowNode] ON 
      if (select count(1) from [WF_FlowNode] where  [NodeId]=626  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(626,116,'发起转正申请',1,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','627',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',null,null,0,0,null,null,null,null,null,null,null,null,null,null,null,null,null,'3944,3945,3946,3947,3948,3949,3950,3951,3969',null,null,null,null,null,null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=116,[NodeName]='发起转正申请',[Step]=1,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='627',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]=null,[TriggerAfter]=null,[CanReject]=0,[CanPigeonhole]=0,[PigeonholedSQL]=null,[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='3944,3945,3946,3947,3948,3949,3950,3951,3969',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]=null,[PositionDeptNames]=null,[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=626 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=627  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(627,116,'项目部审批',2,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','628',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',null,null,0,0,null,null,null,null,null,null,null,null,null,null,null,null,null,'3952,3953,3954,3955,3956,3957,3958,3959,3960,3961,3962,3963,3964,3965',null,null,null,null,null,null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=116,[NodeName]='项目部审批',[Step]=2,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='628',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]=null,[TriggerAfter]=null,[CanReject]=0,[CanPigeonhole]=0,[PigeonholedSQL]=null,[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='3952,3953,3954,3955,3956,3957,3958,3959,3960,3961,3962,3963,3964,3965',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]=null,[PositionDeptNames]=null,[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=627 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=628  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(628,116,'分公司审批',3,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','629',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',null,null,0,0,null,null,null,null,null,null,null,null,null,null,null,null,null,'3966',null,null,null,null,null,null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=116,[NodeName]='分公司审批',[Step]=3,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='629',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]=null,[TriggerAfter]=null,[CanReject]=0,[CanPigeonhole]=0,[PigeonholedSQL]=null,[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='3966',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]=null,[PositionDeptNames]=null,[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=628 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=629  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(629,116,'生产管理部审批',4,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','630,631',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',null,null,0,0,null,null,null,null,null,null,null,null,null,null,null,null,null,'3967',null,null,null,null,null,null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=116,[NodeName]='生产管理部审批',[Step]=4,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='630,631',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]=null,[TriggerAfter]=null,[CanReject]=0,[CanPigeonhole]=0,[PigeonholedSQL]=null,[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='3967',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]=null,[PositionDeptNames]=null,[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=629 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=630  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(630,116,'总经理室审批',5,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','631',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',null,null,0,0,null,null,null,null,null,null,null,null,null,null,null,null,null,'3968',null,null,null,null,null,null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=116,[NodeName]='总经理室审批',[Step]=5,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='631',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]=null,[TriggerAfter]=null,[CanReject]=0,[CanPigeonhole]=0,[PigeonholedSQL]=null,[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='3968',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]=null,[PositionDeptNames]=null,[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=630 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=631  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(631,116,'通知发起人',6,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','-1',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',null,null,0,0,null,null,null,null,null,null,null,null,null,null,null,null,null,'',null,null,null,null,null,null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=116,[NodeName]='通知发起人',[Step]=6,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='-1',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]=null,[TriggerAfter]=null,[CanReject]=0,[CanPigeonhole]=0,[PigeonholedSQL]=null,[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]=null,[PositionDeptNames]=null,[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=631 
      end

     SET IDENTITY_INSERT [WF_FlowNode] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=2863  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2863,116,626,1774,'转正审批',3944,'转正编号','转正编号','人事_转正审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=116,[NodeId]=626,[EntId]=1774,[EntName]='转正审批',[FldId]=3944,[FieldName]='转正编号',[CtrlByName]='转正编号',[FlowName]='人事_转正审批',[TypeId]=1 where  [Id]=2863 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2864  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2864,116,626,1774,'转正审批',3945,'员工编号','员工编号','人事_转正审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=116,[NodeId]=626,[EntId]=1774,[EntName]='转正审批',[FldId]=3945,[FieldName]='员工编号',[CtrlByName]='员工编号',[FlowName]='人事_转正审批',[TypeId]=1 where  [Id]=2864 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2865  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2865,116,626,1774,'转正审批',3946,'员工姓名','员工姓名','人事_转正审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=116,[NodeId]=626,[EntId]=1774,[EntName]='转正审批',[FldId]=3946,[FieldName]='员工姓名',[CtrlByName]='员工姓名',[FlowName]='人事_转正审批',[TypeId]=1 where  [Id]=2865 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2866  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2866,116,626,1774,'转正审批',3947,'部门','部门','人事_转正审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=116,[NodeId]=626,[EntId]=1774,[EntName]='转正审批',[FldId]=3947,[FieldName]='部门',[CtrlByName]='部门',[FlowName]='人事_转正审批',[TypeId]=1 where  [Id]=2866 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2867  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2867,116,626,1774,'转正审批',3948,'岗位','岗位','人事_转正审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=116,[NodeId]=626,[EntId]=1774,[EntName]='转正审批',[FldId]=3948,[FieldName]='岗位',[CtrlByName]='岗位',[FlowName]='人事_转正审批',[TypeId]=1 where  [Id]=2867 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2868  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2868,116,626,1774,'转正审批',3949,'入职日期','入职日期','人事_转正审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=116,[NodeId]=626,[EntId]=1774,[EntName]='转正审批',[FldId]=3949,[FieldName]='入职日期',[CtrlByName]='入职日期',[FlowName]='人事_转正审批',[TypeId]=1 where  [Id]=2868 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2869  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2869,116,626,1774,'转正审批',3950,'上岗证种类及有效期','上岗证种类及有效期','人事_转正审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=116,[NodeId]=626,[EntId]=1774,[EntName]='转正审批',[FldId]=3950,[FieldName]='上岗证种类及有效期',[CtrlByName]='上岗证种类及有效期',[FlowName]='人事_转正审批',[TypeId]=1 where  [Id]=2869 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2870  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2870,116,626,1774,'转正审批',3951,'员工自评','员工自评','人事_转正审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=116,[NodeId]=626,[EntId]=1774,[EntName]='转正审批',[FldId]=3951,[FieldName]='员工自评',[CtrlByName]='员工自评',[FlowName]='人事_转正审批',[TypeId]=1 where  [Id]=2870 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2871  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2871,116,626,1774,'转正审批',3969,'申请转正日期','申请转正日期','人事_转正审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=116,[NodeId]=626,[EntId]=1774,[EntName]='转正审批',[FldId]=3969,[FieldName]='申请转正日期',[CtrlByName]='申请转正日期',[FlowName]='人事_转正审批',[TypeId]=1 where  [Id]=2871 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=2853  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2853,116,627,1774,'转正审批',3959,'转正后工资等级','转正后工资等级','人事_转正审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=116,[NodeId]=627,[EntId]=1774,[EntName]='转正审批',[FldId]=3959,[FieldName]='转正后工资等级',[CtrlByName]='转正后工资等级',[FlowName]='人事_转正审批',[TypeId]=1 where  [Id]=2853 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2854  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2854,116,627,1774,'转正审批',3960,'转正后月基本工资','转正后月基本工资','人事_转正审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=116,[NodeId]=627,[EntId]=1774,[EntName]='转正审批',[FldId]=3960,[FieldName]='转正后月基本工资',[CtrlByName]='转正后月基本工资',[FlowName]='人事_转正审批',[TypeId]=1 where  [Id]=2854 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2855  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2855,116,627,1774,'转正审批',3961,'转正后月考核工资','转正后月考核工资','人事_转正审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=116,[NodeId]=627,[EntId]=1774,[EntName]='转正审批',[FldId]=3961,[FieldName]='转正后月考核工资',[CtrlByName]='转正后月考核工资',[FlowName]='人事_转正审批',[TypeId]=1 where  [Id]=2855 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2856  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2856,116,627,1774,'转正审批',3962,'转正后月工资合计','转正后月工资合计','人事_转正审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=116,[NodeId]=627,[EntId]=1774,[EntName]='转正审批',[FldId]=3962,[FieldName]='转正后月工资合计',[CtrlByName]='转正后月工资合计',[FlowName]='人事_转正审批',[TypeId]=1 where  [Id]=2856 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2857  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2857,116,627,1774,'转正审批',3963,'转正后年度考核工资','转正后年度考核工资','人事_转正审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=116,[NodeId]=627,[EntId]=1774,[EntName]='转正审批',[FldId]=3963,[FieldName]='转正后年度考核工资',[CtrlByName]='转正后年度考核工资',[FlowName]='人事_转正审批',[TypeId]=1 where  [Id]=2857 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2858  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2858,116,627,1774,'转正审批',3964,'转正后年薪合计','转正后年薪合计','人事_转正审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=116,[NodeId]=627,[EntId]=1774,[EntName]='转正审批',[FldId]=3964,[FieldName]='转正后年薪合计',[CtrlByName]='转正后年薪合计',[FlowName]='人事_转正审批',[TypeId]=1 where  [Id]=2858 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2859  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2859,116,627,1774,'转正审批',3965,'部门或项目部意见','部门或项目部意见','人事_转正审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=116,[NodeId]=627,[EntId]=1774,[EntName]='转正审批',[FldId]=3965,[FieldName]='部门或项目部意见',[CtrlByName]='部门或项目部意见',[FlowName]='人事_转正审批',[TypeId]=1 where  [Id]=2859 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2846  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2846,116,627,1774,'转正审批',3952,'直接上级主管评语','直接上级主管评语','人事_转正审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=116,[NodeId]=627,[EntId]=1774,[EntName]='转正审批',[FldId]=3952,[FieldName]='直接上级主管评语',[CtrlByName]='直接上级主管评语',[FlowName]='人事_转正审批',[TypeId]=1 where  [Id]=2846 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2847  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2847,116,627,1774,'转正审批',3953,'综合考核得分','综合考核得分','人事_转正审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=116,[NodeId]=627,[EntId]=1774,[EntName]='转正审批',[FldId]=3953,[FieldName]='综合考核得分',[CtrlByName]='综合考核得分',[FlowName]='人事_转正审批',[TypeId]=1 where  [Id]=2847 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2848  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2848,116,627,1774,'转正审批',3954,'综合考核系数','综合考核系数','人事_转正审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=116,[NodeId]=627,[EntId]=1774,[EntName]='转正审批',[FldId]=3954,[FieldName]='综合考核系数',[CtrlByName]='综合考核系数',[FlowName]='人事_转正审批',[TypeId]=1 where  [Id]=2848 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2849  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2849,116,627,1774,'转正审批',3955,'综合评定结果','综合评定结果','人事_转正审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=116,[NodeId]=627,[EntId]=1774,[EntName]='转正审批',[FldId]=3955,[FieldName]='综合评定结果',[CtrlByName]='综合评定结果',[FlowName]='人事_转正审批',[TypeId]=1 where  [Id]=2849 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2850  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2850,116,627,1774,'转正审批',3956,'试用期月基本工资','试用期月基本工资','人事_转正审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=116,[NodeId]=627,[EntId]=1774,[EntName]='转正审批',[FldId]=3956,[FieldName]='试用期月基本工资',[CtrlByName]='试用期月基本工资',[FlowName]='人事_转正审批',[TypeId]=1 where  [Id]=2850 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2851  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2851,116,627,1774,'转正审批',3957,'试用期月考核工资','试用期月考核工资','人事_转正审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=116,[NodeId]=627,[EntId]=1774,[EntName]='转正审批',[FldId]=3957,[FieldName]='试用期月考核工资',[CtrlByName]='试用期月考核工资',[FlowName]='人事_转正审批',[TypeId]=1 where  [Id]=2851 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2852  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2852,116,627,1774,'转正审批',3958,'试用期月工资合计','试用期月工资合计','人事_转正审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=116,[NodeId]=627,[EntId]=1774,[EntName]='转正审批',[FldId]=3958,[FieldName]='试用期月工资合计',[CtrlByName]='试用期月工资合计',[FlowName]='人事_转正审批',[TypeId]=1 where  [Id]=2852 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=2860  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2860,116,628,1774,'转正审批',3966,'分公司意见','分公司意见','人事_转正审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=116,[NodeId]=628,[EntId]=1774,[EntName]='转正审批',[FldId]=3966,[FieldName]='分公司意见',[CtrlByName]='分公司意见',[FlowName]='人事_转正审批',[TypeId]=1 where  [Id]=2860 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=2861  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2861,116,629,1774,'转正审批',3967,'生产管理部意见','生产管理部意见','人事_转正审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=116,[NodeId]=629,[EntId]=1774,[EntName]='转正审批',[FldId]=3967,[FieldName]='生产管理部意见',[CtrlByName]='生产管理部意见',[FlowName]='人事_转正审批',[TypeId]=1 where  [Id]=2861 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=2862  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2862,116,630,1774,'转正审批',3968,'董事长或总经理意见','董事长或总经理意见','人事_转正审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=116,[NodeId]=630,[EntId]=1774,[EntName]='转正审批',[FldId]=3968,[FieldName]='董事长或总经理意见',[CtrlByName]='董事长或总经理意见',[FlowName]='人事_转正审批',[TypeId]=1 where  [Id]=2862 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 



Delete from [Dcx_EntityPrivilege]  where [EntId]=1777

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=1777  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(10903,3059,1777,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=3059,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=1777  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=1777

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1777  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(19068,4,3059,1777,13,1,1,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=4,[MenuId]=3059,[TemplateId]=13,[ModuleId]=1,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1777  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1777  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(19069,4,3059,1777,13,2,9,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=4,[MenuId]=3059,[TemplateId]=13,[ModuleId]=9,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1777  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1777  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(19070,4,3059,1777,13,3,14,1,4,2,'/Template/Default/Form/AjaxForm/AjaxForm008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=4,[MenuId]=3059,[TemplateId]=13,[ModuleId]=14,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='/Template/Default/Form/AjaxForm/AjaxForm008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1777  and  [ModuleTypeId]=3 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1777  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(19071,4,3059,1777,13,16,31,1,5,2,'/Template/Default/Browse/Browse008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=4,[MenuId]=3059,[TemplateId]=13,[ModuleId]=31,[GroupId]=1,[AreaId]=5,[ShowMode]=2,[AreaUrl]='/Template/Default/Browse/Browse008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1777  and  [ModuleTypeId]=16 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=3065  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(3065,'c697fad0-49b6-4433-922f-4ac80d7282a1','员工调动',2905,'/Template/default/ListReport/ListReport_Tree001.aspx',1,'/images/default.gif','/images/default.gif',5,'right_fram',null,0,null,4,0,4,1,1,1,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='c697fad0-49b6-4433-922f-4ac80d7282a1',[MenuName]='员工调动',[ParentId]=2905,[ProPath]='/Template/default/ListReport/ListReport_Tree001.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=5,[Target]='right_fram',[IsOpen]=null,[IsHidden]=0,[Remark]=null,[SSystemId]=4,[SMenuId]=0,[SystemId]=4,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=3065 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3065  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(840,3065,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3065  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=1786  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(1786,3065,'员工调动',1,1026,0,'人事_人员调动表',0,0,1,4,1786,null,null,4,null,1,null,119,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3065,[EntName]='员工调动',[MEnt]=1,[DBTableId]=1026,[DBConnectId]=0,[DBTableName]='人事_人员调动表',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=4,[SEntId]=1786,[FSystemId]=null,[FEntId]=null,[SystemId]=4,[Remark]=null,[IsFlow]=1,[IsChecked]=null,[FlowId]=119,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=1786 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=1786

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=1786  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11444,-1,1786,1,1,1,1,0,1,0,0,0,1,0,0,0,0,0,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=0,[CanUpdate]=1,[CanOutPut]=0,[CanInput]=0,[CanCopy]=0,[CanPrint]=1,[CanCheck]=0,[CanClean]=0,[CanRecycle]=0,[CanExecute]=0,[CanDesign]=0,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=1786  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=1786  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(10911,3065,1786,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=3065,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=1786  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=1786

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1786  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(19100,4,3065,1786,13,1,1,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=4,[MenuId]=3065,[TemplateId]=13,[ModuleId]=1,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1786  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1786  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(19101,4,3065,1786,13,2,9,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=4,[MenuId]=3065,[TemplateId]=13,[ModuleId]=9,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1786  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1786  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(19102,4,3065,1786,13,3,14,1,4,2,'/Template/Default/Form/AjaxForm/AjaxForm008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=4,[MenuId]=3065,[TemplateId]=13,[ModuleId]=14,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='/Template/Default/Form/AjaxForm/AjaxForm008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1786  and  [ModuleTypeId]=3 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1786  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(19103,4,3065,1786,13,16,31,1,5,2,'/Template/Default/Browse/Browse008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=4,[MenuId]=3065,[TemplateId]=13,[ModuleId]=31,[GroupId]=1,[AreaId]=5,[ShowMode]=2,[AreaUrl]='/Template/Default/Browse/Browse008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1786  and  [ModuleTypeId]=16 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_AjaxForm_Run]  where [EntId]=1786

--Dcx_AjaxForm_Run
      if (select count(1) from [Dcx_AjaxForm_Run] where  [EntId]=1786  )<1 
      begin 
           Insert into [Dcx_AjaxForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('4eefd3c7-42ee-45f3-b836-b1f3ee75bb93','员工调动',1786,14,'','',0,'<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>','','DcxRun.AjaxF_1786= {"MenuId":3065,"MEntId":1786,"EntName":"员工调动","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":true,"EntMsg":{"E1786":{"EntId":1786,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_1786.EntMsg.E1786.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"人事_人员调动表","EntId":1786,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"调动编号":{"DtId":2,"DB":1,"CId":1,"FL":-1},"员工编号":{"DtId":2,"DB":1,"CId":3,"FL":0},"员工姓名":{"DtId":2,"DB":1,"CId":1,"FL":0},"调入部门":{"DtId":2,"DB":1,"CId":3,"FL":-1},"调出部门":{"DtId":2,"DB":1,"CId":1,"FL":0},"原岗位":{"DtId":2,"DB":1,"CId":1,"FL":0},"新岗位":{"DtId":2,"DB":1,"CId":3,"FL":-1},"调动性质":{"DtId":2,"DB":1,"CId":7,"FL":-1},"计划调动时间":{"DtId":2,"DB":1,"CId":5,"FL":-1},"借调开始时间":{"DtId":2,"DB":1,"CId":5,"FL":-1},"借调结束时间":{"DtId":2,"DB":1,"CId":5,"FL":-1},"原工资级别":{"DtId":2,"DB":1,"CId":1,"FL":0},"原基本工资":{"DtId":2,"DB":1,"CId":1,"FL":0},"原月考核工资":{"DtId":2,"DB":1,"CId":1,"FL":0},"原月工资合计":{"DtId":2,"DB":1,"CId":1,"FL":-1},"原年度考核工资":{"DtId":2,"DB":1,"CId":1,"FL":-1},"原年薪合计":{"DtId":2,"DB":1,"CId":1,"FL":-1},"原工龄工资":{"DtId":2,"DB":1,"CId":1,"FL":-1},"原电脑补贴":{"DtId":2,"DB":1,"CId":1,"FL":-1},"原地区差补贴":{"DtId":2,"DB":1,"CId":1,"FL":-1},"原电话费":{"DtId":2,"DB":1,"CId":1,"FL":-1},"原交通费":{"DtId":2,"DB":1,"CId":1,"FL":-1},"原社保":{"DtId":2,"DB":1,"CId":7,"FL":-1},"原意外保险":{"DtId":2,"DB":1,"CId":7,"FL":-1},"调后工资级别":{"DtId":2,"DB":1,"CId":3,"FL":-1},"调后基本工资":{"DtId":2,"DB":1,"CId":1,"FL":-1},"调后月考核工资":{"DtId":2,"DB":1,"CId":1,"FL":-1},"调后月工资合计":{"DtId":2,"DB":1,"CId":1,"FL":-1},"调后年度考核工资":{"DtId":2,"DB":1,"CId":1,"FL":-1},"调后年薪合计":{"DtId":2,"DB":1,"CId":1,"FL":-1},"调后工龄工资":{"DtId":2,"DB":1,"CId":1,"FL":-1},"调后电脑补贴":{"DtId":2,"DB":1,"CId":1,"FL":-1},"调后地区差补贴":{"DtId":2,"DB":1,"CId":1,"FL":-1},"调后电话费":{"DtId":2,"DB":1,"CId":1,"FL":-1},"调后交通费":{"DtId":2,"DB":1,"CId":1,"FL":-1},"调后社保":{"DtId":2,"DB":1,"CId":7,"FL":-1},"调后意外保险":{"DtId":2,"DB":1,"CId":7,"FL":-1},"调入部门意见":{"DtId":2,"DB":1,"CId":2,"FL":0},"调出部门意见":{"DtId":2,"DB":1,"CId":2,"FL":0},"调入分公司意见":{"DtId":2,"DB":1,"CId":2,"FL":0},"调出分公司意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"生产管理部意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"董事长或总经理意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"登记时间":{"DtId":2,"DB":1,"CId":4,"FL":-1}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_1786.EntMsg.E1786.GetDataRowModel=function()
{
    return {"调动编号":"","员工编号":"","员工姓名":"","调入部门":"","调出部门":"","原岗位":"","新岗位":"","调动性质":"","计划调动时间":"","借调开始时间":"","借调结束时间":"","原工资级别":"","原基本工资":"","原月考核工资":"","原月工资合计":"","原年度考核工资":"","原年薪合计":"","原工龄工资":"","原电脑补贴":"","原地区差补贴":"","原电话费":"","原交通费":"","原社保":"","原意外保险":"","调后工资级别":"","调后基本工资":"","调后月考核工资":"","调后月工资合计":"","调后年度考核工资":"","调后年薪合计":"","调后工龄工资":"","调后电脑补贴":"","调后地区差补贴":"","调后电话费":"","调后交通费":"","调后社保":"","调后意外保险":"","调入部门意见":"","调出部门意见":"","调入分公司意见":"","调出分公司意见":"","生产管理部意见":"","董事长或总经理意见":"","登记时间":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_AjaxF_1786_738(obj,curFieldName){
 var EntId=1786;
 var FldId=4125;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''员工姓名'';
 var $formContainer=DcxForm.GetHtmlContainer(1786,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1786,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"员工姓名\",FldId:"+FldId+",EntId:1786,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"{$AccountId},\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:1,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,1786,''AjaxF_'',''员工编号'',$formContainer,false,false);
if(Dcx.IsNull(v_f1))
   v_f1='''';
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1786_员工姓名");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1786_739(obj,curFieldName){
 var EntId=1786;
 var FldId=4128;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''调出部门'';
 var $formContainer=DcxForm.GetHtmlContainer(1786,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1786,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"调出部门\",FldId:"+FldId+",EntId:1786,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"{$AccountId},\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:1,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,1786,''AjaxF_'',''员工编号'',$formContainer,false,false);
if(Dcx.IsNull(v_f1))
   v_f1='''';
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1786_调出部门");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1786_740(obj,curFieldName){
 var EntId=1786;
 var FldId=4130;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''原岗位'';
 var $formContainer=DcxForm.GetHtmlContainer(1786,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1786,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"原岗位\",FldId:"+FldId+",EntId:1786,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"{$AccountId},\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:1,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,1786,''AjaxF_'',''员工编号'',$formContainer,false,false);
if(Dcx.IsNull(v_f1))
   v_f1='''';
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1786_原岗位");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1786_741(obj,curFieldName){
 var EntId=1786;
 var FldId=4136;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''原工资级别'';
 var $formContainer=DcxForm.GetHtmlContainer(1786,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1786,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"原工资级别\",FldId:"+FldId+",EntId:1786,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"{$AccountId},\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:1,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,1786,''AjaxF_'',''员工编号'',$formContainer,false,false);
if(Dcx.IsNull(v_f1))
   v_f1='''';
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1786_原工资级别");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1786_742(obj,curFieldName){
 var EntId=1786;
 var FldId=4137;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''原基本工资'';
 var $formContainer=DcxForm.GetHtmlContainer(1786,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1786,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"原基本工资\",FldId:"+FldId+",EntId:1786,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"{$AccountId},\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:1,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,1786,''AjaxF_'',''员工编号'',$formContainer,false,false);
if(Dcx.IsNull(v_f1))
   v_f1='''';
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1786_原基本工资");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1786_743(obj,curFieldName){
 var EntId=1786;
 var FldId=4138;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''原月考核工资'';
 var $formContainer=DcxForm.GetHtmlContainer(1786,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1786,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"原月考核工资\",FldId:"+FldId+",EntId:1786,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"{$AccountId},\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:1,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,1786,''AjaxF_'',''员工编号'',$formContainer,false,false);
if(Dcx.IsNull(v_f1))
   v_f1='''';
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1786_原月考核工资");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1786_744(obj,curFieldName){
 var EntId=1786;
 var FldId=4150;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''调后基本工资'';
 var $formContainer=DcxForm.GetHtmlContainer(1786,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1786,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"调后基本工资\",FldId:"+FldId+",EntId:1786,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:1,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''调后工资级别''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,1786,''AjaxF_'',''调后工资级别'',$formContainer,false,false);
if(Dcx.IsNull(v_f1))
   v_f1='''';
 strData.data = strData.data + "{@调后工资级别}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1786_调后基本工资");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1786_745(obj,curFieldName){
 var EntId=1786;
 var FldId=4151;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''调后月考核工资'';
 var $formContainer=DcxForm.GetHtmlContainer(1786,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1786,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"调后月考核工资\",FldId:"+FldId+",EntId:1786,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:1,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''调后工资级别''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,1786,''AjaxF_'',''调后工资级别'',$formContainer,false,false);
if(Dcx.IsNull(v_f1))
   v_f1='''';
 strData.data = strData.data + "{@调后工资级别}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1786_调后月考核工资");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_1786.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1786,''AjaxF_'',buildNew,closeDlg);

}','<$1786$>select [调动编号],[员工编号],[员工姓名],[调出部门],[调入部门],[原岗位],[新岗位],[调动性质],[计划调动时间],[借调开始时间],[借调结束时间],[原工资级别],[原基本工资],[原月考核工资],[原月工资合计],[原年度考核工资],[原年薪合计],[原工龄工资],[原电脑补贴],[原地区差补贴],[原电话费],[原交通费],[原社保],[原意外保险],[调后工资级别],[调后基本工资],[调后月考核工资],[调后月工资合计],[调后年度考核工资],[调后年薪合计],[调后工龄工资],[调后电脑补贴],[调后地区差补贴],[调后电话费],[调后交通费],[调后社保],[调后意外保险],[调入部门意见],[调出部门意见],[调入分公司意见],[调出分公司意见],[生产管理部意见],[董事长或总经理意见],[登记时间],[LD_Id] from 人事_人员调动表 where [LD_Id]=''{$keyfieldvalue}''</$1786$>',20,'','','','1786*LD_Id*2**2*人事_人员调动表*员工调动',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 7:02:48',3,'admin','2013-11-30 7:25:39',1)
      end
      else 
      begin 
           update [Dcx_AjaxForm_Run] set [FormId]='4eefd3c7-42ee-45f3-b836-b1f3ee75bb93',[FormName]='员工调动',[ModuleId]=14,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.AjaxF_1786= {"MenuId":3065,"MEntId":1786,"EntName":"员工调动","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":true,"EntMsg":{"E1786":{"EntId":1786,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_1786.EntMsg.E1786.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"人事_人员调动表","EntId":1786,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"调动编号":{"DtId":2,"DB":1,"CId":1,"FL":-1},"员工编号":{"DtId":2,"DB":1,"CId":3,"FL":0},"员工姓名":{"DtId":2,"DB":1,"CId":1,"FL":0},"调入部门":{"DtId":2,"DB":1,"CId":3,"FL":-1},"调出部门":{"DtId":2,"DB":1,"CId":1,"FL":0},"原岗位":{"DtId":2,"DB":1,"CId":1,"FL":0},"新岗位":{"DtId":2,"DB":1,"CId":3,"FL":-1},"调动性质":{"DtId":2,"DB":1,"CId":7,"FL":-1},"计划调动时间":{"DtId":2,"DB":1,"CId":5,"FL":-1},"借调开始时间":{"DtId":2,"DB":1,"CId":5,"FL":-1},"借调结束时间":{"DtId":2,"DB":1,"CId":5,"FL":-1},"原工资级别":{"DtId":2,"DB":1,"CId":1,"FL":0},"原基本工资":{"DtId":2,"DB":1,"CId":1,"FL":0},"原月考核工资":{"DtId":2,"DB":1,"CId":1,"FL":0},"原月工资合计":{"DtId":2,"DB":1,"CId":1,"FL":-1},"原年度考核工资":{"DtId":2,"DB":1,"CId":1,"FL":-1},"原年薪合计":{"DtId":2,"DB":1,"CId":1,"FL":-1},"原工龄工资":{"DtId":2,"DB":1,"CId":1,"FL":-1},"原电脑补贴":{"DtId":2,"DB":1,"CId":1,"FL":-1},"原地区差补贴":{"DtId":2,"DB":1,"CId":1,"FL":-1},"原电话费":{"DtId":2,"DB":1,"CId":1,"FL":-1},"原交通费":{"DtId":2,"DB":1,"CId":1,"FL":-1},"原社保":{"DtId":2,"DB":1,"CId":7,"FL":-1},"原意外保险":{"DtId":2,"DB":1,"CId":7,"FL":-1},"调后工资级别":{"DtId":2,"DB":1,"CId":3,"FL":-1},"调后基本工资":{"DtId":2,"DB":1,"CId":1,"FL":-1},"调后月考核工资":{"DtId":2,"DB":1,"CId":1,"FL":-1},"调后月工资合计":{"DtId":2,"DB":1,"CId":1,"FL":-1},"调后年度考核工资":{"DtId":2,"DB":1,"CId":1,"FL":-1},"调后年薪合计":{"DtId":2,"DB":1,"CId":1,"FL":-1},"调后工龄工资":{"DtId":2,"DB":1,"CId":1,"FL":-1},"调后电脑补贴":{"DtId":2,"DB":1,"CId":1,"FL":-1},"调后地区差补贴":{"DtId":2,"DB":1,"CId":1,"FL":-1},"调后电话费":{"DtId":2,"DB":1,"CId":1,"FL":-1},"调后交通费":{"DtId":2,"DB":1,"CId":1,"FL":-1},"调后社保":{"DtId":2,"DB":1,"CId":7,"FL":-1},"调后意外保险":{"DtId":2,"DB":1,"CId":7,"FL":-1},"调入部门意见":{"DtId":2,"DB":1,"CId":2,"FL":0},"调出部门意见":{"DtId":2,"DB":1,"CId":2,"FL":0},"调入分公司意见":{"DtId":2,"DB":1,"CId":2,"FL":0},"调出分公司意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"生产管理部意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"董事长或总经理意见":{"DtId":2,"DB":1,"CId":2,"FL":-1},"登记时间":{"DtId":2,"DB":1,"CId":4,"FL":-1}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_1786.EntMsg.E1786.GetDataRowModel=function()
{
    return {"调动编号":"","员工编号":"","员工姓名":"","调入部门":"","调出部门":"","原岗位":"","新岗位":"","调动性质":"","计划调动时间":"","借调开始时间":"","借调结束时间":"","原工资级别":"","原基本工资":"","原月考核工资":"","原月工资合计":"","原年度考核工资":"","原年薪合计":"","原工龄工资":"","原电脑补贴":"","原地区差补贴":"","原电话费":"","原交通费":"","原社保":"","原意外保险":"","调后工资级别":"","调后基本工资":"","调后月考核工资":"","调后月工资合计":"","调后年度考核工资":"","调后年薪合计":"","调后工龄工资":"","调后电脑补贴":"","调后地区差补贴":"","调后电话费":"","调后交通费":"","调后社保":"","调后意外保险":"","调入部门意见":"","调出部门意见":"","调入分公司意见":"","调出分公司意见":"","生产管理部意见":"","董事长或总经理意见":"","登记时间":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_AjaxF_1786_738(obj,curFieldName){
 var EntId=1786;
 var FldId=4125;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''员工姓名'';
 var $formContainer=DcxForm.GetHtmlContainer(1786,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1786,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"员工姓名\",FldId:"+FldId+",EntId:1786,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"{$AccountId},\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:1,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,1786,''AjaxF_'',''员工编号'',$formContainer,false,false);
if(Dcx.IsNull(v_f1))
   v_f1='''';
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1786_员工姓名");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1786_739(obj,curFieldName){
 var EntId=1786;
 var FldId=4128;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''调出部门'';
 var $formContainer=DcxForm.GetHtmlContainer(1786,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1786,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"调出部门\",FldId:"+FldId+",EntId:1786,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"{$AccountId},\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:1,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,1786,''AjaxF_'',''员工编号'',$formContainer,false,false);
if(Dcx.IsNull(v_f1))
   v_f1='''';
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1786_调出部门");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1786_740(obj,curFieldName){
 var EntId=1786;
 var FldId=4130;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''原岗位'';
 var $formContainer=DcxForm.GetHtmlContainer(1786,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1786,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"原岗位\",FldId:"+FldId+",EntId:1786,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"{$AccountId},\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:1,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,1786,''AjaxF_'',''员工编号'',$formContainer,false,false);
if(Dcx.IsNull(v_f1))
   v_f1='''';
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1786_原岗位");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1786_741(obj,curFieldName){
 var EntId=1786;
 var FldId=4136;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''原工资级别'';
 var $formContainer=DcxForm.GetHtmlContainer(1786,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1786,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"原工资级别\",FldId:"+FldId+",EntId:1786,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"{$AccountId},\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:1,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,1786,''AjaxF_'',''员工编号'',$formContainer,false,false);
if(Dcx.IsNull(v_f1))
   v_f1='''';
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1786_原工资级别");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1786_742(obj,curFieldName){
 var EntId=1786;
 var FldId=4137;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''原基本工资'';
 var $formContainer=DcxForm.GetHtmlContainer(1786,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1786,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"原基本工资\",FldId:"+FldId+",EntId:1786,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"{$AccountId},\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:1,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,1786,''AjaxF_'',''员工编号'',$formContainer,false,false);
if(Dcx.IsNull(v_f1))
   v_f1='''';
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1786_原基本工资");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1786_743(obj,curFieldName){
 var EntId=1786;
 var FldId=4138;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''原月考核工资'';
 var $formContainer=DcxForm.GetHtmlContainer(1786,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1786,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"原月考核工资\",FldId:"+FldId+",EntId:1786,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"{$AccountId},\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:1,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''员工编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,1786,''AjaxF_'',''员工编号'',$formContainer,false,false);
if(Dcx.IsNull(v_f1))
   v_f1='''';
 strData.data = strData.data + "{@员工编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1786_原月考核工资");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1786_744(obj,curFieldName){
 var EntId=1786;
 var FldId=4150;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''调后基本工资'';
 var $formContainer=DcxForm.GetHtmlContainer(1786,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1786,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"调后基本工资\",FldId:"+FldId+",EntId:1786,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:1,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''调后工资级别''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,1786,''AjaxF_'',''调后工资级别'',$formContainer,false,false);
if(Dcx.IsNull(v_f1))
   v_f1='''';
 strData.data = strData.data + "{@调后工资级别}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1786_调后基本工资");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1786_745(obj,curFieldName){
 var EntId=1786;
 var FldId=4151;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''调后月考核工资'';
 var $formContainer=DcxForm.GetHtmlContainer(1786,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1786,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"调后月考核工资\",FldId:"+FldId+",EntId:1786,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:1,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''调后工资级别''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,1786,''AjaxF_'',''调后工资级别'',$formContainer,false,false);
if(Dcx.IsNull(v_f1))
   v_f1='''';
 strData.data = strData.data + "{@调后工资级别}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1786_调后月考核工资");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_1786.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1786,''AjaxF_'',buildNew,closeDlg);

}',[LoadingSql]='<$1786$>select [调动编号],[员工编号],[员工姓名],[调出部门],[调入部门],[原岗位],[新岗位],[调动性质],[计划调动时间],[借调开始时间],[借调结束时间],[原工资级别],[原基本工资],[原月考核工资],[原月工资合计],[原年度考核工资],[原年薪合计],[原工龄工资],[原电脑补贴],[原地区差补贴],[原电话费],[原交通费],[原社保],[原意外保险],[调后工资级别],[调后基本工资],[调后月考核工资],[调后月工资合计],[调后年度考核工资],[调后年薪合计],[调后工龄工资],[调后电脑补贴],[调后地区差补贴],[调后电话费],[调后交通费],[调后社保],[调后意外保险],[调入部门意见],[调出部门意见],[调入分公司意见],[调出分公司意见],[生产管理部意见],[董事长或总经理意见],[登记时间],[LD_Id] from 人事_人员调动表 where [LD_Id]=''{$keyfieldvalue}''</$1786$>',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='1786*LD_Id*2**2*人事_人员调动表*员工调动',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 7:02:48',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-30 7:25:39',[AccountId]=1 where  [EntId]=1786 
      end




--Dcx_AjaxFormField_Run
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='3bf83c74-dd4d-f747-51d9-ddf269d789ff'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4123,'3bf83c74-dd4d-f747-51d9-ddf269d789ff',1786,1786,'00000000-0000-0000-0000-000000000000','调动编号',2,2,11,'select convert(char(6),getdate(),112)+Substring( cast((case when count(调动编号)=0 then 0 when count(调动编号)>0 then max(cast(Substring(调动编号,7,3) as int)) end )+1001 as varchar),2,3)  from   人事_人员调动表  where 调动编号 like  convert(char(6),getdate(),112)+''%''',2,1,null,0,1,1,0,1,-1,0,0,'','','','','<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="1786" groupid="176" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="1837" class="li-area-title" scroll="no" style="width: 77px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">员工调动</span></div>
</li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="177" entid="1786" class="ul-mform" ctrlprex="AjaxF_" isrple="1">
<li areaid="1838" style="height: 38px; width: 792px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="4123" istitle="1">调动编号 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d1786_调动编号"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调动编号" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="1" FId="4123" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4123,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='调动编号',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=11,[DefaultValue]='select convert(char(6),getdate(),112)+Substring( cast((case when count(调动编号)=0 then 0 when count(调动编号)>0 then max(cast(Substring(调动编号,7,3) as int)) end )+1001 as varchar),2,3)  from   人事_人员调动表  where 调动编号 like  convert(char(6),getdate(),112)+''%''',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="1786" groupid="176" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="1837" class="li-area-title" scroll="no" style="width: 77px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">员工调动</span></div>
</li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="177" entid="1786" class="ul-mform" ctrlprex="AjaxF_" isrple="1">
<li areaid="1838" style="height: 38px; width: 792px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="4123" istitle="1">调动编号 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1786_调动编号"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调动编号" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="1" FId="4123" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='3bf83c74-dd4d-f747-51d9-ddf269d789ff' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='f070a970-facf-51ec-d1eb-0237e7500a43'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4124,'f070a970-facf-51ec-d1eb-0237e7500a43',1786,1786,'00000000-0000-0000-0000-000000000000','员工编号',2,2,12,'SELECT [Name],[EmployeeCode] FROM [Dcx_Employee] where AccountId={$AccountId} order by DeptId',2,1,1,0,3,1,1,2,-1,0,0,'','','','{$AccountId},','</span>
</div>
</li><li areaid="1839" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="4124" istitle="1">请选择员工</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<select id="d1786_员工编号" name="d1786_员工编号" class="form-select"  onchange ="javascript:GetLinkCtrlData_AjaxF_1786_738(this,''员工编号'');GetLinkCtrlData_AjaxF_1786_739(this,''员工编号'');GetLinkCtrlData_AjaxF_1786_740(this,''员工编号'');GetLinkCtrlData_AjaxF_1786_741(this,''员工编号'');GetLinkCtrlData_AjaxF_1786_742(this,''员工编号'');GetLinkCtrlData_AjaxF_1786_743(this,''员工编号'');DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="员工编号" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="3" FId="4124" vlk=0    CBack=1  style="width:201px;">','</select>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4124,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='员工编号',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=12,[DefaultValue]='SELECT [Name],[EmployeeCode] FROM [Dcx_Employee] where AccountId={$AccountId} order by DeptId',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=2,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$AccountId},',[BeforeHtml]='</span>
</div>
</li><li areaid="1839" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="4124" istitle="1">请选择员工</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1786_员工编号" name="d1786_员工编号" class="form-select"  onchange ="javascript:GetLinkCtrlData_AjaxF_1786_738(this,''员工编号'');GetLinkCtrlData_AjaxF_1786_739(this,''员工编号'');GetLinkCtrlData_AjaxF_1786_740(this,''员工编号'');GetLinkCtrlData_AjaxF_1786_741(this,''员工编号'');GetLinkCtrlData_AjaxF_1786_742(this,''员工编号'');GetLinkCtrlData_AjaxF_1786_743(this,''员工编号'');DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="员工编号" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="3" FId="4124" vlk=0    CBack=1  style="width:201px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='f070a970-facf-51ec-d1eb-0237e7500a43' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='13bcffef-763a-b9fd-4b00-05a2efc40bc4'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4125,'13bcffef-763a-b9fd-4b00-05a2efc40bc4',1786,1786,'00000000-0000-0000-0000-000000000000','员工姓名',2,2,13,'SELECT top 1 [Name] FROM [Dcx_Employee] where [EmployeeCode]=''{@员工编号}'' and AccountId={$AccountId}',2,1,1,0,1,1,1,3,-1,0,0,'','','员工编号,','{$AccountId},','</span>
</div>
</li><li areaid="1840" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="4125" istitle="1">员工姓名</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d1786_员工姓名"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="员工姓名" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="1" FId="4125" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4125,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='员工姓名',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=13,[DefaultValue]='SELECT top 1 [Name] FROM [Dcx_Employee] where [EmployeeCode]=''{@员工编号}'' and AccountId={$AccountId}',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=3,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='员工编号,',[SystemVariables]='{$AccountId},',[BeforeHtml]='</span>
</div>
</li><li areaid="1840" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="4125" istitle="1">员工姓名</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1786_员工姓名"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="员工姓名" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="1" FId="4125" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='13bcffef-763a-b9fd-4b00-05a2efc40bc4' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='1c8525d2-5327-4731-d8ff-c890b89e4843'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4128,'1c8525d2-5327-4731-d8ff-c890b89e4843',1786,1786,'00000000-0000-0000-0000-000000000000','调出部门',2,2,16,'SELECT [DeptName] FROM [Dcx_Dept] where [DeptId] in (select top 1 A.DeptId from  [Dcx_Employee] as A where A.[EmployeeCode]=''{@员工编号}''  and A.AccountId={$AccountId})',2,1,1,0,1,1,1,4,-1,0,0,'','','员工编号,','{$AccountId},','</span>
</div>
</li>


<li areaid="1843" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="4128" istitle="1">调出部门</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d1786_调出部门"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调出部门" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="1" FId="4128" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4128,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='调出部门',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=16,[DefaultValue]='SELECT [DeptName] FROM [Dcx_Dept] where [DeptId] in (select top 1 A.DeptId from  [Dcx_Employee] as A where A.[EmployeeCode]=''{@员工编号}''  and A.AccountId={$AccountId})',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=4,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='员工编号,',[SystemVariables]='{$AccountId},',[BeforeHtml]='</span>
</div>
</li>


<li areaid="1843" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="4128" istitle="1">调出部门</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1786_调出部门"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调出部门" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="1" FId="4128" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='1c8525d2-5327-4731-d8ff-c890b89e4843' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='97113753-96d0-408d-0f69-c068ce2d4b6b'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4126,'97113753-96d0-408d-0f69-c068ce2d4b6b',1786,1786,'00000000-0000-0000-0000-000000000000','调入部门',2,2,14,'select '''' union SELECT [DeptName] FROM [Dcx_Dept]',2,1,null,0,3,1,0,5,-1,0,0,'','','','','</span>
</div>
</li><li areaid="1841" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="4126" istitle="1">调入部门 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<select id="d1786_调入部门" name="d1786_调入部门" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调入部门" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="3" FId="4126" vlk=0    style="width:201px;">','</select>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4126,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='调入部门',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=14,[DefaultValue]='select '''' union SELECT [DeptName] FROM [Dcx_Dept]',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=5,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li areaid="1841" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="4126" istitle="1">调入部门 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1786_调入部门" name="d1786_调入部门" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调入部门" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="3" FId="4126" vlk=0    style="width:201px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='97113753-96d0-408d-0f69-c068ce2d4b6b' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='dcc46d6d-43cb-5e86-1b3d-6f7e6993a4ca'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4130,'dcc46d6d-43cb-5e86-1b3d-6f7e6993a4ca',1786,1786,'00000000-0000-0000-0000-000000000000','原岗位',2,2,18,'Select  [Dcx_Employee].[PositionName]  from  [Dcx_Employee] where [EmployeeCode] =''{@员工编号}''  and AccountId={$AccountId}',2,1,1,0,1,1,1,6,-1,0,0,'','','员工编号,','{$AccountId},','</span>
</div>
</li>



<li areaid="1845" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4130">原岗位</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1786_原岗位"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="原岗位" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="1" FId="4130" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4130,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='原岗位',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=18,[DefaultValue]='Select  [Dcx_Employee].[PositionName]  from  [Dcx_Employee] where [EmployeeCode] =''{@员工编号}''  and AccountId={$AccountId}',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=6,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='员工编号,',[SystemVariables]='{$AccountId},',[BeforeHtml]='</span>
</div>
</li>



<li areaid="1845" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4130">原岗位</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1786_原岗位"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="原岗位" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="1" FId="4130" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='dcc46d6d-43cb-5e86-1b3d-6f7e6993a4ca' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='03b651a4-8b92-e53f-e6a6-cb2321eadaca'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4131,'03b651a4-8b92-e53f-e6a6-cb2321eadaca',1786,1786,'00000000-0000-0000-0000-000000000000','新岗位',2,2,19,'select '''' union SELECT [PositionName] FROM [Dcx_Position]',2,1,null,0,3,1,0,7,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1846" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4131">新岗位  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<select id="d1786_新岗位" name="d1786_新岗位" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="新岗位" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="3" FId="4131" vlk=0    style="width:201px;">','</select>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4131,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='新岗位',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=19,[DefaultValue]='select '''' union SELECT [PositionName] FROM [Dcx_Position]',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=7,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1846" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4131">新岗位  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1786_新岗位" name="d1786_新岗位" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="新岗位" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="3" FId="4131" vlk=0    style="width:201px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='03b651a4-8b92-e53f-e6a6-cb2321eadaca' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='d74154bc-1dbd-6e06-4c70-0ef9e280ba5f'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4132,'d74154bc-1dbd-6e06-4c70-0ef9e280ba5f',1786,1786,'00000000-0000-0000-0000-000000000000','调动性质',2,2,20,'调动|',1,7,1,0,7,1,0,8,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1847" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4132">调动性质  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<div id="d1786_调动性质" class="form-radio" style="" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调动性质" dType="2" Vtp="1" RDT="2" Isc="1" RId="7" CId="7" FId="4132" vlk=0    Type="1"  onclick ="javascript:DcxVld.Validate(this,1786,''AjaxF_'',1786);" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);"><span class="form-radio-item"  >
<input id="ddcx_1786_调动性质_0"  name="ddcx_1786_调动性质" checked ="checked" type="radio"  text="调动"  value=""  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1786_调动性质_0">调动</label></span>
<span class="form-radio-item"  >
<input id="ddcx_1786_调动性质_1"  name="ddcx_1786_调动性质"  type="radio"  text="借调"  value="借调"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1786_调动性质_1">借调</label></span>
<span class="clearfix"></span>','</div>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4132,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='调动性质',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=20,[DefaultValue]='调动|',[ValueType]=1,[RunValueType]=7,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=7,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=8,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1847" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4132">调动性质  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d1786_调动性质" class="form-radio" style="" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调动性质" dType="2" Vtp="1" RDT="2" Isc="1" RId="7" CId="7" FId="4132" vlk=0    Type="1"  onclick ="javascript:DcxVld.Validate(this,1786,''AjaxF_'',1786);" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);"><span class="form-radio-item"  >
<input id="ddcx_1786_调动性质_0"  name="ddcx_1786_调动性质" checked ="checked" type="radio"  text="调动"  value=""  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1786_调动性质_0">调动</label></span>
<span class="form-radio-item"  >
<input id="ddcx_1786_调动性质_1"  name="ddcx_1786_调动性质"  type="radio"  text="借调"  value="借调"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1786_调动性质_1">借调</label></span>
<span class="clearfix"></span>',[CtrlbackHtml]='</div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='d74154bc-1dbd-6e06-4c70-0ef9e280ba5f' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='a4ad0bec-bb47-9b7b-9d50-c437be536e18'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4133,'a4ad0bec-bb47-9b7b-9d50-c437be536e18',1786,1786,'00000000-0000-0000-0000-000000000000','计划调动时间',2,2,21,'',5,1,null,0,5,1,0,9,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1848" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4133">计划调动时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<div class="form-ddl"><input  id="d1786_计划调动时间"   type="text" class="form-ddl-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);DcxDTime.ShowCalendar(this);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="计划调动时间" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="5" FId="4133" vlk=0    value="','"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4133,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='计划调动时间',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=21,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=5,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=9,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1848" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4133">计划调动时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-ddl"><input  id="d1786_计划调动时间"   type="text" class="form-ddl-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);DcxDTime.ShowCalendar(this);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="计划调动时间" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="5" FId="4133" vlk=0    value="',[CtrlbackHtml]='"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='a4ad0bec-bb47-9b7b-9d50-c437be536e18' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='b0c1dc80-83f7-68ee-9721-d23c046cdb8c'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4134,'b0c1dc80-83f7-68ee-9721-d23c046cdb8c',1786,1786,'00000000-0000-0000-0000-000000000000','借调开始时间',2,2,22,'',5,1,null,0,5,1,0,10,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1849" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4134">借调开始时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<div class="form-ddl"><input  id="d1786_借调开始时间"   type="text" class="form-ddl-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);DcxDTime.ShowCalendar(this);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="借调开始时间" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="5" FId="4134" vlk=0    value="','"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4134,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='借调开始时间',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=22,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=5,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=10,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1849" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4134">借调开始时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-ddl"><input  id="d1786_借调开始时间"   type="text" class="form-ddl-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);DcxDTime.ShowCalendar(this);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="借调开始时间" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="5" FId="4134" vlk=0    value="',[CtrlbackHtml]='"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='b0c1dc80-83f7-68ee-9721-d23c046cdb8c' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='863ec86d-bb98-8969-672f-6786c3a40031'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4135,'863ec86d-bb98-8969-672f-6786c3a40031',1786,1786,'00000000-0000-0000-0000-000000000000','借调结束时间',2,2,23,'',5,1,null,0,5,1,0,11,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1850" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4135">借调结束时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<div class="form-ddl"><input  id="d1786_借调结束时间"   type="text" class="form-ddl-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);DcxDTime.ShowCalendar(this);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="借调结束时间" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="5" FId="4135" vlk=0    value="','"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4135,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='借调结束时间',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=23,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=5,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=11,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1850" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4135">借调结束时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-ddl"><input  id="d1786_借调结束时间"   type="text" class="form-ddl-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);DcxDTime.ShowCalendar(this);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="借调结束时间" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="5" FId="4135" vlk=0    value="',[CtrlbackHtml]='"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='863ec86d-bb98-8969-672f-6786c3a40031' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='32097259-e8b3-901b-495d-9773d05c7604'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4136,'32097259-e8b3-901b-495d-9773d05c7604',1786,1786,'00000000-0000-0000-0000-000000000000','原工资级别',2,2,24,'Select  [Dcx_Employee].[WageLevel]  from  [Dcx_Employee] where [EmployeeCode] =''{@员工编号}''  and AccountId={$AccountId}',2,1,1,0,1,1,1,12,-1,0,0,'','','员工编号,','{$AccountId},','</span>
  </div>
</li>
<li areaid="1851" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="4136" istitle="1">原工资级别</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d1786_原工资级别"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="原工资级别" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="1" FId="4136" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4136,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='原工资级别',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=24,[DefaultValue]='Select  [Dcx_Employee].[WageLevel]  from  [Dcx_Employee] where [EmployeeCode] =''{@员工编号}''  and AccountId={$AccountId}',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=12,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='员工编号,',[SystemVariables]='{$AccountId},',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1851" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="4136" istitle="1">原工资级别</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1786_原工资级别"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="原工资级别" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="1" FId="4136" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='32097259-e8b3-901b-495d-9773d05c7604' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='b97f5b9b-82c2-f30e-e1db-3425204db891'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4137,'b97f5b9b-82c2-f30e-e1db-3425204db891',1786,1786,'00000000-0000-0000-0000-000000000000','原基本工资',2,2,25,'Select  [Dcx_Employee].[BaseWage]  from  [Dcx_Employee] where [EmployeeCode] =''{@员工编号}''  and AccountId={$AccountId}',2,1,1,0,1,1,1,13,-1,0,0,'','','员工编号,','{$AccountId},','</span>
</div>
</li>
<li areaid="1852" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4137">原基本工资</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1786_原基本工资"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="原基本工资" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="1" FId="4137" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4137,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='原基本工资',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=25,[DefaultValue]='Select  [Dcx_Employee].[BaseWage]  from  [Dcx_Employee] where [EmployeeCode] =''{@员工编号}''  and AccountId={$AccountId}',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=13,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='员工编号,',[SystemVariables]='{$AccountId},',[BeforeHtml]='</span>
</div>
</li>
<li areaid="1852" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4137">原基本工资</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1786_原基本工资"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="原基本工资" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="1" FId="4137" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='b97f5b9b-82c2-f30e-e1db-3425204db891' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='d0a933e1-baae-332c-7282-7b3c0021eacc'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4138,'d0a933e1-baae-332c-7282-7b3c0021eacc',1786,1786,'00000000-0000-0000-0000-000000000000','原月考核工资',2,2,26,'Select  [Dcx_Employee].[MeritWage]  from  [Dcx_Employee] where [EmployeeCode] =''{@员工编号}''  and AccountId={$AccountId}',2,1,1,0,1,1,1,14,-1,0,0,'','','员工编号,','{$AccountId},','</span>
  </div>
</li>
<li areaid="1853" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4138">原月考核工资</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1786_原月考核工资"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="原月考核工资" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="1" FId="4138" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4138,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='原月考核工资',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=26,[DefaultValue]='Select  [Dcx_Employee].[MeritWage]  from  [Dcx_Employee] where [EmployeeCode] =''{@员工编号}''  and AccountId={$AccountId}',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=14,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='员工编号,',[SystemVariables]='{$AccountId},',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1853" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4138">原月考核工资</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1786_原月考核工资"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="原月考核工资" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="1" FId="4138" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='d0a933e1-baae-332c-7282-7b3c0021eacc' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='98bc549d-4f8a-2f0c-6797-b8ce00a8115d'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4139,'98bc549d-4f8a-2f0c-6797-b8ce00a8115d',1786,1786,'00000000-0000-0000-0000-000000000000','原月工资合计',2,2,27,'',5,1,null,0,1,1,0,15,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1854" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4139">原月工资合计  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1786_原月工资合计"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="原月工资合计" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="4139" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4139,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='原月工资合计',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=27,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=15,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1854" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4139">原月工资合计  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1786_原月工资合计"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="原月工资合计" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="4139" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='98bc549d-4f8a-2f0c-6797-b8ce00a8115d' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='53def83b-104e-e567-e543-884825abd8cc'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4140,'53def83b-104e-e567-e543-884825abd8cc',1786,1786,'00000000-0000-0000-0000-000000000000','原年度考核工资',2,2,28,'',5,1,null,0,1,1,0,16,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1855" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4140">原年度考核工资  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1786_原年度考核工资"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="原年度考核工资" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="4140" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4140,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='原年度考核工资',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=28,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=16,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1855" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4140">原年度考核工资  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1786_原年度考核工资"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="原年度考核工资" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="4140" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='53def83b-104e-e567-e543-884825abd8cc' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='fb3caa5d-5a01-7abd-e965-c2a604980a05'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4141,'fb3caa5d-5a01-7abd-e965-c2a604980a05',1786,1786,'00000000-0000-0000-0000-000000000000','原年薪合计',2,2,29,'',5,1,null,0,1,1,0,17,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1856" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4141">原年薪合计  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1786_原年薪合计"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="原年薪合计" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="4141" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4141,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='原年薪合计',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=29,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=17,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1856" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4141">原年薪合计  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1786_原年薪合计"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="原年薪合计" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="4141" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='fb3caa5d-5a01-7abd-e965-c2a604980a05' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='c53dd89c-e621-2376-5e37-e798b41cfee5'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4142,'c53dd89c-e621-2376-5e37-e798b41cfee5',1786,1786,'00000000-0000-0000-0000-000000000000','原工龄工资',2,2,30,'',5,1,null,0,1,1,0,18,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1857" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="4142" istitle="1">原工龄工资 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d1786_原工龄工资"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="原工龄工资" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="4142" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4142,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='原工龄工资',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=30,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=18,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1857" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="4142" istitle="1">原工龄工资 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1786_原工龄工资"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="原工龄工资" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="4142" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='c53dd89c-e621-2376-5e37-e798b41cfee5' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='f1d78027-edae-de88-d95d-999d34b88bf5'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4143,'f1d78027-edae-de88-d95d-999d34b88bf5',1786,1786,'00000000-0000-0000-0000-000000000000','原电脑补贴',2,2,31,'',5,1,null,0,1,1,0,19,-1,0,0,'','','','','</span>
</div>
</li>
<li areaid="1858" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4143">原电脑补贴  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1786_原电脑补贴"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="原电脑补贴" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="4143" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4143,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='原电脑补贴',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=31,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=19,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="1858" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4143">原电脑补贴  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1786_原电脑补贴"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="原电脑补贴" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="4143" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='f1d78027-edae-de88-d95d-999d34b88bf5' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='53d8c17b-1189-80a3-0c96-17a3e5e49dfb'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4144,'53d8c17b-1189-80a3-0c96-17a3e5e49dfb',1786,1786,'00000000-0000-0000-0000-000000000000','原地区差补贴',2,2,32,'',5,1,null,0,1,1,0,20,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1859" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4144">原地区差补贴  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1786_原地区差补贴"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="原地区差补贴" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="4144" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4144,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='原地区差补贴',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=32,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=20,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1859" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4144">原地区差补贴  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1786_原地区差补贴"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="原地区差补贴" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="4144" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='53d8c17b-1189-80a3-0c96-17a3e5e49dfb' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='854b072e-b7a0-b158-41de-66b9908f5963'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4145,'854b072e-b7a0-b158-41de-66b9908f5963',1786,1786,'00000000-0000-0000-0000-000000000000','原电话费',2,2,33,'',5,1,null,0,1,1,0,21,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1860" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4145">原电话费  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1786_原电话费"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="原电话费" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="4145" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4145,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='原电话费',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=33,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=21,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1860" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4145">原电话费  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1786_原电话费"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="原电话费" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="4145" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='854b072e-b7a0-b158-41de-66b9908f5963' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='5a07010d-fc83-0d67-dfc4-21a0cd454b89'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4146,'5a07010d-fc83-0d67-dfc4-21a0cd454b89',1786,1786,'00000000-0000-0000-0000-000000000000','原交通费',2,2,34,'',5,1,null,0,1,1,0,22,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1861" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4146">原交通费  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1786_原交通费"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="原交通费" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="4146" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4146,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='原交通费',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=34,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=22,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1861" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4146">原交通费  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1786_原交通费"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="原交通费" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="4146" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='5a07010d-fc83-0d67-dfc4-21a0cd454b89' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='41061eab-47cb-cc8d-024a-32014bdea225'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4147,'41061eab-47cb-cc8d-024a-32014bdea225',1786,1786,'00000000-0000-0000-0000-000000000000','原社保',2,2,35,'有|',1,7,1,0,7,1,0,23,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1862" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4147">原社保  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<div id="d1786_原社保" class="form-radio" style="" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="原社保" dType="2" Vtp="1" RDT="2" Isc="1" RId="7" CId="7" FId="4147" vlk=0    Type="1"  onclick ="javascript:DcxVld.Validate(this,1786,''AjaxF_'',1786);" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);"><span class="form-radio-item"  >
<input id="ddcx_1786_原社保_0"  name="ddcx_1786_原社保" checked ="checked" type="radio"  text="有"  value=""  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1786_原社保_0">有</label></span>
<span class="form-radio-item"  >
<input id="ddcx_1786_原社保_1"  name="ddcx_1786_原社保"  type="radio"  text="没有"  value="没有"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1786_原社保_1">没有</label></span>
<span class="clearfix"></span>','</div>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4147,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='原社保',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=35,[DefaultValue]='有|',[ValueType]=1,[RunValueType]=7,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=7,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=23,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1862" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4147">原社保  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d1786_原社保" class="form-radio" style="" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="原社保" dType="2" Vtp="1" RDT="2" Isc="1" RId="7" CId="7" FId="4147" vlk=0    Type="1"  onclick ="javascript:DcxVld.Validate(this,1786,''AjaxF_'',1786);" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);"><span class="form-radio-item"  >
<input id="ddcx_1786_原社保_0"  name="ddcx_1786_原社保" checked ="checked" type="radio"  text="有"  value=""  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1786_原社保_0">有</label></span>
<span class="form-radio-item"  >
<input id="ddcx_1786_原社保_1"  name="ddcx_1786_原社保"  type="radio"  text="没有"  value="没有"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1786_原社保_1">没有</label></span>
<span class="clearfix"></span>',[CtrlbackHtml]='</div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='41061eab-47cb-cc8d-024a-32014bdea225' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='a6136fa8-4637-c127-b3c2-ca3acee17e5b'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4148,'a6136fa8-4637-c127-b3c2-ca3acee17e5b',1786,1786,'00000000-0000-0000-0000-000000000000','原意外保险',2,2,36,'有|',1,7,1,0,7,1,0,24,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1863" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4148">原意外保险  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<div id="d1786_原意外保险" class="form-radio" style="" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="原意外保险" dType="2" Vtp="1" RDT="2" Isc="1" RId="7" CId="7" FId="4148" vlk=0    Type="1"  onclick ="javascript:DcxVld.Validate(this,1786,''AjaxF_'',1786);" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);"><span class="form-radio-item"  >
<input id="ddcx_1786_原意外保险_0"  name="ddcx_1786_原意外保险" checked ="checked" type="radio"  text="有"  value=""  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1786_原意外保险_0">有</label></span>
<span class="form-radio-item"  >
<input id="ddcx_1786_原意外保险_1"  name="ddcx_1786_原意外保险"  type="radio"  text="没有"  value="没有"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1786_原意外保险_1">没有</label></span>
<span class="clearfix"></span>','</div>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4148,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='原意外保险',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=36,[DefaultValue]='有|',[ValueType]=1,[RunValueType]=7,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=7,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=24,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1863" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4148">原意外保险  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d1786_原意外保险" class="form-radio" style="" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="原意外保险" dType="2" Vtp="1" RDT="2" Isc="1" RId="7" CId="7" FId="4148" vlk=0    Type="1"  onclick ="javascript:DcxVld.Validate(this,1786,''AjaxF_'',1786);" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);"><span class="form-radio-item"  >
<input id="ddcx_1786_原意外保险_0"  name="ddcx_1786_原意外保险" checked ="checked" type="radio"  text="有"  value=""  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1786_原意外保险_0">有</label></span>
<span class="form-radio-item"  >
<input id="ddcx_1786_原意外保险_1"  name="ddcx_1786_原意外保险"  type="radio"  text="没有"  value="没有"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1786_原意外保险_1">没有</label></span>
<span class="clearfix"></span>',[CtrlbackHtml]='</div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='a6136fa8-4637-c127-b3c2-ca3acee17e5b' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='e848bc81-1e82-7899-6c92-060b7b9c1156'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4149,'e848bc81-1e82-7899-6c92-060b7b9c1156',1786,1786,'00000000-0000-0000-0000-000000000000','调后工资级别',2,2,37,'Select  工资_岗位级别.[岗位级别]  from  工资_岗位级别  Order by  工资_岗位级别.[岗位级别] asc',2,1,null,0,3,1,0,25,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1864" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4149">调后工资级别  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<select id="d1786_调后工资级别" name="d1786_调后工资级别" class="form-select"  onchange ="javascript:GetLinkCtrlData_AjaxF_1786_744(this,''调后工资级别'');GetLinkCtrlData_AjaxF_1786_745(this,''调后工资级别'');DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调后工资级别" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="3" FId="4149" vlk=0    CBack=1  style="width:201px;">','</select>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4149,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='调后工资级别',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=37,[DefaultValue]='Select  工资_岗位级别.[岗位级别]  from  工资_岗位级别  Order by  工资_岗位级别.[岗位级别] asc',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=25,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1864" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4149">调后工资级别  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1786_调后工资级别" name="d1786_调后工资级别" class="form-select"  onchange ="javascript:GetLinkCtrlData_AjaxF_1786_744(this,''调后工资级别'');GetLinkCtrlData_AjaxF_1786_745(this,''调后工资级别'');DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调后工资级别" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="3" FId="4149" vlk=0    CBack=1  style="width:201px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='e848bc81-1e82-7899-6c92-060b7b9c1156' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='51a2e893-772b-aa15-da84-6c5fd72d794a'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4150,'51a2e893-772b-aa15-da84-6c5fd72d794a',1786,1786,'00000000-0000-0000-0000-000000000000','调后基本工资',2,2,38,'Select  工资_岗位级别.[月基本工资]  from  工资_岗位级别  Where   岗位级别 = ''{@调后工资级别}''',2,1,null,0,1,1,0,26,-1,0,0,'','','调后工资级别,','','</span>
  </div>
</li>
<li areaid="1865" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4150">调后基本工资  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1786_调后基本工资"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调后基本工资" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="1" FId="4150" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4150,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='调后基本工资',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=38,[DefaultValue]='Select  工资_岗位级别.[月基本工资]  from  工资_岗位级别  Where   岗位级别 = ''{@调后工资级别}''',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=26,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='调后工资级别,',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1865" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4150">调后基本工资  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1786_调后基本工资"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调后基本工资" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="1" FId="4150" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='51a2e893-772b-aa15-da84-6c5fd72d794a' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='fccbb094-4f7e-cc73-1223-85e423393b15'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4151,'fccbb094-4f7e-cc73-1223-85e423393b15',1786,1786,'00000000-0000-0000-0000-000000000000','调后月考核工资',2,2,39,'Select  工资_岗位级别.[月考核工资]  from  工资_岗位级别  Where   岗位级别 = ''{@调后工资级别}''',2,1,null,0,1,1,0,27,-1,0,0,'','','调后工资级别,','','</span>
  </div>
</li>
<li areaid="1866" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4151">调后月考核工资  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1786_调后月考核工资"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调后月考核工资" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="1" FId="4151" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4151,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='调后月考核工资',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=39,[DefaultValue]='Select  工资_岗位级别.[月考核工资]  from  工资_岗位级别  Where   岗位级别 = ''{@调后工资级别}''',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=27,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='调后工资级别,',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1866" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4151">调后月考核工资  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1786_调后月考核工资"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调后月考核工资" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="1" FId="4151" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='fccbb094-4f7e-cc73-1223-85e423393b15' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='e901a100-fdad-3f11-30bb-e88aa4352f03'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4152,'e901a100-fdad-3f11-30bb-e88aa4352f03',1786,1786,'00000000-0000-0000-0000-000000000000','调后月工资合计',2,2,40,'',5,1,null,0,1,1,0,28,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1867" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4152">调后月工资合计  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1786_调后月工资合计"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调后月工资合计" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="4152" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4152,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='调后月工资合计',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=40,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=28,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1867" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4152">调后月工资合计  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1786_调后月工资合计"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调后月工资合计" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="4152" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='e901a100-fdad-3f11-30bb-e88aa4352f03' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='081476da-c3f4-40ee-98fd-7f6f91a8960c'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4153,'081476da-c3f4-40ee-98fd-7f6f91a8960c',1786,1786,'00000000-0000-0000-0000-000000000000','调后年度考核工资',2,2,41,'',5,1,null,0,1,1,0,29,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1868" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4153">调后年度考核工资  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1786_调后年度考核工资"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调后年度考核工资" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="4153" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4153,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='调后年度考核工资',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=41,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=29,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1868" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4153">调后年度考核工资  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1786_调后年度考核工资"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调后年度考核工资" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="4153" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='081476da-c3f4-40ee-98fd-7f6f91a8960c' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='b5db3271-acb2-1420-b049-ddd3df6cfc42'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4154,'b5db3271-acb2-1420-b049-ddd3df6cfc42',1786,1786,'00000000-0000-0000-0000-000000000000','调后年薪合计',2,2,42,'',5,1,null,0,1,1,0,30,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1869" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4154">调后年薪合计  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1786_调后年薪合计"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调后年薪合计" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="4154" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4154,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='调后年薪合计',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=42,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=30,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1869" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4154">调后年薪合计  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1786_调后年薪合计"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调后年薪合计" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="4154" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='b5db3271-acb2-1420-b049-ddd3df6cfc42' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='88ef1c95-65a9-af19-1f88-28e899521a1b'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4155,'88ef1c95-65a9-af19-1f88-28e899521a1b',1786,1786,'00000000-0000-0000-0000-000000000000','调后工龄工资',2,2,43,'',5,1,null,0,1,1,0,31,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1870" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4155">调后工龄工资  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1786_调后工龄工资"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调后工龄工资" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="4155" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4155,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='调后工龄工资',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=43,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=31,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1870" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4155">调后工龄工资  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1786_调后工龄工资"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调后工龄工资" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="4155" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='88ef1c95-65a9-af19-1f88-28e899521a1b' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='3cefaee8-7c73-9247-31d8-be172b26bf2f'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4156,'3cefaee8-7c73-9247-31d8-be172b26bf2f',1786,1786,'00000000-0000-0000-0000-000000000000','调后电脑补贴',2,2,44,'',5,1,null,0,1,1,0,32,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1871" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4156">调后电脑补贴  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1786_调后电脑补贴"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调后电脑补贴" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="4156" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4156,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='调后电脑补贴',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=44,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=32,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1871" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4156">调后电脑补贴  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1786_调后电脑补贴"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调后电脑补贴" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="4156" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='3cefaee8-7c73-9247-31d8-be172b26bf2f' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='e43b105b-7fc2-d761-7b52-44c3e197c66b'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4157,'e43b105b-7fc2-d761-7b52-44c3e197c66b',1786,1786,'00000000-0000-0000-0000-000000000000','调后地区差补贴',2,2,45,'',5,1,null,0,1,1,0,33,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1872" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4157">调后地区差补贴  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1786_调后地区差补贴"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调后地区差补贴" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="4157" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4157,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='调后地区差补贴',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=45,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=33,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1872" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4157">调后地区差补贴  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1786_调后地区差补贴"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调后地区差补贴" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="4157" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='e43b105b-7fc2-d761-7b52-44c3e197c66b' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='3ce7fe34-2088-d581-6731-64bab54726da'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4158,'3ce7fe34-2088-d581-6731-64bab54726da',1786,1786,'00000000-0000-0000-0000-000000000000','调后电话费',2,2,46,'',5,1,null,0,1,1,0,34,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1873" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4158">调后电话费  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1786_调后电话费"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调后电话费" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="4158" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4158,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='调后电话费',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=46,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=34,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1873" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4158">调后电话费  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1786_调后电话费"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调后电话费" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="4158" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='3ce7fe34-2088-d581-6731-64bab54726da' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='1decb532-5bd7-3c4e-bf09-adef68ebf68f'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4159,'1decb532-5bd7-3c4e-bf09-adef68ebf68f',1786,1786,'00000000-0000-0000-0000-000000000000','调后交通费',2,2,47,'',5,1,null,0,1,1,0,35,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1874" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4159">调后交通费  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1786_调后交通费"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调后交通费" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="4159" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4159,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='调后交通费',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=47,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=35,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1874" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4159">调后交通费  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1786_调后交通费"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调后交通费" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="4159" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='1decb532-5bd7-3c4e-bf09-adef68ebf68f' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='39bc1b38-6b68-1c77-6b20-1b5eb22e73d7'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4160,'39bc1b38-6b68-1c77-6b20-1b5eb22e73d7',1786,1786,'00000000-0000-0000-0000-000000000000','调后社保',2,2,48,'不变|',1,7,1,0,7,1,0,36,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1875" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="4160" istitle="1">调后社保 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<div id="d1786_调后社保" class="form-radio" style="" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调后社保" dType="2" Vtp="1" RDT="2" Isc="1" RId="7" CId="7" FId="4160" vlk=0    Type="1"  onclick ="javascript:DcxVld.Validate(this,1786,''AjaxF_'',1786);" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);"><span class="form-radio-item"  >
<input id="ddcx_1786_调后社保_0"  name="ddcx_1786_调后社保"  type="radio"  text="转入"  value="转入"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1786_调后社保_0">转入</label></span>
<span class="form-radio-item"  >
<input id="ddcx_1786_调后社保_1"  name="ddcx_1786_调后社保"  type="radio"  text="购买"  value="购买"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1786_调后社保_1">购买</label></span>
<span class="form-radio-item"  >
<input id="ddcx_1786_调后社保_2"  name="ddcx_1786_调后社保" checked ="checked" type="radio"  text="不变"  value=""  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1786_调后社保_2">不变</label></span>
<span class="clearfix"></span>','</div>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4160,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='调后社保',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=48,[DefaultValue]='不变|',[ValueType]=1,[RunValueType]=7,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=7,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=36,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1875" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="4160" istitle="1">调后社保 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d1786_调后社保" class="form-radio" style="" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调后社保" dType="2" Vtp="1" RDT="2" Isc="1" RId="7" CId="7" FId="4160" vlk=0    Type="1"  onclick ="javascript:DcxVld.Validate(this,1786,''AjaxF_'',1786);" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);"><span class="form-radio-item"  >
<input id="ddcx_1786_调后社保_0"  name="ddcx_1786_调后社保"  type="radio"  text="转入"  value="转入"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1786_调后社保_0">转入</label></span>
<span class="form-radio-item"  >
<input id="ddcx_1786_调后社保_1"  name="ddcx_1786_调后社保"  type="radio"  text="购买"  value="购买"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1786_调后社保_1">购买</label></span>
<span class="form-radio-item"  >
<input id="ddcx_1786_调后社保_2"  name="ddcx_1786_调后社保" checked ="checked" type="radio"  text="不变"  value=""  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1786_调后社保_2">不变</label></span>
<span class="clearfix"></span>',[CtrlbackHtml]='</div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='39bc1b38-6b68-1c77-6b20-1b5eb22e73d7' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='09f13759-86cd-a1cf-6434-7aaf762f1269'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4161,'09f13759-86cd-a1cf-6434-7aaf762f1269',1786,1786,'00000000-0000-0000-0000-000000000000','调后意外保险',2,2,49,'不变|',1,7,1,0,7,1,0,37,-1,0,0,'','','','','</span>
</div>
</li>
<li areaid="1876" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="4161" istitle="1">调后意外保险 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<div id="d1786_调后意外保险" class="form-radio" style="" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调后意外保险" dType="2" Vtp="1" RDT="2" Isc="1" RId="7" CId="7" FId="4161" vlk=0    Type="1"  onclick ="javascript:DcxVld.Validate(this,1786,''AjaxF_'',1786);" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);"><span class="form-radio-item"  >
<input id="ddcx_1786_调后意外保险_0"  name="ddcx_1786_调后意外保险"  type="radio"  text="转入"  value="转入"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1786_调后意外保险_0">转入</label></span>
<span class="form-radio-item"  >
<input id="ddcx_1786_调后意外保险_1"  name="ddcx_1786_调后意外保险"  type="radio"  text="购买"  value="购买"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1786_调后意外保险_1">购买</label></span>
<span class="form-radio-item"  >
<input id="ddcx_1786_调后意外保险_2"  name="ddcx_1786_调后意外保险" checked ="checked" type="radio"  text="不变"  value=""  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1786_调后意外保险_2">不变</label></span>
<span class="clearfix"></span>','</div>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4161,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='调后意外保险',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=49,[DefaultValue]='不变|',[ValueType]=1,[RunValueType]=7,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=7,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=37,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="1876" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="4161" istitle="1">调后意外保险 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d1786_调后意外保险" class="form-radio" style="" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调后意外保险" dType="2" Vtp="1" RDT="2" Isc="1" RId="7" CId="7" FId="4161" vlk=0    Type="1"  onclick ="javascript:DcxVld.Validate(this,1786,''AjaxF_'',1786);" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);"><span class="form-radio-item"  >
<input id="ddcx_1786_调后意外保险_0"  name="ddcx_1786_调后意外保险"  type="radio"  text="转入"  value="转入"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1786_调后意外保险_0">转入</label></span>
<span class="form-radio-item"  >
<input id="ddcx_1786_调后意外保险_1"  name="ddcx_1786_调后意外保险"  type="radio"  text="购买"  value="购买"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1786_调后意外保险_1">购买</label></span>
<span class="form-radio-item"  >
<input id="ddcx_1786_调后意外保险_2"  name="ddcx_1786_调后意外保险" checked ="checked" type="radio"  text="不变"  value=""  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1786_调后意外保险_2">不变</label></span>
<span class="clearfix"></span>',[CtrlbackHtml]='</div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='09f13759-86cd-a1cf-6434-7aaf762f1269' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='39bf1688-d4ba-b277-25df-d5808c5fd975'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4162,'39bf1688-d4ba-b277-25df-d5808c5fd975',1786,1786,'00000000-0000-0000-0000-000000000000','调入部门意见',2,2,50,'',5,1,1,0,2,1,1,38,-1,0,0,'','','','','</span>
</div>
</li>
<li areaid="1877" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="4162" istitle="1">调入部门意见</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1786_调入部门意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调入部门意见" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="4162" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4162,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='调入部门意见',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=50,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=38,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="1877" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="4162" istitle="1">调入部门意见</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1786_调入部门意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调入部门意见" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="4162" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='39bf1688-d4ba-b277-25df-d5808c5fd975' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='7ec8658e-e3db-8753-34d9-ba5ceb4ec199'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4163,'7ec8658e-e3db-8753-34d9-ba5ceb4ec199',1786,1786,'00000000-0000-0000-0000-000000000000','调出部门意见',2,2,51,'',5,1,1,0,2,1,1,39,-1,0,0,'','','','','</span>
</div>
</li>
<li areaid="1878" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4163">调出部门意见</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1786_调出部门意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调出部门意见" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="4163" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4163,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='调出部门意见',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=51,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=39,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="1878" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4163">调出部门意见</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1786_调出部门意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调出部门意见" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="4163" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='7ec8658e-e3db-8753-34d9-ba5ceb4ec199' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='954d437c-d3f1-664b-b461-830dadd80054'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4164,'954d437c-d3f1-664b-b461-830dadd80054',1786,1786,'00000000-0000-0000-0000-000000000000','调入分公司意见',2,2,52,'',5,1,1,0,2,1,1,40,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1879" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4164">调入分公司意见</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1786_调入分公司意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调入分公司意见" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="4164" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4164,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='调入分公司意见',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=52,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=40,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1879" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4164">调入分公司意见</label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1786_调入分公司意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调入分公司意见" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="4164" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='954d437c-d3f1-664b-b461-830dadd80054' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='73653498-4dcc-06d4-e942-03c1fea3aa6f'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4165,'73653498-4dcc-06d4-e942-03c1fea3aa6f',1786,1786,'00000000-0000-0000-0000-000000000000','调出分公司意见',2,2,53,'',5,1,null,0,2,1,0,41,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1880" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4165">调出分公司意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1786_调出分公司意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调出分公司意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="4165" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4165,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='调出分公司意见',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=53,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=41,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1880" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4165">调出分公司意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1786_调出分公司意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调出分公司意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="4165" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='73653498-4dcc-06d4-e942-03c1fea3aa6f' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='8ab4c6f5-3f98-1eda-85e5-14ed6310bee6'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4166,'8ab4c6f5-3f98-1eda-85e5-14ed6310bee6',1786,1786,'00000000-0000-0000-0000-000000000000','生产管理部意见',2,2,54,'',5,1,null,0,2,1,0,42,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1881" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4166">生产管理部意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1786_生产管理部意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="生产管理部意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="4166" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4166,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='生产管理部意见',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=54,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=42,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1881" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4166">生产管理部意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1786_生产管理部意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="生产管理部意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="4166" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='8ab4c6f5-3f98-1eda-85e5-14ed6310bee6' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='a1cc48ca-1c96-3bc2-fd90-6611349c0830'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4167,'a1cc48ca-1c96-3bc2-fd90-6611349c0830',1786,1786,'00000000-0000-0000-0000-000000000000','董事长或总经理意见',2,2,55,'',5,1,null,0,2,1,0,43,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="1882" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4167">董事长或总经理意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1786_董事长或总经理意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="董事长或总经理意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="4167" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4167,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='董事长或总经理意见',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=55,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=43,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1882" style="height: 138px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4167">董事长或总经理意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1786_董事长或总经理意见" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''AjaxF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''AjaxF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="董事长或总经理意见" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="4167" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='a1cc48ca-1c96-3bc2-fd90-6611349c0830' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='c150552e-0480-5e18-ecac-c195d53ba482'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4168,'c150552e-0480-5e18-ecac-c195d53ba482',1786,1786,'00000000-0000-0000-0000-000000000000','登记时间',2,2,56,'{$datetime}',0,9,null,0,4,1,0,44,-1,0,0,'','','','{$datetime},','</span>
  </div>
</li>
<li areaid="1883" style="height: 38px; width: 792px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="4168" istitle="1">登记时间 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','</span>
</div>
</li>
</ul>
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="178" entid="1786" class="tab_ul" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="1884" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li areaid="1885" istab="1" tabid="2" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1" style="">
<ul isgroup="1" groupid="179" entid="1786" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="1886" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="180" entid="1786" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="1887" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="1786" groupid="181" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="1888" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
<li areaid="1889" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>','','','<span id="d1786_登记时间" class="form-lbl" style="width:201px;" IsForField=1 EntId="1786" CId="4" FId="4168" Vtp="0"  >','</span><input id="d1786_登记时间_hid" type="hidden"  EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="登记时间" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="4168" vlk=0    value="','" />',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4168,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='登记时间',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=56,[DefaultValue]='{$datetime}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=44,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$datetime},',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="1883" style="height: 38px; width: 792px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="4168" istitle="1">登记时间 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
</div>
</li>
</ul>
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="178" entid="1786" class="tab_ul" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="1884" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li areaid="1885" istab="1" tabid="2" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1" style="">
<ul isgroup="1" groupid="179" entid="1786" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="1886" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="180" entid="1786" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="1887" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="1786" groupid="181" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="1888" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
<li areaid="1889" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1786_登记时间" class="form-lbl" style="width:201px;" IsForField=1 EntId="1786" CId="4" FId="4168" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d1786_登记时间_hid" type="hidden"  EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="登记时间" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="4168" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='c150552e-0480-5e18-ecac-c195d53ba482' 
      end



Delete from [Dcx_SearchForm_Run]  where [EntId]=1786

--Dcx_SearchForm_Run
      if (select count(1) from [Dcx_SearchForm_Run] where  [EntId]=1786  )<1 
      begin 
           Insert into [Dcx_SearchForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('9b83c0ba-6160-4345-b25d-c26731cfe9c4','员工调动',1786,9,'','',0,'<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>','','DcxRun.SearchF_1786= {"MenuId":3065,"MEntId":1786,"EntName":"员工调动","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1786":{"EntId":1786,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_1786.EntMsg.E1786.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"人事_人员调动表","EntId":1786,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"员工姓名":{"DtId":2,"DB":1,"CId":1,"FL":100},"调入部门":{"DtId":2,"DB":1,"CId":1,"FL":100},"调入分公司或项目部":{"DtId":2,"DB":1,"CId":1,"FL":100},"调出部门":{"DtId":2,"DB":1,"CId":1,"FL":100},"调出分公司或项目部":{"DtId":2,"DB":1,"CId":1,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.SearchF_1786.EntMsg.E1786.GetDataRowModel=function()
{
    return {"员工姓名":"","调入部门":"","调入分公司或项目部":"","调出部门":"","调出分公司或项目部":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_1786.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1786,''SearchF_'',buildNew,closeDlg);

}','',20,'','','','1786*LD_Id*2**2*人事_人员调动表*员工调动',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 5:45:57',3,'admin','2013-11-16 17:38:27',1)
      end
      else 
      begin 
           update [Dcx_SearchForm_Run] set [FormId]='9b83c0ba-6160-4345-b25d-c26731cfe9c4',[FormName]='员工调动',[ModuleId]=9,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.SearchF_1786= {"MenuId":3065,"MEntId":1786,"EntName":"员工调动","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1786":{"EntId":1786,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_1786.EntMsg.E1786.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"人事_人员调动表","EntId":1786,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"员工姓名":{"DtId":2,"DB":1,"CId":1,"FL":100},"调入部门":{"DtId":2,"DB":1,"CId":1,"FL":100},"调入分公司或项目部":{"DtId":2,"DB":1,"CId":1,"FL":100},"调出部门":{"DtId":2,"DB":1,"CId":1,"FL":100},"调出分公司或项目部":{"DtId":2,"DB":1,"CId":1,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.SearchF_1786.EntMsg.E1786.GetDataRowModel=function()
{
    return {"员工姓名":"","调入部门":"","调入分公司或项目部":"","调出部门":"","调出分公司或项目部":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_1786.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1786,''SearchF_'',buildNew,closeDlg);

}',[LoadingSql]='',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='1786*LD_Id*2**2*人事_人员调动表*员工调动',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 5:45:57',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-16 17:38:27',[AccountId]=1 where  [EntId]=1786 
      end




--Dcx_SearchFormField_Run
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='2ae9498b-eaf5-4b9b-9e06-af98f23f94c3'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'2ae9498b-eaf5-4b9b-9e06-af98f23f94c3',1786,1786,'00000000-0000-0000-0000-000000000000',1,'Like','员工姓名',2,2,13,'',5,1,1,0,1,1,0,-1,1,0,'','','','','<div class="searchform">
<ul isgroup="1" groupid="27" entid="1786" class="search-block w920" ctrlprex="SearchF_" isrple="1">
<li areaid="157" class="search-li w240 h32" scroll="no" style="width: 241px; position: static;">
<label class="search-title pad7" istitle="1" fldid="1">员工姓名</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">','','','','<input  id="d1786_员工姓名"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''SearchF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''SearchF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="员工姓名" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=1,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[CompareOperatorType]='Like',[FieldName]='员工姓名',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=13,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="searchform">
<ul isgroup="1" groupid="27" entid="1786" class="search-block w920" ctrlprex="SearchF_" isrple="1">
<li areaid="157" class="search-li w240 h32" scroll="no" style="width: 241px; position: static;">
<label class="search-title pad7" istitle="1" fldid="1">员工姓名</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1786_员工姓名"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''SearchF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''SearchF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="员工姓名" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='2ae9498b-eaf5-4b9b-9e06-af98f23f94c3' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='250a918e-f1ea-4d24-a15a-e841075d0b0e'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'250a918e-f1ea-4d24-a15a-e841075d0b0e',1786,1786,'00000000-0000-0000-0000-000000000000',2,'Like','调入部门',2,2,14,'',5,1,1,0,1,1,0,-1,1,0,'','','','','</span>
  </div>
</li>
<li areaid="158" class="search-li w240 h32" scroll="no" style="width: 241px; position: static;">
<label class="search-title pad7" istitle="1" fldid="2">调入部门</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">','','','','<input  id="d1786_调入部门"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''SearchF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''SearchF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调入部门" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=2,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[CompareOperatorType]='Like',[FieldName]='调入部门',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=14,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="158" class="search-li w240 h32" scroll="no" style="width: 241px; position: static;">
<label class="search-title pad7" istitle="1" fldid="2">调入部门</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1786_调入部门"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''SearchF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''SearchF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调入部门" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='250a918e-f1ea-4d24-a15a-e841075d0b0e' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='863b04e3-dc01-4b1e-99f0-5d0bb19d7e52'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'863b04e3-dc01-4b1e-99f0-5d0bb19d7e52',1786,1786,'00000000-0000-0000-0000-000000000000',3,'Like','调入分公司或项目部',2,2,15,'',5,1,1,0,1,1,0,-1,1,0,'','','','','</span>
  </div>
</li>
<li areaid="159" class="search-li w270 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="3">调入分公司</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">','','','','<input  id="d1786_调入分公司或项目部"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''SearchF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''SearchF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调入分公司或项目部" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="3" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=3,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[CompareOperatorType]='Like',[FieldName]='调入分公司或项目部',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=15,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="159" class="search-li w270 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="3">调入分公司</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1786_调入分公司或项目部"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''SearchF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''SearchF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调入分公司或项目部" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="3" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='863b04e3-dc01-4b1e-99f0-5d0bb19d7e52' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='693b92a1-cb4e-4bb4-b0b6-25d8be46385d'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'693b92a1-cb4e-4bb4-b0b6-25d8be46385d',1786,1786,'00000000-0000-0000-0000-000000000000',4,'Like','调出部门',2,2,16,'',5,1,1,0,1,1,0,-1,1,0,'','','','','</span>
  </div>
</li>
<li areaid="160" class="search-li w240 h32" scroll="no" style="width: 241px; position: static;">
<label class="search-title pad7" istitle="1" fldid="4">调出部门</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">','','','','<input  id="d1786_调出部门"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''SearchF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''SearchF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调出部门" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="4" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=4,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=4,[CompareOperatorType]='Like',[FieldName]='调出部门',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=16,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="160" class="search-li w240 h32" scroll="no" style="width: 241px; position: static;">
<label class="search-title pad7" istitle="1" fldid="4">调出部门</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1786_调出部门"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''SearchF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''SearchF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调出部门" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="4" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='693b92a1-cb4e-4bb4-b0b6-25d8be46385d' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='00c2d060-3263-4e50-a78c-80bd340f7e37'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'00c2d060-3263-4e50-a78c-80bd340f7e37',1786,1786,'00000000-0000-0000-0000-000000000000',5,'Like','调出分公司或项目部',2,2,17,'',5,1,1,0,1,1,0,-1,1,0,'','','','','</span>
  </div>
</li>
<li areaid="161" class="search-li w270 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="5">调出分公司</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">','</span>
  </div>
</li>
<li areaid="162" class="search-li w100 h32" scroll="no" style="position: static;">
<div class="searchform-button" onclick="javascript:return VL_Search(1786);">
<div class="search-btn">&nbsp;</div>
<a href="javascript:void(0);" id="1786_searchBT">搜索</a>
</div>
</li>
</ul>
</div>','','','<input  id="d1786_调出分公司或项目部"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''SearchF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''SearchF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调出分公司或项目部" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="5" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=5,[Form_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=5,[CompareOperatorType]='Like',[FieldName]='调出分公司或项目部',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=17,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="161" class="search-li w270 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="5">调出分公司</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
  </div>
</li>
<li areaid="162" class="search-li w100 h32" scroll="no" style="position: static;">
<div class="searchform-button" onclick="javascript:return VL_Search(1786);">
<div class="search-btn">&nbsp;</div>
<a href="javascript:void(0);" id="1786_searchBT">搜索</a>
</div>
</li>
</ul>
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1786_调出分公司或项目部"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1786,''SearchF_'',1786,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1786,''SearchF_'',1786);" EntId="1786" IsField=1 DBField=1 IsPost=1 FieldName="调出分公司或项目部" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="5" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='00c2d060-3263-4e50-a78c-80bd340f7e37' 
      end



Delete from [Dcx_BrowseReport_Run]  where [EntId]=1786

--Dcx_BrowseReport_Run
      if (select count(1) from [Dcx_BrowseReport_Run] where  [EntId]=1786  )<1 
      begin 
           Insert into [Dcx_BrowseReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[DIYJsCss],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('2599c7d9-3d50-4820-9002-146e16722769','员工调动',1786,31,'','<$1786$>select [调动编号],[员工编号],[员工姓名],[调入部门],[调入分公司或项目部],[调出部门],[调出分公司或项目部],[原岗位],[新岗位],[调动性质],[计划调动时间],[借调开始时间],[借调结束时间],[LD_Id] from 人事_人员调动表 where [LD_Id]=''{$keyfieldvalue}''</$1786$>',1,1,20,'','DcxRun.MChildR_1786= {"MenuId":3065,"MEntId":1786,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"员工调动","EntMsg":{"E1786":{"EntId":1786,"EntName":"员工调动","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":119,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1786*LD_Id*2**2*人事_人员调动表*员工调动',3,'','2012-12-21 11:03:02',3,'','2013-11-17 3:04:26',1)
      end
      else 
      begin 
           update [Dcx_BrowseReport_Run] set [ReportId]='2599c7d9-3d50-4820-9002-146e16722769',[ReportName]='员工调动',[ModuleId]=31,[StaticHtml]='',[LoadingSql]='<$1786$>select [调动编号],[员工编号],[员工姓名],[调入部门],[调入分公司或项目部],[调出部门],[调出分公司或项目部],[原岗位],[新岗位],[调动性质],[计划调动时间],[借调开始时间],[借调结束时间],[LD_Id] from 人事_人员调动表 where [LD_Id]=''{$keyfieldvalue}''</$1786$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[DIYJsCss]='',[AutoPublicJs]='DcxRun.MChildR_1786= {"MenuId":3065,"MEntId":1786,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"员工调动","EntMsg":{"E1786":{"EntId":1786,"EntName":"员工调动","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":119,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1786*LD_Id*2**2*人事_人员调动表*员工调动',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-21 11:03:02',[EditorId]=3,[Editor]='',[EditTime]='2013-11-17 3:04:26',[AccountId]=1 where  [EntId]=1786 
      end




--Dcx_BrowseReportField_Run
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='3eb5f78d-df05-4b09-8f21-6ddc60a3f58c'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'3eb5f78d-df05-4b09-8f21-6ddc60a3f58c',1786,1786,'00000000-0000-0000-0000-000000000000',11,'调动编号',1,1,'varchar',2,1,0,'','','','<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1786" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="573" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">员工调动</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1786" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="574" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">调动编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1786" fieldname="调动编号" fldid="1" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=1,[Report_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=11,[FieldName]='调动编号',[FieldNO]=1,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1786" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="573" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">员工调动</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1786" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="574" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">调动编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1786" fieldname="调动编号" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='3eb5f78d-df05-4b09-8f21-6ddc60a3f58c' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='ac210d35-6465-4154-b3a1-8f7e42ec0246'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'ac210d35-6465-4154-b3a1-8f7e42ec0246',1786,1786,'00000000-0000-0000-0000-000000000000',12,'员工编号',2,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="575" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">员工编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1786" fieldname="员工编号" fldid="2" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=2,[Report_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=12,[FieldName]='员工编号',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="575" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">员工编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1786" fieldname="员工编号" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='ac210d35-6465-4154-b3a1-8f7e42ec0246' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='1d8db48d-ac97-43f1-8df5-7170026838c1'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'1d8db48d-ac97-43f1-8df5-7170026838c1',1786,1786,'00000000-0000-0000-0000-000000000000',13,'员工姓名',3,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="576" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">员工姓名  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1786" fieldname="员工姓名" fldid="3" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=3,[Report_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=13,[FieldName]='员工姓名',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="576" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">员工姓名  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1786" fieldname="员工姓名" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='1d8db48d-ac97-43f1-8df5-7170026838c1' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='b9fbd2c9-82ca-4e51-a633-fcfe0c725a60'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'b9fbd2c9-82ca-4e51-a633-fcfe0c725a60',1786,1786,'00000000-0000-0000-0000-000000000000',14,'调入部门',4,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="577" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">调入部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1786" fieldname="调入部门" fldid="4" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=4,[Report_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=14,[FieldName]='调入部门',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="577" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">调入部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1786" fieldname="调入部门" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='b9fbd2c9-82ca-4e51-a633-fcfe0c725a60' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='3ddc4162-0b87-4b6a-ae27-b9a45faea480'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'3ddc4162-0b87-4b6a-ae27-b9a45faea480',1786,1786,'00000000-0000-0000-0000-000000000000',15,'调入分公司或项目部',5,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="578" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">调入分公司或项目部  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1786" fieldname="调入分公司或项目部" fldid="5" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=5,[Report_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=15,[FieldName]='调入分公司或项目部',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="578" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">调入分公司或项目部  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1786" fieldname="调入分公司或项目部" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='3ddc4162-0b87-4b6a-ae27-b9a45faea480' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='c5d91e6e-4894-4cba-b138-ff28963fcbc4'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'c5d91e6e-4894-4cba-b138-ff28963fcbc4',1786,1786,'00000000-0000-0000-0000-000000000000',16,'调出部门',6,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="579" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">调出部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1786" fieldname="调出部门" fldid="6" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=6,[Report_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=16,[FieldName]='调出部门',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="579" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">调出部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1786" fieldname="调出部门" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='c5d91e6e-4894-4cba-b138-ff28963fcbc4' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='03f4312a-e393-4acc-a024-a7cda96ae42e'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'03f4312a-e393-4acc-a024-a7cda96ae42e',1786,1786,'00000000-0000-0000-0000-000000000000',17,'调出分公司或项目部',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="580" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">调出分公司或项目部  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1786" fieldname="调出分公司或项目部" fldid="7" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=7,[Report_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=17,[FieldName]='调出分公司或项目部',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="580" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">调出分公司或项目部  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1786" fieldname="调出分公司或项目部" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='03f4312a-e393-4acc-a024-a7cda96ae42e' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='4f395f50-f02d-455b-9db2-eb0a64ecbb47'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'4f395f50-f02d-455b-9db2-eb0a64ecbb47',1786,1786,'00000000-0000-0000-0000-000000000000',18,'原岗位',8,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="581" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="8">原岗位  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1786" fieldname="原岗位" fldid="8" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=8,[Report_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=18,[FieldName]='原岗位',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="581" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="8">原岗位  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1786" fieldname="原岗位" fldid="8" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='4f395f50-f02d-455b-9db2-eb0a64ecbb47' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='7c824107-e419-4e1b-b843-73fd52b02686'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'7c824107-e419-4e1b-b843-73fd52b02686',1786,1786,'00000000-0000-0000-0000-000000000000',19,'新岗位',9,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="582" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="9">新岗位  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1786" fieldname="新岗位" fldid="9" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=9,[Report_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=19,[FieldName]='新岗位',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="582" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="9">新岗位  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1786" fieldname="新岗位" fldid="9" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='7c824107-e419-4e1b-b843-73fd52b02686' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='cfd8f8da-55ae-4a95-ae15-847c729e389c'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'cfd8f8da-55ae-4a95-ae15-847c729e389c',1786,1786,'00000000-0000-0000-0000-000000000000',20,'调动性质',10,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="583" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="10">调动性质  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1786" fieldname="调动性质" fldid="10" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=10,[Report_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=20,[FieldName]='调动性质',[FieldNO]=10,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="583" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="10">调动性质  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1786" fieldname="调动性质" fldid="10" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='cfd8f8da-55ae-4a95-ae15-847c729e389c' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='94f23848-f212-4490-bb7a-1d9b75ac9ae7'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'94f23848-f212-4490-bb7a-1d9b75ac9ae7',1786,1786,'00000000-0000-0000-0000-000000000000',21,'计划调动时间',11,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="584" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="11">计划调动时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1786" fieldname="计划调动时间" fldid="11" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=11,[Report_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=21,[FieldName]='计划调动时间',[FieldNO]=11,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="584" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="11">计划调动时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1786" fieldname="计划调动时间" fldid="11" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='94f23848-f212-4490-bb7a-1d9b75ac9ae7' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='f2ef3dc4-805f-4c9d-a338-ed969cf72213'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(12,'f2ef3dc4-805f-4c9d-a338-ed969cf72213',1786,1786,'00000000-0000-0000-0000-000000000000',22,'借调开始时间',12,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="585" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="12">借调开始时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1786" fieldname="借调开始时间" fldid="12" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=12,[Report_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=22,[FieldName]='借调开始时间',[FieldNO]=12,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="585" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="12">借调开始时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1786" fieldname="借调开始时间" fldid="12" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='f2ef3dc4-805f-4c9d-a338-ed969cf72213' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='4d6096b8-557a-442c-9d29-3b9cf36f1101'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(13,'4d6096b8-557a-442c-9d29-3b9cf36f1101',1786,1786,'00000000-0000-0000-0000-000000000000',23,'借调结束时间',13,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="586" style="height: 38px; width: 792px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="13">借调结束时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1786" fieldname="借调结束时间" fldid="13" columntypeid="1" class="form-ctr">','</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1786" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="591" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="592" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1786" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="593" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1786" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="594" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1786" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="595" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="596" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',-1,-1,-1,-1,0,'1786,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=13,[Report_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=23,[FieldName]='借调结束时间',[FieldNO]=13,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="586" style="height: 38px; width: 792px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="13">借调结束时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1786" fieldname="借调结束时间" fldid="13" columntypeid="1" class="form-ctr">',[LastHtml]='</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1786" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="591" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="592" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1786" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="593" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1786" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="594" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1786" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="595" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="596" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1786,' where  [FldUId]='4d6096b8-557a-442c-9d29-3b9cf36f1101' 
      end



Delete from [Dcx_ListReport_Run]  where [EntId]=1786

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=1786  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('1b3200b2-5e6f-48cc-a284-32985f15f88b','员工调动',1786,1,'','','<$1786$>select *  from (select row_number() over( order by [LD_Id])as dcx_rowid,[调动编号],[WFFlowId],[WFRunId],[WFPrcsId],[员工编号],[员工姓名],[调入部门],[调入分公司或项目部],[调出部门],[调出分公司或项目部],[原岗位],[新岗位],[调动性质],[计划调动时间],[借调开始时间],[借调结束时间],[LD_Id] from 人事_人员调动表  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1786$><$1786:Count$>select count([LD_Id]) from 人事_人员调动表 where {$SearchArea}</$1786:Count$>',1,1,20,'DcxRun.ListR_1786= {"MenuId":3065,"MEntId":1786,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"员工调动","EntMsg":{"E1786":{"EntId":1786,"EntName":"员工调动","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":119,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1786*LD_Id*2**2*人事_人员调动表*员工调动',3,'','2012-12-22 5:16:19',3,'','2013-11-16 20:11:53',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='1b3200b2-5e6f-48cc-a284-32985f15f88b',[ReportName]='员工调动',[ModuleId]=1,[StaticHtml]='',[DIYJsCss]='',[LoadingSql]='<$1786$>select *  from (select row_number() over( order by [LD_Id])as dcx_rowid,[调动编号],[WFFlowId],[WFRunId],[WFPrcsId],[员工编号],[员工姓名],[调入部门],[调入分公司或项目部],[调出部门],[调出分公司或项目部],[原岗位],[新岗位],[调动性质],[计划调动时间],[借调开始时间],[借调结束时间],[LD_Id] from 人事_人员调动表  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1786$><$1786:Count$>select count([LD_Id]) from 人事_人员调动表 where {$SearchArea}</$1786:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[AutoPublicJs]='DcxRun.ListR_1786= {"MenuId":3065,"MEntId":1786,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"员工调动","EntMsg":{"E1786":{"EntId":1786,"EntName":"员工调动","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":119,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1786*LD_Id*2**2*人事_人员调动表*员工调动',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-22 5:16:19',[EditorId]=3,[Editor]='',[EditTime]='2013-11-16 20:11:53',[AccountId]=1 where  [EntId]=1786 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='644acff8-2ca6-3511-1a9a-5c3d28a11a0d'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(466,'644acff8-2ca6-3511-1a9a-5c3d28a11a0d',1786,1786,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="101" entid="1786" style="width: 1610px;" ctrlprex="ListR_" isrple="1"> <li areaid="1989" class="tool-li" style="position: static;">
</li><li areaid="1990" class="tool-li" style="position: static;"><a id="ListR_1786_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1786,''ListR_'');">删   除</a></li>
<li areaid="1991" class="tool-li" style="position: static;"><a id="ListR_1786_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1786,''ListR_'');">导   出</a></li>
<li areaid="1992" class="tool-li" style="position: static;"><a id="ListR_1786_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1786,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1786" style="position: static;">
<a id="ListR_1786_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1786,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1786_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1786,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1786_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1786,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1786_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="102" entid="1786" class="list-head-ul" style="width: 1670px;" ctrlprex="ListR_" isrple="1">
<li areaid="1994" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1786" onclick="javascript:DcxCom.CheckedAll(this,1786,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="1995" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调动编号 </label></li><li areaid="1996" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">员工编号 </label></li><li areaid="1997" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">员工姓名 </label></li><li areaid="1998" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调入部门 </label></li><li areaid="1999" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调入分公司或项目部 </label></li><li areaid="2000" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调出部门 </label></li><li areaid="2001" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调出分公司或项目部 </label></li><li areaid="2002" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">原岗位 </label></li><li areaid="2003" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">新岗位 </label></li><li areaid="2004" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调动性质 </label></li><li areaid="2005" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">计划调动时间 </label></li><li areaid="2006" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">借调开始时间 </label></li><li areaid="2007" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">借调结束时间 </label></li><li areaid="2008" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="办理"><span class="i">办理</span></a></div></li><li areaid="2009" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="2010" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">','',-1,103,-1,-1,1,'1786,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=466,[Report_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="101" entid="1786" style="width: 1610px;" ctrlprex="ListR_" isrple="1"> <li areaid="1989" class="tool-li" style="position: static;">
</li><li areaid="1990" class="tool-li" style="position: static;"><a id="ListR_1786_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1786,''ListR_'');">删   除</a></li>
<li areaid="1991" class="tool-li" style="position: static;"><a id="ListR_1786_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1786,''ListR_'');">导   出</a></li>
<li areaid="1992" class="tool-li" style="position: static;"><a id="ListR_1786_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1786,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1786" style="position: static;">
<a id="ListR_1786_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1786,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1786_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1786,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1786_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1786,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1786_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="102" entid="1786" class="list-head-ul" style="width: 1670px;" ctrlprex="ListR_" isrple="1">
<li areaid="1994" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1786" onclick="javascript:DcxCom.CheckedAll(this,1786,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="1995" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调动编号 </label></li><li areaid="1996" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">员工编号 </label></li><li areaid="1997" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">员工姓名 </label></li><li areaid="1998" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调入部门 </label></li><li areaid="1999" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调入分公司或项目部 </label></li><li areaid="2000" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调出部门 </label></li><li areaid="2001" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调出分公司或项目部 </label></li><li areaid="2002" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">原岗位 </label></li><li areaid="2003" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">新岗位 </label></li><li areaid="2004" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">调动性质 </label></li><li areaid="2005" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">计划调动时间 </label></li><li areaid="2006" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">借调开始时间 </label></li><li areaid="2007" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">借调结束时间 </label></li><li areaid="2008" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="办理"><span class="i">办理</span></a></div></li><li areaid="2009" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="2010" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1786,' where  [FldUId]='644acff8-2ca6-3511-1a9a-5c3d28a11a0d' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='3ec3754d-9e0b-4bb6-b216-3927ee459501'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(154,'3ec3754d-9e0b-4bb6-b216-3927ee459501',1786,1786,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',2,1,'',2,21,0,'','','','islonly="1" isgroup="1" groupid="103" class="list-body-ul" style="width: 1670px;" isrple="1">
<li areaid="2011" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1786" issyscheck="1" keyvalue="','',-1,103,-1,-1,1,'1786,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=154,[Report_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='islonly="1" isgroup="1" groupid="103" class="list-body-ul" style="width: 1670px;" isrple="1">
<li areaid="2011" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1786" issyscheck="1" keyvalue="',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1786,' where  [FldUId]='3ec3754d-9e0b-4bb6-b216-3927ee459501' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='3a009a1a-8154-4da7-8396-c644e10fa0ec'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'3a009a1a-8154-4da7-8396-c644e10fa0ec',1786,1786,'00000000-0000-0000-0000-000000000000',11,'调动编号',3,1,'varchar',2,1,0,'','','','" type="checkbox"></li><li areaid="2012" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1786" fieldname="调动编号" fldid="1" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1786,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=1,[Report_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=11,[FieldName]='调动编号',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='" type="checkbox"></li><li areaid="2012" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1786" fieldname="调动编号" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1786,' where  [FldUId]='3a009a1a-8154-4da7-8396-c644e10fa0ec' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='6b25957a-d1d4-49ce-80d5-b87223b33b91'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(417,'6b25957a-d1d4-49ce-80d5-b87223b33b91',1786,1786,'00000000-0000-0000-0000-000000000000',9,'WFFlowId',4,1,'',1,1,0,'','','','</span>
   <span isfield="1" entid="1786" fieldname="WFFlowId" fldid="417" columntypeid="1" class="form-ctr" style="display: none;">','',-1,103,-1,-1,1,'1786,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=417,[Report_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=9,[FieldName]='WFFlowId',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   <span isfield="1" entid="1786" fieldname="WFFlowId" fldid="417" columntypeid="1" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1786,' where  [FldUId]='6b25957a-d1d4-49ce-80d5-b87223b33b91' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='58b78d6c-e60b-4351-b4ed-6b69c16b81c4'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(418,'58b78d6c-e60b-4351-b4ed-6b69c16b81c4',1786,1786,'00000000-0000-0000-0000-000000000000',8,'WFRunId',5,1,'',1,1,0,'','','','</span>
   <span isfield="1" entid="1786" fieldname="WFRunId" fldid="418" columntypeid="1" class="form-ctr" style="display: none;">','',-1,103,-1,-1,1,'1786,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=418,[Report_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=8,[FieldName]='WFRunId',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   <span isfield="1" entid="1786" fieldname="WFRunId" fldid="418" columntypeid="1" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1786,' where  [FldUId]='58b78d6c-e60b-4351-b4ed-6b69c16b81c4' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='b4dcbe47-7233-40e4-ab1b-96fd9a1dfc56'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(419,'b4dcbe47-7233-40e4-ab1b-96fd9a1dfc56',1786,1786,'00000000-0000-0000-0000-000000000000',10,'WFPrcsId',6,1,'',1,1,0,'','','','</span>
   <span isfield="1" entid="1786" fieldname="WFPrcsId" fldid="419" columntypeid="1" class="form-ctr" style="display: none;">','',-1,103,-1,-1,1,'1786,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=419,[Report_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=10,[FieldName]='WFPrcsId',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   <span isfield="1" entid="1786" fieldname="WFPrcsId" fldid="419" columntypeid="1" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1786,' where  [FldUId]='b4dcbe47-7233-40e4-ab1b-96fd9a1dfc56' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='b8c49041-5ef5-4cac-bf08-1a9f470cb92e'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'b8c49041-5ef5-4cac-bf08-1a9f470cb92e',1786,1786,'00000000-0000-0000-0000-000000000000',12,'员工编号',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2013" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1786" fieldname="员工编号" fldid="2" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1786,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=2,[Report_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=12,[FieldName]='员工编号',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2013" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1786" fieldname="员工编号" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1786,' where  [FldUId]='b8c49041-5ef5-4cac-bf08-1a9f470cb92e' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='0cda8e80-75b1-4367-9244-91c0374e3439'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'0cda8e80-75b1-4367-9244-91c0374e3439',1786,1786,'00000000-0000-0000-0000-000000000000',13,'员工姓名',8,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2014" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1786" fieldname="员工姓名" fldid="3" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1786,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=3,[Report_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=13,[FieldName]='员工姓名',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2014" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1786" fieldname="员工姓名" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1786,' where  [FldUId]='0cda8e80-75b1-4367-9244-91c0374e3439' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='73a69341-237a-4c61-8519-8d6bd8676511'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'73a69341-237a-4c61-8519-8d6bd8676511',1786,1786,'00000000-0000-0000-0000-000000000000',14,'调入部门',9,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2015" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1786" fieldname="调入部门" fldid="4" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1786,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=4,[Report_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=14,[FieldName]='调入部门',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2015" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1786" fieldname="调入部门" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1786,' where  [FldUId]='73a69341-237a-4c61-8519-8d6bd8676511' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='1422d630-dc8d-4d9e-ad1f-41a906d8a1f8'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'1422d630-dc8d-4d9e-ad1f-41a906d8a1f8',1786,1786,'00000000-0000-0000-0000-000000000000',15,'调入分公司或项目部',10,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2016" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1786" fieldname="调入分公司或项目部" fldid="5" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1786,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=5,[Report_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=15,[FieldName]='调入分公司或项目部',[FieldNO]=10,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2016" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1786" fieldname="调入分公司或项目部" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1786,' where  [FldUId]='1422d630-dc8d-4d9e-ad1f-41a906d8a1f8' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='d7731259-899b-4a2c-9f36-07123726f6f4'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'d7731259-899b-4a2c-9f36-07123726f6f4',1786,1786,'00000000-0000-0000-0000-000000000000',16,'调出部门',11,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2017" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1786" fieldname="调出部门" fldid="6" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1786,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=6,[Report_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=16,[FieldName]='调出部门',[FieldNO]=11,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2017" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1786" fieldname="调出部门" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1786,' where  [FldUId]='d7731259-899b-4a2c-9f36-07123726f6f4' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='437db976-5adc-40be-b3b4-f502d4b0f0cb'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'437db976-5adc-40be-b3b4-f502d4b0f0cb',1786,1786,'00000000-0000-0000-0000-000000000000',17,'调出分公司或项目部',12,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2018" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1786" fieldname="调出分公司或项目部" fldid="7" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1786,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=7,[Report_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=17,[FieldName]='调出分公司或项目部',[FieldNO]=12,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2018" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1786" fieldname="调出分公司或项目部" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1786,' where  [FldUId]='437db976-5adc-40be-b3b4-f502d4b0f0cb' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='8c313954-3f38-4ea3-b3fd-3cec53237a68'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'8c313954-3f38-4ea3-b3fd-3cec53237a68',1786,1786,'00000000-0000-0000-0000-000000000000',18,'原岗位',13,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2019" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1786" fieldname="原岗位" fldid="8" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1786,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=8,[Report_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=18,[FieldName]='原岗位',[FieldNO]=13,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2019" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1786" fieldname="原岗位" fldid="8" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1786,' where  [FldUId]='8c313954-3f38-4ea3-b3fd-3cec53237a68' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='f7360ff5-b097-49c4-8b09-7a1c06473735'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'f7360ff5-b097-49c4-8b09-7a1c06473735',1786,1786,'00000000-0000-0000-0000-000000000000',19,'新岗位',14,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2020" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1786" fieldname="新岗位" fldid="9" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1786,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=9,[Report_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=19,[FieldName]='新岗位',[FieldNO]=14,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2020" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1786" fieldname="新岗位" fldid="9" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1786,' where  [FldUId]='f7360ff5-b097-49c4-8b09-7a1c06473735' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='5ad474b3-2a61-4cd9-b536-0f1867416d5e'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'5ad474b3-2a61-4cd9-b536-0f1867416d5e',1786,1786,'00000000-0000-0000-0000-000000000000',20,'调动性质',15,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2021" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1786" fieldname="调动性质" fldid="10" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1786,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=10,[Report_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=20,[FieldName]='调动性质',[FieldNO]=15,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2021" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1786" fieldname="调动性质" fldid="10" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1786,' where  [FldUId]='5ad474b3-2a61-4cd9-b536-0f1867416d5e' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='2aaaee62-a1b7-4c9c-8223-10f3a68e8007'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'2aaaee62-a1b7-4c9c-8223-10f3a68e8007',1786,1786,'00000000-0000-0000-0000-000000000000',21,'计划调动时间',16,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2022" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1786" fieldname="计划调动时间" fldid="11" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1786,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=11,[Report_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=21,[FieldName]='计划调动时间',[FieldNO]=16,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2022" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1786" fieldname="计划调动时间" fldid="11" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1786,' where  [FldUId]='2aaaee62-a1b7-4c9c-8223-10f3a68e8007' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='cffa11bb-808b-4d48-b2ee-c99a6cad1295'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(12,'cffa11bb-808b-4d48-b2ee-c99a6cad1295',1786,1786,'00000000-0000-0000-0000-000000000000',22,'借调开始时间',17,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2023" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1786" fieldname="借调开始时间" fldid="12" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1786,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=12,[Report_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=22,[FieldName]='借调开始时间',[FieldNO]=17,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2023" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1786" fieldname="借调开始时间" fldid="12" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1786,' where  [FldUId]='cffa11bb-808b-4d48-b2ee-c99a6cad1295' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='08ba82e8-7d04-4ac8-9b58-a01ecdca7156'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(13,'08ba82e8-7d04-4ac8-9b58-a01ecdca7156',1786,1786,'00000000-0000-0000-0000-000000000000',23,'借调结束时间',18,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2024" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1786" fieldname="借调结束时间" fldid="13" columntypeid="1" class="form-ctr">','',-1,103,-1,-1,1,'1786,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=13,[Report_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=23,[FieldName]='借调结束时间',[FieldNO]=18,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2024" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1786" fieldname="借调结束时间" fldid="13" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1786,' where  [FldUId]='08ba82e8-7d04-4ac8-9b58-a01ecdca7156' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='9693b827-958a-4103-ac6c-6ed691c3825e'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(155,'9693b827-958a-4103-ac6c-6ed691c3825e',1786,1786,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',19,1,'',2,21,0,'','','','</span>
  </div>
</li><li areaid="2025" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,1786,''ListR_'',''','',-1,103,-1,-1,1,'1786,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=155,[Report_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=19,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2025" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,1786,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1786,' where  [FldUId]='9693b827-958a-4103-ac6c-6ed691c3825e' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='ff8f872c-b20e-41f9-9289-7ec40540289f'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(156,'ff8f872c-b20e-41f9-9289-7ec40540289f',1786,1786,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',20,1,'',2,21,0,'','','',''',null,1040,480);">
<span class="i">办理</span></a></div>
</li><li areaid="2026" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1786,''ListR_'',''','',-1,103,-1,-1,1,'1786,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=156,[Report_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=20,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">办理</span></a></div>
</li><li areaid="2026" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1786,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1786,' where  [FldUId]='ff8f872c-b20e-41f9-9289-7ec40540289f' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='1d001513-9a8d-47f1-b5c0-9434a8f4e9ba'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(157,'1d001513-9a8d-47f1-b5c0-9434a8f4e9ba',1786,1786,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',21,1,'',2,21,0,'','','',''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="2027" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,1786,''ListR_'',''','',-1,103,-1,-1,1,'1786,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=157,[Report_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=21,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="2027" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,1786,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1786,' where  [FldUId]='1d001513-9a8d-47f1-b5c0-9434a8f4e9ba' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='61908b23-e4c8-edf9-849c-6f5606967396'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(467,'61908b23-e4c8-edf9-849c-6f5606967396',1786,1786,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',22,-1,'varchar',2,13,0,'','','',''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>','</div>
</div>
<!-- 结束 --></div>',-1,103,-1,-1,1,'1786,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=467,[Report_EntId]=1786,[EntId]=1786,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=22,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>',[LastHtml]='</div>
</div>
<!-- 结束 --></div>',[RowIndex]=-1,[TableIndex]=103,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1786,' where  [FldUId]='61908b23-e4c8-edf9-849c-6f5606967396' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=1026

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=1026  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(1026,null,'人事_人员调动表','人事_人员调动表',0,0,0,0,0,1,4,1,3,'admin','2013-12-15 17:32:51',3,'admin','2013-12-15 17:32:51',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='人事_人员调动表',[DBTableByName]='人事_人员调动表',[IsForbid]=0,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=1,[SystemId]=4,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:51',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:51',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=1026 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7011,1,4,1026,'int',1,1,1,'人事_人员调动表','LD_Id','LD_Id','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='LD_Id',[FieldByname]='LD_Id',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7012,2,4,1026,'varchar',2,1,1,'人事_人员调动表','WFState','WFState','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='WFState',[FieldByname]='WFState',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7013,3,4,1026,'varchar',2,1,1,'人事_人员调动表','WFUserName','WFUserName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='WFUserName',[FieldByname]='WFUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7014,4,4,1026,'bit',4,1,1,'人事_人员调动表','WFIsFinish','WFIsFinish','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='WFIsFinish',[FieldByname]='WFIsFinish',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7015,5,4,1026,'bit',4,1,1,'人事_人员调动表','WFIsStart','WFIsStart','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='WFIsStart',[FieldByname]='WFIsStart',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7016,6,4,1026,'varchar',2,1,1,'人事_人员调动表','WFAllUser','WFAllUser','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='WFAllUser',[FieldByname]='WFAllUser',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7017,7,4,1026,'varchar',2,1,1,'人事_人员调动表','WFOpinion','WFOpinion','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='WFOpinion',[FieldByname]='WFOpinion',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7018,8,4,1026,'int',1,1,1,'人事_人员调动表','WFRunId','WFRunId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='WFRunId',[FieldByname]='WFRunId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7019,9,4,1026,'int',1,1,1,'人事_人员调动表','WFFlowId','WFFlowId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='WFFlowId',[FieldByname]='WFFlowId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7020,10,4,1026,'int',1,1,1,'人事_人员调动表','WFPrcsId','WFPrcsId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='WFPrcsId',[FieldByname]='WFPrcsId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7021,11,4,1026,'varchar',2,1,1,'人事_人员调动表','调动编号','调动编号','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='调动编号',[FieldByname]='调动编号',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7022,12,4,1026,'varchar',2,1,1,'人事_人员调动表','员工编号','员工编号','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='员工编号',[FieldByname]='员工编号',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7023,13,4,1026,'varchar',2,1,1,'人事_人员调动表','员工姓名','员工姓名','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='员工姓名',[FieldByname]='员工姓名',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7024,14,4,1026,'varchar',2,1,1,'人事_人员调动表','调入部门','调入部门','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='调入部门',[FieldByname]='调入部门',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7025,15,4,1026,'varchar',2,1,1,'人事_人员调动表','调入分公司或项目部','调入分公司或项目部','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='调入分公司或项目部',[FieldByname]='调入分公司或项目部',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7026,16,4,1026,'varchar',2,1,1,'人事_人员调动表','调出部门','调出部门','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='调出部门',[FieldByname]='调出部门',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7027,17,4,1026,'varchar',2,1,1,'人事_人员调动表','调出分公司或项目部','调出分公司或项目部','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='调出分公司或项目部',[FieldByname]='调出分公司或项目部',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7028,18,4,1026,'varchar',2,1,1,'人事_人员调动表','原岗位','原岗位','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='原岗位',[FieldByname]='原岗位',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7029,19,4,1026,'varchar',2,1,1,'人事_人员调动表','新岗位','新岗位','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='新岗位',[FieldByname]='新岗位',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7030,20,4,1026,'varchar',2,1,1,'人事_人员调动表','调动性质','调动性质','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='调动性质',[FieldByname]='调动性质',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7031,21,4,1026,'varchar',2,1,1,'人事_人员调动表','计划调动时间','计划调动时间','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='计划调动时间',[FieldByname]='计划调动时间',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7032,22,4,1026,'varchar',2,1,1,'人事_人员调动表','借调开始时间','借调开始时间','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='借调开始时间',[FieldByname]='借调开始时间',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7033,23,4,1026,'varchar',2,1,1,'人事_人员调动表','借调结束时间','借调结束时间','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='借调结束时间',[FieldByname]='借调结束时间',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7034,24,4,1026,'varchar',2,1,1,'人事_人员调动表','原工资级别','原工资级别','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='原工资级别',[FieldByname]='原工资级别',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7035,25,4,1026,'varchar',2,1,1,'人事_人员调动表','原基本工资','原基本工资','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='原基本工资',[FieldByname]='原基本工资',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7036,26,4,1026,'varchar',2,1,1,'人事_人员调动表','原月考核工资','原月考核工资','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='原月考核工资',[FieldByname]='原月考核工资',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=26 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=27  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7037,27,4,1026,'varchar',2,1,1,'人事_人员调动表','原月工资合计','原月工资合计','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='原月工资合计',[FieldByname]='原月工资合计',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=27 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=28  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7038,28,4,1026,'varchar',2,1,1,'人事_人员调动表','原年度考核工资','原年度考核工资','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='原年度考核工资',[FieldByname]='原年度考核工资',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=28 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=29  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7039,29,4,1026,'varchar',2,1,1,'人事_人员调动表','原年薪合计','原年薪合计','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='原年薪合计',[FieldByname]='原年薪合计',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=29 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=30  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7040,30,4,1026,'varchar',2,1,1,'人事_人员调动表','原工龄工资','原工龄工资','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='原工龄工资',[FieldByname]='原工龄工资',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=30 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=31  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7041,31,4,1026,'varchar',2,1,1,'人事_人员调动表','原电脑补贴','原电脑补贴','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='原电脑补贴',[FieldByname]='原电脑补贴',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=31 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=32  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7042,32,4,1026,'varchar',2,1,1,'人事_人员调动表','原地区差补贴','原地区差补贴','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='原地区差补贴',[FieldByname]='原地区差补贴',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=32 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=33  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7043,33,4,1026,'varchar',2,1,1,'人事_人员调动表','原电话费','原电话费','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='原电话费',[FieldByname]='原电话费',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=33 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=34  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7044,34,4,1026,'varchar',2,1,1,'人事_人员调动表','原交通费','原交通费','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='原交通费',[FieldByname]='原交通费',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=34 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=35  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7045,35,4,1026,'varchar',2,1,1,'人事_人员调动表','原社保','原社保','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='原社保',[FieldByname]='原社保',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=35 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=36  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7046,36,4,1026,'varchar',2,1,1,'人事_人员调动表','原意外保险','原意外保险','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='原意外保险',[FieldByname]='原意外保险',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=36 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=37  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7047,37,4,1026,'varchar',2,1,1,'人事_人员调动表','调后工资级别','调后工资级别','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='调后工资级别',[FieldByname]='调后工资级别',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=37 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=38  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7048,38,4,1026,'varchar',2,1,1,'人事_人员调动表','调后基本工资','调后基本工资','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='调后基本工资',[FieldByname]='调后基本工资',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=38 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=39  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7049,39,4,1026,'varchar',2,1,1,'人事_人员调动表','调后月考核工资','调后月考核工资','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='调后月考核工资',[FieldByname]='调后月考核工资',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=39 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=40  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7050,40,4,1026,'varchar',2,1,1,'人事_人员调动表','调后月工资合计','调后月工资合计','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='调后月工资合计',[FieldByname]='调后月工资合计',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=40 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=41  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7051,41,4,1026,'varchar',2,1,1,'人事_人员调动表','调后年度考核工资','调后年度考核工资','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='调后年度考核工资',[FieldByname]='调后年度考核工资',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=41 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=42  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7052,42,4,1026,'varchar',2,1,1,'人事_人员调动表','调后年薪合计','调后年薪合计','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='调后年薪合计',[FieldByname]='调后年薪合计',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=42 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=43  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7053,43,4,1026,'varchar',2,1,1,'人事_人员调动表','调后工龄工资','调后工龄工资','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='调后工龄工资',[FieldByname]='调后工龄工资',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=43 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=44  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7054,44,4,1026,'varchar',2,1,1,'人事_人员调动表','调后电脑补贴','调后电脑补贴','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='调后电脑补贴',[FieldByname]='调后电脑补贴',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=44 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=45  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7055,45,4,1026,'varchar',2,1,1,'人事_人员调动表','调后地区差补贴','调后地区差补贴','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='调后地区差补贴',[FieldByname]='调后地区差补贴',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=45 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=46  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7056,46,4,1026,'varchar',2,1,1,'人事_人员调动表','调后电话费','调后电话费','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='调后电话费',[FieldByname]='调后电话费',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=46 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=47  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7057,47,4,1026,'varchar',2,1,1,'人事_人员调动表','调后交通费','调后交通费','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='调后交通费',[FieldByname]='调后交通费',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=47 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=48  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7058,48,4,1026,'varchar',2,1,1,'人事_人员调动表','调后社保','调后社保','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='调后社保',[FieldByname]='调后社保',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=48 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=49  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7059,49,4,1026,'varchar',2,1,1,'人事_人员调动表','调后意外保险','调后意外保险','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='调后意外保险',[FieldByname]='调后意外保险',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=49 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=50  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7060,50,4,1026,'varchar',2,1,1,'人事_人员调动表','调入部门意见','调入部门意见','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='调入部门意见',[FieldByname]='调入部门意见',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=50 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=51  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7061,51,4,1026,'varchar',2,1,1,'人事_人员调动表','调出部门意见','调出部门意见','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='调出部门意见',[FieldByname]='调出部门意见',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=51 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=52  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7062,52,4,1026,'varchar',2,1,1,'人事_人员调动表','调入分公司意见','调入分公司意见','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='调入分公司意见',[FieldByname]='调入分公司意见',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=52 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=53  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7063,53,4,1026,'varchar',2,1,1,'人事_人员调动表','调出分公司意见','调出分公司意见','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='调出分公司意见',[FieldByname]='调出分公司意见',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=53 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=54  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7064,54,4,1026,'varchar',2,1,1,'人事_人员调动表','生产管理部意见','生产管理部意见','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='生产管理部意见',[FieldByname]='生产管理部意见',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=54 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=55  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7065,55,4,1026,'varchar',2,1,1,'人事_人员调动表','董事长或总经理意见','董事长或总经理意见','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='董事长或总经理意见',[FieldByname]='董事长或总经理意见',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=55 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1026  and  [FieldId]=56  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(7066,56,4,1026,'varchar',2,1,1,'人事_人员调动表','登记时间','登记时间','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='人事_人员调动表',[FieldName]='登记时间',[FieldByname]='登记时间',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1026  and  [FieldId]=56 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--WF_FlowType

     SET IDENTITY_INSERT [WF_FlowType] ON 
      if (select count(1) from [WF_FlowType] where  [FlowId]=119  )<1 
      begin 
           Insert into [WF_FlowType] ([FlowId],[FlowName],[FlowNo],[SortId],[EntId],[EntName],[AutoName],[ManageUsers],[ManageNames],[QueryUsers],[QueryNames],[CanQueryRoles],[CanQueryRolesId],[CanManageRoles],[CanManageRolesId],[CanStartUsers],[CanStartNames],[CanStartRoles],[CanStartRolesId],[AttachMaxSize],[FlowAttach],[IsPigeonhole],[PigeonholedSQL],[IsFreeFlow],[QueryItem],[LaunchIsOpen],[FormUrl],[BrowseUrl],[ListUrl],[Detail],[CreatorId],[Creator],[CreateTime],[EditTime],[Editor],[EditorId],[AccountId])values(119,'人员调动申请',0,25,1786,'员工调动',null,'admin','admin','admin','admin','系统管理员','3','系统管理员','3',null,null,'Public','1',0,1,0,'',null,null,null,null,null,null,'',0,'admin','2013-11-30 1:06:40',null,null,null,1)
      end
      else 
      begin 
           update [WF_FlowType] set [FlowName]='人员调动申请',[FlowNo]=0,[SortId]=25,[EntId]=1786,[EntName]='员工调动',[AutoName]=null,[ManageUsers]='admin',[ManageNames]='admin',[QueryUsers]='admin',[QueryNames]='admin',[CanQueryRoles]='系统管理员',[CanQueryRolesId]='3',[CanManageRoles]='系统管理员',[CanManageRolesId]='3',[CanStartUsers]=null,[CanStartNames]=null,[CanStartRoles]='Public',[CanStartRolesId]='1',[AttachMaxSize]=0,[FlowAttach]=1,[IsPigeonhole]=0,[PigeonholedSQL]='',[IsFreeFlow]=null,[QueryItem]=null,[LaunchIsOpen]=null,[FormUrl]=null,[BrowseUrl]=null,[ListUrl]=null,[Detail]='',[CreatorId]=0,[Creator]='admin',[CreateTime]='2013-11-30 1:06:40',[EditTime]=null,[Editor]=null,[EditorId]=null,[AccountId]=1 where  [FlowId]=119 
      end

     SET IDENTITY_INSERT [WF_FlowType] OFF 



Delete from [WF_FlowNode]  where isnull([FlowId],0)=119 

--WF_FlowNode

     SET IDENTITY_INSERT [WF_FlowNode] ON 
      if (select count(1) from [WF_FlowNode] where  [NodeId]=644  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(644,119,'发起调动申请',1,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','645',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',null,null,0,0,null,null,null,null,null,null,null,null,null,null,null,null,null,'4123,4124,4125,4126,4127,4128,4129,4130,4131,4132,4133,4134,4135,4136,4137,4138,4139,4140,4141,4142,4143,4144,4145,4146,4147,4148,4168',null,null,null,null,null,null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=119,[NodeName]='发起调动申请',[Step]=1,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='645',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]=null,[TriggerAfter]=null,[CanReject]=0,[CanPigeonhole]=0,[PigeonholedSQL]=null,[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='4123,4124,4125,4126,4127,4128,4129,4130,4131,4132,4133,4134,4135,4136,4137,4138,4139,4140,4141,4142,4143,4144,4145,4146,4147,4148,4168',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]=null,[PositionDeptNames]=null,[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=644 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=645  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(645,119,'调出部门审批',2,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','646',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',null,null,0,0,null,null,null,null,null,null,null,null,null,null,null,null,null,'4163',null,null,null,null,null,null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=119,[NodeName]='调出部门审批',[Step]=2,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='646',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]=null,[TriggerAfter]=null,[CanReject]=0,[CanPigeonhole]=0,[PigeonholedSQL]=null,[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='4163',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]=null,[PositionDeptNames]=null,[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=645 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=646  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(646,119,'调出分公司审批',3,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','647',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',null,null,0,0,null,null,null,null,null,null,null,null,null,null,null,null,null,'4165',null,null,null,null,null,null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=119,[NodeName]='调出分公司审批',[Step]=3,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='647',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]=null,[TriggerAfter]=null,[CanReject]=0,[CanPigeonhole]=0,[PigeonholedSQL]=null,[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='4165',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]=null,[PositionDeptNames]=null,[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=646 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=647  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(647,119,'调入部门审批',4,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','648',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',null,null,0,0,null,null,null,null,null,null,null,null,null,null,null,null,null,'4162,4149,4150,4151,4152,4153,4154,4155,4156,4157,4158,4159,4160,4161',null,null,null,null,null,null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=119,[NodeName]='调入部门审批',[Step]=4,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='648',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]=null,[TriggerAfter]=null,[CanReject]=0,[CanPigeonhole]=0,[PigeonholedSQL]=null,[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='4162,4149,4150,4151,4152,4153,4154,4155,4156,4157,4158,4159,4160,4161',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]=null,[PositionDeptNames]=null,[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=647 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=648  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(648,119,'调入分公司审批',5,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','649',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',null,null,0,0,null,null,null,null,null,null,null,null,null,null,null,null,null,'4164',null,null,null,null,null,null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=119,[NodeName]='调入分公司审批',[Step]=5,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='649',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]=null,[TriggerAfter]=null,[CanReject]=0,[CanPigeonhole]=0,[PigeonholedSQL]=null,[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='4164',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]=null,[PositionDeptNames]=null,[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=648 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=649  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(649,119,'生产管理部审批',6,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','650,651',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','<$462:Begin$>
		--流出到<通知发起人>节点时 

		
Update   工资_员工档案  Set   [所在部门]= @调入部门  where  工资_员工档案.[员工编号] = @员工编号

		</$462:End$>',0,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'4166',null,null,null,null,null,null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=119,[NodeName]='生产管理部审批',[Step]=6,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='650,651',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='<$462:Begin$>
		--流出到<通知发起人>节点时 

		
Update   工资_员工档案  Set   [所在部门]= @调入部门  where  工资_员工档案.[员工编号] = @员工编号

		</$462:End$>',[CanReject]=0,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='4166',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]=null,[PositionDeptNames]=null,[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=649 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=650  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(650,119,'总经理室审批',7,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','651',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','<$462:Begin$>
		--流出到<通知发起人>节点时 

		
Update   工资_员工档案  Set   [所在部门]= @调入部门  where  工资_员工档案.[员工编号] = @员工编号

		</$462:End$>',0,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'4167',null,null,null,null,null,null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=119,[NodeName]='总经理室审批',[Step]=7,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='651',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='<$462:Begin$>
		--流出到<通知发起人>节点时 

		
Update   工资_员工档案  Set   [所在部门]= @调入部门  where  工资_员工档案.[员工编号] = @员工编号

		</$462:End$>',[CanReject]=0,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='4167',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]=null,[PositionDeptNames]=null,[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=650 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=651  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(651,119,'通知发起人',8,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','-1',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',null,null,0,0,null,null,null,null,null,null,null,null,null,null,null,null,null,'',null,null,null,null,null,null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=119,[NodeName]='通知发起人',[Step]=8,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='-1',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]=null,[TriggerAfter]=null,[CanReject]=0,[CanPigeonhole]=0,[PigeonholedSQL]=null,[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]=null,[PositionDeptNames]=null,[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=651 
      end

     SET IDENTITY_INSERT [WF_FlowNode] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=2797  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2797,119,644,1786,'员工调动',4123,'调动编号','调动编号','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=644,[EntId]=1786,[EntName]='员工调动',[FldId]=4123,[FieldName]='调动编号',[CtrlByName]='调动编号',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2797 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2798  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2798,119,644,1786,'员工调动',4124,'员工编号','员工编号','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=644,[EntId]=1786,[EntName]='员工调动',[FldId]=4124,[FieldName]='员工编号',[CtrlByName]='员工编号',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2798 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2799  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2799,119,644,1786,'员工调动',4125,'员工姓名','员工姓名','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=644,[EntId]=1786,[EntName]='员工调动',[FldId]=4125,[FieldName]='员工姓名',[CtrlByName]='员工姓名',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2799 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2800  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2800,119,644,1786,'员工调动',4126,'调入部门','调入部门','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=644,[EntId]=1786,[EntName]='员工调动',[FldId]=4126,[FieldName]='调入部门',[CtrlByName]='调入部门',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2800 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2801  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2801,119,644,1786,'员工调动',4127,'调入分公司或项目部','调入分公司或项目部','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=644,[EntId]=1786,[EntName]='员工调动',[FldId]=4127,[FieldName]='调入分公司或项目部',[CtrlByName]='调入分公司或项目部',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2801 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2802  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2802,119,644,1786,'员工调动',4128,'调出部门','调出部门','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=644,[EntId]=1786,[EntName]='员工调动',[FldId]=4128,[FieldName]='调出部门',[CtrlByName]='调出部门',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2802 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2803  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2803,119,644,1786,'员工调动',4129,'调出分公司或项目部','调出分公司或项目部','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=644,[EntId]=1786,[EntName]='员工调动',[FldId]=4129,[FieldName]='调出分公司或项目部',[CtrlByName]='调出分公司或项目部',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2803 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2804  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2804,119,644,1786,'员工调动',4130,'原岗位','原岗位','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=644,[EntId]=1786,[EntName]='员工调动',[FldId]=4130,[FieldName]='原岗位',[CtrlByName]='原岗位',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2804 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2805  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2805,119,644,1786,'员工调动',4131,'新岗位','新岗位','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=644,[EntId]=1786,[EntName]='员工调动',[FldId]=4131,[FieldName]='新岗位',[CtrlByName]='新岗位',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2805 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2806  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2806,119,644,1786,'员工调动',4132,'调动性质','调动性质','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=644,[EntId]=1786,[EntName]='员工调动',[FldId]=4132,[FieldName]='调动性质',[CtrlByName]='调动性质',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2806 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2807  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2807,119,644,1786,'员工调动',4133,'计划调动时间','计划调动时间','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=644,[EntId]=1786,[EntName]='员工调动',[FldId]=4133,[FieldName]='计划调动时间',[CtrlByName]='计划调动时间',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2807 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2808  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2808,119,644,1786,'员工调动',4134,'借调开始时间','借调开始时间','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=644,[EntId]=1786,[EntName]='员工调动',[FldId]=4134,[FieldName]='借调开始时间',[CtrlByName]='借调开始时间',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2808 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2809  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2809,119,644,1786,'员工调动',4135,'借调结束时间','借调结束时间','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=644,[EntId]=1786,[EntName]='员工调动',[FldId]=4135,[FieldName]='借调结束时间',[CtrlByName]='借调结束时间',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2809 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2810  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2810,119,644,1786,'员工调动',4136,'原工资级别','原工资级别','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=644,[EntId]=1786,[EntName]='员工调动',[FldId]=4136,[FieldName]='原工资级别',[CtrlByName]='原工资级别',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2810 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2811  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2811,119,644,1786,'员工调动',4137,'原基本工资','原基本工资','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=644,[EntId]=1786,[EntName]='员工调动',[FldId]=4137,[FieldName]='原基本工资',[CtrlByName]='原基本工资',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2811 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2812  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2812,119,644,1786,'员工调动',4138,'原月考核工资','原月考核工资','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=644,[EntId]=1786,[EntName]='员工调动',[FldId]=4138,[FieldName]='原月考核工资',[CtrlByName]='原月考核工资',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2812 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2813  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2813,119,644,1786,'员工调动',4139,'原月工资合计','原月工资合计','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=644,[EntId]=1786,[EntName]='员工调动',[FldId]=4139,[FieldName]='原月工资合计',[CtrlByName]='原月工资合计',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2813 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2814  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2814,119,644,1786,'员工调动',4140,'原年度考核工资','原年度考核工资','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=644,[EntId]=1786,[EntName]='员工调动',[FldId]=4140,[FieldName]='原年度考核工资',[CtrlByName]='原年度考核工资',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2814 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2815  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2815,119,644,1786,'员工调动',4141,'原年薪合计','原年薪合计','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=644,[EntId]=1786,[EntName]='员工调动',[FldId]=4141,[FieldName]='原年薪合计',[CtrlByName]='原年薪合计',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2815 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2816  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2816,119,644,1786,'员工调动',4142,'原工龄工资','原工龄工资','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=644,[EntId]=1786,[EntName]='员工调动',[FldId]=4142,[FieldName]='原工龄工资',[CtrlByName]='原工龄工资',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2816 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2817  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2817,119,644,1786,'员工调动',4143,'原电脑补贴','原电脑补贴','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=644,[EntId]=1786,[EntName]='员工调动',[FldId]=4143,[FieldName]='原电脑补贴',[CtrlByName]='原电脑补贴',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2817 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2818  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2818,119,644,1786,'员工调动',4144,'原地区差补贴','原地区差补贴','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=644,[EntId]=1786,[EntName]='员工调动',[FldId]=4144,[FieldName]='原地区差补贴',[CtrlByName]='原地区差补贴',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2818 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2819  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2819,119,644,1786,'员工调动',4145,'原电话费','原电话费','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=644,[EntId]=1786,[EntName]='员工调动',[FldId]=4145,[FieldName]='原电话费',[CtrlByName]='原电话费',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2819 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2820  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2820,119,644,1786,'员工调动',4146,'原交通费','原交通费','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=644,[EntId]=1786,[EntName]='员工调动',[FldId]=4146,[FieldName]='原交通费',[CtrlByName]='原交通费',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2820 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2821  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2821,119,644,1786,'员工调动',4147,'原社保','原社保','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=644,[EntId]=1786,[EntName]='员工调动',[FldId]=4147,[FieldName]='原社保',[CtrlByName]='原社保',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2821 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2822  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2822,119,644,1786,'员工调动',4148,'原意外保险','原意外保险','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=644,[EntId]=1786,[EntName]='员工调动',[FldId]=4148,[FieldName]='原意外保险',[CtrlByName]='原意外保险',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2822 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2823  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2823,119,644,1786,'员工调动',4168,'登记时间','登记时间','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=644,[EntId]=1786,[EntName]='员工调动',[FldId]=4168,[FieldName]='登记时间',[CtrlByName]='登记时间',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2823 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=2652  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2652,119,645,1786,'员工调动',4163,'调出部门意见','调出部门意见','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=645,[EntId]=1786,[EntName]='员工调动',[FldId]=4163,[FieldName]='调出部门意见',[CtrlByName]='调出部门意见',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2652 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=2653  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2653,119,646,1786,'员工调动',4165,'调出分公司意见','调出分公司意见','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=646,[EntId]=1786,[EntName]='员工调动',[FldId]=4165,[FieldName]='调出分公司意见',[CtrlByName]='调出分公司意见',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2653 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=2824  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2824,119,647,1786,'员工调动',4162,'调入部门意见','调入部门意见','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=647,[EntId]=1786,[EntName]='员工调动',[FldId]=4162,[FieldName]='调入部门意见',[CtrlByName]='调入部门意见',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2824 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2825  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2825,119,647,1786,'员工调动',4149,'调后工资级别','调后工资级别','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=647,[EntId]=1786,[EntName]='员工调动',[FldId]=4149,[FieldName]='调后工资级别',[CtrlByName]='调后工资级别',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2825 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2826  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2826,119,647,1786,'员工调动',4150,'调后基本工资','调后基本工资','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=647,[EntId]=1786,[EntName]='员工调动',[FldId]=4150,[FieldName]='调后基本工资',[CtrlByName]='调后基本工资',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2826 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2827  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2827,119,647,1786,'员工调动',4151,'调后月考核工资','调后月考核工资','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=647,[EntId]=1786,[EntName]='员工调动',[FldId]=4151,[FieldName]='调后月考核工资',[CtrlByName]='调后月考核工资',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2827 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2828  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2828,119,647,1786,'员工调动',4152,'调后月工资合计','调后月工资合计','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=647,[EntId]=1786,[EntName]='员工调动',[FldId]=4152,[FieldName]='调后月工资合计',[CtrlByName]='调后月工资合计',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2828 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2829  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2829,119,647,1786,'员工调动',4153,'调后年度考核工资','调后年度考核工资','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=647,[EntId]=1786,[EntName]='员工调动',[FldId]=4153,[FieldName]='调后年度考核工资',[CtrlByName]='调后年度考核工资',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2829 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2830  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2830,119,647,1786,'员工调动',4154,'调后年薪合计','调后年薪合计','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=647,[EntId]=1786,[EntName]='员工调动',[FldId]=4154,[FieldName]='调后年薪合计',[CtrlByName]='调后年薪合计',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2830 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2831  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2831,119,647,1786,'员工调动',4155,'调后工龄工资','调后工龄工资','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=647,[EntId]=1786,[EntName]='员工调动',[FldId]=4155,[FieldName]='调后工龄工资',[CtrlByName]='调后工龄工资',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2831 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2832  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2832,119,647,1786,'员工调动',4156,'调后电脑补贴','调后电脑补贴','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=647,[EntId]=1786,[EntName]='员工调动',[FldId]=4156,[FieldName]='调后电脑补贴',[CtrlByName]='调后电脑补贴',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2832 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2833  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2833,119,647,1786,'员工调动',4157,'调后地区差补贴','调后地区差补贴','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=647,[EntId]=1786,[EntName]='员工调动',[FldId]=4157,[FieldName]='调后地区差补贴',[CtrlByName]='调后地区差补贴',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2833 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2834  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2834,119,647,1786,'员工调动',4158,'调后电话费','调后电话费','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=647,[EntId]=1786,[EntName]='员工调动',[FldId]=4158,[FieldName]='调后电话费',[CtrlByName]='调后电话费',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2834 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2835  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2835,119,647,1786,'员工调动',4159,'调后交通费','调后交通费','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=647,[EntId]=1786,[EntName]='员工调动',[FldId]=4159,[FieldName]='调后交通费',[CtrlByName]='调后交通费',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2835 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2836  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2836,119,647,1786,'员工调动',4160,'调后社保','调后社保','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=647,[EntId]=1786,[EntName]='员工调动',[FldId]=4160,[FieldName]='调后社保',[CtrlByName]='调后社保',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2836 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2837  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2837,119,647,1786,'员工调动',4161,'调后意外保险','调后意外保险','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=647,[EntId]=1786,[EntName]='员工调动',[FldId]=4161,[FieldName]='调后意外保险',[CtrlByName]='调后意外保险',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2837 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=2655  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2655,119,648,1786,'员工调动',4164,'调入分公司意见','调入分公司意见','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=648,[EntId]=1786,[EntName]='员工调动',[FldId]=4164,[FieldName]='调入分公司意见',[CtrlByName]='调入分公司意见',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2655 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=2656  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2656,119,649,1786,'员工调动',4166,'生产管理部意见','生产管理部意见','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=649,[EntId]=1786,[EntName]='员工调动',[FldId]=4166,[FieldName]='生产管理部意见',[CtrlByName]='生产管理部意见',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2656 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=2657  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2657,119,650,1786,'员工调动',4167,'董事长或总经理意见','董事长或总经理意见','人事_人员调动审批',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=119,[NodeId]=650,[EntId]=1786,[EntName]='员工调动',[FldId]=4167,[FieldName]='董事长或总经理意见',[CtrlByName]='董事长或总经理意见',[FlowName]='人事_人员调动审批',[TypeId]=1 where  [Id]=2657 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=3417  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(3417,'678342df-c5dc-4096-8a92-e3017717f999','协同OA标准版',0,'',1,'/images/default.gif','/images/default.gif',2,'',0,0,'',58,0,58,0,1,1,null,null,0,0,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='678342df-c5dc-4096-8a92-e3017717f999',[MenuName]='协同OA标准版',[ParentId]=0,[ProPath]='',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=2,[Target]='',[IsOpen]=0,[IsHidden]=0,[Remark]='',[SSystemId]=58,[SMenuId]=0,[SystemId]=58,[EntityCount]=0,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[CreatorId]=0,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=3417 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3417  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(1029,3417,'协同OA标准版',null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='协同OA标准版',[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3417  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=3419  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(3419,'4806d68f-ff74-4807-9dfa-5b6e02a1e4c3','表单数据',3417,'',1,'/images/default.gif','/images/default.gif',2,'',0,0,'',58,0,58,0,1,1,null,null,0,0,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='4806d68f-ff74-4807-9dfa-5b6e02a1e4c3',[MenuName]='表单数据',[ParentId]=3417,[ProPath]='',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=2,[Target]='',[IsOpen]=0,[IsHidden]=0,[Remark]='',[SSystemId]=58,[SMenuId]=0,[SystemId]=58,[EntityCount]=0,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[CreatorId]=0,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=3419 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3419  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(1032,3419,'人事管理','Public',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='人事管理',[RoleName]='Public',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3419  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 



 update [Dcx_Menu_Run] set [MenuName]='请假申请',[ParentId]=3419,[OrderBy]=1  where [MenuId]=3056 
 update [Dcx_Menu_Run] set [MenuName]='出差申请',[ParentId]=3419,[OrderBy]=2  where [MenuId]=2898 
 update [Dcx_Menu_Run] set [MenuName]='差旅费用报销',[ParentId]=3419,[OrderBy]=3  where [MenuId]=2900 
 update [Dcx_Menu_Run] set [MenuName]='转正申请',[ParentId]=3419,[OrderBy]=4  where [MenuId]=3059 
 update [Dcx_Menu_Run] set [MenuName]='员工调动',[ParentId]=3419,[OrderBy]=5  where [MenuId]=3065 
 update [Dcx_Menu_Run] set [MenuName]='离职申请',[ParentId]=3419,[OrderBy]=6  where [MenuId]=2832 
 update [Dcx_Menu_Run] set [MenuName]='调薪申请',[ParentId]=3419,[OrderBy]=7  where [MenuId]=2833 
 update [Dcx_Menu_Run] set [MenuName]='晋升申请',[ParentId]=3419,[OrderBy]=8  where [MenuId]=2837 
 update [Dcx_Menu_Run] set [MenuName]='调动申请',[ParentId]=3419,[OrderBy]=9  where [MenuId]=2831 
 update [Dcx_Menu_Run] set [MenuName]='加班申请',[ParentId]=3419,[OrderBy]=10  where [MenuId]=2834 
 update [Dcx_Menu_Run] set [MenuName]='工作请示',[ParentId]=3419,[OrderBy]=11  where [MenuId]=2888 
 update [Dcx_Menu_Run] set [MenuName]='晋升申请',[ParentId]=3419,[OrderBy]=12  where [MenuId]=2837 

 GO--mygofuck 

UPDATE [WF_FlowType]
   SET [ManageUsers] ='admin'
      ,[ManageNames] = 'admin'
      ,[QueryUsers] ='admin'
      ,[QueryNames] ='admin'
      ,[CanQueryRoles] ='系统管理员'
      ,[CanQueryRolesId] = '3'
      ,[CanManageRoles] ='系统管理员'
      ,[CanManageRolesId] ='3'
      ,[CanStartUsers] =null
      ,[CanStartNames] = null
      ,[CanStartRoles] ='Public'
      ,[CanStartRolesId] = '1'
      ,[Creator] = 'admin'
      ,[CreateTime] =  getdate() 



 GO--mygofuck 

                    UPDATE [Dcx_RuningSysParam]
                      SET [DefautStyleId] = 1
                         ,[SystemId] =58
                         ,[SystemKey] =''
                         ,[TopMenuId] = 3417
                         ,[SystemName] = '协同OA标准版'
                         ,[CompanyName] = ''
                         ,[HomePageMenuId] =-1
                         ,[BigLogoUrl] = null
                         ,[SmallLogoUrl] =null
                         ,[LoginPageUrl] =null
                         ,[MainPageUrl] =null
                         ,[HomePageUrl] = null
                         ,[DcxUserName] =null
                         ,[InstallDate] =getdate()
                         ,[RegisterCode] = null
                         ,[EditTime] = getdate()
                         ,[SSystemId] =  58
                         ,[SSystemKey] = ''
                     
 GO--mygofuck 
--系统的Insert语句集合--



declare  @topMenuId int 
set  @topMenuId=-1 

--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=1972  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(1972,'544feaa7-bb61-4a6b-9f75-8c6bb07a5484','会议管理',2556,'',1,'\Images\icon2\serviceCharge[1].gif','\Images\icon2\serviceCharge[1].gif',10,'main',null,0,null,1,0,1,0,1,1,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='544feaa7-bb61-4a6b-9f75-8c6bb07a5484',[MenuName]='会议管理',[ParentId]=2556,[ProPath]='',[TemplateId]=1,[ImgPath]='\Images\icon2\serviceCharge[1].gif',[ExImgPath]='\Images\icon2\serviceCharge[1].gif',[OrderBy]=10,[Target]='main',[IsOpen]=null,[IsHidden]=0,[Remark]=null,[SSystemId]=1,[SMenuId]=0,[SystemId]=1,[EntityCount]=0,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=1972 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=1972  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(49,1972,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=1972  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=2876  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2876,'c0b913ae-d0b0-4bcb-a8d5-671e8bf25e91','会议申请',1972,'/Template/default/ListReport/ListReport_Tree001.aspx',1,'/images/default.gif','/images/default.gif',2,'',null,0,null,1,0,1,1,1,1,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='c0b913ae-d0b0-4bcb-a8d5-671e8bf25e91',[MenuName]='会议申请',[ParentId]=1972,[ProPath]='/Template/default/ListReport/ListReport_Tree001.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=2,[Target]='',[IsOpen]=null,[IsHidden]=0,[Remark]=null,[SSystemId]=1,[SMenuId]=0,[SystemId]=1,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=2876 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=2876  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(656,2876,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=2876  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=1669  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(1669,2876,'会议申请',1,1113,0,'行政_会议管理表',0,0,1,1,1669,null,null,1,null,1,null,55,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=2876,[EntName]='会议申请',[MEnt]=1,[DBTableId]=1113,[DBConnectId]=0,[DBTableName]='行政_会议管理表',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=1,[SEntId]=1669,[FSystemId]=null,[FEntId]=null,[SystemId]=1,[Remark]=null,[IsFlow]=1,[IsChecked]=null,[FlowId]=55,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=1669 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=1669

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=1669  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11424,-1,1669,1,1,1,1,0,1,0,0,0,1,0,0,0,0,0,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=0,[CanUpdate]=1,[CanOutPut]=0,[CanInput]=0,[CanCopy]=0,[CanPrint]=1,[CanCheck]=0,[CanClean]=0,[CanRecycle]=0,[CanExecute]=0,[CanDesign]=0,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=1669  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=1669  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(10802,2876,1669,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=2876,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=1669  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=1669

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1669  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18060,1,2876,1669,13,1,1,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2876,[TemplateId]=13,[ModuleId]=1,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1669  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1669  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18061,1,2876,1669,13,2,9,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2876,[TemplateId]=13,[ModuleId]=9,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1669  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1669  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18062,1,2876,1669,13,3,14,1,4,2,'/Template/Default/Form/AjaxForm/AjaxForm008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2876,[TemplateId]=13,[ModuleId]=14,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='/Template/Default/Form/AjaxForm/AjaxForm008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1669  and  [ModuleTypeId]=3 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1669  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18063,1,2876,1669,13,16,31,1,5,2,'/Template/Default/Browse/Browse008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2876,[TemplateId]=13,[ModuleId]=31,[GroupId]=1,[AreaId]=5,[ShowMode]=2,[AreaUrl]='/Template/Default/Browse/Browse008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1669  and  [ModuleTypeId]=16 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_AjaxForm_Run]  where [EntId]=1669

--Dcx_AjaxForm_Run
      if (select count(1) from [Dcx_AjaxForm_Run] where  [EntId]=1669  )<1 
      begin 
           Insert into [Dcx_AjaxForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('19e3e10b-7f2a-4fba-9981-9b587c0cbce6','会议申请',1669,14,'','',0,'<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>','','DcxRun.AjaxF_1669= {"MenuId":2876,"MEntId":1669,"EntName":"会议申请","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":true,"EntMsg":{"E1669":{"EntId":1669,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{
DcxForm.CreateHtmlEditor(''d1669_会议内容'',1669,''AjaxF_'',''会议内容'',600,350,false,1,false);

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_1669.EntMsg.E1669.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"行政_会议管理表","EntId":1669,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"会议编号":{"DtId":2,"DB":1,"CId":4,"FL":-1},"会议主题":{"DtId":2,"DB":1,"CId":1,"FL":-1},"会议类型":{"DtId":2,"DB":1,"CId":3,"FL":-1},"主办部门":{"DtId":2,"DB":1,"CId":3,"FL":-1},"会议室编号":{"DtId":2,"DB":1,"CId":3,"FL":-1},"会议室名称":{"DtId":2,"DB":1,"CId":4,"FL":-1},"开始时间":{"DtId":2,"DB":1,"CId":6,"FL":-1},"结束时间":{"DtId":2,"DB":1,"CId":6,"FL":-1},"主持人":{"DtId":2,"DB":1,"CId":3,"FL":-1},"纪要员":{"DtId":2,"DB":1,"CId":3,"FL":-1},"参会人":{"DtId":2,"DB":1,"CId":2,"FL":0},"会议内容":{"DtId":6,"DB":1,"CId":23,"FL":-1},"其他资源":{"DtId":2,"DB":1,"CId":2,"FL":0},"会议状态":{"DtId":2,"DB":1,"CId":7,"FL":-1},"申请人":{"DtId":2,"DB":1,"CId":4,"FL":-1},"申请时间":{"DtId":3,"DB":1,"CId":4,"FL":-1}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_1669.EntMsg.E1669.GetDataRowModel=function()
{
    return {"会议编号":"","会议主题":"","会议类型":"","主办部门":"","会议室编号":"","会议室名称":"","开始时间":"","结束时间":"","主持人":"","纪要员":"","参会人":"","会议内容":"","其他资源":"","会议状态":"","申请人":"","申请时间":new Date(),"Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_AjaxF_1669_433(obj,curFieldName){
 var EntId=1669;
 var FldId=3145;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''会议室编号'';
 var $formContainer=DcxForm.GetHtmlContainer(1669,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1669,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"会议室编号\",FldId:"+FldId+",EntId:1669,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:3,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''会议主题''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,1669,''AjaxF_'',''会议主题'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@会议主题}<*>"+v_f1+"<**>";
var v_f1=null;
if(''开始时间''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,1669,''AjaxF_'',''开始时间'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@开始时间}<*>"+v_f1+"<**>";
var v_f1=null;
if(''结束时间''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,1669,''AjaxF_'',''结束时间'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@结束时间}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1669_会议室编号");
$AcceptObj.html(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1669_434(obj,curFieldName){
 var EntId=1669;
 var FldId=3146;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''会议室名称'';
 var $formContainer=DcxForm.GetHtmlContainer(1669,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1669,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"会议室名称\",FldId:"+FldId+",EntId:1669,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''会议室编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,1669,''AjaxF_'',''会议室编号'',$formContainer,false,false);
if(Dcx.IsNull(v_f1))
   v_f1='''';
 strData.data = strData.data + "{@会议室编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1669_会议室名称");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_1669.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1669,''AjaxF_'',buildNew,closeDlg);

}','<$1669$>select [会议编号],[会议主题],[会议类型],[主办部门],[会议室编号],[会议室名称],[开始时间],[结束时间],[主持人],[纪要员],[参会人],[会议状态],[会议内容],[其他资源],[申请人],[申请时间],[LD_Id] from 行政_会议管理表 where [LD_Id]=''{$keyfieldvalue}''</$1669$>',20,'','','','1669*LD_Id*2**2*行政_会议管理表*会议申请',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 7:02:48',3,'admin','2013-11-30 7:48:08',1)
      end
      else 
      begin 
           update [Dcx_AjaxForm_Run] set [FormId]='19e3e10b-7f2a-4fba-9981-9b587c0cbce6',[FormName]='会议申请',[ModuleId]=14,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.AjaxF_1669= {"MenuId":2876,"MEntId":1669,"EntName":"会议申请","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":true,"EntMsg":{"E1669":{"EntId":1669,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{
DcxForm.CreateHtmlEditor(''d1669_会议内容'',1669,''AjaxF_'',''会议内容'',600,350,false,1,false);

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_1669.EntMsg.E1669.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"行政_会议管理表","EntId":1669,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"会议编号":{"DtId":2,"DB":1,"CId":4,"FL":-1},"会议主题":{"DtId":2,"DB":1,"CId":1,"FL":-1},"会议类型":{"DtId":2,"DB":1,"CId":3,"FL":-1},"主办部门":{"DtId":2,"DB":1,"CId":3,"FL":-1},"会议室编号":{"DtId":2,"DB":1,"CId":3,"FL":-1},"会议室名称":{"DtId":2,"DB":1,"CId":4,"FL":-1},"开始时间":{"DtId":2,"DB":1,"CId":6,"FL":-1},"结束时间":{"DtId":2,"DB":1,"CId":6,"FL":-1},"主持人":{"DtId":2,"DB":1,"CId":3,"FL":-1},"纪要员":{"DtId":2,"DB":1,"CId":3,"FL":-1},"参会人":{"DtId":2,"DB":1,"CId":2,"FL":0},"会议内容":{"DtId":6,"DB":1,"CId":23,"FL":-1},"其他资源":{"DtId":2,"DB":1,"CId":2,"FL":0},"会议状态":{"DtId":2,"DB":1,"CId":7,"FL":-1},"申请人":{"DtId":2,"DB":1,"CId":4,"FL":-1},"申请时间":{"DtId":3,"DB":1,"CId":4,"FL":-1}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_1669.EntMsg.E1669.GetDataRowModel=function()
{
    return {"会议编号":"","会议主题":"","会议类型":"","主办部门":"","会议室编号":"","会议室名称":"","开始时间":"","结束时间":"","主持人":"","纪要员":"","参会人":"","会议内容":"","其他资源":"","会议状态":"","申请人":"","申请时间":new Date(),"Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_AjaxF_1669_433(obj,curFieldName){
 var EntId=1669;
 var FldId=3145;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''会议室编号'';
 var $formContainer=DcxForm.GetHtmlContainer(1669,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1669,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"会议室编号\",FldId:"+FldId+",EntId:1669,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:3,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''会议主题''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,1669,''AjaxF_'',''会议主题'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@会议主题}<*>"+v_f1+"<**>";
var v_f1=null;
if(''开始时间''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,1669,''AjaxF_'',''开始时间'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@开始时间}<*>"+v_f1+"<**>";
var v_f1=null;
if(''结束时间''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,1669,''AjaxF_'',''结束时间'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@结束时间}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1669_会议室编号");
$AcceptObj.html(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_AjaxF_1669_434(obj,curFieldName){
 var EntId=1669;
 var FldId=3146;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''会议室名称'';
 var $formContainer=DcxForm.GetHtmlContainer(1669,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1669,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"会议室名称\",FldId:"+FldId+",EntId:1669,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"LD_Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''会议室编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,1669,''AjaxF_'',''会议室编号'',$formContainer,false,false);
if(Dcx.IsNull(v_f1))
   v_f1='''';
 strData.data = strData.data + "{@会议室编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1669_会议室名称");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_1669.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1669,''AjaxF_'',buildNew,closeDlg);

}',[LoadingSql]='<$1669$>select [会议编号],[会议主题],[会议类型],[主办部门],[会议室编号],[会议室名称],[开始时间],[结束时间],[主持人],[纪要员],[参会人],[会议状态],[会议内容],[其他资源],[申请人],[申请时间],[LD_Id] from 行政_会议管理表 where [LD_Id]=''{$keyfieldvalue}''</$1669$>',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='1669*LD_Id*2**2*行政_会议管理表*会议申请',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 7:02:48',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-30 7:48:08',[AccountId]=1 where  [EntId]=1669 
      end




--Dcx_AjaxFormField_Run
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='7a4bb52c-8d9d-c254-37cc-cacbf6929f91'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3141,'7a4bb52c-8d9d-c254-37cc-cacbf6929f91',1669,1669,'00000000-0000-0000-0000-000000000000','会议编号',2,2,11,'select convert(char(8),getdate(),112)+Substring( cast((case when count(会议编号)=0 then 0 when count(会议编号)>0 then max(cast(Substring(会议编号,9,2) as int)) end )+101 as varchar),2,2)  from   行政_会议管理表  where 会议编号 like  convert(char(8),getdate(),112)+''%''',2,9,null,0,4,1,0,1,-1,0,0,'','','','','<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="1669" groupid="176" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="787" class="li-area-title" scroll="no" style="width: 77px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">会议申请</span></div>
</li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="177" entid="1669" class="ul-mform" ctrlprex="AjaxF_" isrple="1">
<li areaid="788" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3141" istitle="1">会议编号 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d1669_会议编号" class="form-lbl" style="width:201px;" IsForField=1 EntId="1669" CId="4" FId="3141" Vtp="2"  >','</span><input id="d1669_会议编号_hid" type="hidden"  EntId="1669" IsField=1 DBField=1 IsPost=1 FieldName="会议编号" dType="2" Vtp="2" RDT="2" Isc="0" RId="9" CId="4" FId="3141" vlk=0    value="','" />',-1,-1,-1,-1,0,'1669,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3141,[Form_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='会议编号',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=11,[DefaultValue]='select convert(char(8),getdate(),112)+Substring( cast((case when count(会议编号)=0 then 0 when count(会议编号)>0 then max(cast(Substring(会议编号,9,2) as int)) end )+101 as varchar),2,2)  from   行政_会议管理表  where 会议编号 like  convert(char(8),getdate(),112)+''%''',[ValueType]=2,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="1669" groupid="176" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="787" class="li-area-title" scroll="no" style="width: 77px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">会议申请</span></div>
</li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="177" entid="1669" class="ul-mform" ctrlprex="AjaxF_" isrple="1">
<li areaid="788" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3141" istitle="1">会议编号 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1669_会议编号" class="form-lbl" style="width:201px;" IsForField=1 EntId="1669" CId="4" FId="3141" Vtp="2"  >',[CtrlbackHtml]='</span><input id="d1669_会议编号_hid" type="hidden"  EntId="1669" IsField=1 DBField=1 IsPost=1 FieldName="会议编号" dType="2" Vtp="2" RDT="2" Isc="0" RId="9" CId="4" FId="3141" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1669,' where  [FldUId]='7a4bb52c-8d9d-c254-37cc-cacbf6929f91' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='b32cb279-63e6-f54f-0240-baf75c505a27'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3142,'b32cb279-63e6-f54f-0240-baf75c505a27',1669,1669,'00000000-0000-0000-0000-000000000000','会议主题',2,2,12,'',5,1,null,0,1,1,0,2,-1,0,0,'','','','','</span>
</div>
</li>
<li areaid="789" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3142" istitle="1">会议主题 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d1669_会议主题"   type="text" class="form-txt"  style="width:201px;" onchange ="javascript:GetLinkCtrlData_AjaxF_1669_433(this,''会议主题'');" onblur ="javascript:if(!DcxVld.Validate(this,1669,''AjaxF_'',1669,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1669,''AjaxF_'',1669);" EntId="1669" IsField=1 DBField=1 IsPost=1 FieldName="会议主题" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="3142" vlk=0    CBack=1  value="','"/>','',-1,-1,-1,-1,0,'1669,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3142,[Form_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='会议主题',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=12,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=2,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="789" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3142" istitle="1">会议主题 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1669_会议主题"   type="text" class="form-txt"  style="width:201px;" onchange ="javascript:GetLinkCtrlData_AjaxF_1669_433(this,''会议主题'');" onblur ="javascript:if(!DcxVld.Validate(this,1669,''AjaxF_'',1669,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1669,''AjaxF_'',1669);" EntId="1669" IsField=1 DBField=1 IsPost=1 FieldName="会议主题" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="3142" vlk=0    CBack=1  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1669,' where  [FldUId]='b32cb279-63e6-f54f-0240-baf75c505a27' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='6a626970-e746-5715-fc50-81feead6601c'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3143,'6a626970-e746-5715-fc50-81feead6601c',1669,1669,'00000000-0000-0000-0000-000000000000','会议类型',2,2,13,'select 参数文本值 from 参数表 where 参数类型=''会议类型''',2,1,null,0,3,1,0,3,-1,0,0,'','','','','</span>
</div>
</li>
<li areaid="790" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3143">会议类型  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<select id="d1669_会议类型" name="d1669_会议类型" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1669,''AjaxF_'',1669,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1669,''AjaxF_'',1669);" EntId="1669" IsField=1 DBField=1 IsPost=1 FieldName="会议类型" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="3" FId="3143" vlk=0    style="width:201px;">','</select>','',-1,-1,-1,-1,0,'1669,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3143,[Form_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='会议类型',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=13,[DefaultValue]='select 参数文本值 from 参数表 where 参数类型=''会议类型''',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=3,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="790" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3143">会议类型  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1669_会议类型" name="d1669_会议类型" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1669,''AjaxF_'',1669,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1669,''AjaxF_'',1669);" EntId="1669" IsField=1 DBField=1 IsPost=1 FieldName="会议类型" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="3" FId="3143" vlk=0    style="width:201px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1669,' where  [FldUId]='6a626970-e746-5715-fc50-81feead6601c' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='bbf291a0-4209-ba91-7a5d-1096f31bdedb'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3144,'bbf291a0-4209-ba91-7a5d-1096f31bdedb',1669,1669,'00000000-0000-0000-0000-000000000000','主办部门',2,2,14,'SELECT [DeptName],[DeptCode] FROM [Dcx_Dept]',2,1,null,0,3,1,0,4,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="791" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3144">主办部门  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<select id="d1669_主办部门" name="d1669_主办部门" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1669,''AjaxF_'',1669,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1669,''AjaxF_'',1669);" EntId="1669" IsField=1 DBField=1 IsPost=1 FieldName="主办部门" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="3" FId="3144" vlk=0    style="width:201px;">','</select>','',-1,-1,-1,-1,0,'1669,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3144,[Form_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='主办部门',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=14,[DefaultValue]='SELECT [DeptName],[DeptCode] FROM [Dcx_Dept]',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=4,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="791" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3144">主办部门  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1669_主办部门" name="d1669_主办部门" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1669,''AjaxF_'',1669,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1669,''AjaxF_'',1669);" EntId="1669" IsField=1 DBField=1 IsPost=1 FieldName="主办部门" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="3" FId="3144" vlk=0    style="width:201px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1669,' where  [FldUId]='bbf291a0-4209-ba91-7a5d-1096f31bdedb' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='8e4d87c7-bc55-9b3e-2a41-3b1689208f7a'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3145,'8e4d87c7-bc55-9b3e-2a41-3b1689208f7a',1669,1669,'00000000-0000-0000-0000-000000000000','会议室编号',2,2,16,'declare @开始时间 datetime
declare @结束时间 datetime
declare @会议主题 varchar(343)
set @会议主题=''{@会议主题}''
set @开始时间=''{@开始时间}''
set @结束时间=''{@结束时间}''
if @开始时间 is null or @开始时间=''''
set @开始时间=cast(''2000-01-01'' as datetime)
if @结束时间 is null or @结束时间=''''
set @结束时间=cast(''9000-01-01'' as datetime)
SELECT [会议室名称]  ,[会议室编号] FROM [行政_会议室表]  where [会议室编号] not in (SELECT [会议室编号] FROM [行政_会议管理表]  where (会议状态 like ''%成功%'' or  会议状态 like ''%已审批%'' )
and   (开始时间>=@开始时间  and 开始时间<=@结束时间) or   (结束时间>=@开始时间  and 结束时间<=@结束时间 )
 or (开始时间>=@开始时间  and 结束时间<=@结束时间) or  (开始时间<=@开始时间  and 结束时间>=@结束时间))',2,1,null,0,3,1,0,5,-1,0,0,'','','会议主题,开始时间,结束时间,','','</span>
  </div>
</li>
<li areaid="792" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3145">会议室  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<select id="d1669_会议室编号" name="d1669_会议室编号" class="form-select"  onchange ="javascript:GetLinkCtrlData_AjaxF_1669_434(this,''会议室编号'');DcxVld.Validate(this,1669,''AjaxF_'',1669,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1669,''AjaxF_'',1669);" EntId="1669" IsField=1 DBField=1 IsPost=1 FieldName="会议室编号" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="3" FId="3145" vlk=0    CBack=1  style="width:201px;">','</select>','',-1,-1,-1,-1,0,'1669,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3145,[Form_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='会议室编号',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=16,[DefaultValue]='declare @开始时间 datetime
declare @结束时间 datetime
declare @会议主题 varchar(343)
set @会议主题=''{@会议主题}''
set @开始时间=''{@开始时间}''
set @结束时间=''{@结束时间}''
if @开始时间 is null or @开始时间=''''
set @开始时间=cast(''2000-01-01'' as datetime)
if @结束时间 is null or @结束时间=''''
set @结束时间=cast(''9000-01-01'' as datetime)
SELECT [会议室名称]  ,[会议室编号] FROM [行政_会议室表]  where [会议室编号] not in (SELECT [会议室编号] FROM [行政_会议管理表]  where (会议状态 like ''%成功%'' or  会议状态 like ''%已审批%'' )
and   (开始时间>=@开始时间  and 开始时间<=@结束时间) or   (结束时间>=@开始时间  and 结束时间<=@结束时间 )
 or (开始时间>=@开始时间  and 结束时间<=@结束时间) or  (开始时间<=@开始时间  and 结束时间>=@结束时间))',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=5,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='会议主题,开始时间,结束时间,',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="792" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3145">会议室  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1669_会议室编号" name="d1669_会议室编号" class="form-select"  onchange ="javascript:GetLinkCtrlData_AjaxF_1669_434(this,''会议室编号'');DcxVld.Validate(this,1669,''AjaxF_'',1669,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1669,''AjaxF_'',1669);" EntId="1669" IsField=1 DBField=1 IsPost=1 FieldName="会议室编号" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="3" FId="3145" vlk=0    CBack=1  style="width:201px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1669,' where  [FldUId]='8e4d87c7-bc55-9b3e-2a41-3b1689208f7a' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='1be0613a-ccc5-3b87-f0de-14dfab722030'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3146,'1be0613a-ccc5-3b87-f0de-14dfab722030',1669,1669,'00000000-0000-0000-0000-000000000000','会议室名称',2,2,15,'Select  行政_会议室表.[会议室名称]  from  行政_会议室表  Where   会议室编号 Like ''{@会议室编号}''',2,9,null,0,4,1,0,6,-1,0,0,'','','会议室编号,','','</span>
  </div>
</li>
<li areaid="793" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3146">会议室名称  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d1669_会议室名称" class="form-lbl" style="width:201px;" IsForField=1 EntId="1669" CId="4" FId="3146" Vtp="2"  >','</span><input id="d1669_会议室名称_hid" type="hidden"  EntId="1669" IsField=1 DBField=1 IsPost=1 FieldName="会议室名称" dType="2" Vtp="2" RDT="2" Isc="0" RId="9" CId="4" FId="3146" vlk=0    value="','" />',-1,-1,-1,-1,0,'1669,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3146,[Form_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='会议室名称',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=15,[DefaultValue]='Select  行政_会议室表.[会议室名称]  from  行政_会议室表  Where   会议室编号 Like ''{@会议室编号}''',[ValueType]=2,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=6,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='会议室编号,',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="793" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3146">会议室名称  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1669_会议室名称" class="form-lbl" style="width:201px;" IsForField=1 EntId="1669" CId="4" FId="3146" Vtp="2"  >',[CtrlbackHtml]='</span><input id="d1669_会议室名称_hid" type="hidden"  EntId="1669" IsField=1 DBField=1 IsPost=1 FieldName="会议室名称" dType="2" Vtp="2" RDT="2" Isc="0" RId="9" CId="4" FId="3146" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1669,' where  [FldUId]='1be0613a-ccc5-3b87-f0de-14dfab722030' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='02475051-1793-3b58-26a3-dda244ffa5e5'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3147,'02475051-1793-3b58-26a3-dda244ffa5e5',1669,1669,'00000000-0000-0000-0000-000000000000','开始时间',2,2,17,'{$date}',0,1,null,0,6,1,0,7,-1,0,0,'','','','{$date},','</span>
  </div>
</li>
<li areaid="794" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3147">开始时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<div class="form-ddl"><input  id="d1669_开始时间"   type="text" class="form-ddl-txt"  style="width:201px;" onchange ="javascript:GetLinkCtrlData_AjaxF_1669_433(this,''开始时间'');" onblur ="javascript:if(!DcxVld.Validate(this,1669,''AjaxF_'',1669,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1669,''AjaxF_'',1669);DcxDTime.ShowCalendar(this,true);" EntId="1669" IsField=1 DBField=1 IsPost=1 FieldName="开始时间" dType="2" Vtp="0" RDT="2" Isc="0" RId="1" CId="6" FId="3147" vlk=0    CBack=1  value="','"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>','',-1,-1,-1,-1,0,'1669,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3147,[Form_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='开始时间',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=17,[DefaultValue]='{$date}',[ValueType]=0,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=6,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=7,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$date},',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="794" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3147">开始时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-ddl"><input  id="d1669_开始时间"   type="text" class="form-ddl-txt"  style="width:201px;" onchange ="javascript:GetLinkCtrlData_AjaxF_1669_433(this,''开始时间'');" onblur ="javascript:if(!DcxVld.Validate(this,1669,''AjaxF_'',1669,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1669,''AjaxF_'',1669);DcxDTime.ShowCalendar(this,true);" EntId="1669" IsField=1 DBField=1 IsPost=1 FieldName="开始时间" dType="2" Vtp="0" RDT="2" Isc="0" RId="1" CId="6" FId="3147" vlk=0    CBack=1  value="',[CtrlbackHtml]='"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1669,' where  [FldUId]='02475051-1793-3b58-26a3-dda244ffa5e5' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='2c6760a5-3fbf-be6a-6b80-36c6f2dc2318'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3148,'2c6760a5-3fbf-be6a-6b80-36c6f2dc2318',1669,1669,'00000000-0000-0000-0000-000000000000','结束时间',2,2,18,'{$nextday}',0,1,null,0,6,1,0,8,-1,0,0,'','','','{$nextday},','</span>
  </div>
</li>
<li areaid="795" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3148">结束时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<div class="form-ddl"><input  id="d1669_结束时间"   type="text" class="form-ddl-txt"  style="width:201px;" onchange ="javascript:GetLinkCtrlData_AjaxF_1669_433(this,''结束时间'');" onblur ="javascript:if(!DcxVld.Validate(this,1669,''AjaxF_'',1669,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1669,''AjaxF_'',1669);DcxDTime.ShowCalendar(this,true);" EntId="1669" IsField=1 DBField=1 IsPost=1 FieldName="结束时间" dType="2" Vtp="0" RDT="2" Isc="0" RId="1" CId="6" FId="3148" vlk=0    CBack=1  value="','"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>','',-1,-1,-1,-1,0,'1669,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3148,[Form_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='结束时间',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=18,[DefaultValue]='{$nextday}',[ValueType]=0,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=6,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=8,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$nextday},',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="795" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3148">结束时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-ddl"><input  id="d1669_结束时间"   type="text" class="form-ddl-txt"  style="width:201px;" onchange ="javascript:GetLinkCtrlData_AjaxF_1669_433(this,''结束时间'');" onblur ="javascript:if(!DcxVld.Validate(this,1669,''AjaxF_'',1669,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1669,''AjaxF_'',1669);DcxDTime.ShowCalendar(this,true);" EntId="1669" IsField=1 DBField=1 IsPost=1 FieldName="结束时间" dType="2" Vtp="0" RDT="2" Isc="0" RId="1" CId="6" FId="3148" vlk=0    CBack=1  value="',[CtrlbackHtml]='"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1669,' where  [FldUId]='2c6760a5-3fbf-be6a-6b80-36c6f2dc2318' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='62c0e7ad-9053-3f82-467f-e487a95d5dbe'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3149,'62c0e7ad-9053-3f82-467f-e487a95d5dbe',1669,1669,'00000000-0000-0000-0000-000000000000','主持人',2,2,19,'SELECT  distinct [UserName] FROM [Dcx_User]',2,1,null,0,3,1,0,9,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="796" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3149">主持人  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<select id="d1669_主持人" name="d1669_主持人" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1669,''AjaxF_'',1669,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1669,''AjaxF_'',1669);" EntId="1669" IsField=1 DBField=1 IsPost=1 FieldName="主持人" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="3" FId="3149" vlk=0    style="width:201px;">','</select>','',-1,-1,-1,-1,0,'1669,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3149,[Form_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='主持人',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=19,[DefaultValue]='SELECT  distinct [UserName] FROM [Dcx_User]',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=9,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="796" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3149">主持人  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1669_主持人" name="d1669_主持人" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1669,''AjaxF_'',1669,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1669,''AjaxF_'',1669);" EntId="1669" IsField=1 DBField=1 IsPost=1 FieldName="主持人" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="3" FId="3149" vlk=0    style="width:201px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1669,' where  [FldUId]='62c0e7ad-9053-3f82-467f-e487a95d5dbe' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='d5239d44-345f-dfef-17f2-872869c6e9e2'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3150,'d5239d44-345f-dfef-17f2-872869c6e9e2',1669,1669,'00000000-0000-0000-0000-000000000000','纪要员',2,2,20,'SELECT  distinct [UserName] FROM [Dcx_User]',2,1,null,0,3,1,0,10,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="797" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3150">纪要员  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<select id="d1669_纪要员" name="d1669_纪要员" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1669,''AjaxF_'',1669,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1669,''AjaxF_'',1669);" EntId="1669" IsField=1 DBField=1 IsPost=1 FieldName="纪要员" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="3" FId="3150" vlk=0    style="width:201px;">','</select>','',-1,-1,-1,-1,0,'1669,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3150,[Form_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='纪要员',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=20,[DefaultValue]='SELECT  distinct [UserName] FROM [Dcx_User]',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=10,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="797" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3150">纪要员  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1669_纪要员" name="d1669_纪要员" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1669,''AjaxF_'',1669,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1669,''AjaxF_'',1669);" EntId="1669" IsField=1 DBField=1 IsPost=1 FieldName="纪要员" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="3" FId="3150" vlk=0    style="width:201px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1669,' where  [FldUId]='d5239d44-345f-dfef-17f2-872869c6e9e2' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='acc29dcf-67b3-f3da-7439-7186914462ba'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3151,'acc29dcf-67b3-f3da-7439-7186914462ba',1669,1669,'00000000-0000-0000-0000-000000000000','参会人',2,2,21,'',5,1,0,0,2,1,1,11,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="798" style="height: 88px; width: 792px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3151" istitle="1">参会人</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1669_参会人" class="form-txts"  style="width:611px;height:65px;" onblur ="javascript:if(!DcxVld.Validate(this,1669,''AjaxF_'',1669,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1669,''AjaxF_'',1669);" EntId="1669" IsField=1 DBField=1 IsPost=1 FieldName="参会人" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="3151" vlk=0   TId=6  >','</textarea>','',-1,-1,-1,-1,0,'1669,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3151,[Form_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='参会人',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=21,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=0,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=11,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="798" style="height: 88px; width: 792px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3151" istitle="1">参会人</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1669_参会人" class="form-txts"  style="width:611px;height:65px;" onblur ="javascript:if(!DcxVld.Validate(this,1669,''AjaxF_'',1669,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1669,''AjaxF_'',1669);" EntId="1669" IsField=1 DBField=1 IsPost=1 FieldName="参会人" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="3151" vlk=0   TId=6  >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1669,' where  [FldUId]='acc29dcf-67b3-f3da-7439-7186914462ba' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='8e24aff0-2f21-5d6e-0360-965da497b8c9'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3154,'8e24aff0-2f21-5d6e-0360-965da497b8c9',1669,1669,'00000000-0000-0000-0000-000000000000','会议状态',2,2,24,'',1,7,null,0,7,1,0,12,-1,0,0,'','','','','</span>
</div>
</li><li areaid="801" style="height: 38px; width: 792px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3154" istitle="1">会议状态 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<div id="d1669_会议状态" class="form-radio" style="" EntId="1669" IsField=1 DBField=1 IsPost=1 FieldName="会议状态" dType="2" Vtp="1" RDT="2" Isc="0" RId="7" CId="7" FId="3154" vlk=0    UUT=1  disabled ="disabled"  disabled="disabled"  Type="1"  onclick ="javascript:DcxVld.Validate(this,1669,''AjaxF_'',1669);" onfocus ="javascript:DcxVld.ValidateFocus(this,1669,''AjaxF_'',1669);"><span class="form-radio-item"  >
<input id="ddcx_1669_会议状态_0"  name="ddcx_1669_会议状态"  type="radio"  text="申请中"  value="申请中"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1669_会议状态_0">申请中</label></span>
<span class="form-radio-item"  >
<input id="ddcx_1669_会议状态_1"  name="ddcx_1669_会议状态"  type="radio"  text="正常"  value="正常"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1669_会议状态_1">正常</label></span>
<span class="form-radio-item"  >
<input id="ddcx_1669_会议状态_2"  name="ddcx_1669_会议状态"  type="radio"  text="取消"  value="取消"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1669_会议状态_2">取消</label></span>
<span class="clearfix"></span>','</div>','',-1,-1,-1,-1,0,'1669,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3154,[Form_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='会议状态',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=24,[DefaultValue]='',[ValueType]=1,[RunValueType]=7,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=7,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=12,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li areaid="801" style="height: 38px; width: 792px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3154" istitle="1">会议状态 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d1669_会议状态" class="form-radio" style="" EntId="1669" IsField=1 DBField=1 IsPost=1 FieldName="会议状态" dType="2" Vtp="1" RDT="2" Isc="0" RId="7" CId="7" FId="3154" vlk=0    UUT=1  disabled ="disabled"  disabled="disabled"  Type="1"  onclick ="javascript:DcxVld.Validate(this,1669,''AjaxF_'',1669);" onfocus ="javascript:DcxVld.ValidateFocus(this,1669,''AjaxF_'',1669);"><span class="form-radio-item"  >
<input id="ddcx_1669_会议状态_0"  name="ddcx_1669_会议状态"  type="radio"  text="申请中"  value="申请中"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1669_会议状态_0">申请中</label></span>
<span class="form-radio-item"  >
<input id="ddcx_1669_会议状态_1"  name="ddcx_1669_会议状态"  type="radio"  text="正常"  value="正常"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1669_会议状态_1">正常</label></span>
<span class="form-radio-item"  >
<input id="ddcx_1669_会议状态_2"  name="ddcx_1669_会议状态"  type="radio"  text="取消"  value="取消"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1669_会议状态_2">取消</label></span>
<span class="clearfix"></span>',[CtrlbackHtml]='</div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1669,' where  [FldUId]='8e24aff0-2f21-5d6e-0360-965da497b8c9' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='a890941b-cd52-52c4-349c-740e2d122685'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3152,'a890941b-cd52-52c4-349c-740e2d122685',1669,1669,'00000000-0000-0000-0000-000000000000','会议内容',6,2,22,'',5,1,null,0,23,1,0,13,-1,0,0,'','','','','</span>
</div>
</li>
<li areaid="799" style="height: 470px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3152">会议内容  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1669_会议内容" class="form-txts"  style="width:600px;height:350px;" EntId="1669" IsField=1 DBField=1 IsPost=1 FieldName="会议内容" dType="6" Vtp="5" RDT="2" Isc="0" RId="1" CId="23" FId="3152" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1669,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3152,[Form_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='会议内容',[FieldDataTypeId]=6,[RunDataTypeId]=2,[DBFieldId]=22,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=23,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=13,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="799" style="height: 470px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3152">会议内容  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1669_会议内容" class="form-txts"  style="width:600px;height:350px;" EntId="1669" IsField=1 DBField=1 IsPost=1 FieldName="会议内容" dType="6" Vtp="5" RDT="2" Isc="0" RId="1" CId="23" FId="3152" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1669,' where  [FldUId]='a890941b-cd52-52c4-349c-740e2d122685' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='d5e3c5c5-4a00-e3a0-e26c-20e07ac9a343'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3153,'d5e3c5c5-4a00-e3a0-e26c-20e07ac9a343',1669,1669,'00000000-0000-0000-0000-000000000000','其他资源',2,2,23,'',5,1,1,0,2,1,1,14,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="800" style="height: 138px; width: 792px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3153" istitle="1">其他资源</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1669_其他资源" class="form-txts"  style="width:610px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1669,''AjaxF_'',1669,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1669,''AjaxF_'',1669);" EntId="1669" IsField=1 DBField=1 IsPost=1 FieldName="其他资源" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="3153" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1669,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3153,[Form_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='其他资源',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=23,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=1,[FieldNO]=14,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="800" style="height: 138px; width: 792px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3153" istitle="1">其他资源</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1669_其他资源" class="form-txts"  style="width:610px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1669,''AjaxF_'',1669,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1669,''AjaxF_'',1669);" EntId="1669" IsField=1 DBField=1 IsPost=1 FieldName="其他资源" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="3153" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1669,' where  [FldUId]='d5e3c5c5-4a00-e3a0-e26c-20e07ac9a343' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='ffa7a579-afe9-895c-b228-8d0266100991'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3155,'ffa7a579-afe9-895c-b228-8d0266100991',1669,1669,'00000000-0000-0000-0000-000000000000','申请人',2,2,25,'{$UserName}',0,9,null,0,4,1,0,15,-1,0,0,'','','','{$UserName},','</span>
</div>
</li>

<li areaid="802" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3155">申请人  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d1669_申请人" class="form-lbl" style="width:201px;" IsForField=1 EntId="1669" CId="4" FId="3155" Vtp="0"  >','</span><input id="d1669_申请人_hid" type="hidden"  EntId="1669" IsField=1 DBField=1 IsPost=1 FieldName="申请人" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="3155" vlk=0    value="','" />',-1,-1,-1,-1,0,'1669,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3155,[Form_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='申请人',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=25,[DefaultValue]='{$UserName}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=15,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$UserName},',[BeforeHtml]='</span>
</div>
</li>

<li areaid="802" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3155">申请人  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1669_申请人" class="form-lbl" style="width:201px;" IsForField=1 EntId="1669" CId="4" FId="3155" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d1669_申请人_hid" type="hidden"  EntId="1669" IsField=1 DBField=1 IsPost=1 FieldName="申请人" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="3155" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1669,' where  [FldUId]='ffa7a579-afe9-895c-b228-8d0266100991' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='797a9d8c-1c41-edba-f15c-a4051cd5c25e'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3156,'797a9d8c-1c41-edba-f15c-a4051cd5c25e',1669,1669,'00000000-0000-0000-0000-000000000000','申请时间',3,3,26,'{$date}',0,9,null,0,4,1,0,16,-1,0,0,'','','','{$date},','</span>
  </div>
</li>
<li areaid="803" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3156">申请时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','</span>
  </div>
</li>
</ul>
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="178" entid="1669" class="tab_ul" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="804" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li areaid="805" istab="1" tabid="2" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1" style="">
<ul isgroup="1" groupid="179" entid="1669" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="806" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="180" entid="1669" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="807" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="1669" groupid="181" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="808" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
<li areaid="809" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>','','','<span id="d1669_申请时间" class="form-lbl" style="width:201px;" IsForField=1 EntId="1669" CId="4" FId="3156" Vtp="0"  >','</span><input id="d1669_申请时间_hid" type="hidden"  EntId="1669" IsField=1 DBField=1 IsPost=1 FieldName="申请时间" dType="3" Vtp="0" RDT="3" Isc="0" RId="9" CId="4" FId="3156" vlk=0    value="','" />',-1,-1,-1,-1,0,'1669,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3156,[Form_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='申请时间',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=26,[DefaultValue]='{$date}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=16,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$date},',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="803" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3156">申请时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
  </div>
</li>
</ul>
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="178" entid="1669" class="tab_ul" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="804" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li areaid="805" istab="1" tabid="2" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1" style="">
<ul isgroup="1" groupid="179" entid="1669" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="806" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="180" entid="1669" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="807" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="1669" groupid="181" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="808" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
<li areaid="809" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1669_申请时间" class="form-lbl" style="width:201px;" IsForField=1 EntId="1669" CId="4" FId="3156" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d1669_申请时间_hid" type="hidden"  EntId="1669" IsField=1 DBField=1 IsPost=1 FieldName="申请时间" dType="3" Vtp="0" RDT="3" Isc="0" RId="9" CId="4" FId="3156" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1669,' where  [FldUId]='797a9d8c-1c41-edba-f15c-a4051cd5c25e' 
      end



Delete from [Dcx_SearchForm_Run]  where [EntId]=1669

--Dcx_SearchForm_Run
      if (select count(1) from [Dcx_SearchForm_Run] where  [EntId]=1669  )<1 
      begin 
           Insert into [Dcx_SearchForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('9c1720ed-6ca2-477d-bd0e-06281ece406e','会议申请',1669,9,'','',0,'<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>','','DcxRun.SearchF_1669= {"MenuId":2876,"MEntId":1669,"EntName":"会议申请","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1669":{"EntId":1669,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_1669.EntMsg.E1669.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"行政_会议管理表","EntId":1669,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"会议主题":{"DtId":2,"DB":1,"CId":1,"FL":100},"主办部门":{"DtId":2,"DB":1,"CId":1,"FL":100},"参会人":{"DtId":2,"DB":1,"CId":1,"FL":100},"流程是否已结束":{"DtId":4,"DB":0,"CId":3,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.SearchF_1669.EntMsg.E1669.GetDataRowModel=function()
{
    return {"会议主题":"","主办部门":"","参会人":"","流程是否已结束":false,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_1669.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1669,''SearchF_'',buildNew,closeDlg);

}','',20,'','','','1669*LD_Id*2**2*行政_会议管理表*会议申请',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 5:45:57',3,'admin','2013-11-16 17:36:02',1)
      end
      else 
      begin 
           update [Dcx_SearchForm_Run] set [FormId]='9c1720ed-6ca2-477d-bd0e-06281ece406e',[FormName]='会议申请',[ModuleId]=9,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.SearchF_1669= {"MenuId":2876,"MEntId":1669,"EntName":"会议申请","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1669":{"EntId":1669,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_1669.EntMsg.E1669.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"行政_会议管理表","EntId":1669,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"会议主题":{"DtId":2,"DB":1,"CId":1,"FL":100},"主办部门":{"DtId":2,"DB":1,"CId":1,"FL":100},"参会人":{"DtId":2,"DB":1,"CId":1,"FL":100},"流程是否已结束":{"DtId":4,"DB":0,"CId":3,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.SearchF_1669.EntMsg.E1669.GetDataRowModel=function()
{
    return {"会议主题":"","主办部门":"","参会人":"","流程是否已结束":false,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_1669.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1669,''SearchF_'',buildNew,closeDlg);

}',[LoadingSql]='',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='1669*LD_Id*2**2*行政_会议管理表*会议申请',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 5:45:57',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-16 17:36:02',[AccountId]=1 where  [EntId]=1669 
      end




--Dcx_SearchFormField_Run
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='447c6f4a-1550-47be-b68c-6d95b0086f3a'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'447c6f4a-1550-47be-b68c-6d95b0086f3a',1669,1669,'00000000-0000-0000-0000-000000000000',1,'Like','会议主题',2,2,12,'',5,1,1,0,1,1,0,-1,1,0,'','','','','<div class="searchform">
<ul class="search-block w920" entid="1669" isgroup="1" groupid="27" ctrlprex="SearchF_" isrple="1">
<li style="width: 241px; position: static;" class="search-li w240 h32" scroll="no" areaid="131"><label class="search-title pad7" fldid="1" istitle="1">会议主题</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">','','','','<input  id="d1669_会议主题"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1669,''SearchF_'',1669,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1669,''SearchF_'',1669);" EntId="1669" IsField=1 DBField=1 IsPost=1 FieldName="会议主题" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'1669,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=1,[Form_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[CompareOperatorType]='Like',[FieldName]='会议主题',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=12,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="searchform">
<ul class="search-block w920" entid="1669" isgroup="1" groupid="27" ctrlprex="SearchF_" isrple="1">
<li style="width: 241px; position: static;" class="search-li w240 h32" scroll="no" areaid="131"><label class="search-title pad7" fldid="1" istitle="1">会议主题</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1669_会议主题"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1669,''SearchF_'',1669,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1669,''SearchF_'',1669);" EntId="1669" IsField=1 DBField=1 IsPost=1 FieldName="会议主题" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1669,' where  [FldUId]='447c6f4a-1550-47be-b68c-6d95b0086f3a' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='30055492-9f33-4275-b5f2-e2453b734bb4'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'30055492-9f33-4275-b5f2-e2453b734bb4',1669,1669,'00000000-0000-0000-0000-000000000000',2,'Like','主办部门',2,2,14,'',5,1,1,0,1,1,0,-1,1,0,'','','','','</span> </div></li>
<li style="width: 241px; position: static;" class="search-li w240 h32" scroll="no" areaid="132"><label class="search-title pad7" fldid="2" istitle="1">主办部门</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">','','','','<input  id="d1669_主办部门"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1669,''SearchF_'',1669,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1669,''SearchF_'',1669);" EntId="1669" IsField=1 DBField=1 IsPost=1 FieldName="主办部门" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'1669,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=2,[Form_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[CompareOperatorType]='Like',[FieldName]='主办部门',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=14,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="width: 241px; position: static;" class="search-li w240 h32" scroll="no" areaid="132"><label class="search-title pad7" fldid="2" istitle="1">主办部门</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1669_主办部门"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1669,''SearchF_'',1669,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1669,''SearchF_'',1669);" EntId="1669" IsField=1 DBField=1 IsPost=1 FieldName="主办部门" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1669,' where  [FldUId]='30055492-9f33-4275-b5f2-e2453b734bb4' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='02fab6da-be59-458b-a29d-d79d8c338c4d'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'02fab6da-be59-458b-a29d-d79d8c338c4d',1669,1669,'00000000-0000-0000-0000-000000000000',3,'Like','参会人',2,2,21,'',5,1,1,0,1,1,0,-1,1,0,'','','','','</span> </div></li>
<li style="position: static;" class="search-li w240 h32" scroll="no" areaid="133"><label class="search-title pad7" fldid="3" istitle="1">参会人</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">','','','','<input  id="d1669_参会人"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1669,''SearchF_'',1669,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1669,''SearchF_'',1669);" EntId="1669" IsField=1 DBField=1 IsPost=1 FieldName="参会人" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="3" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'1669,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=3,[Form_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[CompareOperatorType]='Like',[FieldName]='参会人',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=21,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="position: static;" class="search-li w240 h32" scroll="no" areaid="133"><label class="search-title pad7" fldid="3" istitle="1">参会人</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1669_参会人"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1669,''SearchF_'',1669,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1669,''SearchF_'',1669);" EntId="1669" IsField=1 DBField=1 IsPost=1 FieldName="参会人" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="3" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1669,' where  [FldUId]='02fab6da-be59-458b-a29d-d79d8c338c4d' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='6a436f53-99ac-4892-a4c3-99f1c7b64e8b'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'6a436f53-99ac-4892-a4c3-99f1c7b64e8b',1669,1669,'00000000-0000-0000-0000-000000000000',4,'=','流程是否已结束',4,4,-1,'',1,1,1,0,3,1,0,-1,1,0,'','','','','</span> </div></li>
<li style="position: static;" class="search-li w270 h32" scroll="no" areaid="134"><label class="search-title pad7" fldid="4" istitle="1">流程已结束</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">','</span> </div></li>
<li style="position: static;" class="search-li w100 h32" scroll="no" areaid="135">
<div class="searchform-button" onclick="javascript:return VL_Search(1669);">
<div class="search-btn">&nbsp;</div><a id="1669_searchBT" href="javascript:void(0);">搜索</a> </div></li></ul></div>','','','<select id="d1669_流程是否已结束" name="d1669_流程是否已结束" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1669,''SearchF_'',1669,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1669,''SearchF_'',1669);" EntId="1669" IsField=1 DBField=0 IsPost=1 FieldName="流程是否已结束" dType="4" Vtp="1" RDT="4" Isc="1" RId="1" CId="3" FId="4" vlk=0    Cpre="="  style="width:150px;">','<option  value="False"  >否</option>
<option  value="True"  >是</option>
</select>','',1,-1,-1,-1,-1,0,'1669,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=4,[Form_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=4,[CompareOperatorType]='=',[FieldName]='流程是否已结束',[FieldDataTypeId]=4,[RunDataTypeId]=4,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=1,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="position: static;" class="search-li w270 h32" scroll="no" areaid="134"><label class="search-title pad7" fldid="4" istitle="1">流程已结束</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">',[LastHtml]='</span> </div></li>
<li style="position: static;" class="search-li w100 h32" scroll="no" areaid="135">
<div class="searchform-button" onclick="javascript:return VL_Search(1669);">
<div class="search-btn">&nbsp;</div><a id="1669_searchBT" href="javascript:void(0);">搜索</a> </div></li></ul></div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1669_流程是否已结束" name="d1669_流程是否已结束" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1669,''SearchF_'',1669,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1669,''SearchF_'',1669);" EntId="1669" IsField=1 DBField=0 IsPost=1 FieldName="流程是否已结束" dType="4" Vtp="1" RDT="4" Isc="1" RId="1" CId="3" FId="4" vlk=0    Cpre="="  style="width:150px;">',[CtrlbackHtml]='<option  value="False"  >否</option>
<option  value="True"  >是</option>
</select>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1669,' where  [FldUId]='6a436f53-99ac-4892-a4c3-99f1c7b64e8b' 
      end



Delete from [Dcx_BrowseReport_Run]  where [EntId]=1669

--Dcx_BrowseReport_Run
      if (select count(1) from [Dcx_BrowseReport_Run] where  [EntId]=1669  )<1 
      begin 
           Insert into [Dcx_BrowseReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[DIYJsCss],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('e7056790-bde9-401d-83ae-96c769dee34a','会议申请',1669,31,'','<$1669$>select [WFState],[WFUserName],[会议编号],[会议主题],[会议类型],[主办部门],[会议室名称],[会议室编号],[开始时间],[结束时间],[主持人],[纪要员],[参会人],[会议内容],[其他资源],[会议状态],[申请人],[申请时间],[LD_Id] from 行政_会议管理表 where [LD_Id]=''{$keyfieldvalue}''</$1669$>',1,1,20,'','DcxRun.MChildR_1669= {"MenuId":2876,"MEntId":1669,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"会议申请","EntMsg":{"E1669":{"EntId":1669,"EntName":"会议申请","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":55,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1669*LD_Id*2**2*行政_会议管理表*会议申请',3,'','2012-12-21 11:03:02',3,'','2013-11-17 2:52:55',1)
      end
      else 
      begin 
           update [Dcx_BrowseReport_Run] set [ReportId]='e7056790-bde9-401d-83ae-96c769dee34a',[ReportName]='会议申请',[ModuleId]=31,[StaticHtml]='',[LoadingSql]='<$1669$>select [WFState],[WFUserName],[会议编号],[会议主题],[会议类型],[主办部门],[会议室名称],[会议室编号],[开始时间],[结束时间],[主持人],[纪要员],[参会人],[会议内容],[其他资源],[会议状态],[申请人],[申请时间],[LD_Id] from 行政_会议管理表 where [LD_Id]=''{$keyfieldvalue}''</$1669$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[DIYJsCss]='',[AutoPublicJs]='DcxRun.MChildR_1669= {"MenuId":2876,"MEntId":1669,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"会议申请","EntMsg":{"E1669":{"EntId":1669,"EntName":"会议申请","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":55,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1669*LD_Id*2**2*行政_会议管理表*会议申请',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-21 11:03:02',[EditorId]=3,[Editor]='',[EditTime]='2013-11-17 2:52:55',[AccountId]=1 where  [EntId]=1669 
      end




--Dcx_BrowseReportField_Run
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='6f21abc0-d836-4e39-a6f6-8fc85948c026'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'6f21abc0-d836-4e39-a6f6-8fc85948c026',1669,1669,'00000000-0000-0000-0000-000000000000',2,'WFState',1,1,'varchar',2,1,0,'','','','<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1669" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="703" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">会议申请</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1669" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="704" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">当前状态  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1669" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1669,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=1,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='WFState',[FieldNO]=1,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1669" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="703" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">会议申请</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1669" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="704" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">当前状态  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1669" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1669,' where  [FldUId]='6f21abc0-d836-4e39-a6f6-8fc85948c026' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='8bba8855-6e5e-4f62-aede-9c6c06f1fb32'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'8bba8855-6e5e-4f62-aede-9c6c06f1fb32',1669,1669,'00000000-0000-0000-0000-000000000000',3,'WFUserName',2,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="705" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">当前办理人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1669" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1669,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=2,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='WFUserName',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="705" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">当前办理人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1669" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1669,' where  [FldUId]='8bba8855-6e5e-4f62-aede-9c6c06f1fb32' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='e5086d98-b8fd-4539-abcf-3b5b0ad097d8'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'e5086d98-b8fd-4539-abcf-3b5b0ad097d8',1669,1669,'00000000-0000-0000-0000-000000000000',11,'会议编号',3,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="706" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">会议编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1669" fieldname="会议编号" fldid="3" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1669,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=3,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=11,[FieldName]='会议编号',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="706" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">会议编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1669" fieldname="会议编号" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1669,' where  [FldUId]='e5086d98-b8fd-4539-abcf-3b5b0ad097d8' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='efe7cead-b222-405f-b369-027a1f2d6648'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'efe7cead-b222-405f-b369-027a1f2d6648',1669,1669,'00000000-0000-0000-0000-000000000000',12,'会议主题',4,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="707" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">会议主题  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1669" fieldname="会议主题" fldid="4" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1669,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=4,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=12,[FieldName]='会议主题',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="707" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">会议主题  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1669" fieldname="会议主题" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1669,' where  [FldUId]='efe7cead-b222-405f-b369-027a1f2d6648' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='0903d371-34f6-40ef-b398-72bf3d91ebb4'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'0903d371-34f6-40ef-b398-72bf3d91ebb4',1669,1669,'00000000-0000-0000-0000-000000000000',13,'会议类型',5,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="708" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">会议类型  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1669" fieldname="会议类型" fldid="5" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1669,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=5,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=13,[FieldName]='会议类型',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="708" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">会议类型  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1669" fieldname="会议类型" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1669,' where  [FldUId]='0903d371-34f6-40ef-b398-72bf3d91ebb4' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='787dd027-f3ac-4e24-81f8-77c261783f19'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'787dd027-f3ac-4e24-81f8-77c261783f19',1669,1669,'00000000-0000-0000-0000-000000000000',14,'主办部门',6,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="709" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">主办部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1669" fieldname="主办部门" fldid="6" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1669,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=6,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=14,[FieldName]='主办部门',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="709" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">主办部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1669" fieldname="主办部门" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1669,' where  [FldUId]='787dd027-f3ac-4e24-81f8-77c261783f19' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='3d1c3493-0bd2-4e7a-84c8-fcfc7dcafd5b'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'3d1c3493-0bd2-4e7a-84c8-fcfc7dcafd5b',1669,1669,'00000000-0000-0000-0000-000000000000',15,'会议室名称',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="710" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">会议室名称  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1669" fieldname="会议室名称" fldid="7" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1669,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=7,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=15,[FieldName]='会议室名称',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="710" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">会议室名称  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1669" fieldname="会议室名称" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1669,' where  [FldUId]='3d1c3493-0bd2-4e7a-84c8-fcfc7dcafd5b' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='aa4923da-67ca-4c9e-9b03-19e1496557ec'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'aa4923da-67ca-4c9e-9b03-19e1496557ec',1669,1669,'00000000-0000-0000-0000-000000000000',16,'会议室编号',8,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="711" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="8">会议室编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1669" fieldname="会议室编号" fldid="8" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1669,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=8,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=16,[FieldName]='会议室编号',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="711" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="8">会议室编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1669" fieldname="会议室编号" fldid="8" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1669,' where  [FldUId]='aa4923da-67ca-4c9e-9b03-19e1496557ec' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='4a6b713b-3084-4753-a397-7ec4f9b578aa'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'4a6b713b-3084-4753-a397-7ec4f9b578aa',1669,1669,'00000000-0000-0000-0000-000000000000',17,'开始时间',9,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="712" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="9">开始时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1669" fieldname="开始时间" fldid="9" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1669,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=9,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=17,[FieldName]='开始时间',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="712" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="9">开始时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1669" fieldname="开始时间" fldid="9" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1669,' where  [FldUId]='4a6b713b-3084-4753-a397-7ec4f9b578aa' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='3f57cba2-2add-46d2-8554-8504a3b72c7d'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'3f57cba2-2add-46d2-8554-8504a3b72c7d',1669,1669,'00000000-0000-0000-0000-000000000000',18,'结束时间',10,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="713" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="10">结束时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1669" fieldname="结束时间" fldid="10" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1669,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=10,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=18,[FieldName]='结束时间',[FieldNO]=10,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="713" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="10">结束时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1669" fieldname="结束时间" fldid="10" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1669,' where  [FldUId]='3f57cba2-2add-46d2-8554-8504a3b72c7d' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='2f06920b-7107-46a5-93ed-2d50e3ebdccd'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'2f06920b-7107-46a5-93ed-2d50e3ebdccd',1669,1669,'00000000-0000-0000-0000-000000000000',19,'主持人',11,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="714" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="11">主持人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1669" fieldname="主持人" fldid="11" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1669,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=11,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=19,[FieldName]='主持人',[FieldNO]=11,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="714" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="11">主持人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1669" fieldname="主持人" fldid="11" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1669,' where  [FldUId]='2f06920b-7107-46a5-93ed-2d50e3ebdccd' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='6c06cc09-a3ee-4b09-a96e-1c5b1cbeafd2'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(12,'6c06cc09-a3ee-4b09-a96e-1c5b1cbeafd2',1669,1669,'00000000-0000-0000-0000-000000000000',20,'纪要员',12,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="715" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="12">纪要员  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1669" fieldname="纪要员" fldid="12" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1669,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=12,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=20,[FieldName]='纪要员',[FieldNO]=12,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="715" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="12">纪要员  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1669" fieldname="纪要员" fldid="12" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1669,' where  [FldUId]='6c06cc09-a3ee-4b09-a96e-1c5b1cbeafd2' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='3a6bcf06-96d5-41eb-bf1c-2d0007fb443b'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(13,'3a6bcf06-96d5-41eb-bf1c-2d0007fb443b',1669,1669,'00000000-0000-0000-0000-000000000000',21,'参会人',13,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="716" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="13">参会人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1669" fieldname="参会人" fldid="13" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1669,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=13,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=21,[FieldName]='参会人',[FieldNO]=13,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="716" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="13">参会人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1669" fieldname="参会人" fldid="13" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1669,' where  [FldUId]='3a6bcf06-96d5-41eb-bf1c-2d0007fb443b' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='9a225af2-88fc-4412-b127-98555c4b390c'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(14,'9a225af2-88fc-4412-b127-98555c4b390c',1669,1669,'00000000-0000-0000-0000-000000000000',22,'会议内容',14,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="717" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="14">会议内容  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1669" fieldname="会议内容" fldid="14" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1669,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=14,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=22,[FieldName]='会议内容',[FieldNO]=14,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="717" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="14">会议内容  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1669" fieldname="会议内容" fldid="14" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1669,' where  [FldUId]='9a225af2-88fc-4412-b127-98555c4b390c' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='4c63739a-6911-423c-ba35-5cf4f87ff524'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(15,'4c63739a-6911-423c-ba35-5cf4f87ff524',1669,1669,'00000000-0000-0000-0000-000000000000',23,'其他资源',15,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="718" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="15">其他资源  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1669" fieldname="其他资源" fldid="15" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1669,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=15,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=23,[FieldName]='其他资源',[FieldNO]=15,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="718" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="15">其他资源  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1669" fieldname="其他资源" fldid="15" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1669,' where  [FldUId]='4c63739a-6911-423c-ba35-5cf4f87ff524' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='b0edd71a-4b72-4178-806e-6eee6825877a'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(16,'b0edd71a-4b72-4178-806e-6eee6825877a',1669,1669,'00000000-0000-0000-0000-000000000000',24,'会议状态',16,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="719" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="16">会议状态  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1669" fieldname="会议状态" fldid="16" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1669,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=16,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=24,[FieldName]='会议状态',[FieldNO]=16,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="719" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="16">会议状态  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1669" fieldname="会议状态" fldid="16" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1669,' where  [FldUId]='b0edd71a-4b72-4178-806e-6eee6825877a' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='35d9cfde-a5f2-4320-a514-bd10a4b66a4c'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(17,'35d9cfde-a5f2-4320-a514-bd10a4b66a4c',1669,1669,'00000000-0000-0000-0000-000000000000',25,'申请人',17,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="720" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="17">申请人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1669" fieldname="申请人" fldid="17" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1669,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=17,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=25,[FieldName]='申请人',[FieldNO]=17,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="720" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="17">申请人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1669" fieldname="申请人" fldid="17" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1669,' where  [FldUId]='35d9cfde-a5f2-4320-a514-bd10a4b66a4c' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='a8b033f0-a152-4a8e-86a6-2c681182463d'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(18,'a8b033f0-a152-4a8e-86a6-2c681182463d',1669,1669,'00000000-0000-0000-0000-000000000000',26,'申请时间',18,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="721" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="18">申请时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1669" fieldname="申请时间" fldid="18" columntypeid="1" class="form-ctr">','</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1669" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="726" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="727" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1669" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="728" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1669" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="729" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1669" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="730" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="731" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',-1,-1,-1,-1,0,'1669,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=18,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=26,[FieldName]='申请时间',[FieldNO]=18,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="721" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="18">申请时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1669" fieldname="申请时间" fldid="18" columntypeid="1" class="form-ctr">',[LastHtml]='</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1669" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="726" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="727" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1669" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="728" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1669" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="729" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1669" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="730" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="731" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1669,' where  [FldUId]='a8b033f0-a152-4a8e-86a6-2c681182463d' 
      end



Delete from [Dcx_ListReport_Run]  where [EntId]=1669

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=1669  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('f78b66ae-b461-4937-9baa-3c637e8de5a1','会议申请',1669,1,'','','<$1669$>select *  from (select row_number() over( order by [LD_Id])as dcx_rowid,[WFState],[WFFlowId],[WFRunId],[WFPrcsId],[WFUserName],[会议编号],[会议主题],[会议类型],[主办部门],[会议室名称],[会议室编号],[开始时间],[结束时间],[主持人],[纪要员],[参会人],[会议内容],[其他资源],[会议状态],[申请人],[申请时间],[LD_Id] from 行政_会议管理表  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1669$><$1669:Count$>select count([LD_Id]) from 行政_会议管理表 where {$SearchArea}</$1669:Count$>',1,1,20,'DcxRun.ListR_1669= {"MenuId":2876,"MEntId":1669,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"会议申请","EntMsg":{"E1669":{"EntId":1669,"EntName":"会议申请","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":55,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1669*LD_Id*2**2*行政_会议管理表*会议申请',3,'','2012-12-22 5:16:19',3,'','2013-11-16 20:06:27',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='f78b66ae-b461-4937-9baa-3c637e8de5a1',[ReportName]='会议申请',[ModuleId]=1,[StaticHtml]='',[DIYJsCss]='',[LoadingSql]='<$1669$>select *  from (select row_number() over( order by [LD_Id])as dcx_rowid,[WFState],[WFFlowId],[WFRunId],[WFPrcsId],[WFUserName],[会议编号],[会议主题],[会议类型],[主办部门],[会议室名称],[会议室编号],[开始时间],[结束时间],[主持人],[纪要员],[参会人],[会议内容],[其他资源],[会议状态],[申请人],[申请时间],[LD_Id] from 行政_会议管理表  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1669$><$1669:Count$>select count([LD_Id]) from 行政_会议管理表 where {$SearchArea}</$1669:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[AutoPublicJs]='DcxRun.ListR_1669= {"MenuId":2876,"MEntId":1669,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"会议申请","EntMsg":{"E1669":{"EntId":1669,"EntName":"会议申请","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":true,"FlowId":55,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1669*LD_Id*2**2*行政_会议管理表*会议申请',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-22 5:16:19',[EditorId]=3,[Editor]='',[EditTime]='2013-11-16 20:06:27',[AccountId]=1 where  [EntId]=1669 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='afa10c38-605d-ca47-9343-557ff86e4914'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(368,'afa10c38-605d-ca47-9343-557ff86e4914',1669,1669,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="91" entid="1669" style="width: 2160px;" ctrlprex="ListR_" isrple="1"> <li areaid="2263" class="tool-li" style="position: static;">
</li><li areaid="2264" class="tool-li" style="position: static;"><a id="ListR_1669_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1669,''ListR_'');">删   除</a></li>
<li areaid="2265" class="tool-li" style="position: static;"><a id="ListR_1669_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1669,''ListR_'');">导   出</a></li>
<li areaid="2266" class="tool-li" style="position: static;"><a id="ListR_1669_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1669,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1669" style="position: static;">
<a id="ListR_1669_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1669,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1669_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1669,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1669_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1669,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1669_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="92" entid="1669" class="list-head-ul" style="width: 2260px;" ctrlprex="ListR_" isrple="1">
<li areaid="2268" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1669" onclick="javascript:DcxCom.CheckedAll(this,1669,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="2269" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">当前状态 </label></li><li areaid="2270" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">当前办理人 </label></li><li areaid="2271" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议编号 </label></li><li areaid="2272" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议主题 </label></li><li areaid="2273" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议类型 </label></li><li areaid="2274" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">主办部门 </label></li><li areaid="2275" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议室名称 </label></li><li areaid="2276" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议室编号 </label></li><li areaid="2277" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">开始时间 </label></li><li areaid="2278" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">结束时间 </label></li><li areaid="2279" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">主持人 </label></li><li areaid="2280" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">纪要员 </label></li><li areaid="2281" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">参会人 </label></li><li areaid="2282" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议内容 </label></li><li areaid="2283" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">其他资源 </label></li><li areaid="2284" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议状态 </label></li><li areaid="2285" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请人 </label></li><li areaid="2286" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请时间 </label></li><li areaid="2287" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="办理"><span class="i">办理</span></a></div></li><li areaid="2288" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="2289" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">','',-1,93,-1,-1,1,'1669,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=368,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="91" entid="1669" style="width: 2160px;" ctrlprex="ListR_" isrple="1"> <li areaid="2263" class="tool-li" style="position: static;">
</li><li areaid="2264" class="tool-li" style="position: static;"><a id="ListR_1669_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1669,''ListR_'');">删   除</a></li>
<li areaid="2265" class="tool-li" style="position: static;"><a id="ListR_1669_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1669,''ListR_'');">导   出</a></li>
<li areaid="2266" class="tool-li" style="position: static;"><a id="ListR_1669_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1669,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1669" style="position: static;">
<a id="ListR_1669_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1669,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1669_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1669,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1669_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1669,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1669_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="92" entid="1669" class="list-head-ul" style="width: 2260px;" ctrlprex="ListR_" isrple="1">
<li areaid="2268" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1669" onclick="javascript:DcxCom.CheckedAll(this,1669,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="2269" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">当前状态 </label></li><li areaid="2270" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">当前办理人 </label></li><li areaid="2271" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议编号 </label></li><li areaid="2272" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议主题 </label></li><li areaid="2273" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议类型 </label></li><li areaid="2274" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">主办部门 </label></li><li areaid="2275" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议室名称 </label></li><li areaid="2276" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议室编号 </label></li><li areaid="2277" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">开始时间 </label></li><li areaid="2278" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">结束时间 </label></li><li areaid="2279" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">主持人 </label></li><li areaid="2280" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">纪要员 </label></li><li areaid="2281" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">参会人 </label></li><li areaid="2282" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议内容 </label></li><li areaid="2283" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">其他资源 </label></li><li areaid="2284" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议状态 </label></li><li areaid="2285" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请人 </label></li><li areaid="2286" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请时间 </label></li><li areaid="2287" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="办理"><span class="i">办理</span></a></div></li><li areaid="2288" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="2289" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1669,' where  [FldUId]='afa10c38-605d-ca47-9343-557ff86e4914' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='5fc4b1cc-a3ed-450f-b2f3-9d5f4410f5bc'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(154,'5fc4b1cc-a3ed-450f-b2f3-9d5f4410f5bc',1669,1669,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',2,1,'',2,21,0,'','','','islonly="1" isgroup="1" groupid="93" class="list-body-ul" style="width: 2260px;" isrple="1">
<li areaid="2290" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1669" issyscheck="1" keyvalue="','',-1,93,-1,-1,1,'1669,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=154,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='islonly="1" isgroup="1" groupid="93" class="list-body-ul" style="width: 2260px;" isrple="1">
<li areaid="2290" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1669" issyscheck="1" keyvalue="',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1669,' where  [FldUId]='5fc4b1cc-a3ed-450f-b2f3-9d5f4410f5bc' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='9392d9e4-9b4b-4df1-b257-e19151ae9c3e'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'9392d9e4-9b4b-4df1-b257-e19151ae9c3e',1669,1669,'00000000-0000-0000-0000-000000000000',2,'WFState',3,1,'varchar',2,1,0,'','','','" type="checkbox"></li><li areaid="2291" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowCurWfDlg(this);">
   <span isfield="1" entid="1669" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1669,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=1,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='WFState',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='" type="checkbox"></li><li areaid="2291" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowCurWfDlg(this);">
   <span isfield="1" entid="1669" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1669,' where  [FldUId]='9392d9e4-9b4b-4df1-b257-e19151ae9c3e' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='712c2d8c-a715-4a4c-a0ff-90dd8e16eaf1'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(315,'712c2d8c-a715-4a4c-a0ff-90dd8e16eaf1',1669,1669,'00000000-0000-0000-0000-000000000000',9,'WFFlowId',4,1,'',1,1,0,'','','','</span>
   </a>
   <span isfield="1" entid="1669" fieldname="WFFlowId" fldid="315" columntypeid="1" class="form-ctr" style="display: none;">','',-1,93,-1,-1,1,'1669,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=315,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=9,[FieldName]='WFFlowId',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   </a>
   <span isfield="1" entid="1669" fieldname="WFFlowId" fldid="315" columntypeid="1" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1669,' where  [FldUId]='712c2d8c-a715-4a4c-a0ff-90dd8e16eaf1' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='9dcf0e5b-a298-4814-97f8-3b9005f78287'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(316,'9dcf0e5b-a298-4814-97f8-3b9005f78287',1669,1669,'00000000-0000-0000-0000-000000000000',8,'WFRunId',5,1,'',1,1,0,'','','','</span>
   <span isfield="1" entid="1669" fieldname="WFRunId" fldid="316" columntypeid="1" class="form-ctr" style="display: none;">','',-1,93,-1,-1,1,'1669,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=316,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=8,[FieldName]='WFRunId',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   <span isfield="1" entid="1669" fieldname="WFRunId" fldid="316" columntypeid="1" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1669,' where  [FldUId]='9dcf0e5b-a298-4814-97f8-3b9005f78287' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='74004ae1-067d-4dde-8711-5b1b57959265'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(317,'74004ae1-067d-4dde-8711-5b1b57959265',1669,1669,'00000000-0000-0000-0000-000000000000',10,'WFPrcsId',6,1,'',1,1,0,'','','','</span>
   <span isfield="1" entid="1669" fieldname="WFPrcsId" fldid="317" columntypeid="1" class="form-ctr" style="display: none;">','',-1,93,-1,-1,1,'1669,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=317,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=10,[FieldName]='WFPrcsId',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   <span isfield="1" entid="1669" fieldname="WFPrcsId" fldid="317" columntypeid="1" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1669,' where  [FldUId]='74004ae1-067d-4dde-8711-5b1b57959265' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='a7894ad1-cf60-44a6-bbf7-a36b837ff86b'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'a7894ad1-cf60-44a6-bbf7-a36b837ff86b',1669,1669,'00000000-0000-0000-0000-000000000000',3,'WFUserName',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2292" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowWfCurUserDlg(this);">
   <span isfield="1" entid="1669" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1669,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=2,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='WFUserName',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2292" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowWfCurUserDlg(this);">
   <span isfield="1" entid="1669" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1669,' where  [FldUId]='a7894ad1-cf60-44a6-bbf7-a36b837ff86b' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='4a38efb0-f806-47f1-8e0e-ec2ef9cf6e7e'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'4a38efb0-f806-47f1-8e0e-ec2ef9cf6e7e',1669,1669,'00000000-0000-0000-0000-000000000000',11,'会议编号',8,1,'varchar',2,1,0,'','','','</span>
   </a>
  </div>
</li><li areaid="2293" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1669" fieldname="会议编号" fldid="3" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1669,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=3,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=11,[FieldName]='会议编号',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   </a>
  </div>
</li><li areaid="2293" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1669" fieldname="会议编号" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1669,' where  [FldUId]='4a38efb0-f806-47f1-8e0e-ec2ef9cf6e7e' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='d7ca39ba-726a-4fb9-97d7-f8736aee1e85'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'d7ca39ba-726a-4fb9-97d7-f8736aee1e85',1669,1669,'00000000-0000-0000-0000-000000000000',12,'会议主题',9,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2294" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1669" fieldname="会议主题" fldid="4" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1669,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=4,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=12,[FieldName]='会议主题',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2294" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1669" fieldname="会议主题" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1669,' where  [FldUId]='d7ca39ba-726a-4fb9-97d7-f8736aee1e85' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='e178c957-938b-4309-8446-c50a443d4080'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'e178c957-938b-4309-8446-c50a443d4080',1669,1669,'00000000-0000-0000-0000-000000000000',13,'会议类型',10,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2295" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1669" fieldname="会议类型" fldid="5" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1669,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=5,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=13,[FieldName]='会议类型',[FieldNO]=10,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2295" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1669" fieldname="会议类型" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1669,' where  [FldUId]='e178c957-938b-4309-8446-c50a443d4080' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='32f14afd-3830-4b04-b48d-ab621230352b'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'32f14afd-3830-4b04-b48d-ab621230352b',1669,1669,'00000000-0000-0000-0000-000000000000',14,'主办部门',11,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2296" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1669" fieldname="主办部门" fldid="6" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1669,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=6,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=14,[FieldName]='主办部门',[FieldNO]=11,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2296" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1669" fieldname="主办部门" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1669,' where  [FldUId]='32f14afd-3830-4b04-b48d-ab621230352b' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='355d62c9-dcae-41f2-9393-f62bc0bf6d12'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'355d62c9-dcae-41f2-9393-f62bc0bf6d12',1669,1669,'00000000-0000-0000-0000-000000000000',15,'会议室名称',12,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2297" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1669" fieldname="会议室名称" fldid="7" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1669,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=7,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=15,[FieldName]='会议室名称',[FieldNO]=12,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2297" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1669" fieldname="会议室名称" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1669,' where  [FldUId]='355d62c9-dcae-41f2-9393-f62bc0bf6d12' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='ee1be045-235a-40f7-a03c-4aabb9c4245e'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'ee1be045-235a-40f7-a03c-4aabb9c4245e',1669,1669,'00000000-0000-0000-0000-000000000000',16,'会议室编号',13,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2298" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1669" fieldname="会议室编号" fldid="8" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1669,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=8,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=16,[FieldName]='会议室编号',[FieldNO]=13,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2298" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1669" fieldname="会议室编号" fldid="8" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1669,' where  [FldUId]='ee1be045-235a-40f7-a03c-4aabb9c4245e' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='4b81bc79-58ac-4ced-8f0a-cd03da3e1409'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'4b81bc79-58ac-4ced-8f0a-cd03da3e1409',1669,1669,'00000000-0000-0000-0000-000000000000',17,'开始时间',14,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2299" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1669" fieldname="开始时间" fldid="9" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1669,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=9,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=17,[FieldName]='开始时间',[FieldNO]=14,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2299" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1669" fieldname="开始时间" fldid="9" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1669,' where  [FldUId]='4b81bc79-58ac-4ced-8f0a-cd03da3e1409' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='fedf8b8e-be61-4252-97d7-a8cfa68d8a9c'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'fedf8b8e-be61-4252-97d7-a8cfa68d8a9c',1669,1669,'00000000-0000-0000-0000-000000000000',18,'结束时间',15,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2300" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1669" fieldname="结束时间" fldid="10" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1669,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=10,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=18,[FieldName]='结束时间',[FieldNO]=15,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2300" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1669" fieldname="结束时间" fldid="10" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1669,' where  [FldUId]='fedf8b8e-be61-4252-97d7-a8cfa68d8a9c' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='cb8ca0fe-4b64-4d86-ad6b-db228fde1b1c'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'cb8ca0fe-4b64-4d86-ad6b-db228fde1b1c',1669,1669,'00000000-0000-0000-0000-000000000000',19,'主持人',16,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2301" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1669" fieldname="主持人" fldid="11" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1669,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=11,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=19,[FieldName]='主持人',[FieldNO]=16,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2301" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1669" fieldname="主持人" fldid="11" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1669,' where  [FldUId]='cb8ca0fe-4b64-4d86-ad6b-db228fde1b1c' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='a4ddacf8-d467-4fe0-808c-499ba3febcf4'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(12,'a4ddacf8-d467-4fe0-808c-499ba3febcf4',1669,1669,'00000000-0000-0000-0000-000000000000',20,'纪要员',17,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2302" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1669" fieldname="纪要员" fldid="12" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1669,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=12,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=20,[FieldName]='纪要员',[FieldNO]=17,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2302" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1669" fieldname="纪要员" fldid="12" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1669,' where  [FldUId]='a4ddacf8-d467-4fe0-808c-499ba3febcf4' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='291b840c-8ecf-4c70-ade0-98ee4f6fe0fa'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(13,'291b840c-8ecf-4c70-ade0-98ee4f6fe0fa',1669,1669,'00000000-0000-0000-0000-000000000000',21,'参会人',18,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2303" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1669" fieldname="参会人" fldid="13" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1669,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=13,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=21,[FieldName]='参会人',[FieldNO]=18,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2303" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1669" fieldname="参会人" fldid="13" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1669,' where  [FldUId]='291b840c-8ecf-4c70-ade0-98ee4f6fe0fa' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='acff934e-6b09-4588-aed1-11b3318cdc95'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(14,'acff934e-6b09-4588-aed1-11b3318cdc95',1669,1669,'00000000-0000-0000-0000-000000000000',22,'会议内容',19,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2304" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1669" fieldname="会议内容" fldid="14" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1669,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=14,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=22,[FieldName]='会议内容',[FieldNO]=19,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2304" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1669" fieldname="会议内容" fldid="14" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1669,' where  [FldUId]='acff934e-6b09-4588-aed1-11b3318cdc95' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='f5e405de-5ca6-4bf1-b1f2-08a381e878ab'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(15,'f5e405de-5ca6-4bf1-b1f2-08a381e878ab',1669,1669,'00000000-0000-0000-0000-000000000000',23,'其他资源',20,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2305" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1669" fieldname="其他资源" fldid="15" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1669,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=15,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=23,[FieldName]='其他资源',[FieldNO]=20,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2305" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1669" fieldname="其他资源" fldid="15" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1669,' where  [FldUId]='f5e405de-5ca6-4bf1-b1f2-08a381e878ab' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='31d4c22d-6212-402d-84a8-70797dac0462'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(16,'31d4c22d-6212-402d-84a8-70797dac0462',1669,1669,'00000000-0000-0000-0000-000000000000',24,'会议状态',21,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2306" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1669" fieldname="会议状态" fldid="16" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1669,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=16,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=24,[FieldName]='会议状态',[FieldNO]=21,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2306" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1669" fieldname="会议状态" fldid="16" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1669,' where  [FldUId]='31d4c22d-6212-402d-84a8-70797dac0462' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='33b67e82-626d-477c-a2fa-c7bac07f003b'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(17,'33b67e82-626d-477c-a2fa-c7bac07f003b',1669,1669,'00000000-0000-0000-0000-000000000000',25,'申请人',22,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2307" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1669" fieldname="申请人" fldid="17" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1669,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=17,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=25,[FieldName]='申请人',[FieldNO]=22,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2307" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1669" fieldname="申请人" fldid="17" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1669,' where  [FldUId]='33b67e82-626d-477c-a2fa-c7bac07f003b' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='7b126272-5b87-40c7-a5b0-dd5ecb13a4fb'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(18,'7b126272-5b87-40c7-a5b0-dd5ecb13a4fb',1669,1669,'00000000-0000-0000-0000-000000000000',26,'申请时间',23,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2308" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1669" fieldname="申请时间" fldid="18" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1669,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=18,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=26,[FieldName]='申请时间',[FieldNO]=23,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2308" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1669" fieldname="申请时间" fldid="18" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1669,' where  [FldUId]='7b126272-5b87-40c7-a5b0-dd5ecb13a4fb' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='6c88f116-1cc2-4787-850a-d36effbf7038'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(155,'6c88f116-1cc2-4787-850a-d36effbf7038',1669,1669,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',24,1,'',2,21,0,'','','','</span>
  </div>
</li><li areaid="2309" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,1669,''ListR_'',''','',-1,93,-1,-1,1,'1669,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=155,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=24,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2309" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,1669,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1669,' where  [FldUId]='6c88f116-1cc2-4787-850a-d36effbf7038' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='48f16cc8-ca06-40c8-a2f1-a842e4ca383d'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(156,'48f16cc8-ca06-40c8-a2f1-a842e4ca383d',1669,1669,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',25,1,'',2,21,0,'','','',''',null,1040,480);">
<span class="i">办理</span></a></div>
</li><li areaid="2310" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1669,''ListR_'',''','',-1,93,-1,-1,1,'1669,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=156,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=25,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">办理</span></a></div>
</li><li areaid="2310" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1669,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1669,' where  [FldUId]='48f16cc8-ca06-40c8-a2f1-a842e4ca383d' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='16063d4f-7c9c-411a-90c0-bdec112faa92'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(157,'16063d4f-7c9c-411a-90c0-bdec112faa92',1669,1669,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',26,1,'',2,21,0,'','','',''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="2311" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,1669,''ListR_'',''','',-1,93,-1,-1,1,'1669,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=157,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=26,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="2311" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,1669,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1669,' where  [FldUId]='16063d4f-7c9c-411a-90c0-bdec112faa92' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='59dc086c-2c23-293c-08ab-328bdff346cc'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(369,'59dc086c-2c23-293c-08ab-328bdff346cc',1669,1669,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',27,-1,'varchar',2,13,0,'','','',''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>','</div>
</div>
<!-- 结束 --></div>',-1,93,-1,-1,1,'1669,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=369,[Report_EntId]=1669,[EntId]=1669,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=27,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>',[LastHtml]='</div>
</div>
<!-- 结束 --></div>',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1669,' where  [FldUId]='59dc086c-2c23-293c-08ab-328bdff346cc' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=1113

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=1113  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(1113,null,'行政_会议管理表','行政_会议管理表',0,0,0,0,0,1,1,1,3,'admin','2013-12-15 17:32:53',3,'admin','2013-12-15 17:32:53',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='行政_会议管理表',[DBTableByName]='行政_会议管理表',[IsForbid]=0,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=1,[SystemId]=1,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:53',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:53',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=1113 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2573,1,1,1113,'int',1,1,1,'行政_会议管理表','LD_Id','LD_Id','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='LD_Id',[FieldByname]='LD_Id',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2574,2,1,1113,'varchar',2,1,1,'行政_会议管理表','WFState','WFState','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFState',[FieldByname]='WFState',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2575,3,1,1113,'varchar',2,1,1,'行政_会议管理表','WFUserName','WFUserName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFUserName',[FieldByname]='WFUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2576,4,1,1113,'bit',4,1,1,'行政_会议管理表','WFIsFinish','WFIsFinish','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFIsFinish',[FieldByname]='WFIsFinish',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2577,5,1,1113,'bit',4,1,1,'行政_会议管理表','WFIsStart','WFIsStart','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFIsStart',[FieldByname]='WFIsStart',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2578,6,1,1113,'varchar',2,1,1,'行政_会议管理表','WFAllUser','WFAllUser','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFAllUser',[FieldByname]='WFAllUser',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2579,7,1,1113,'varchar',2,1,1,'行政_会议管理表','WFOpinion','WFOpinion','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFOpinion',[FieldByname]='WFOpinion',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2580,8,1,1113,'int',1,1,1,'行政_会议管理表','WFRunId','WFRunId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFRunId',[FieldByname]='WFRunId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2581,9,1,1113,'int',1,1,1,'行政_会议管理表','WFFlowId','WFFlowId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFFlowId',[FieldByname]='WFFlowId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2582,10,1,1113,'int',1,1,1,'行政_会议管理表','WFPrcsId','WFPrcsId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFPrcsId',[FieldByname]='WFPrcsId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2583,11,1,1113,'varchar',2,1,1,'行政_会议管理表','会议编号','会议编号','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='会议编号',[FieldByname]='会议编号',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2584,12,1,1113,'varchar',2,1,1,'行政_会议管理表','会议主题','会议主题','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='会议主题',[FieldByname]='会议主题',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2585,13,1,1113,'varchar',2,1,1,'行政_会议管理表','会议类型','会议类型','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='会议类型',[FieldByname]='会议类型',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2586,14,1,1113,'varchar',2,1,1,'行政_会议管理表','主办部门','主办部门','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='主办部门',[FieldByname]='主办部门',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2587,15,1,1113,'varchar',2,1,1,'行政_会议管理表','会议室名称','会议室名称','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='会议室名称',[FieldByname]='会议室名称',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2588,16,1,1113,'varchar',2,1,1,'行政_会议管理表','会议室编号','会议室编号','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='会议室编号',[FieldByname]='会议室编号',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2589,17,1,1113,'datetime',3,1,1,'行政_会议管理表','开始时间','开始时间','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='开始时间',[FieldByname]='开始时间',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2590,18,1,1113,'datetime',3,1,1,'行政_会议管理表','结束时间','结束时间','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='结束时间',[FieldByname]='结束时间',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2591,19,1,1113,'varchar',2,1,1,'行政_会议管理表','主持人','主持人','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='主持人',[FieldByname]='主持人',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2592,20,1,1113,'varchar',2,1,1,'行政_会议管理表','纪要员','纪要员','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='纪要员',[FieldByname]='纪要员',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2593,21,1,1113,'varchar',2,1,1,'行政_会议管理表','参会人','参会人','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='参会人',[FieldByname]='参会人',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2594,22,1,1113,'varchar',2,1,1,'行政_会议管理表','会议内容','会议内容','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='会议内容',[FieldByname]='会议内容',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2595,23,1,1113,'varchar',2,1,1,'行政_会议管理表','其他资源','其他资源','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='其他资源',[FieldByname]='其他资源',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2596,24,1,1113,'varchar',2,1,1,'行政_会议管理表','会议状态','会议状态','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='会议状态',[FieldByname]='会议状态',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2597,25,1,1113,'varchar',2,1,1,'行政_会议管理表','申请人','申请人','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='申请人',[FieldByname]='申请人',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2598,26,1,1113,'datetime',3,1,1,'行政_会议管理表','申请时间','申请时间','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='申请时间',[FieldByname]='申请时间',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=26 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--WF_FlowType

     SET IDENTITY_INSERT [WF_FlowType] ON 
      if (select count(1) from [WF_FlowType] where  [FlowId]=55  )<1 
      begin 
           Insert into [WF_FlowType] ([FlowId],[FlowName],[FlowNo],[SortId],[EntId],[EntName],[AutoName],[ManageUsers],[ManageNames],[QueryUsers],[QueryNames],[CanQueryRoles],[CanQueryRolesId],[CanManageRoles],[CanManageRolesId],[CanStartUsers],[CanStartNames],[CanStartRoles],[CanStartRolesId],[AttachMaxSize],[FlowAttach],[IsPigeonhole],[PigeonholedSQL],[IsFreeFlow],[QueryItem],[LaunchIsOpen],[FormUrl],[BrowseUrl],[ListUrl],[Detail],[CreatorId],[Creator],[CreateTime],[EditTime],[Editor],[EditorId],[AccountId])values(55,'会议申请',84,31,1669,'会议申请',null,'admin','admin','admin','admin','系统管理员','3','系统管理员','3',null,null,'Public','1',2,0,null,null,null,null,null,null,null,null,'',0,'admin','2013-11-30 1:06:40',null,null,null,1)
      end
      else 
      begin 
           update [WF_FlowType] set [FlowName]='会议申请',[FlowNo]=84,[SortId]=31,[EntId]=1669,[EntName]='会议申请',[AutoName]=null,[ManageUsers]='admin',[ManageNames]='admin',[QueryUsers]='admin',[QueryNames]='admin',[CanQueryRoles]='系统管理员',[CanQueryRolesId]='3',[CanManageRoles]='系统管理员',[CanManageRolesId]='3',[CanStartUsers]=null,[CanStartNames]=null,[CanStartRoles]='Public',[CanStartRolesId]='1',[AttachMaxSize]=2,[FlowAttach]=0,[IsPigeonhole]=null,[PigeonholedSQL]=null,[IsFreeFlow]=null,[QueryItem]=null,[LaunchIsOpen]=null,[FormUrl]=null,[BrowseUrl]=null,[ListUrl]=null,[Detail]='',[CreatorId]=0,[Creator]='admin',[CreateTime]='2013-11-30 1:06:40',[EditTime]=null,[Editor]=null,[EditorId]=null,[AccountId]=1 where  [FlowId]=55 
      end

     SET IDENTITY_INSERT [WF_FlowType] OFF 



Delete from [WF_FlowNode]  where isnull([FlowId],0)=55 

--WF_FlowNode

     SET IDENTITY_INSERT [WF_FlowNode] ON 
      if (select count(1) from [WF_FlowNode] where  [NodeId]=455  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(455,55,'申请登记',1,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','456,457,458',0,1,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','<$462:Begin$>
		--流出到<部门领导审核>节点时 

		
Update   行政_会议管理表  Set   [会议状态]=''审批中''    where {{@keyfieldname@}}=''{{@keyfieldvalue@}}'' 
@流出节点名称:<<总经理审批>>
Update   行政_会议管理表  Set   [会议状态]=''审批中''    where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''

		</$462:End$>',null,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'3141,3142,3143,3144,3145,3146,3147,3148,3149,3150,3151,3152,3153,3154,3155,3156',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=55,[NodeName]='申请登记',[Step]=1,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='456,457,458',[AllowLastNodeBoss]=0,[AllowWorkCreator]=1,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='<$462:Begin$>
		--流出到<部门领导审核>节点时 

		
Update   行政_会议管理表  Set   [会议状态]=''审批中''    where {{@keyfieldname@}}=''{{@keyfieldvalue@}}'' 
@流出节点名称:<<总经理审批>>
Update   行政_会议管理表  Set   [会议状态]=''审批中''    where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''

		</$462:End$>',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='3141,3142,3143,3144,3145,3146,3147,3148,3149,3150,3151,3152,3153,3154,3155,3156',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=455 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=456  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(456,55,'部门领导审核',2,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','460',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','<$462:Begin$>
		--流出到<审批成功，通知申请人>节点时 

		
Update   行政_会议管理表  Set   [会议状态]=''申请成功''    where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''

		</$462:End$>',null,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=55,[NodeName]='部门领导审核',[Step]=2,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='460',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='<$462:Begin$>
		--流出到<审批成功，通知申请人>节点时 

		
Update   行政_会议管理表  Set   [会议状态]=''申请成功''    where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''

		</$462:End$>',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=456 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=457  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(457,55,'总经理审批',3,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','459,460',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','<$462:Begin$>
		--流出到<审批成功，通知申请人>节点时 

		
Update   行政_会议管理表  Set   [会议状态]=''申请成功''    where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''

		</$462:End$>',null,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=55,[NodeName]='总经理审批',[Step]=3,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='459,460',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='<$462:Begin$>
		--流出到<审批成功，通知申请人>节点时 

		
Update   行政_会议管理表  Set   [会议状态]=''申请成功''    where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''

		</$462:End$>',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=457 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=460  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(460,55,'审批成功，通知申请人',5,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','-1',0,1,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO','','<$462:Begin$>
		--流出到<结束>节点时 

		
update  行政_会议管理表    set WFIsFinish=1,WFIsStart=1 where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''

		</$462:End$>',null,0,'',null,null,null,null,null,null,null,null,null,null,null,null,'',null,null,null,'-1,-1',',',null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=55,[NodeName]='审批成功，通知申请人',[Step]=5,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='-1',[AllowLastNodeBoss]=0,[AllowWorkCreator]=1,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]='',[TriggerAfter]='<$462:Begin$>
		--流出到<结束>节点时 

		
update  行政_会议管理表    set WFIsFinish=1,WFIsStart=1 where {{@keyfieldname@}}=''{{@keyfieldvalue@}}''

		</$462:End$>',[CanReject]=null,[CanPigeonhole]=0,[PigeonholedSQL]='',[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]='-1,-1',[PositionDeptNames]=',',[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=460 
      end

     SET IDENTITY_INSERT [WF_FlowNode] OFF 




--WF_CanWriteField

     SET IDENTITY_INSERT [WF_CanWriteField] ON 
      if (select count(1) from [WF_CanWriteField] where  [Id]=2108  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2108,55,455,1669,'会议申请',3141,'会议编号','会议编号','会议申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=55,[NodeId]=455,[EntId]=1669,[EntName]='会议申请',[FldId]=3141,[FieldName]='会议编号',[CtrlByName]='会议编号',[FlowName]='会议申请',[TypeId]=1 where  [Id]=2108 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2109  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2109,55,455,1669,'会议申请',3142,'会议主题','会议主题','会议申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=55,[NodeId]=455,[EntId]=1669,[EntName]='会议申请',[FldId]=3142,[FieldName]='会议主题',[CtrlByName]='会议主题',[FlowName]='会议申请',[TypeId]=1 where  [Id]=2109 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2110  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2110,55,455,1669,'会议申请',3143,'会议类型','会议类型','会议申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=55,[NodeId]=455,[EntId]=1669,[EntName]='会议申请',[FldId]=3143,[FieldName]='会议类型',[CtrlByName]='会议类型',[FlowName]='会议申请',[TypeId]=1 where  [Id]=2110 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2111  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2111,55,455,1669,'会议申请',3144,'主办部门','主办部门','会议申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=55,[NodeId]=455,[EntId]=1669,[EntName]='会议申请',[FldId]=3144,[FieldName]='主办部门',[CtrlByName]='主办部门',[FlowName]='会议申请',[TypeId]=1 where  [Id]=2111 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2112  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2112,55,455,1669,'会议申请',3145,'会议室编号','会议室','会议申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=55,[NodeId]=455,[EntId]=1669,[EntName]='会议申请',[FldId]=3145,[FieldName]='会议室编号',[CtrlByName]='会议室',[FlowName]='会议申请',[TypeId]=1 where  [Id]=2112 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2113  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2113,55,455,1669,'会议申请',3146,'会议室名称','会议室名称','会议申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=55,[NodeId]=455,[EntId]=1669,[EntName]='会议申请',[FldId]=3146,[FieldName]='会议室名称',[CtrlByName]='会议室名称',[FlowName]='会议申请',[TypeId]=1 where  [Id]=2113 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2114  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2114,55,455,1669,'会议申请',3147,'开始时间','开始时间','会议申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=55,[NodeId]=455,[EntId]=1669,[EntName]='会议申请',[FldId]=3147,[FieldName]='开始时间',[CtrlByName]='开始时间',[FlowName]='会议申请',[TypeId]=1 where  [Id]=2114 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2115  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2115,55,455,1669,'会议申请',3148,'结束时间','结束时间','会议申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=55,[NodeId]=455,[EntId]=1669,[EntName]='会议申请',[FldId]=3148,[FieldName]='结束时间',[CtrlByName]='结束时间',[FlowName]='会议申请',[TypeId]=1 where  [Id]=2115 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2116  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2116,55,455,1669,'会议申请',3149,'主持人','主持人','会议申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=55,[NodeId]=455,[EntId]=1669,[EntName]='会议申请',[FldId]=3149,[FieldName]='主持人',[CtrlByName]='主持人',[FlowName]='会议申请',[TypeId]=1 where  [Id]=2116 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2117  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2117,55,455,1669,'会议申请',3150,'纪要员','纪要员','会议申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=55,[NodeId]=455,[EntId]=1669,[EntName]='会议申请',[FldId]=3150,[FieldName]='纪要员',[CtrlByName]='纪要员',[FlowName]='会议申请',[TypeId]=1 where  [Id]=2117 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2118  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2118,55,455,1669,'会议申请',3151,'参会人','参会人','会议申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=55,[NodeId]=455,[EntId]=1669,[EntName]='会议申请',[FldId]=3151,[FieldName]='参会人',[CtrlByName]='参会人',[FlowName]='会议申请',[TypeId]=1 where  [Id]=2118 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2119  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2119,55,455,1669,'会议申请',3152,'会议内容','会议内容','会议申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=55,[NodeId]=455,[EntId]=1669,[EntName]='会议申请',[FldId]=3152,[FieldName]='会议内容',[CtrlByName]='会议内容',[FlowName]='会议申请',[TypeId]=1 where  [Id]=2119 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2120  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2120,55,455,1669,'会议申请',3153,'其他资源','其他资源','会议申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=55,[NodeId]=455,[EntId]=1669,[EntName]='会议申请',[FldId]=3153,[FieldName]='其他资源',[CtrlByName]='其他资源',[FlowName]='会议申请',[TypeId]=1 where  [Id]=2120 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2121  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2121,55,455,1669,'会议申请',3154,'会议状态','会议状态','会议申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=55,[NodeId]=455,[EntId]=1669,[EntName]='会议申请',[FldId]=3154,[FieldName]='会议状态',[CtrlByName]='会议状态',[FlowName]='会议申请',[TypeId]=1 where  [Id]=2121 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2122  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2122,55,455,1669,'会议申请',3155,'申请人','申请人','会议申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=55,[NodeId]=455,[EntId]=1669,[EntName]='会议申请',[FldId]=3155,[FieldName]='申请人',[CtrlByName]='申请人',[FlowName]='会议申请',[TypeId]=1 where  [Id]=2122 
      end
      if (select count(1) from [WF_CanWriteField] where  [Id]=2123  )<1 
      begin 
           Insert into [WF_CanWriteField] ([Id],[FlowId],[NodeId],[EntId],[EntName],[FldId],[FieldName],[CtrlByName],[FlowName],[TypeId])values(2123,55,455,1669,'会议申请',3156,'申请时间','申请时间','会议申请',1)
      end
      else 
      begin 
           update [WF_CanWriteField] set [FlowId]=55,[NodeId]=455,[EntId]=1669,[EntName]='会议申请',[FldId]=3156,[FieldName]='申请时间',[CtrlByName]='申请时间',[FlowName]='会议申请',[TypeId]=1 where  [Id]=2123 
      end

     SET IDENTITY_INSERT [WF_CanWriteField] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=2877  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2877,'2d829c6c-cf80-44e4-b080-ea8e61fc2b44','待我参加会议',1972,'/Template/default/ListReport/ListReport_Tree001.aspx',1,'/images/default.gif','/images/default.gif',3,'',null,0,null,1,0,1,1,1,1,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='2d829c6c-cf80-44e4-b080-ea8e61fc2b44',[MenuName]='待我参加会议',[ParentId]=1972,[ProPath]='/Template/default/ListReport/ListReport_Tree001.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=3,[Target]='',[IsOpen]=null,[IsHidden]=0,[Remark]=null,[SSystemId]=1,[SMenuId]=0,[SystemId]=1,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=2877 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=2877  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(657,2877,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=2877  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=1688  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(1688,2877,'待我参加会议',1,1113,0,'行政_会议管理表',0,0,1,1,1688,null,null,1,null,null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=2877,[EntName]='待我参加会议',[MEnt]=1,[DBTableId]=1113,[DBConnectId]=0,[DBTableName]='行政_会议管理表',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=1,[SEntId]=1688,[FSystemId]=null,[FEntId]=null,[SystemId]=1,[Remark]=null,[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=1688 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=1688

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=1688  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(10821,2877,1688,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=2877,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=1688  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=1688

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1688  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18136,1,2877,1688,13,1,1,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2877,[TemplateId]=13,[ModuleId]=1,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1688  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1688  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18137,1,2877,1688,13,2,9,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2877,[TemplateId]=13,[ModuleId]=9,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1688  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1688  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18138,1,2877,1688,13,3,14,1,4,2,'/Template/Default/Form/AjaxForm/AjaxForm008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2877,[TemplateId]=13,[ModuleId]=14,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='/Template/Default/Form/AjaxForm/AjaxForm008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1688  and  [ModuleTypeId]=3 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1688  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18139,1,2877,1688,13,16,31,1,5,2,'/Template/Default/Browse/Browse008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2877,[TemplateId]=13,[ModuleId]=31,[GroupId]=1,[AreaId]=5,[ShowMode]=2,[AreaUrl]='/Template/Default/Browse/Browse008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1688  and  [ModuleTypeId]=16 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_SearchForm_Run]  where [EntId]=1688

--Dcx_SearchForm_Run
      if (select count(1) from [Dcx_SearchForm_Run] where  [EntId]=1688  )<1 
      begin 
           Insert into [Dcx_SearchForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('33238ddb-5acc-4569-a495-443128e85806','待我参加会议',1688,9,'','',0,'','','DcxRun.SearchF_1688= {"MenuId":2877,"MEntId":1688,"EntName":"待我参加会议","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1688":{"EntId":1688,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_1688.EntMsg.E1688.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"行政_会议管理表","EntId":1688,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"会议室名称":{"DtId":2,"DB":1,"CId":1,"FL":100},"主持人":{"DtId":2,"DB":1,"CId":1,"FL":100},"开始时间":{"DtId":3,"DB":1,"CId":5,"FL":100},"流程是否已结束":{"DtId":4,"DB":0,"CId":3,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.SearchF_1688.EntMsg.E1688.GetDataRowModel=function()
{
    return {"会议室名称":"","主持人":"","开始时间":new Date(),"流程是否已结束":false,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_1688.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1688,''SearchF_'',buildNew,closeDlg);

}','',20,'','','','1688*LD_Id*2**2*行政_会议管理表*待我参加会议',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 5:45:57',3,'admin','2013-11-16 17:36:03',1)
      end
      else 
      begin 
           update [Dcx_SearchForm_Run] set [FormId]='33238ddb-5acc-4569-a495-443128e85806',[FormName]='待我参加会议',[ModuleId]=9,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.SearchF_1688= {"MenuId":2877,"MEntId":1688,"EntName":"待我参加会议","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1688":{"EntId":1688,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_1688.EntMsg.E1688.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"行政_会议管理表","EntId":1688,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"会议室名称":{"DtId":2,"DB":1,"CId":1,"FL":100},"主持人":{"DtId":2,"DB":1,"CId":1,"FL":100},"开始时间":{"DtId":3,"DB":1,"CId":5,"FL":100},"流程是否已结束":{"DtId":4,"DB":0,"CId":3,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.SearchF_1688.EntMsg.E1688.GetDataRowModel=function()
{
    return {"会议室名称":"","主持人":"","开始时间":new Date(),"流程是否已结束":false,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_1688.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1688,''SearchF_'',buildNew,closeDlg);

}',[LoadingSql]='',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='1688*LD_Id*2**2*行政_会议管理表*待我参加会议',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 5:45:57',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-16 17:36:03',[AccountId]=1 where  [EntId]=1688 
      end




--Dcx_SearchFormField_Run
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='81f19f9f-d348-41bd-91ab-f7c5d65d5758'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'81f19f9f-d348-41bd-91ab-f7c5d65d5758',1688,1688,'00000000-0000-0000-0000-000000000000',1,'Like','会议室名称',2,2,15,'',5,1,1,0,1,1,0,-1,1,0,'','','','','<div class="searchform">
<ul class="search-block w920" entid="1688" isgroup="1" groupid="27" ctrlprex="SearchF_" isrple="1">
<li style="position: static;" class="search-li w270 h32" scroll="no" areaid="131"><label class="search-title pad7" fldid="1" istitle="1">会议室名称</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">','','','','<input  id="d1688_会议室名称"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1688,''SearchF_'',1688,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1688,''SearchF_'',1688);" EntId="1688" IsField=1 DBField=1 IsPost=1 FieldName="会议室名称" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'1688,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=1,[Form_EntId]=1688,[EntId]=1688,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[CompareOperatorType]='Like',[FieldName]='会议室名称',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=15,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="searchform">
<ul class="search-block w920" entid="1688" isgroup="1" groupid="27" ctrlprex="SearchF_" isrple="1">
<li style="position: static;" class="search-li w270 h32" scroll="no" areaid="131"><label class="search-title pad7" fldid="1" istitle="1">会议室名称</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1688_会议室名称"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1688,''SearchF_'',1688,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1688,''SearchF_'',1688);" EntId="1688" IsField=1 DBField=1 IsPost=1 FieldName="会议室名称" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1688,' where  [FldUId]='81f19f9f-d348-41bd-91ab-f7c5d65d5758' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='9b0321b9-855d-4cb6-b4e5-e062a12a196f'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'9b0321b9-855d-4cb6-b4e5-e062a12a196f',1688,1688,'00000000-0000-0000-0000-000000000000',2,'Like','主持人',2,2,19,'',5,1,1,0,1,1,0,-1,1,0,'','','','','</span> </div></li>
<li style="position: static;" class="search-li w240 h32" scroll="no" areaid="132"><label class="search-title pad7" fldid="2" istitle="1">主持人</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">','','','','<input  id="d1688_主持人"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1688,''SearchF_'',1688,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1688,''SearchF_'',1688);" EntId="1688" IsField=1 DBField=1 IsPost=1 FieldName="主持人" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'1688,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=2,[Form_EntId]=1688,[EntId]=1688,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[CompareOperatorType]='Like',[FieldName]='主持人',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=19,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="position: static;" class="search-li w240 h32" scroll="no" areaid="132"><label class="search-title pad7" fldid="2" istitle="1">主持人</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1688_主持人"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1688,''SearchF_'',1688,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1688,''SearchF_'',1688);" EntId="1688" IsField=1 DBField=1 IsPost=1 FieldName="主持人" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1688,' where  [FldUId]='9b0321b9-855d-4cb6-b4e5-e062a12a196f' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='0e607ab4-c47e-436c-8af6-2054d761812d'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'0e607ab4-c47e-436c-8af6-2054d761812d',1688,1688,'00000000-0000-0000-0000-000000000000',3,'Like','开始时间',3,3,17,'',5,1,1,0,5,1,0,-1,1,0,'','','','','</span> </div></li>
<li style="position: static;" class="search-li w240 h32" scroll="no" areaid="133"><label class="search-title pad7" fldid="3" istitle="1">开始时间</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">','','','','<div class="form-ddl"><input  id="d1688_开始时间"   type="text" class="form-ddl-txt"  style="width:130px;" onblur ="javascript:if(!DcxVld.Validate(this,1688,''SearchF_'',1688,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1688,''SearchF_'',1688);DcxDTime.ShowCalendar(this);" EntId="1688" IsField=1 DBField=1 IsPost=1 FieldName="开始时间" dType="3" Vtp="5" RDT="3" Isc="1" RId="1" CId="5" FId="3" vlk=0    Cpre="Like"  value="','"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>','',1,-1,-1,-1,-1,0,'1688,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=3,[Form_EntId]=1688,[EntId]=1688,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[CompareOperatorType]='Like',[FieldName]='开始时间',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=17,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=5,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="position: static;" class="search-li w240 h32" scroll="no" areaid="133"><label class="search-title pad7" fldid="3" istitle="1">开始时间</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-ddl"><input  id="d1688_开始时间"   type="text" class="form-ddl-txt"  style="width:130px;" onblur ="javascript:if(!DcxVld.Validate(this,1688,''SearchF_'',1688,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1688,''SearchF_'',1688);DcxDTime.ShowCalendar(this);" EntId="1688" IsField=1 DBField=1 IsPost=1 FieldName="开始时间" dType="3" Vtp="5" RDT="3" Isc="1" RId="1" CId="5" FId="3" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1688,' where  [FldUId]='0e607ab4-c47e-436c-8af6-2054d761812d' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='3b5f16d0-1ff8-470c-ab16-c261707c3a9d'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'3b5f16d0-1ff8-470c-ab16-c261707c3a9d',1688,1688,'00000000-0000-0000-0000-000000000000',4,'=','流程是否已结束',4,4,-1,'',1,1,1,0,3,1,0,-1,1,0,'','','','','</span> </div></li>
<li style="position: static;" class="search-li w270 h32" scroll="no" areaid="134"><label class="search-title pad7" fldid="4" istitle="1">流程已结束</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">','</span> </div></li>
<li style="position: static;" class="search-li w100 h32" scroll="no" areaid="135">
<div class="searchform-button" onclick="javascript:return VL_Search(1688);">
<div class="search-btn">&nbsp;</div><a id="1688_searchBT" href="javascript:void(0);">搜索</a> </div></li></ul></div>','','','<select id="d1688_流程是否已结束" name="d1688_流程是否已结束" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1688,''SearchF_'',1688,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1688,''SearchF_'',1688);" EntId="1688" IsField=1 DBField=0 IsPost=1 FieldName="流程是否已结束" dType="4" Vtp="1" RDT="4" Isc="1" RId="1" CId="3" FId="4" vlk=0    Cpre="="  style="width:150px;">','<option  value="False"  >否</option>
<option  value="True"  >是</option>
</select>','',1,-1,-1,-1,-1,0,'1688,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=4,[Form_EntId]=1688,[EntId]=1688,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=4,[CompareOperatorType]='=',[FieldName]='流程是否已结束',[FieldDataTypeId]=4,[RunDataTypeId]=4,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=1,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="position: static;" class="search-li w270 h32" scroll="no" areaid="134"><label class="search-title pad7" fldid="4" istitle="1">流程已结束</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">',[LastHtml]='</span> </div></li>
<li style="position: static;" class="search-li w100 h32" scroll="no" areaid="135">
<div class="searchform-button" onclick="javascript:return VL_Search(1688);">
<div class="search-btn">&nbsp;</div><a id="1688_searchBT" href="javascript:void(0);">搜索</a> </div></li></ul></div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1688_流程是否已结束" name="d1688_流程是否已结束" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1688,''SearchF_'',1688,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1688,''SearchF_'',1688);" EntId="1688" IsField=1 DBField=0 IsPost=1 FieldName="流程是否已结束" dType="4" Vtp="1" RDT="4" Isc="1" RId="1" CId="3" FId="4" vlk=0    Cpre="="  style="width:150px;">',[CtrlbackHtml]='<option  value="False"  >否</option>
<option  value="True"  >是</option>
</select>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1688,' where  [FldUId]='3b5f16d0-1ff8-470c-ab16-c261707c3a9d' 
      end



Delete from [Dcx_BrowseReport_Run]  where [EntId]=1688

--Dcx_BrowseReport_Run
      if (select count(1) from [Dcx_BrowseReport_Run] where  [EntId]=1688  )<1 
      begin 
           Insert into [Dcx_BrowseReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[DIYJsCss],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('546e1373-e2d2-435f-bb34-91bf21632cdb','待我参加会议',1688,31,'','<$1688$>select [会议主题],[会议类型],[主办部门],[会议室名称],[会议室编号],[开始时间],[结束时间],[主持人],[纪要员],[参会人],[会议内容],[其他资源],[会议状态],[申请人],[申请时间],[LD_Id] from 行政_会议管理表 where [LD_Id]=''{$keyfieldvalue}''</$1688$>',1,1,20,'','DcxRun.MChildR_1688= {"MenuId":2877,"MEntId":1688,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"待我参加会议","EntMsg":{"E1688":{"EntId":1688,"EntName":"待我参加会议","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1688*LD_Id*2**2*行政_会议管理表*待我参加会议',3,'','2012-12-21 11:03:02',3,'','2013-11-17 2:53:00',1)
      end
      else 
      begin 
           update [Dcx_BrowseReport_Run] set [ReportId]='546e1373-e2d2-435f-bb34-91bf21632cdb',[ReportName]='待我参加会议',[ModuleId]=31,[StaticHtml]='',[LoadingSql]='<$1688$>select [会议主题],[会议类型],[主办部门],[会议室名称],[会议室编号],[开始时间],[结束时间],[主持人],[纪要员],[参会人],[会议内容],[其他资源],[会议状态],[申请人],[申请时间],[LD_Id] from 行政_会议管理表 where [LD_Id]=''{$keyfieldvalue}''</$1688$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[DIYJsCss]='',[AutoPublicJs]='DcxRun.MChildR_1688= {"MenuId":2877,"MEntId":1688,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"待我参加会议","EntMsg":{"E1688":{"EntId":1688,"EntName":"待我参加会议","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1688*LD_Id*2**2*行政_会议管理表*待我参加会议',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-21 11:03:02',[EditorId]=3,[Editor]='',[EditTime]='2013-11-17 2:53:00',[AccountId]=1 where  [EntId]=1688 
      end




--Dcx_BrowseReportField_Run
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='3454ad82-a587-4643-b4ca-38ec21d63ecb'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'3454ad82-a587-4643-b4ca-38ec21d63ecb',1688,1688,'00000000-0000-0000-0000-000000000000',12,'会议主题',1,1,'varchar',2,1,0,'','','','<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1688" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="625" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">待我参加会议</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1688" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="626" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">会议主题  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1688" fieldname="会议主题" fldid="1" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1688,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=1,[Report_EntId]=1688,[EntId]=1688,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=12,[FieldName]='会议主题',[FieldNO]=1,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1688" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="625" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">待我参加会议</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1688" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="626" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">会议主题  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1688" fieldname="会议主题" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1688,' where  [FldUId]='3454ad82-a587-4643-b4ca-38ec21d63ecb' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='9582e621-99b7-4c48-a461-b5aaca7b9fc8'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'9582e621-99b7-4c48-a461-b5aaca7b9fc8',1688,1688,'00000000-0000-0000-0000-000000000000',13,'会议类型',2,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="627" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">会议类型  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1688" fieldname="会议类型" fldid="2" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1688,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=2,[Report_EntId]=1688,[EntId]=1688,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=13,[FieldName]='会议类型',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="627" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">会议类型  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1688" fieldname="会议类型" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1688,' where  [FldUId]='9582e621-99b7-4c48-a461-b5aaca7b9fc8' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='fa7369d2-3d20-4a9a-b962-1660f97d3d79'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'fa7369d2-3d20-4a9a-b962-1660f97d3d79',1688,1688,'00000000-0000-0000-0000-000000000000',14,'主办部门',3,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="628" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">主办部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1688" fieldname="主办部门" fldid="3" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1688,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=3,[Report_EntId]=1688,[EntId]=1688,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=14,[FieldName]='主办部门',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="628" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">主办部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1688" fieldname="主办部门" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1688,' where  [FldUId]='fa7369d2-3d20-4a9a-b962-1660f97d3d79' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='54454ecc-1a74-464c-a7d4-eb6bac3ab0a3'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'54454ecc-1a74-464c-a7d4-eb6bac3ab0a3',1688,1688,'00000000-0000-0000-0000-000000000000',15,'会议室名称',4,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="629" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">会议室名称  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1688" fieldname="会议室名称" fldid="4" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1688,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=4,[Report_EntId]=1688,[EntId]=1688,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=15,[FieldName]='会议室名称',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="629" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">会议室名称  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1688" fieldname="会议室名称" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1688,' where  [FldUId]='54454ecc-1a74-464c-a7d4-eb6bac3ab0a3' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='75ab0927-537b-4b93-a491-5aeff3e0f4b6'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'75ab0927-537b-4b93-a491-5aeff3e0f4b6',1688,1688,'00000000-0000-0000-0000-000000000000',16,'会议室编号',5,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="630" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">会议室编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1688" fieldname="会议室编号" fldid="5" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1688,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=5,[Report_EntId]=1688,[EntId]=1688,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=16,[FieldName]='会议室编号',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="630" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">会议室编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1688" fieldname="会议室编号" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1688,' where  [FldUId]='75ab0927-537b-4b93-a491-5aeff3e0f4b6' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='7c4631f5-a856-494a-a12f-b9d614071259'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'7c4631f5-a856-494a-a12f-b9d614071259',1688,1688,'00000000-0000-0000-0000-000000000000',17,'开始时间',6,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="631" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">开始时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1688" fieldname="开始时间" fldid="6" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1688,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=6,[Report_EntId]=1688,[EntId]=1688,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=17,[FieldName]='开始时间',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="631" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">开始时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1688" fieldname="开始时间" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1688,' where  [FldUId]='7c4631f5-a856-494a-a12f-b9d614071259' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='ff3919d2-e77e-46fe-96d8-75d34b91f4da'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'ff3919d2-e77e-46fe-96d8-75d34b91f4da',1688,1688,'00000000-0000-0000-0000-000000000000',18,'结束时间',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="632" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">结束时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1688" fieldname="结束时间" fldid="7" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1688,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=7,[Report_EntId]=1688,[EntId]=1688,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=18,[FieldName]='结束时间',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="632" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">结束时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1688" fieldname="结束时间" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1688,' where  [FldUId]='ff3919d2-e77e-46fe-96d8-75d34b91f4da' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='608fc9eb-9721-4ebe-b53c-22867dfb9b4c'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'608fc9eb-9721-4ebe-b53c-22867dfb9b4c',1688,1688,'00000000-0000-0000-0000-000000000000',19,'主持人',8,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="633" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="8">主持人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1688" fieldname="主持人" fldid="8" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1688,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=8,[Report_EntId]=1688,[EntId]=1688,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=19,[FieldName]='主持人',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="633" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="8">主持人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1688" fieldname="主持人" fldid="8" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1688,' where  [FldUId]='608fc9eb-9721-4ebe-b53c-22867dfb9b4c' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='e07a5f3f-f548-40ae-9dd8-1e5352cb1117'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'e07a5f3f-f548-40ae-9dd8-1e5352cb1117',1688,1688,'00000000-0000-0000-0000-000000000000',20,'纪要员',9,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="634" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="9">纪要员  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1688" fieldname="纪要员" fldid="9" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1688,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=9,[Report_EntId]=1688,[EntId]=1688,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=20,[FieldName]='纪要员',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="634" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="9">纪要员  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1688" fieldname="纪要员" fldid="9" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1688,' where  [FldUId]='e07a5f3f-f548-40ae-9dd8-1e5352cb1117' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='bf86d488-a912-4666-ae0d-696ba7f85639'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'bf86d488-a912-4666-ae0d-696ba7f85639',1688,1688,'00000000-0000-0000-0000-000000000000',21,'参会人',10,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="635" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="10">参会人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1688" fieldname="参会人" fldid="10" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1688,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=10,[Report_EntId]=1688,[EntId]=1688,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=21,[FieldName]='参会人',[FieldNO]=10,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="635" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="10">参会人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1688" fieldname="参会人" fldid="10" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1688,' where  [FldUId]='bf86d488-a912-4666-ae0d-696ba7f85639' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='76d6a2c3-b8c0-4ead-9329-e5af2e66ce49'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'76d6a2c3-b8c0-4ead-9329-e5af2e66ce49',1688,1688,'00000000-0000-0000-0000-000000000000',22,'会议内容',11,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="636" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="11">会议内容  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1688" fieldname="会议内容" fldid="11" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1688,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=11,[Report_EntId]=1688,[EntId]=1688,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=22,[FieldName]='会议内容',[FieldNO]=11,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="636" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="11">会议内容  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1688" fieldname="会议内容" fldid="11" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1688,' where  [FldUId]='76d6a2c3-b8c0-4ead-9329-e5af2e66ce49' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='5eacede3-15a0-4065-b72c-3f2d63ced29d'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(12,'5eacede3-15a0-4065-b72c-3f2d63ced29d',1688,1688,'00000000-0000-0000-0000-000000000000',23,'其他资源',12,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="637" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="12">其他资源  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1688" fieldname="其他资源" fldid="12" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1688,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=12,[Report_EntId]=1688,[EntId]=1688,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=23,[FieldName]='其他资源',[FieldNO]=12,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="637" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="12">其他资源  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1688" fieldname="其他资源" fldid="12" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1688,' where  [FldUId]='5eacede3-15a0-4065-b72c-3f2d63ced29d' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='d74a2924-484a-4b66-92f9-ec6603c353e0'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(13,'d74a2924-484a-4b66-92f9-ec6603c353e0',1688,1688,'00000000-0000-0000-0000-000000000000',24,'会议状态',13,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="638" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="13">会议状态  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1688" fieldname="会议状态" fldid="13" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1688,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=13,[Report_EntId]=1688,[EntId]=1688,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=24,[FieldName]='会议状态',[FieldNO]=13,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="638" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="13">会议状态  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1688" fieldname="会议状态" fldid="13" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1688,' where  [FldUId]='d74a2924-484a-4b66-92f9-ec6603c353e0' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='92b14ceb-6820-462e-a4a4-ce78fd17e6c8'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(14,'92b14ceb-6820-462e-a4a4-ce78fd17e6c8',1688,1688,'00000000-0000-0000-0000-000000000000',25,'申请人',14,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="639" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="14">申请人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1688" fieldname="申请人" fldid="14" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1688,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=14,[Report_EntId]=1688,[EntId]=1688,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=25,[FieldName]='申请人',[FieldNO]=14,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="639" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="14">申请人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1688" fieldname="申请人" fldid="14" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1688,' where  [FldUId]='92b14ceb-6820-462e-a4a4-ce78fd17e6c8' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='2db4f682-9ab3-4bba-9489-006e9d7b39ad'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(15,'2db4f682-9ab3-4bba-9489-006e9d7b39ad',1688,1688,'00000000-0000-0000-0000-000000000000',26,'申请时间',15,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="640" style="height: 38px; width: 792px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="15">申请时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1688" fieldname="申请时间" fldid="15" columntypeid="1" class="form-ctr">','</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1688" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="645" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="646" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1688" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="647" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1688" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="648" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1688" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="649" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="650" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',-1,-1,-1,-1,0,'1688,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=15,[Report_EntId]=1688,[EntId]=1688,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=26,[FieldName]='申请时间',[FieldNO]=15,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="640" style="height: 38px; width: 792px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="15">申请时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1688" fieldname="申请时间" fldid="15" columntypeid="1" class="form-ctr">',[LastHtml]='</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1688" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="645" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="646" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1688" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="647" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1688" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="648" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1688" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="649" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="650" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1688,' where  [FldUId]='2db4f682-9ab3-4bba-9489-006e9d7b39ad' 
      end



Delete from [Dcx_ListReport_Run]  where [EntId]=1688

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=1688  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('2385bb72-a5d4-4ff1-bdb4-23849c6212bb','待我参加会议',1688,1,'','','<$1688$>select *  from (select row_number() over( order by [LD_Id])as dcx_rowid,[会议主题],[会议类型],[主办部门],[会议室名称],[会议室编号],[开始时间],[结束时间],[主持人],[纪要员],[参会人],[会议内容],[其他资源],[会议状态],[申请人],[申请时间],[LD_Id] from 行政_会议管理表  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1688$><$1688:Count$>select count([LD_Id]) from 行政_会议管理表 where {$SearchArea}</$1688:Count$>',1,1,20,'DcxRun.ListR_1688= {"MenuId":2877,"MEntId":1688,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"待我参加会议","EntMsg":{"E1688":{"EntId":1688,"EntName":"待我参加会议","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1688*LD_Id*2**2*行政_会议管理表*待我参加会议',3,'','2012-12-22 5:16:19',3,'','2013-11-16 20:06:29',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='2385bb72-a5d4-4ff1-bdb4-23849c6212bb',[ReportName]='待我参加会议',[ModuleId]=1,[StaticHtml]='',[DIYJsCss]='',[LoadingSql]='<$1688$>select *  from (select row_number() over( order by [LD_Id])as dcx_rowid,[会议主题],[会议类型],[主办部门],[会议室名称],[会议室编号],[开始时间],[结束时间],[主持人],[纪要员],[参会人],[会议内容],[其他资源],[会议状态],[申请人],[申请时间],[LD_Id] from 行政_会议管理表  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1688$><$1688:Count$>select count([LD_Id]) from 行政_会议管理表 where {$SearchArea}</$1688:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[AutoPublicJs]='DcxRun.ListR_1688= {"MenuId":2877,"MEntId":1688,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"待我参加会议","EntMsg":{"E1688":{"EntId":1688,"EntName":"待我参加会议","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1688*LD_Id*2**2*行政_会议管理表*待我参加会议',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-22 5:16:19',[EditorId]=3,[Editor]='',[EditTime]='2013-11-16 20:06:29',[AccountId]=1 where  [EntId]=1688 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='483aee7e-5c83-5979-7981-744a543ace91'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(212,'483aee7e-5c83-5979-7981-744a543ace91',1688,1688,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="91" entid="1688" style="width: 1766px;" ctrlprex="ListR_" isrple="1"> <li areaid="1845" class="tool-li" style="position: static;">
</li><li areaid="1846" class="tool-li" style="position: static;"><a id="ListR_1688_btn_buildNew" class="list-bt-add" title="添   加" href="javascript:void(0);" onclick="javascript:DcxCom.ShowAddDataDlg(1688,''ListR_'');">添   加</a></li>
<li areaid="1847" class="tool-li" style="position: static;"><a id="ListR_1688_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1688,''ListR_'');">删   除</a></li>
<li areaid="1848" class="tool-li" style="position: static;"><a id="ListR_1688_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1688,''ListR_'');">导   出</a></li>
<li areaid="1849" class="tool-li" style="position: static;"><a id="ListR_1688_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1688,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1688" style="position: static;">
<a id="ListR_1688_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1688,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1688_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1688,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1688_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1688,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1688_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="92" entid="1688" class="list-head-ul" style="width: 1838px;" ctrlprex="ListR_" isrple="1">
<li areaid="1851" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1688" onclick="javascript:DcxCom.CheckedAll(this,1688,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="1852" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议主题 </label></li><li areaid="1853" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议类型 </label></li><li areaid="1854" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">主办部门 </label></li><li areaid="1855" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议室名称 </label></li><li areaid="1856" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议室编号 </label></li><li areaid="1857" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">开始时间 </label></li><li areaid="1858" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">结束时间 </label></li><li areaid="1859" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">主持人 </label></li><li areaid="1860" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">纪要员 </label></li><li areaid="1861" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">参会人 </label></li><li areaid="1862" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议内容 </label></li><li areaid="1863" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">其他资源 </label></li><li areaid="1864" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议状态 </label></li><li areaid="1865" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请人 </label></li><li areaid="1866" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请时间 </label></li><li areaid="1867" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li> </ul>
</div>
<div class="list-body">','',-1,93,-1,-1,1,'1688,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=212,[Report_EntId]=1688,[EntId]=1688,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="91" entid="1688" style="width: 1766px;" ctrlprex="ListR_" isrple="1"> <li areaid="1845" class="tool-li" style="position: static;">
</li><li areaid="1846" class="tool-li" style="position: static;"><a id="ListR_1688_btn_buildNew" class="list-bt-add" title="添   加" href="javascript:void(0);" onclick="javascript:DcxCom.ShowAddDataDlg(1688,''ListR_'');">添   加</a></li>
<li areaid="1847" class="tool-li" style="position: static;"><a id="ListR_1688_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1688,''ListR_'');">删   除</a></li>
<li areaid="1848" class="tool-li" style="position: static;"><a id="ListR_1688_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1688,''ListR_'');">导   出</a></li>
<li areaid="1849" class="tool-li" style="position: static;"><a id="ListR_1688_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1688,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1688" style="position: static;">
<a id="ListR_1688_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1688,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1688_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1688,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1688_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1688,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1688_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="92" entid="1688" class="list-head-ul" style="width: 1838px;" ctrlprex="ListR_" isrple="1">
<li areaid="1851" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1688" onclick="javascript:DcxCom.CheckedAll(this,1688,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="1852" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议主题 </label></li><li areaid="1853" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议类型 </label></li><li areaid="1854" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">主办部门 </label></li><li areaid="1855" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议室名称 </label></li><li areaid="1856" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议室编号 </label></li><li areaid="1857" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">开始时间 </label></li><li areaid="1858" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">结束时间 </label></li><li areaid="1859" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">主持人 </label></li><li areaid="1860" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">纪要员 </label></li><li areaid="1861" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">参会人 </label></li><li areaid="1862" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议内容 </label></li><li areaid="1863" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">其他资源 </label></li><li areaid="1864" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议状态 </label></li><li areaid="1865" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请人 </label></li><li areaid="1866" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请时间 </label></li><li areaid="1867" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li> </ul>
</div>
<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1688,' where  [FldUId]='483aee7e-5c83-5979-7981-744a543ace91' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='bfc1362a-a960-44f0-9959-24e005d23333'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(154,'bfc1362a-a960-44f0-9959-24e005d23333',1688,1688,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',2,1,'',2,21,0,'','','','islonly="1" isgroup="1" groupid="93" class="list-body-ul" style="width: 1838px;" isrple="1">
<li areaid="1868" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1688" issyscheck="1" keyvalue="','',-1,93,-1,-1,1,'1688,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=154,[Report_EntId]=1688,[EntId]=1688,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='islonly="1" isgroup="1" groupid="93" class="list-body-ul" style="width: 1838px;" isrple="1">
<li areaid="1868" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1688" issyscheck="1" keyvalue="',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1688,' where  [FldUId]='bfc1362a-a960-44f0-9959-24e005d23333' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='29b512e9-2eb9-41ad-92a4-4ce77fe74831'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'29b512e9-2eb9-41ad-92a4-4ce77fe74831',1688,1688,'00000000-0000-0000-0000-000000000000',12,'会议主题',3,1,'varchar',2,1,0,'','','','" type="checkbox"></li><li areaid="1869" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1688" fieldname="会议主题" fldid="1" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1688,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=1,[Report_EntId]=1688,[EntId]=1688,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=12,[FieldName]='会议主题',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='" type="checkbox"></li><li areaid="1869" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1688" fieldname="会议主题" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1688,' where  [FldUId]='29b512e9-2eb9-41ad-92a4-4ce77fe74831' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='b34a8b40-19df-4c3b-b977-3121020b8036'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'b34a8b40-19df-4c3b-b977-3121020b8036',1688,1688,'00000000-0000-0000-0000-000000000000',13,'会议类型',4,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1870" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1688" fieldname="会议类型" fldid="2" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1688,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=2,[Report_EntId]=1688,[EntId]=1688,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=13,[FieldName]='会议类型',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1870" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1688" fieldname="会议类型" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1688,' where  [FldUId]='b34a8b40-19df-4c3b-b977-3121020b8036' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='5f726276-710b-4b90-9c89-f926a92b87c0'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'5f726276-710b-4b90-9c89-f926a92b87c0',1688,1688,'00000000-0000-0000-0000-000000000000',14,'主办部门',5,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1871" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1688" fieldname="主办部门" fldid="3" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1688,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=3,[Report_EntId]=1688,[EntId]=1688,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=14,[FieldName]='主办部门',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1871" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1688" fieldname="主办部门" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1688,' where  [FldUId]='5f726276-710b-4b90-9c89-f926a92b87c0' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='f5b62611-af3e-4f1e-b222-a2530558827f'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'f5b62611-af3e-4f1e-b222-a2530558827f',1688,1688,'00000000-0000-0000-0000-000000000000',15,'会议室名称',6,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1872" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1688" fieldname="会议室名称" fldid="4" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1688,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=4,[Report_EntId]=1688,[EntId]=1688,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=15,[FieldName]='会议室名称',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1872" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1688" fieldname="会议室名称" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1688,' where  [FldUId]='f5b62611-af3e-4f1e-b222-a2530558827f' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='8c2c432a-c1bb-4bbb-ab77-2608b88b0ff0'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'8c2c432a-c1bb-4bbb-ab77-2608b88b0ff0',1688,1688,'00000000-0000-0000-0000-000000000000',16,'会议室编号',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1873" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1688" fieldname="会议室编号" fldid="5" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1688,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=5,[Report_EntId]=1688,[EntId]=1688,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=16,[FieldName]='会议室编号',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1873" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1688" fieldname="会议室编号" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1688,' where  [FldUId]='8c2c432a-c1bb-4bbb-ab77-2608b88b0ff0' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='dc4471b6-b066-4bf6-9d2d-0b34313fdb7d'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'dc4471b6-b066-4bf6-9d2d-0b34313fdb7d',1688,1688,'00000000-0000-0000-0000-000000000000',17,'开始时间',8,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1874" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1688" fieldname="开始时间" fldid="6" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1688,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=6,[Report_EntId]=1688,[EntId]=1688,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=17,[FieldName]='开始时间',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1874" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1688" fieldname="开始时间" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1688,' where  [FldUId]='dc4471b6-b066-4bf6-9d2d-0b34313fdb7d' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='79d31bba-b6ff-4d53-952a-b1f716b2ea43'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'79d31bba-b6ff-4d53-952a-b1f716b2ea43',1688,1688,'00000000-0000-0000-0000-000000000000',18,'结束时间',9,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1875" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1688" fieldname="结束时间" fldid="7" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1688,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=7,[Report_EntId]=1688,[EntId]=1688,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=18,[FieldName]='结束时间',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1875" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1688" fieldname="结束时间" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1688,' where  [FldUId]='79d31bba-b6ff-4d53-952a-b1f716b2ea43' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='e3b4a413-9341-48e5-b43f-4e1c476c6135'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'e3b4a413-9341-48e5-b43f-4e1c476c6135',1688,1688,'00000000-0000-0000-0000-000000000000',19,'主持人',10,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1876" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1688" fieldname="主持人" fldid="8" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1688,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=8,[Report_EntId]=1688,[EntId]=1688,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=19,[FieldName]='主持人',[FieldNO]=10,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1876" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1688" fieldname="主持人" fldid="8" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1688,' where  [FldUId]='e3b4a413-9341-48e5-b43f-4e1c476c6135' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='8fa747c0-8f89-4a9d-9202-55eaccb8d44c'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'8fa747c0-8f89-4a9d-9202-55eaccb8d44c',1688,1688,'00000000-0000-0000-0000-000000000000',20,'纪要员',11,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1877" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1688" fieldname="纪要员" fldid="9" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1688,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=9,[Report_EntId]=1688,[EntId]=1688,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=20,[FieldName]='纪要员',[FieldNO]=11,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1877" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1688" fieldname="纪要员" fldid="9" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1688,' where  [FldUId]='8fa747c0-8f89-4a9d-9202-55eaccb8d44c' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='f1b72a3b-5641-44a9-b691-2368dbfc5d84'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'f1b72a3b-5641-44a9-b691-2368dbfc5d84',1688,1688,'00000000-0000-0000-0000-000000000000',21,'参会人',12,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1878" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1688" fieldname="参会人" fldid="10" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1688,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=10,[Report_EntId]=1688,[EntId]=1688,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=21,[FieldName]='参会人',[FieldNO]=12,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1878" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1688" fieldname="参会人" fldid="10" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1688,' where  [FldUId]='f1b72a3b-5641-44a9-b691-2368dbfc5d84' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='a1187672-a7bd-4fc5-bf48-f3ea8c258595'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'a1187672-a7bd-4fc5-bf48-f3ea8c258595',1688,1688,'00000000-0000-0000-0000-000000000000',22,'会议内容',13,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1879" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1688" fieldname="会议内容" fldid="11" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1688,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=11,[Report_EntId]=1688,[EntId]=1688,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=22,[FieldName]='会议内容',[FieldNO]=13,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1879" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1688" fieldname="会议内容" fldid="11" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1688,' where  [FldUId]='a1187672-a7bd-4fc5-bf48-f3ea8c258595' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='44a69d49-3809-40ce-8825-004a41a902a3'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(12,'44a69d49-3809-40ce-8825-004a41a902a3',1688,1688,'00000000-0000-0000-0000-000000000000',23,'其他资源',14,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1880" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1688" fieldname="其他资源" fldid="12" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1688,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=12,[Report_EntId]=1688,[EntId]=1688,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=23,[FieldName]='其他资源',[FieldNO]=14,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1880" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1688" fieldname="其他资源" fldid="12" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1688,' where  [FldUId]='44a69d49-3809-40ce-8825-004a41a902a3' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='12433090-bf00-4801-aff5-04f94e62ba11'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(13,'12433090-bf00-4801-aff5-04f94e62ba11',1688,1688,'00000000-0000-0000-0000-000000000000',24,'会议状态',15,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1881" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1688" fieldname="会议状态" fldid="13" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1688,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=13,[Report_EntId]=1688,[EntId]=1688,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=24,[FieldName]='会议状态',[FieldNO]=15,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1881" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1688" fieldname="会议状态" fldid="13" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1688,' where  [FldUId]='12433090-bf00-4801-aff5-04f94e62ba11' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='f0c9a596-2653-4206-aba8-31927d932d15'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(14,'f0c9a596-2653-4206-aba8-31927d932d15',1688,1688,'00000000-0000-0000-0000-000000000000',25,'申请人',16,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1882" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1688" fieldname="申请人" fldid="14" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1688,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=14,[Report_EntId]=1688,[EntId]=1688,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=25,[FieldName]='申请人',[FieldNO]=16,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1882" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1688" fieldname="申请人" fldid="14" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1688,' where  [FldUId]='f0c9a596-2653-4206-aba8-31927d932d15' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='1e59e150-ada8-41bf-b283-5785bd9fb3a8'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(15,'1e59e150-ada8-41bf-b283-5785bd9fb3a8',1688,1688,'00000000-0000-0000-0000-000000000000',26,'申请时间',17,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1883" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1688" fieldname="申请时间" fldid="15" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1688,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=15,[Report_EntId]=1688,[EntId]=1688,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=26,[FieldName]='申请时间',[FieldNO]=17,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1883" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1688" fieldname="申请时间" fldid="15" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1688,' where  [FldUId]='1e59e150-ada8-41bf-b283-5785bd9fb3a8' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='b808773e-1642-431a-bf4c-7b2f40b166b6'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(155,'b808773e-1642-431a-bf4c-7b2f40b166b6',1688,1688,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',18,1,'',2,21,0,'','','','</span>
  </div>
</li><li areaid="1884" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1688,''ListR_'',''','',-1,93,-1,-1,1,'1688,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=155,[Report_EntId]=1688,[EntId]=1688,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=18,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1884" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1688,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1688,' where  [FldUId]='b808773e-1642-431a-bf4c-7b2f40b166b6' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='fd4ac31a-1ab8-04e4-4189-2a369fad1f57'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(213,'fd4ac31a-1ab8-04e4-4189-2a369fad1f57',1688,1688,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',19,-1,'varchar',2,13,0,'','','',''');">
<span class="i">浏览详细</span></a></div>
</li>    </ul>','</div>
</div>
<!-- 结束 --></div>',-1,93,-1,-1,1,'1688,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=213,[Report_EntId]=1688,[EntId]=1688,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=19,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''');">
<span class="i">浏览详细</span></a></div>
</li>    </ul>',[LastHtml]='</div>
</div>
<!-- 结束 --></div>',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1688,' where  [FldUId]='fd4ac31a-1ab8-04e4-4189-2a369fad1f57' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=1113

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=1113  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(1113,null,'行政_会议管理表','行政_会议管理表',0,0,0,0,0,1,1,1,3,'admin','2013-12-15 17:32:53',3,'admin','2013-12-15 17:32:53',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='行政_会议管理表',[DBTableByName]='行政_会议管理表',[IsForbid]=0,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=1,[SystemId]=1,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:53',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:53',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=1113 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2573,1,1,1113,'int',1,1,1,'行政_会议管理表','LD_Id','LD_Id','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='LD_Id',[FieldByname]='LD_Id',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2574,2,1,1113,'varchar',2,1,1,'行政_会议管理表','WFState','WFState','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFState',[FieldByname]='WFState',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2575,3,1,1113,'varchar',2,1,1,'行政_会议管理表','WFUserName','WFUserName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFUserName',[FieldByname]='WFUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2576,4,1,1113,'bit',4,1,1,'行政_会议管理表','WFIsFinish','WFIsFinish','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFIsFinish',[FieldByname]='WFIsFinish',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2577,5,1,1113,'bit',4,1,1,'行政_会议管理表','WFIsStart','WFIsStart','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFIsStart',[FieldByname]='WFIsStart',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2578,6,1,1113,'varchar',2,1,1,'行政_会议管理表','WFAllUser','WFAllUser','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFAllUser',[FieldByname]='WFAllUser',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2579,7,1,1113,'varchar',2,1,1,'行政_会议管理表','WFOpinion','WFOpinion','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFOpinion',[FieldByname]='WFOpinion',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2580,8,1,1113,'int',1,1,1,'行政_会议管理表','WFRunId','WFRunId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFRunId',[FieldByname]='WFRunId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2581,9,1,1113,'int',1,1,1,'行政_会议管理表','WFFlowId','WFFlowId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFFlowId',[FieldByname]='WFFlowId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2582,10,1,1113,'int',1,1,1,'行政_会议管理表','WFPrcsId','WFPrcsId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFPrcsId',[FieldByname]='WFPrcsId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2583,11,1,1113,'varchar',2,1,1,'行政_会议管理表','会议编号','会议编号','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='会议编号',[FieldByname]='会议编号',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2584,12,1,1113,'varchar',2,1,1,'行政_会议管理表','会议主题','会议主题','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='会议主题',[FieldByname]='会议主题',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2585,13,1,1113,'varchar',2,1,1,'行政_会议管理表','会议类型','会议类型','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='会议类型',[FieldByname]='会议类型',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2586,14,1,1113,'varchar',2,1,1,'行政_会议管理表','主办部门','主办部门','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='主办部门',[FieldByname]='主办部门',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2587,15,1,1113,'varchar',2,1,1,'行政_会议管理表','会议室名称','会议室名称','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='会议室名称',[FieldByname]='会议室名称',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2588,16,1,1113,'varchar',2,1,1,'行政_会议管理表','会议室编号','会议室编号','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='会议室编号',[FieldByname]='会议室编号',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2589,17,1,1113,'datetime',3,1,1,'行政_会议管理表','开始时间','开始时间','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='开始时间',[FieldByname]='开始时间',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2590,18,1,1113,'datetime',3,1,1,'行政_会议管理表','结束时间','结束时间','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='结束时间',[FieldByname]='结束时间',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2591,19,1,1113,'varchar',2,1,1,'行政_会议管理表','主持人','主持人','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='主持人',[FieldByname]='主持人',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2592,20,1,1113,'varchar',2,1,1,'行政_会议管理表','纪要员','纪要员','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='纪要员',[FieldByname]='纪要员',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2593,21,1,1113,'varchar',2,1,1,'行政_会议管理表','参会人','参会人','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='参会人',[FieldByname]='参会人',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2594,22,1,1113,'varchar',2,1,1,'行政_会议管理表','会议内容','会议内容','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='会议内容',[FieldByname]='会议内容',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2595,23,1,1113,'varchar',2,1,1,'行政_会议管理表','其他资源','其他资源','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='其他资源',[FieldByname]='其他资源',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2596,24,1,1113,'varchar',2,1,1,'行政_会议管理表','会议状态','会议状态','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='会议状态',[FieldByname]='会议状态',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2597,25,1,1113,'varchar',2,1,1,'行政_会议管理表','申请人','申请人','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='申请人',[FieldByname]='申请人',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2598,26,1,1113,'datetime',3,1,1,'行政_会议管理表','申请时间','申请时间','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='申请时间',[FieldByname]='申请时间',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=26 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=2878  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2878,'55bb5d6b-153e-4a2e-87e7-ecd8865a47cb','我已参加会议',1972,'/Template/default/ListReport/ListReport_Tree001.aspx',1,'/images/default.gif','/images/default.gif',4,'',null,0,null,1,0,1,1,1,1,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='55bb5d6b-153e-4a2e-87e7-ecd8865a47cb',[MenuName]='我已参加会议',[ParentId]=1972,[ProPath]='/Template/default/ListReport/ListReport_Tree001.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=4,[Target]='',[IsOpen]=null,[IsHidden]=0,[Remark]=null,[SSystemId]=1,[SMenuId]=0,[SystemId]=1,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=2878 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=2878  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(658,2878,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=2878  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=1689  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(1689,2878,'已参加会议',1,1113,0,'行政_会议管理表',0,0,1,1,1689,null,null,1,null,null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=2878,[EntName]='已参加会议',[MEnt]=1,[DBTableId]=1113,[DBConnectId]=0,[DBTableName]='行政_会议管理表',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=1,[SEntId]=1689,[FSystemId]=null,[FEntId]=null,[SystemId]=1,[Remark]=null,[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=1689 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=1689

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=1689  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(10822,2878,1689,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=2878,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=1689  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=1689

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1689  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18140,1,2878,1689,13,1,1,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2878,[TemplateId]=13,[ModuleId]=1,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1689  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1689  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18141,1,2878,1689,13,2,9,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2878,[TemplateId]=13,[ModuleId]=9,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1689  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1689  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18142,1,2878,1689,13,3,14,1,4,2,'/Template/Default/Form/AjaxForm/AjaxForm008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2878,[TemplateId]=13,[ModuleId]=14,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='/Template/Default/Form/AjaxForm/AjaxForm008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1689  and  [ModuleTypeId]=3 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1689  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18143,1,2878,1689,13,16,31,1,5,2,'/Template/Default/Browse/Browse008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2878,[TemplateId]=13,[ModuleId]=31,[GroupId]=1,[AreaId]=5,[ShowMode]=2,[AreaUrl]='/Template/Default/Browse/Browse008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1689  and  [ModuleTypeId]=16 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_BrowseReport_Run]  where [EntId]=1689

--Dcx_BrowseReport_Run
      if (select count(1) from [Dcx_BrowseReport_Run] where  [EntId]=1689  )<1 
      begin 
           Insert into [Dcx_BrowseReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[DIYJsCss],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('a0af746c-954d-488b-8593-085cc4dded6c','已参加会议',1689,31,'','<$1689$>select [会议编号],[会议主题],[会议类型],[主办部门],[会议室名称],[会议室编号],[开始时间],[结束时间],[主持人],[纪要员],[参会人],[会议内容],[其他资源],[会议状态],[申请人],[申请时间],[LD_Id] from 行政_会议管理表 where [LD_Id]=''{$keyfieldvalue}''</$1689$>',1,1,20,'','DcxRun.MChildR_1689= {"MenuId":2878,"MEntId":1689,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"已参加会议","EntMsg":{"E1689":{"EntId":1689,"EntName":"已参加会议","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1689*LD_Id*2**2*行政_会议管理表*已参加会议',3,'','2012-12-21 11:03:02',3,'','2013-11-17 2:53:03',1)
      end
      else 
      begin 
           update [Dcx_BrowseReport_Run] set [ReportId]='a0af746c-954d-488b-8593-085cc4dded6c',[ReportName]='已参加会议',[ModuleId]=31,[StaticHtml]='',[LoadingSql]='<$1689$>select [会议编号],[会议主题],[会议类型],[主办部门],[会议室名称],[会议室编号],[开始时间],[结束时间],[主持人],[纪要员],[参会人],[会议内容],[其他资源],[会议状态],[申请人],[申请时间],[LD_Id] from 行政_会议管理表 where [LD_Id]=''{$keyfieldvalue}''</$1689$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[DIYJsCss]='',[AutoPublicJs]='DcxRun.MChildR_1689= {"MenuId":2878,"MEntId":1689,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"已参加会议","EntMsg":{"E1689":{"EntId":1689,"EntName":"已参加会议","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1689*LD_Id*2**2*行政_会议管理表*已参加会议',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-21 11:03:02',[EditorId]=3,[Editor]='',[EditTime]='2013-11-17 2:53:03',[AccountId]=1 where  [EntId]=1689 
      end




--Dcx_BrowseReportField_Run
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='38242589-ddec-439d-9e59-4c6c078205da'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'38242589-ddec-439d-9e59-4c6c078205da',1689,1689,'00000000-0000-0000-0000-000000000000',11,'会议编号',1,1,'varchar',2,1,0,'','','','<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1689" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="651" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">已参加会议</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1689" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="652" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">会议编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1689" fieldname="会议编号" fldid="1" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1689,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=1,[Report_EntId]=1689,[EntId]=1689,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=11,[FieldName]='会议编号',[FieldNO]=1,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1689" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="651" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">已参加会议</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1689" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="652" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">会议编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1689" fieldname="会议编号" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1689,' where  [FldUId]='38242589-ddec-439d-9e59-4c6c078205da' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='2e90377c-70fe-4a63-8bf9-b4268ee5b02b'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'2e90377c-70fe-4a63-8bf9-b4268ee5b02b',1689,1689,'00000000-0000-0000-0000-000000000000',12,'会议主题',2,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="653" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">会议主题  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1689" fieldname="会议主题" fldid="2" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1689,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=2,[Report_EntId]=1689,[EntId]=1689,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=12,[FieldName]='会议主题',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="653" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">会议主题  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1689" fieldname="会议主题" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1689,' where  [FldUId]='2e90377c-70fe-4a63-8bf9-b4268ee5b02b' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='f7eb297a-0e40-496c-9f3e-105c14abbe7b'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'f7eb297a-0e40-496c-9f3e-105c14abbe7b',1689,1689,'00000000-0000-0000-0000-000000000000',13,'会议类型',3,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="654" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">会议类型  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1689" fieldname="会议类型" fldid="3" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1689,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=3,[Report_EntId]=1689,[EntId]=1689,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=13,[FieldName]='会议类型',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="654" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">会议类型  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1689" fieldname="会议类型" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1689,' where  [FldUId]='f7eb297a-0e40-496c-9f3e-105c14abbe7b' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='dfe69802-944b-4d22-9fc2-0f905f1d8bad'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'dfe69802-944b-4d22-9fc2-0f905f1d8bad',1689,1689,'00000000-0000-0000-0000-000000000000',14,'主办部门',4,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="655" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">主办部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1689" fieldname="主办部门" fldid="4" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1689,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=4,[Report_EntId]=1689,[EntId]=1689,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=14,[FieldName]='主办部门',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="655" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">主办部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1689" fieldname="主办部门" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1689,' where  [FldUId]='dfe69802-944b-4d22-9fc2-0f905f1d8bad' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='cbd7577d-f6e1-4285-978a-0622b1eb159a'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'cbd7577d-f6e1-4285-978a-0622b1eb159a',1689,1689,'00000000-0000-0000-0000-000000000000',15,'会议室名称',5,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="656" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">会议室名称  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1689" fieldname="会议室名称" fldid="5" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1689,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=5,[Report_EntId]=1689,[EntId]=1689,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=15,[FieldName]='会议室名称',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="656" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">会议室名称  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1689" fieldname="会议室名称" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1689,' where  [FldUId]='cbd7577d-f6e1-4285-978a-0622b1eb159a' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='e5ee7812-412b-4acd-b56c-3c6640196749'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'e5ee7812-412b-4acd-b56c-3c6640196749',1689,1689,'00000000-0000-0000-0000-000000000000',16,'会议室编号',6,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="657" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">会议室编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1689" fieldname="会议室编号" fldid="6" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1689,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=6,[Report_EntId]=1689,[EntId]=1689,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=16,[FieldName]='会议室编号',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="657" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">会议室编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1689" fieldname="会议室编号" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1689,' where  [FldUId]='e5ee7812-412b-4acd-b56c-3c6640196749' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='65300de4-da60-462c-8e92-03908bfefce1'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'65300de4-da60-462c-8e92-03908bfefce1',1689,1689,'00000000-0000-0000-0000-000000000000',17,'开始时间',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="658" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">开始时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1689" fieldname="开始时间" fldid="7" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1689,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=7,[Report_EntId]=1689,[EntId]=1689,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=17,[FieldName]='开始时间',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="658" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">开始时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1689" fieldname="开始时间" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1689,' where  [FldUId]='65300de4-da60-462c-8e92-03908bfefce1' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='e132e437-d118-4b0b-b125-c0229018799f'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'e132e437-d118-4b0b-b125-c0229018799f',1689,1689,'00000000-0000-0000-0000-000000000000',18,'结束时间',8,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="659" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="8">结束时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1689" fieldname="结束时间" fldid="8" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1689,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=8,[Report_EntId]=1689,[EntId]=1689,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=18,[FieldName]='结束时间',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="659" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="8">结束时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1689" fieldname="结束时间" fldid="8" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1689,' where  [FldUId]='e132e437-d118-4b0b-b125-c0229018799f' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='b861cfb4-7174-45bc-8dc3-e2ee98fc294a'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'b861cfb4-7174-45bc-8dc3-e2ee98fc294a',1689,1689,'00000000-0000-0000-0000-000000000000',19,'主持人',9,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="660" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="9">主持人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1689" fieldname="主持人" fldid="9" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1689,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=9,[Report_EntId]=1689,[EntId]=1689,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=19,[FieldName]='主持人',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="660" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="9">主持人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1689" fieldname="主持人" fldid="9" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1689,' where  [FldUId]='b861cfb4-7174-45bc-8dc3-e2ee98fc294a' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='a02ec903-e268-4b04-b729-eefec72b2353'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'a02ec903-e268-4b04-b729-eefec72b2353',1689,1689,'00000000-0000-0000-0000-000000000000',20,'纪要员',10,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="661" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="10">纪要员  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1689" fieldname="纪要员" fldid="10" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1689,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=10,[Report_EntId]=1689,[EntId]=1689,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=20,[FieldName]='纪要员',[FieldNO]=10,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="661" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="10">纪要员  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1689" fieldname="纪要员" fldid="10" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1689,' where  [FldUId]='a02ec903-e268-4b04-b729-eefec72b2353' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='5556d09d-a7ff-47ae-97f2-05eeb9bd832c'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'5556d09d-a7ff-47ae-97f2-05eeb9bd832c',1689,1689,'00000000-0000-0000-0000-000000000000',21,'参会人',11,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="662" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="11">参会人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1689" fieldname="参会人" fldid="11" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1689,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=11,[Report_EntId]=1689,[EntId]=1689,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=21,[FieldName]='参会人',[FieldNO]=11,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="662" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="11">参会人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1689" fieldname="参会人" fldid="11" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1689,' where  [FldUId]='5556d09d-a7ff-47ae-97f2-05eeb9bd832c' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='442f1523-32ad-48b7-8e5e-05998ddc980b'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(12,'442f1523-32ad-48b7-8e5e-05998ddc980b',1689,1689,'00000000-0000-0000-0000-000000000000',22,'会议内容',12,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="663" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="12">会议内容  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1689" fieldname="会议内容" fldid="12" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1689,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=12,[Report_EntId]=1689,[EntId]=1689,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=22,[FieldName]='会议内容',[FieldNO]=12,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="663" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="12">会议内容  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1689" fieldname="会议内容" fldid="12" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1689,' where  [FldUId]='442f1523-32ad-48b7-8e5e-05998ddc980b' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='af3a8be5-d55b-4705-8b42-35586d43fcb3'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(13,'af3a8be5-d55b-4705-8b42-35586d43fcb3',1689,1689,'00000000-0000-0000-0000-000000000000',23,'其他资源',13,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="664" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="13">其他资源  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1689" fieldname="其他资源" fldid="13" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1689,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=13,[Report_EntId]=1689,[EntId]=1689,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=23,[FieldName]='其他资源',[FieldNO]=13,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="664" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="13">其他资源  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1689" fieldname="其他资源" fldid="13" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1689,' where  [FldUId]='af3a8be5-d55b-4705-8b42-35586d43fcb3' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='7aab1ddf-ecdc-4eca-b288-44d671671b0f'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(14,'7aab1ddf-ecdc-4eca-b288-44d671671b0f',1689,1689,'00000000-0000-0000-0000-000000000000',24,'会议状态',14,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="665" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="14">会议状态  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1689" fieldname="会议状态" fldid="14" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1689,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=14,[Report_EntId]=1689,[EntId]=1689,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=24,[FieldName]='会议状态',[FieldNO]=14,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="665" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="14">会议状态  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1689" fieldname="会议状态" fldid="14" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1689,' where  [FldUId]='7aab1ddf-ecdc-4eca-b288-44d671671b0f' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='0e4d42bf-c563-48eb-bc6b-259217ad3ccc'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(15,'0e4d42bf-c563-48eb-bc6b-259217ad3ccc',1689,1689,'00000000-0000-0000-0000-000000000000',25,'申请人',15,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="666" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="15">申请人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1689" fieldname="申请人" fldid="15" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1689,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=15,[Report_EntId]=1689,[EntId]=1689,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=25,[FieldName]='申请人',[FieldNO]=15,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="666" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="15">申请人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1689" fieldname="申请人" fldid="15" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1689,' where  [FldUId]='0e4d42bf-c563-48eb-bc6b-259217ad3ccc' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='80a7f2b9-b6bd-484f-82a8-62c08d4dbc3c'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(16,'80a7f2b9-b6bd-484f-82a8-62c08d4dbc3c',1689,1689,'00000000-0000-0000-0000-000000000000',26,'申请时间',16,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="667" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="16">申请时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1689" fieldname="申请时间" fldid="16" columntypeid="1" class="form-ctr">','</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1689" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="672" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="673" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1689" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="674" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1689" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="675" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1689" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="676" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="677" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',-1,-1,-1,-1,0,'1689,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=16,[Report_EntId]=1689,[EntId]=1689,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=26,[FieldName]='申请时间',[FieldNO]=16,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="667" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="16">申请时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1689" fieldname="申请时间" fldid="16" columntypeid="1" class="form-ctr">',[LastHtml]='</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1689" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="672" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="673" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1689" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="674" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1689" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="675" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1689" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="676" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="677" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1689,' where  [FldUId]='80a7f2b9-b6bd-484f-82a8-62c08d4dbc3c' 
      end



Delete from [Dcx_ListReport_Run]  where [EntId]=1689

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=1689  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('83bf6b3c-10aa-455e-aa6f-998a7529be35','已参加会议',1689,1,'','','<$1689$>select *  from (select row_number() over( order by [LD_Id])as dcx_rowid,[会议编号],[会议主题],[会议类型],[主办部门],[会议室名称],[会议室编号],[开始时间],[结束时间],[主持人],[纪要员],[参会人],[会议内容],[其他资源],[会议状态],[申请人],[申请时间],[LD_Id] from 行政_会议管理表  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1689$><$1689:Count$>select count([LD_Id]) from 行政_会议管理表 where {$SearchArea}</$1689:Count$>',1,1,20,'DcxRun.ListR_1689= {"MenuId":2878,"MEntId":1689,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"已参加会议","EntMsg":{"E1689":{"EntId":1689,"EntName":"已参加会议","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1689*LD_Id*2**2*行政_会议管理表*已参加会议',3,'','2012-12-22 5:16:19',3,'','2013-11-16 20:06:31',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='83bf6b3c-10aa-455e-aa6f-998a7529be35',[ReportName]='已参加会议',[ModuleId]=1,[StaticHtml]='',[DIYJsCss]='',[LoadingSql]='<$1689$>select *  from (select row_number() over( order by [LD_Id])as dcx_rowid,[会议编号],[会议主题],[会议类型],[主办部门],[会议室名称],[会议室编号],[开始时间],[结束时间],[主持人],[纪要员],[参会人],[会议内容],[其他资源],[会议状态],[申请人],[申请时间],[LD_Id] from 行政_会议管理表  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1689$><$1689:Count$>select count([LD_Id]) from 行政_会议管理表 where {$SearchArea}</$1689:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[AutoPublicJs]='DcxRun.ListR_1689= {"MenuId":2878,"MEntId":1689,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"已参加会议","EntMsg":{"E1689":{"EntId":1689,"EntName":"已参加会议","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1689*LD_Id*2**2*行政_会议管理表*已参加会议',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-22 5:16:19',[EditorId]=3,[Editor]='',[EditTime]='2013-11-16 20:06:31',[AccountId]=1 where  [EntId]=1689 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='d4451598-14de-38c4-5553-2949255370ad'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(212,'d4451598-14de-38c4-5553-2949255370ad',1689,1689,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="91" entid="1689" style="width: 1844px;" ctrlprex="ListR_" isrple="1"> <li areaid="1869" class="tool-li" style="position: static;">
</li><li areaid="1870" class="tool-li" style="position: static;"><a id="ListR_1689_btn_buildNew" class="list-bt-add" title="添   加" href="javascript:void(0);" onclick="javascript:DcxCom.ShowAddDataDlg(1689,''ListR_'');">添   加</a></li>
<li areaid="1871" class="tool-li" style="position: static;"><a id="ListR_1689_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1689,''ListR_'');">删   除</a></li>
<li areaid="1872" class="tool-li" style="position: static;"><a id="ListR_1689_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1689,''ListR_'');">导   出</a></li>
<li areaid="1873" class="tool-li" style="position: static;"><a id="ListR_1689_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1689,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1689" style="position: static;">
<a id="ListR_1689_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1689,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1689_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1689,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1689_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1689,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1689_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="92" entid="1689" class="list-head-ul" style="width: 1922px;" ctrlprex="ListR_" isrple="1">
<li areaid="1875" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1689" onclick="javascript:DcxCom.CheckedAll(this,1689,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="1876" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议编号 </label></li><li areaid="1877" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议主题 </label></li><li areaid="1878" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议类型 </label></li><li areaid="1879" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">主办部门 </label></li><li areaid="1880" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议室名称 </label></li><li areaid="1881" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议室编号 </label></li><li areaid="1882" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">开始时间 </label></li><li areaid="1883" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">结束时间 </label></li><li areaid="1884" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">主持人 </label></li><li areaid="1885" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">纪要员 </label></li><li areaid="1886" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">参会人 </label></li><li areaid="1887" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议内容 </label></li><li areaid="1888" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">其他资源 </label></li><li areaid="1889" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议状态 </label></li><li areaid="1890" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请人 </label></li><li areaid="1891" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请时间 </label></li> </ul>
</div>
<div class="list-body">','',-1,93,-1,-1,1,'1689,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=212,[Report_EntId]=1689,[EntId]=1689,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="91" entid="1689" style="width: 1844px;" ctrlprex="ListR_" isrple="1"> <li areaid="1869" class="tool-li" style="position: static;">
</li><li areaid="1870" class="tool-li" style="position: static;"><a id="ListR_1689_btn_buildNew" class="list-bt-add" title="添   加" href="javascript:void(0);" onclick="javascript:DcxCom.ShowAddDataDlg(1689,''ListR_'');">添   加</a></li>
<li areaid="1871" class="tool-li" style="position: static;"><a id="ListR_1689_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1689,''ListR_'');">删   除</a></li>
<li areaid="1872" class="tool-li" style="position: static;"><a id="ListR_1689_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1689,''ListR_'');">导   出</a></li>
<li areaid="1873" class="tool-li" style="position: static;"><a id="ListR_1689_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1689,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1689" style="position: static;">
<a id="ListR_1689_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1689,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1689_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1689,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1689_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1689,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1689_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="92" entid="1689" class="list-head-ul" style="width: 1922px;" ctrlprex="ListR_" isrple="1">
<li areaid="1875" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1689" onclick="javascript:DcxCom.CheckedAll(this,1689,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="1876" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议编号 </label></li><li areaid="1877" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议主题 </label></li><li areaid="1878" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议类型 </label></li><li areaid="1879" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">主办部门 </label></li><li areaid="1880" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议室名称 </label></li><li areaid="1881" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议室编号 </label></li><li areaid="1882" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">开始时间 </label></li><li areaid="1883" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">结束时间 </label></li><li areaid="1884" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">主持人 </label></li><li areaid="1885" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">纪要员 </label></li><li areaid="1886" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">参会人 </label></li><li areaid="1887" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议内容 </label></li><li areaid="1888" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">其他资源 </label></li><li areaid="1889" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议状态 </label></li><li areaid="1890" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请人 </label></li><li areaid="1891" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请时间 </label></li> </ul>
</div>
<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1689,' where  [FldUId]='d4451598-14de-38c4-5553-2949255370ad' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='6d7a3ff1-10ae-4c50-8343-d56927337c33'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(154,'6d7a3ff1-10ae-4c50-8343-d56927337c33',1689,1689,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',2,1,'',2,21,0,'','','','islonly="1" isgroup="1" groupid="93" class="list-body-ul" style="width: 1922px;" isrple="1">
<li areaid="1892" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1689" issyscheck="1" keyvalue="','',-1,93,-1,-1,1,'1689,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=154,[Report_EntId]=1689,[EntId]=1689,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='islonly="1" isgroup="1" groupid="93" class="list-body-ul" style="width: 1922px;" isrple="1">
<li areaid="1892" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1689" issyscheck="1" keyvalue="',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1689,' where  [FldUId]='6d7a3ff1-10ae-4c50-8343-d56927337c33' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='444f1cde-0195-4e15-95a3-3922ad701a49'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'444f1cde-0195-4e15-95a3-3922ad701a49',1689,1689,'00000000-0000-0000-0000-000000000000',11,'会议编号',3,1,'varchar',2,1,0,'','','','" type="checkbox"></li><li areaid="1893" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1689" fieldname="会议编号" fldid="1" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1689,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=1,[Report_EntId]=1689,[EntId]=1689,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=11,[FieldName]='会议编号',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='" type="checkbox"></li><li areaid="1893" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1689" fieldname="会议编号" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1689,' where  [FldUId]='444f1cde-0195-4e15-95a3-3922ad701a49' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='21598638-83bb-409e-bd3c-a3d305eb5066'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'21598638-83bb-409e-bd3c-a3d305eb5066',1689,1689,'00000000-0000-0000-0000-000000000000',12,'会议主题',4,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1894" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1689" fieldname="会议主题" fldid="2" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1689,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=2,[Report_EntId]=1689,[EntId]=1689,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=12,[FieldName]='会议主题',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1894" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1689" fieldname="会议主题" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1689,' where  [FldUId]='21598638-83bb-409e-bd3c-a3d305eb5066' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='96f0e646-b0ec-47d0-ac06-0e6b9cdc2b97'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'96f0e646-b0ec-47d0-ac06-0e6b9cdc2b97',1689,1689,'00000000-0000-0000-0000-000000000000',13,'会议类型',5,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1895" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1689" fieldname="会议类型" fldid="3" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1689,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=3,[Report_EntId]=1689,[EntId]=1689,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=13,[FieldName]='会议类型',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1895" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1689" fieldname="会议类型" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1689,' where  [FldUId]='96f0e646-b0ec-47d0-ac06-0e6b9cdc2b97' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='16078343-6f71-4de9-ad53-ed7d6ebd0c3b'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'16078343-6f71-4de9-ad53-ed7d6ebd0c3b',1689,1689,'00000000-0000-0000-0000-000000000000',14,'主办部门',6,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1896" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1689" fieldname="主办部门" fldid="4" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1689,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=4,[Report_EntId]=1689,[EntId]=1689,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=14,[FieldName]='主办部门',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1896" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1689" fieldname="主办部门" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1689,' where  [FldUId]='16078343-6f71-4de9-ad53-ed7d6ebd0c3b' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='54aee698-44c0-4dd0-8678-f3dc7ce6c38d'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'54aee698-44c0-4dd0-8678-f3dc7ce6c38d',1689,1689,'00000000-0000-0000-0000-000000000000',15,'会议室名称',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1897" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1689" fieldname="会议室名称" fldid="5" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1689,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=5,[Report_EntId]=1689,[EntId]=1689,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=15,[FieldName]='会议室名称',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1897" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1689" fieldname="会议室名称" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1689,' where  [FldUId]='54aee698-44c0-4dd0-8678-f3dc7ce6c38d' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='83bc40ce-0d13-4ba0-a717-3add8b8d4cbb'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'83bc40ce-0d13-4ba0-a717-3add8b8d4cbb',1689,1689,'00000000-0000-0000-0000-000000000000',16,'会议室编号',8,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1898" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1689" fieldname="会议室编号" fldid="6" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1689,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=6,[Report_EntId]=1689,[EntId]=1689,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=16,[FieldName]='会议室编号',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1898" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1689" fieldname="会议室编号" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1689,' where  [FldUId]='83bc40ce-0d13-4ba0-a717-3add8b8d4cbb' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='d2c605e8-b78a-4653-a6de-03e5c750dc44'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'d2c605e8-b78a-4653-a6de-03e5c750dc44',1689,1689,'00000000-0000-0000-0000-000000000000',17,'开始时间',9,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1899" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1689" fieldname="开始时间" fldid="7" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1689,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=7,[Report_EntId]=1689,[EntId]=1689,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=17,[FieldName]='开始时间',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1899" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1689" fieldname="开始时间" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1689,' where  [FldUId]='d2c605e8-b78a-4653-a6de-03e5c750dc44' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='20367efa-4369-47b9-aed7-3b35b051f52b'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'20367efa-4369-47b9-aed7-3b35b051f52b',1689,1689,'00000000-0000-0000-0000-000000000000',18,'结束时间',10,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1900" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1689" fieldname="结束时间" fldid="8" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1689,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=8,[Report_EntId]=1689,[EntId]=1689,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=18,[FieldName]='结束时间',[FieldNO]=10,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1900" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1689" fieldname="结束时间" fldid="8" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1689,' where  [FldUId]='20367efa-4369-47b9-aed7-3b35b051f52b' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='3534a19e-8a4a-4258-b998-7f42960c5169'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'3534a19e-8a4a-4258-b998-7f42960c5169',1689,1689,'00000000-0000-0000-0000-000000000000',19,'主持人',11,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1901" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1689" fieldname="主持人" fldid="9" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1689,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=9,[Report_EntId]=1689,[EntId]=1689,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=19,[FieldName]='主持人',[FieldNO]=11,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1901" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1689" fieldname="主持人" fldid="9" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1689,' where  [FldUId]='3534a19e-8a4a-4258-b998-7f42960c5169' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='c9c5ae88-14c7-4754-a686-f47476d79afd'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'c9c5ae88-14c7-4754-a686-f47476d79afd',1689,1689,'00000000-0000-0000-0000-000000000000',20,'纪要员',12,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1902" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1689" fieldname="纪要员" fldid="10" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1689,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=10,[Report_EntId]=1689,[EntId]=1689,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=20,[FieldName]='纪要员',[FieldNO]=12,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1902" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1689" fieldname="纪要员" fldid="10" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1689,' where  [FldUId]='c9c5ae88-14c7-4754-a686-f47476d79afd' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='a3913b68-02ea-4d4e-b62b-da86bed946f0'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'a3913b68-02ea-4d4e-b62b-da86bed946f0',1689,1689,'00000000-0000-0000-0000-000000000000',21,'参会人',13,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1903" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1689" fieldname="参会人" fldid="11" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1689,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=11,[Report_EntId]=1689,[EntId]=1689,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=21,[FieldName]='参会人',[FieldNO]=13,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1903" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1689" fieldname="参会人" fldid="11" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1689,' where  [FldUId]='a3913b68-02ea-4d4e-b62b-da86bed946f0' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='9384f1c7-d725-4f55-a1ed-4ebb5bd423e0'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(12,'9384f1c7-d725-4f55-a1ed-4ebb5bd423e0',1689,1689,'00000000-0000-0000-0000-000000000000',22,'会议内容',14,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1904" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1689" fieldname="会议内容" fldid="12" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1689,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=12,[Report_EntId]=1689,[EntId]=1689,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=22,[FieldName]='会议内容',[FieldNO]=14,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1904" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1689" fieldname="会议内容" fldid="12" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1689,' where  [FldUId]='9384f1c7-d725-4f55-a1ed-4ebb5bd423e0' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='743badbf-5b3d-4e7e-95a5-53d9506ce14d'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(13,'743badbf-5b3d-4e7e-95a5-53d9506ce14d',1689,1689,'00000000-0000-0000-0000-000000000000',23,'其他资源',15,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1905" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1689" fieldname="其他资源" fldid="13" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1689,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=13,[Report_EntId]=1689,[EntId]=1689,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=23,[FieldName]='其他资源',[FieldNO]=15,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1905" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1689" fieldname="其他资源" fldid="13" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1689,' where  [FldUId]='743badbf-5b3d-4e7e-95a5-53d9506ce14d' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='8bd5f5a7-e7e0-4750-ad76-2e05f24457fe'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(14,'8bd5f5a7-e7e0-4750-ad76-2e05f24457fe',1689,1689,'00000000-0000-0000-0000-000000000000',24,'会议状态',16,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1906" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1689" fieldname="会议状态" fldid="14" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1689,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=14,[Report_EntId]=1689,[EntId]=1689,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=24,[FieldName]='会议状态',[FieldNO]=16,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1906" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1689" fieldname="会议状态" fldid="14" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1689,' where  [FldUId]='8bd5f5a7-e7e0-4750-ad76-2e05f24457fe' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='a2e582b1-c522-40af-94fd-3ad3b5a7fd34'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(15,'a2e582b1-c522-40af-94fd-3ad3b5a7fd34',1689,1689,'00000000-0000-0000-0000-000000000000',25,'申请人',17,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1907" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1689" fieldname="申请人" fldid="15" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1689,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=15,[Report_EntId]=1689,[EntId]=1689,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=25,[FieldName]='申请人',[FieldNO]=17,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1907" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1689" fieldname="申请人" fldid="15" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1689,' where  [FldUId]='a2e582b1-c522-40af-94fd-3ad3b5a7fd34' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='2702637a-5654-4570-90da-f50fcf9cf7d3'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(16,'2702637a-5654-4570-90da-f50fcf9cf7d3',1689,1689,'00000000-0000-0000-0000-000000000000',26,'申请时间',18,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1908" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1689" fieldname="申请时间" fldid="16" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1689,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=16,[Report_EntId]=1689,[EntId]=1689,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=26,[FieldName]='申请时间',[FieldNO]=18,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1908" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1689" fieldname="申请时间" fldid="16" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1689,' where  [FldUId]='2702637a-5654-4570-90da-f50fcf9cf7d3' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='b2a9424d-b98c-6d27-eafc-ab54dad61442'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(213,'b2a9424d-b98c-6d27-eafc-ab54dad61442',1689,1689,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',19,-1,'varchar',2,13,0,'','','','</span>
  </div>
</li>    </ul>','</div>
</div>
<!-- 结束 --></div>',-1,93,-1,-1,1,'1689,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=213,[Report_EntId]=1689,[EntId]=1689,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=19,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>    </ul>',[LastHtml]='</div>
</div>
<!-- 结束 --></div>',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1689,' where  [FldUId]='b2a9424d-b98c-6d27-eafc-ab54dad61442' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=1113

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=1113  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(1113,null,'行政_会议管理表','行政_会议管理表',0,0,0,0,0,1,1,1,3,'admin','2013-12-15 17:32:53',3,'admin','2013-12-15 17:32:53',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='行政_会议管理表',[DBTableByName]='行政_会议管理表',[IsForbid]=0,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=1,[SystemId]=1,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:53',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:53',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=1113 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2573,1,1,1113,'int',1,1,1,'行政_会议管理表','LD_Id','LD_Id','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='LD_Id',[FieldByname]='LD_Id',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2574,2,1,1113,'varchar',2,1,1,'行政_会议管理表','WFState','WFState','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFState',[FieldByname]='WFState',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2575,3,1,1113,'varchar',2,1,1,'行政_会议管理表','WFUserName','WFUserName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFUserName',[FieldByname]='WFUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2576,4,1,1113,'bit',4,1,1,'行政_会议管理表','WFIsFinish','WFIsFinish','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFIsFinish',[FieldByname]='WFIsFinish',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2577,5,1,1113,'bit',4,1,1,'行政_会议管理表','WFIsStart','WFIsStart','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFIsStart',[FieldByname]='WFIsStart',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2578,6,1,1113,'varchar',2,1,1,'行政_会议管理表','WFAllUser','WFAllUser','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFAllUser',[FieldByname]='WFAllUser',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2579,7,1,1113,'varchar',2,1,1,'行政_会议管理表','WFOpinion','WFOpinion','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFOpinion',[FieldByname]='WFOpinion',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2580,8,1,1113,'int',1,1,1,'行政_会议管理表','WFRunId','WFRunId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFRunId',[FieldByname]='WFRunId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2581,9,1,1113,'int',1,1,1,'行政_会议管理表','WFFlowId','WFFlowId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFFlowId',[FieldByname]='WFFlowId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2582,10,1,1113,'int',1,1,1,'行政_会议管理表','WFPrcsId','WFPrcsId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFPrcsId',[FieldByname]='WFPrcsId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2583,11,1,1113,'varchar',2,1,1,'行政_会议管理表','会议编号','会议编号','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='会议编号',[FieldByname]='会议编号',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2584,12,1,1113,'varchar',2,1,1,'行政_会议管理表','会议主题','会议主题','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='会议主题',[FieldByname]='会议主题',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2585,13,1,1113,'varchar',2,1,1,'行政_会议管理表','会议类型','会议类型','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='会议类型',[FieldByname]='会议类型',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2586,14,1,1113,'varchar',2,1,1,'行政_会议管理表','主办部门','主办部门','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='主办部门',[FieldByname]='主办部门',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2587,15,1,1113,'varchar',2,1,1,'行政_会议管理表','会议室名称','会议室名称','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='会议室名称',[FieldByname]='会议室名称',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2588,16,1,1113,'varchar',2,1,1,'行政_会议管理表','会议室编号','会议室编号','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='会议室编号',[FieldByname]='会议室编号',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2589,17,1,1113,'datetime',3,1,1,'行政_会议管理表','开始时间','开始时间','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='开始时间',[FieldByname]='开始时间',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2590,18,1,1113,'datetime',3,1,1,'行政_会议管理表','结束时间','结束时间','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='结束时间',[FieldByname]='结束时间',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2591,19,1,1113,'varchar',2,1,1,'行政_会议管理表','主持人','主持人','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='主持人',[FieldByname]='主持人',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2592,20,1,1113,'varchar',2,1,1,'行政_会议管理表','纪要员','纪要员','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='纪要员',[FieldByname]='纪要员',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2593,21,1,1113,'varchar',2,1,1,'行政_会议管理表','参会人','参会人','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='参会人',[FieldByname]='参会人',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2594,22,1,1113,'varchar',2,1,1,'行政_会议管理表','会议内容','会议内容','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='会议内容',[FieldByname]='会议内容',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2595,23,1,1113,'varchar',2,1,1,'行政_会议管理表','其他资源','其他资源','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='其他资源',[FieldByname]='其他资源',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2596,24,1,1113,'varchar',2,1,1,'行政_会议管理表','会议状态','会议状态','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='会议状态',[FieldByname]='会议状态',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2597,25,1,1113,'varchar',2,1,1,'行政_会议管理表','申请人','申请人','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='申请人',[FieldByname]='申请人',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2598,26,1,1113,'datetime',3,1,1,'行政_会议管理表','申请时间','申请时间','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='申请时间',[FieldByname]='申请时间',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=26 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=2879  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2879,'0e6d0967-38ab-4433-b5e3-75f7025539fb','会议纪要',1972,'/Template/default/ListReport/ListReport_Tree001.aspx',1,'/images/default.gif','/images/default.gif',7,'',null,0,null,1,0,1,1,1,1,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='0e6d0967-38ab-4433-b5e3-75f7025539fb',[MenuName]='会议纪要',[ParentId]=1972,[ProPath]='/Template/default/ListReport/ListReport_Tree001.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=7,[Target]='',[IsOpen]=null,[IsHidden]=0,[Remark]=null,[SSystemId]=1,[SMenuId]=0,[SystemId]=1,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=2879 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=2879  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(659,2879,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=2879  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=1670  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(1670,2879,'会议纪要',1,1115,0,'行政_会议纪要表',0,0,1,1,1670,null,null,1,null,null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=2879,[EntName]='会议纪要',[MEnt]=1,[DBTableId]=1115,[DBConnectId]=0,[DBTableName]='行政_会议纪要表',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=1,[SEntId]=1670,[FSystemId]=null,[FEntId]=null,[SystemId]=1,[Remark]=null,[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=1670 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=1670

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=1670  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(10803,2879,1670,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=2879,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=1670  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=1670

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1670  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18064,1,2879,1670,13,1,1,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2879,[TemplateId]=13,[ModuleId]=1,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1670  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1670  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18065,1,2879,1670,13,2,9,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2879,[TemplateId]=13,[ModuleId]=9,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1670  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1670  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18066,1,2879,1670,13,3,14,1,4,2,'/Template/Default/Form/AjaxForm/AjaxForm008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2879,[TemplateId]=13,[ModuleId]=14,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='/Template/Default/Form/AjaxForm/AjaxForm008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1670  and  [ModuleTypeId]=3 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1670  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18067,1,2879,1670,13,16,31,1,5,2,'/Template/Default/Browse/Browse008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2879,[TemplateId]=13,[ModuleId]=31,[GroupId]=1,[AreaId]=5,[ShowMode]=2,[AreaUrl]='/Template/Default/Browse/Browse008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1670  and  [ModuleTypeId]=16 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_AjaxForm_Run]  where [EntId]=1670

--Dcx_AjaxForm_Run
      if (select count(1) from [Dcx_AjaxForm_Run] where  [EntId]=1670  )<1 
      begin 
           Insert into [Dcx_AjaxForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('2e49809f-9686-4f0f-9341-37fba0a937bc','会议纪要',1670,14,'','',0,'<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>','','DcxRun.AjaxF_1670= {"MenuId":2879,"MEntId":1670,"EntName":"会议纪要","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1670":{"EntId":1670,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{
DcxForm.CreateHtmlEditor(''d1670_纪要内容'',1670,''AjaxF_'',''纪要内容'',600,350,false,1,false);

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_1670.EntMsg.E1670.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"行政_会议纪要表","EntId":1670,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"会议编号":{"DtId":2,"DB":1,"CId":3,"FL":-1},"会议主题":{"DtId":2,"DB":1,"CId":4,"FL":-1},"纪要内容":{"DtId":2,"DB":1,"CId":23,"FL":-1},"创建者":{"DtId":2,"DB":1,"CId":4,"FL":-1},"创建时间":{"DtId":3,"DB":1,"CId":4,"FL":-1}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_1670.EntMsg.E1670.GetDataRowModel=function()
{
    return {"会议编号":"","会议主题":"","纪要内容":"","创建者":"","创建时间":new Date(),"Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_AjaxF_1670_203(obj,curFieldName){
 var EntId=1670;
 var FldId=3158;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''会议主题'';
 var $formContainer=DcxForm.GetHtmlContainer(1670,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1670,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"会议主题\",FldId:"+FldId+",EntId:1670,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''会议编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,1670,''AjaxF_'',''会议编号'',$formContainer,false,false);
if(Dcx.IsNull(v_f1))
   v_f1='''';
 strData.data = strData.data + "{@会议编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1670_会议主题");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_1670.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1670,''AjaxF_'',buildNew,closeDlg);

}','<$1670$>select [会议编号],[会议主题],[纪要内容],[创建者],[创建时间],[Id] from 行政_会议纪要表 where [Id]=''{$keyfieldvalue}''</$1670$>',20,'','','','1670*Id*2**2*行政_会议纪要表*会议纪要',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 7:02:48',3,'admin','2013-11-16 18:33:45',1)
      end
      else 
      begin 
           update [Dcx_AjaxForm_Run] set [FormId]='2e49809f-9686-4f0f-9341-37fba0a937bc',[FormName]='会议纪要',[ModuleId]=14,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.AjaxF_1670= {"MenuId":2879,"MEntId":1670,"EntName":"会议纪要","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1670":{"EntId":1670,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{
DcxForm.CreateHtmlEditor(''d1670_纪要内容'',1670,''AjaxF_'',''纪要内容'',600,350,false,1,false);

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_1670.EntMsg.E1670.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"行政_会议纪要表","EntId":1670,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"会议编号":{"DtId":2,"DB":1,"CId":3,"FL":-1},"会议主题":{"DtId":2,"DB":1,"CId":4,"FL":-1},"纪要内容":{"DtId":2,"DB":1,"CId":23,"FL":-1},"创建者":{"DtId":2,"DB":1,"CId":4,"FL":-1},"创建时间":{"DtId":3,"DB":1,"CId":4,"FL":-1}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_1670.EntMsg.E1670.GetDataRowModel=function()
{
    return {"会议编号":"","会议主题":"","纪要内容":"","创建者":"","创建时间":new Date(),"Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_AjaxF_1670_203(obj,curFieldName){
 var EntId=1670;
 var FldId=3158;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''会议主题'';
 var $formContainer=DcxForm.GetHtmlContainer(1670,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(1670,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"会议主题\",FldId:"+FldId+",EntId:1670,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''会议编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,1670,''AjaxF_'',''会议编号'',$formContainer,false,false);
if(Dcx.IsNull(v_f1))
   v_f1='''';
 strData.data = strData.data + "{@会议编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d1670_会议主题");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_1670.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1670,''AjaxF_'',buildNew,closeDlg);

}',[LoadingSql]='<$1670$>select [会议编号],[会议主题],[纪要内容],[创建者],[创建时间],[Id] from 行政_会议纪要表 where [Id]=''{$keyfieldvalue}''</$1670$>',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='1670*Id*2**2*行政_会议纪要表*会议纪要',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 7:02:48',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-16 18:33:45',[AccountId]=1 where  [EntId]=1670 
      end




--Dcx_AjaxFormField_Run
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='7e7b0c72-f2bd-434f-9097-7097763fbf0c'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3157,'7e7b0c72-f2bd-434f-9097-7097763fbf0c',1670,1670,'00000000-0000-0000-0000-000000000000','会议编号',2,2,2,'Select  行政_会议管理表.[会议主题] , 行政_会议管理表.[会议编号]  from  行政_会议管理表  Where   会议状态 <> ''申请中''  and  会议状态 <> ''取消''',2,1,null,0,3,1,0,1,-1,0,0,'','','','','<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="1670" groupid="176" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="456" class="li-area-title" scroll="no" style="width: 77px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">会议纪要</span></div>
</li>
<li areaid="457" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
<li areaid="458" class="li-area1" scroll="no" style="display: none; position: static;">
<a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.AjaxF_1670.SubmitForm(false);">
<span class="op_bt_i">保存</span> </a></li>
<li areaid="459" class="li-area1" scroll="no" style="display: none; position: static;">
<a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(1670,''AjaxF_'');"><span class="op_bt_i">新建</span>
</a></li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="177" entid="1670" class="ul-mform" ctrlprex="AjaxF_" isrple="1">
<li areaid="460" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3157" istitle="1">会议编号 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<select id="d1670_会议编号" name="d1670_会议编号" class="form-select"  onchange ="javascript:GetLinkCtrlData_AjaxF_1670_203(this,''会议编号'');DcxVld.Validate(this,1670,''AjaxF_'',1670,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1670,''AjaxF_'',1670);" EntId="1670" IsField=1 DBField=1 IsPost=1 FieldName="会议编号" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="3" FId="3157" vlk=0    CBack=1  style="width:201px;">','</select>','',-1,-1,-1,-1,0,'1670,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3157,[Form_EntId]=1670,[EntId]=1670,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='会议编号',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=2,[DefaultValue]='Select  行政_会议管理表.[会议主题] , 行政_会议管理表.[会议编号]  from  行政_会议管理表  Where   会议状态 <> ''申请中''  and  会议状态 <> ''取消''',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="1670" groupid="176" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="456" class="li-area-title" scroll="no" style="width: 77px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">会议纪要</span></div>
</li>
<li areaid="457" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
<li areaid="458" class="li-area1" scroll="no" style="display: none; position: static;">
<a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.AjaxF_1670.SubmitForm(false);">
<span class="op_bt_i">保存</span> </a></li>
<li areaid="459" class="li-area1" scroll="no" style="display: none; position: static;">
<a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(1670,''AjaxF_'');"><span class="op_bt_i">新建</span>
</a></li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="177" entid="1670" class="ul-mform" ctrlprex="AjaxF_" isrple="1">
<li areaid="460" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3157" istitle="1">会议编号 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1670_会议编号" name="d1670_会议编号" class="form-select"  onchange ="javascript:GetLinkCtrlData_AjaxF_1670_203(this,''会议编号'');DcxVld.Validate(this,1670,''AjaxF_'',1670,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1670,''AjaxF_'',1670);" EntId="1670" IsField=1 DBField=1 IsPost=1 FieldName="会议编号" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="3" FId="3157" vlk=0    CBack=1  style="width:201px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1670,' where  [FldUId]='7e7b0c72-f2bd-434f-9097-7097763fbf0c' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='8267f0ed-3992-4286-86e4-fba2bec1449a'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3158,'8267f0ed-3992-4286-86e4-fba2bec1449a',1670,1670,'00000000-0000-0000-0000-000000000000','会议主题',2,2,3,'Select  行政_会议管理表.[会议主题]  from  行政_会议管理表  Where   会议编号 Like ''{@会议编号}''',2,9,null,0,4,1,0,2,-1,0,0,'','','会议编号,','','</span>
</div>
</li>
<li areaid="461" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3158" istitle="1">会议主题 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d1670_会议主题" class="form-lbl" style="width:201px;" IsForField=1 EntId="1670" CId="4" FId="3158" Vtp="2"  >','</span><input id="d1670_会议主题_hid" type="hidden"  EntId="1670" IsField=1 DBField=1 IsPost=1 FieldName="会议主题" dType="2" Vtp="2" RDT="2" Isc="0" RId="9" CId="4" FId="3158" vlk=0    value="','" />',-1,-1,-1,-1,0,'1670,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3158,[Form_EntId]=1670,[EntId]=1670,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='会议主题',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=3,[DefaultValue]='Select  行政_会议管理表.[会议主题]  from  行政_会议管理表  Where   会议编号 Like ''{@会议编号}''',[ValueType]=2,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=2,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='会议编号,',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="461" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3158" istitle="1">会议主题 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1670_会议主题" class="form-lbl" style="width:201px;" IsForField=1 EntId="1670" CId="4" FId="3158" Vtp="2"  >',[CtrlbackHtml]='</span><input id="d1670_会议主题_hid" type="hidden"  EntId="1670" IsField=1 DBField=1 IsPost=1 FieldName="会议主题" dType="2" Vtp="2" RDT="2" Isc="0" RId="9" CId="4" FId="3158" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1670,' where  [FldUId]='8267f0ed-3992-4286-86e4-fba2bec1449a' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='a398cb60-42ea-4af1-a651-1666d756265c'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3159,'a398cb60-42ea-4af1-a651-1666d756265c',1670,1670,'00000000-0000-0000-0000-000000000000','纪要内容',2,2,4,'',5,1,null,0,23,1,0,3,-1,0,0,'','','','','</span>
</div>
</li>
<li areaid="462" style="height: 470px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3159">纪要内容  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1670_纪要内容" class="form-txts"  style="width:600px;height:350px;" EntId="1670" IsField=1 DBField=1 IsPost=1 FieldName="纪要内容" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="23" FId="3159" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1670,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3159,[Form_EntId]=1670,[EntId]=1670,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='纪要内容',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=4,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=23,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=3,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="462" style="height: 470px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3159">纪要内容  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1670_纪要内容" class="form-txts"  style="width:600px;height:350px;" EntId="1670" IsField=1 DBField=1 IsPost=1 FieldName="纪要内容" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="23" FId="3159" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1670,' where  [FldUId]='a398cb60-42ea-4af1-a651-1666d756265c' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='bfcbbf1a-9b8c-4ebf-95a3-f2121cc8f3d4'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3160,'bfcbbf1a-9b8c-4ebf-95a3-f2121cc8f3d4',1670,1670,'00000000-0000-0000-0000-000000000000','创建者',2,2,6,'{$UserName}',0,9,null,0,4,1,0,4,-1,0,0,'','','','{$username},','</span>
  </div>
</li>
<li areaid="463" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3160">创建者  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d1670_创建者" class="form-lbl" style="width:201px;" IsForField=1 EntId="1670" CId="4" FId="3160" Vtp="0"  >','</span><input id="d1670_创建者_hid" type="hidden"  EntId="1670" IsField=1 DBField=1 IsPost=1 FieldName="创建者" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="3160" vlk=0    value="','" />',-1,-1,-1,-1,0,'1670,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3160,[Form_EntId]=1670,[EntId]=1670,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='创建者',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=6,[DefaultValue]='{$UserName}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=4,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$username},',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="463" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3160">创建者  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1670_创建者" class="form-lbl" style="width:201px;" IsForField=1 EntId="1670" CId="4" FId="3160" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d1670_创建者_hid" type="hidden"  EntId="1670" IsField=1 DBField=1 IsPost=1 FieldName="创建者" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="3160" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1670,' where  [FldUId]='bfcbbf1a-9b8c-4ebf-95a3-f2121cc8f3d4' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='7ea9aefc-09b2-45db-bc10-dc15be9aeb7e'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3161,'7ea9aefc-09b2-45db-bc10-dc15be9aeb7e',1670,1670,'00000000-0000-0000-0000-000000000000','创建时间',3,3,5,'{$date}',0,9,null,0,4,1,0,5,-1,0,0,'','','','{$date},','</span>
  </div>
</li>
<li areaid="464" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3161">创建时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','</span>
  </div>
</li>
</ul>
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="178" entid="1670" class="tab_ul" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="465" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li areaid="466" istab="1" tabid="2" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1" style="display: none;">
<ul isgroup="1" groupid="179" entid="1670" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="467" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: block;">
<ul isgroup="1" groupid="180" entid="1670" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="468" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="1670" groupid="181" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="469" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
<li areaid="470" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>','','','<span id="d1670_创建时间" class="form-lbl" style="width:201px;" IsForField=1 EntId="1670" CId="4" FId="3161" Vtp="0"  >','</span><input id="d1670_创建时间_hid" type="hidden"  EntId="1670" IsField=1 DBField=1 IsPost=1 FieldName="创建时间" dType="3" Vtp="0" RDT="3" Isc="0" RId="9" CId="4" FId="3161" vlk=0    value="','" />',-1,-1,-1,-1,0,'1670,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3161,[Form_EntId]=1670,[EntId]=1670,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='创建时间',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=5,[DefaultValue]='{$date}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=5,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$date},',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="464" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3161">创建时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
  </div>
</li>
</ul>
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="178" entid="1670" class="tab_ul" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="465" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li areaid="466" istab="1" tabid="2" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1" style="display: none;">
<ul isgroup="1" groupid="179" entid="1670" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="467" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: block;">
<ul isgroup="1" groupid="180" entid="1670" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="468" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="1670" groupid="181" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="469" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
<li areaid="470" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1670_创建时间" class="form-lbl" style="width:201px;" IsForField=1 EntId="1670" CId="4" FId="3161" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d1670_创建时间_hid" type="hidden"  EntId="1670" IsField=1 DBField=1 IsPost=1 FieldName="创建时间" dType="3" Vtp="0" RDT="3" Isc="0" RId="9" CId="4" FId="3161" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1670,' where  [FldUId]='7ea9aefc-09b2-45db-bc10-dc15be9aeb7e' 
      end



Delete from [Dcx_SearchForm_Run]  where [EntId]=1670

--Dcx_SearchForm_Run
      if (select count(1) from [Dcx_SearchForm_Run] where  [EntId]=1670  )<1 
      begin 
           Insert into [Dcx_SearchForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('7419db7c-7c26-4e37-936b-e8a8cd81867b','会议纪要',1670,9,'','',0,'','','DcxRun.SearchF_1670= {"MenuId":2879,"MEntId":1670,"EntName":"会议纪要","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1670":{"EntId":1670,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_1670.EntMsg.E1670.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"行政_会议纪要表","EntId":1670,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"会议主题":{"DtId":2,"DB":1,"CId":1,"FL":100},"创建时间":{"DtId":3,"DB":1,"CId":5,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.SearchF_1670.EntMsg.E1670.GetDataRowModel=function()
{
    return {"会议主题":"","创建时间":new Date(),"Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_1670.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1670,''SearchF_'',buildNew,closeDlg);

}','',20,'','','','1670*Id*2**2*行政_会议纪要表*会议纪要',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 5:45:57',3,'admin','2013-11-16 17:36:04',1)
      end
      else 
      begin 
           update [Dcx_SearchForm_Run] set [FormId]='7419db7c-7c26-4e37-936b-e8a8cd81867b',[FormName]='会议纪要',[ModuleId]=9,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.SearchF_1670= {"MenuId":2879,"MEntId":1670,"EntName":"会议纪要","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1670":{"EntId":1670,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_1670.EntMsg.E1670.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"行政_会议纪要表","EntId":1670,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"会议主题":{"DtId":2,"DB":1,"CId":1,"FL":100},"创建时间":{"DtId":3,"DB":1,"CId":5,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.SearchF_1670.EntMsg.E1670.GetDataRowModel=function()
{
    return {"会议主题":"","创建时间":new Date(),"Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_1670.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1670,''SearchF_'',buildNew,closeDlg);

}',[LoadingSql]='',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='1670*Id*2**2*行政_会议纪要表*会议纪要',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 5:45:57',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-16 17:36:04',[AccountId]=1 where  [EntId]=1670 
      end




--Dcx_SearchFormField_Run
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='9c299501-62a1-4817-97a8-65db409c35ea'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'9c299501-62a1-4817-97a8-65db409c35ea',1670,1670,'00000000-0000-0000-0000-000000000000',1,'Like','会议主题',2,2,3,'',5,1,1,0,1,1,0,-1,1,0,'','','','','<div class="searchform">
<ul class="search-block w920" entid="1670" isgroup="1" groupid="27" ctrlprex="SearchF_" isrple="1">
<li style="width: 241px; position: static;" class="search-li w240 h32" scroll="no" areaid="79"><label class="search-title pad7" fldid="1" istitle="1">会议主题</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">','','','','<input  id="d1670_会议主题"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1670,''SearchF_'',1670,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1670,''SearchF_'',1670);" EntId="1670" IsField=1 DBField=1 IsPost=1 FieldName="会议主题" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'1670,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=1,[Form_EntId]=1670,[EntId]=1670,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[CompareOperatorType]='Like',[FieldName]='会议主题',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=3,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="searchform">
<ul class="search-block w920" entid="1670" isgroup="1" groupid="27" ctrlprex="SearchF_" isrple="1">
<li style="width: 241px; position: static;" class="search-li w240 h32" scroll="no" areaid="79"><label class="search-title pad7" fldid="1" istitle="1">会议主题</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1670_会议主题"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1670,''SearchF_'',1670,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1670,''SearchF_'',1670);" EntId="1670" IsField=1 DBField=1 IsPost=1 FieldName="会议主题" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1670,' where  [FldUId]='9c299501-62a1-4817-97a8-65db409c35ea' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='eb916002-67f3-4da8-ac67-0aa37a1fe019'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'eb916002-67f3-4da8-ac67-0aa37a1fe019',1670,1670,'00000000-0000-0000-0000-000000000000',2,'Like','创建时间',3,3,5,'',5,1,1,0,5,1,0,-1,1,0,'','','','','</span> </div></li>
<li style="position: static;" class="search-li w240 h32" scroll="no" areaid="80"><label class="search-title pad7" fldid="2" istitle="1">创建时间</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">','</span> </div></li>
<li style="position: static;" class="search-li w100 h32" scroll="no" areaid="81">
<div class="searchform-button" onclick="javascript:return VL_Search(1670);">
<div class="search-btn">&nbsp;</div><a id="1670_searchBT" href="javascript:void(0);">搜索</a> </div></li></ul></div>','','','<div class="form-ddl"><input  id="d1670_创建时间"   type="text" class="form-ddl-txt"  style="width:130px;" onblur ="javascript:if(!DcxVld.Validate(this,1670,''SearchF_'',1670,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1670,''SearchF_'',1670);DcxDTime.ShowCalendar(this);" EntId="1670" IsField=1 DBField=1 IsPost=1 FieldName="创建时间" dType="3" Vtp="5" RDT="3" Isc="1" RId="1" CId="5" FId="2" vlk=0    Cpre="Like"  value="','"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>','',1,-1,-1,-1,-1,0,'1670,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=2,[Form_EntId]=1670,[EntId]=1670,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[CompareOperatorType]='Like',[FieldName]='创建时间',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=5,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=5,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="position: static;" class="search-li w240 h32" scroll="no" areaid="80"><label class="search-title pad7" fldid="2" istitle="1">创建时间</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">',[LastHtml]='</span> </div></li>
<li style="position: static;" class="search-li w100 h32" scroll="no" areaid="81">
<div class="searchform-button" onclick="javascript:return VL_Search(1670);">
<div class="search-btn">&nbsp;</div><a id="1670_searchBT" href="javascript:void(0);">搜索</a> </div></li></ul></div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-ddl"><input  id="d1670_创建时间"   type="text" class="form-ddl-txt"  style="width:130px;" onblur ="javascript:if(!DcxVld.Validate(this,1670,''SearchF_'',1670,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1670,''SearchF_'',1670);DcxDTime.ShowCalendar(this);" EntId="1670" IsField=1 DBField=1 IsPost=1 FieldName="创建时间" dType="3" Vtp="5" RDT="3" Isc="1" RId="1" CId="5" FId="2" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1670,' where  [FldUId]='eb916002-67f3-4da8-ac67-0aa37a1fe019' 
      end



Delete from [Dcx_BrowseReport_Run]  where [EntId]=1670

--Dcx_BrowseReport_Run
      if (select count(1) from [Dcx_BrowseReport_Run] where  [EntId]=1670  )<1 
      begin 
           Insert into [Dcx_BrowseReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[DIYJsCss],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('d93f099e-5c3a-4331-b7fe-80e526c0382e','会议纪要',1670,31,'','<$1670$>select [会议编号],[会议主题],[纪要内容],[创建时间],[创建者],[Id] from 行政_会议纪要表 where [Id]=''{$keyfieldvalue}''</$1670$>',1,1,20,'','DcxRun.MChildR_1670= {"MenuId":2879,"MEntId":1670,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"会议纪要","EntMsg":{"E1670":{"EntId":1670,"EntName":"会议纪要","KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1670*Id*2**2*行政_会议纪要表*会议纪要',3,'','2012-12-21 11:03:02',3,'','2013-11-17 2:53:06',1)
      end
      else 
      begin 
           update [Dcx_BrowseReport_Run] set [ReportId]='d93f099e-5c3a-4331-b7fe-80e526c0382e',[ReportName]='会议纪要',[ModuleId]=31,[StaticHtml]='',[LoadingSql]='<$1670$>select [会议编号],[会议主题],[纪要内容],[创建时间],[创建者],[Id] from 行政_会议纪要表 where [Id]=''{$keyfieldvalue}''</$1670$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[DIYJsCss]='',[AutoPublicJs]='DcxRun.MChildR_1670= {"MenuId":2879,"MEntId":1670,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"会议纪要","EntMsg":{"E1670":{"EntId":1670,"EntName":"会议纪要","KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1670*Id*2**2*行政_会议纪要表*会议纪要',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-21 11:03:02',[EditorId]=3,[Editor]='',[EditTime]='2013-11-17 2:53:06',[AccountId]=1 where  [EntId]=1670 
      end




--Dcx_BrowseReportField_Run
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='6b748861-26bd-4fe7-a610-852007511f9a'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'6b748861-26bd-4fe7-a610-852007511f9a',1670,1670,'00000000-0000-0000-0000-000000000000',2,'会议编号',1,1,'varchar',2,1,0,'','','','<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1670" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="365" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">会议纪要</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1670" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="366" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">会议编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1670" fieldname="会议编号" fldid="1" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1670,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=1,[Report_EntId]=1670,[EntId]=1670,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='会议编号',[FieldNO]=1,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1670" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="365" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">会议纪要</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1670" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="366" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">会议编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1670" fieldname="会议编号" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1670,' where  [FldUId]='6b748861-26bd-4fe7-a610-852007511f9a' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='59ea353a-cbfe-43e7-a3e9-3952d12c5d4e'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'59ea353a-cbfe-43e7-a3e9-3952d12c5d4e',1670,1670,'00000000-0000-0000-0000-000000000000',3,'会议主题',2,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="367" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">会议主题  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1670" fieldname="会议主题" fldid="2" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1670,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=2,[Report_EntId]=1670,[EntId]=1670,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='会议主题',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="367" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">会议主题  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1670" fieldname="会议主题" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1670,' where  [FldUId]='59ea353a-cbfe-43e7-a3e9-3952d12c5d4e' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='24511426-636d-4bf9-bd82-431a71187835'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'24511426-636d-4bf9-bd82-431a71187835',1670,1670,'00000000-0000-0000-0000-000000000000',4,'纪要内容',3,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="368" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">纪要内容  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1670" fieldname="纪要内容" fldid="3" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1670,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=3,[Report_EntId]=1670,[EntId]=1670,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=4,[FieldName]='纪要内容',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="368" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">纪要内容  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1670" fieldname="纪要内容" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1670,' where  [FldUId]='24511426-636d-4bf9-bd82-431a71187835' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='c202de2a-9230-4b43-954e-d24eb0b36163'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'c202de2a-9230-4b43-954e-d24eb0b36163',1670,1670,'00000000-0000-0000-0000-000000000000',5,'创建时间',4,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="369" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">创建时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1670" fieldname="创建时间" fldid="4" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1670,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=4,[Report_EntId]=1670,[EntId]=1670,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=5,[FieldName]='创建时间',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="369" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">创建时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1670" fieldname="创建时间" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1670,' where  [FldUId]='c202de2a-9230-4b43-954e-d24eb0b36163' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='fc27d2c1-e9b3-4bd8-ad6c-6fb7fbef3888'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'fc27d2c1-e9b3-4bd8-ad6c-6fb7fbef3888',1670,1670,'00000000-0000-0000-0000-000000000000',6,'创建者',5,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="370" style="height: 38px; width: 792px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">创建者  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1670" fieldname="创建者" fldid="5" columntypeid="1" class="form-ctr">','</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1670" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="375" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="376" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1670" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="377" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1670" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="378" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1670" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="379" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="380" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',-1,-1,-1,-1,0,'1670,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=5,[Report_EntId]=1670,[EntId]=1670,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=6,[FieldName]='创建者',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="370" style="height: 38px; width: 792px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">创建者  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1670" fieldname="创建者" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1670" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="375" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="376" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1670" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="377" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1670" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="378" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1670" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="379" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="380" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1670,' where  [FldUId]='fc27d2c1-e9b3-4bd8-ad6c-6fb7fbef3888' 
      end



Delete from [Dcx_ListReport_Run]  where [EntId]=1670

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=1670  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('ed323d48-050a-418f-81c9-99c7a7732f3e','会议纪要',1670,1,'','','<$1670$>select *  from (select row_number() over( order by [Id])as dcx_rowid,[会议编号],[会议主题],[纪要内容],[创建时间],[创建者],[Id] from 行政_会议纪要表  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1670$><$1670:Count$>select count([Id]) from 行政_会议纪要表 where {$SearchArea}</$1670:Count$>',1,1,20,'DcxRun.ListR_1670= {"MenuId":2879,"MEntId":1670,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"会议纪要","EntMsg":{"E1670":{"EntId":1670,"EntName":"会议纪要","KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1670*Id*2**2*行政_会议纪要表*会议纪要',3,'','2012-12-22 5:16:19',3,'','2013-11-16 20:06:34',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='ed323d48-050a-418f-81c9-99c7a7732f3e',[ReportName]='会议纪要',[ModuleId]=1,[StaticHtml]='',[DIYJsCss]='',[LoadingSql]='<$1670$>select *  from (select row_number() over( order by [Id])as dcx_rowid,[会议编号],[会议主题],[纪要内容],[创建时间],[创建者],[Id] from 行政_会议纪要表  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1670$><$1670:Count$>select count([Id]) from 行政_会议纪要表 where {$SearchArea}</$1670:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[AutoPublicJs]='DcxRun.ListR_1670= {"MenuId":2879,"MEntId":1670,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"会议纪要","EntMsg":{"E1670":{"EntId":1670,"EntName":"会议纪要","KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1670*Id*2**2*行政_会议纪要表*会议纪要',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-22 5:16:19',[EditorId]=3,[Editor]='',[EditTime]='2013-11-16 20:06:34',[AccountId]=1 where  [EntId]=1670 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='73bb7c81-8cc5-66d3-3e85-d9f0b114e46d'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(212,'73bb7c81-8cc5-66d3-3e85-d9f0b114e46d',1670,1670,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="91" entid="1670" style="width: 730px;" ctrlprex="ListR_" isrple="1"> <li areaid="1077" class="tool-li" style="position: static;">
</li><li areaid="1078" class="tool-li" style="position: static;"><a id="ListR_1670_btn_buildNew" class="list-bt-add" title="添   加" href="javascript:void(0);" onclick="javascript:DcxCom.ShowAddDataDlg(1670,''ListR_'');">添   加</a></li>
<li areaid="1079" class="tool-li" style="position: static;"><a id="ListR_1670_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1670,''ListR_'');">删   除</a></li>
<li areaid="1080" class="tool-li" style="position: static;"><a id="ListR_1670_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1670,''ListR_'');">导   出</a></li>
<li areaid="1081" class="tool-li" style="position: static;"><a id="ListR_1670_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1670,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1670" style="position: static;">
<a id="ListR_1670_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1670,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1670_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1670,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1670_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1670,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1670_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="92" entid="1670" class="list-head-ul" style="width: 726px;" ctrlprex="ListR_" isrple="1">
<li areaid="1083" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1670" onclick="javascript:DcxCom.CheckedAll(this,1670,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="1084" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议编号 </label></li><li areaid="1085" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议主题 </label></li><li areaid="1086" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">纪要内容 </label></li><li areaid="1087" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">创建时间 </label></li><li areaid="1088" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">创建者 </label></li><li areaid="1089" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="编辑"><span class="i">编辑</span></a></div></li><li areaid="1090" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="1091" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">','',-1,93,-1,-1,1,'1670,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=212,[Report_EntId]=1670,[EntId]=1670,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="91" entid="1670" style="width: 730px;" ctrlprex="ListR_" isrple="1"> <li areaid="1077" class="tool-li" style="position: static;">
</li><li areaid="1078" class="tool-li" style="position: static;"><a id="ListR_1670_btn_buildNew" class="list-bt-add" title="添   加" href="javascript:void(0);" onclick="javascript:DcxCom.ShowAddDataDlg(1670,''ListR_'');">添   加</a></li>
<li areaid="1079" class="tool-li" style="position: static;"><a id="ListR_1670_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1670,''ListR_'');">删   除</a></li>
<li areaid="1080" class="tool-li" style="position: static;"><a id="ListR_1670_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1670,''ListR_'');">导   出</a></li>
<li areaid="1081" class="tool-li" style="position: static;"><a id="ListR_1670_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1670,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1670" style="position: static;">
<a id="ListR_1670_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1670,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1670_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1670,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1670_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1670,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1670_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="92" entid="1670" class="list-head-ul" style="width: 726px;" ctrlprex="ListR_" isrple="1">
<li areaid="1083" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1670" onclick="javascript:DcxCom.CheckedAll(this,1670,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="1084" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议编号 </label></li><li areaid="1085" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议主题 </label></li><li areaid="1086" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">纪要内容 </label></li><li areaid="1087" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">创建时间 </label></li><li areaid="1088" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">创建者 </label></li><li areaid="1089" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="编辑"><span class="i">编辑</span></a></div></li><li areaid="1090" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="1091" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1670,' where  [FldUId]='73bb7c81-8cc5-66d3-3e85-d9f0b114e46d' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='7f737d7b-266b-419b-987d-f9a793ba4e48'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(154,'7f737d7b-266b-419b-987d-f9a793ba4e48',1670,1670,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',2,1,'',2,21,0,'','','','islonly="1" isgroup="1" groupid="93" class="list-body-ul" style="width: 726px;" isrple="1">
<li areaid="1092" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1670" issyscheck="1" keyvalue="','',-1,93,-1,-1,1,'1670,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=154,[Report_EntId]=1670,[EntId]=1670,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='islonly="1" isgroup="1" groupid="93" class="list-body-ul" style="width: 726px;" isrple="1">
<li areaid="1092" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1670" issyscheck="1" keyvalue="',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1670,' where  [FldUId]='7f737d7b-266b-419b-987d-f9a793ba4e48' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='be64418a-72a4-46a7-a1ef-9d3551131a71'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'be64418a-72a4-46a7-a1ef-9d3551131a71',1670,1670,'00000000-0000-0000-0000-000000000000',2,'会议编号',3,1,'varchar',2,1,0,'','','','" type="checkbox"></li><li areaid="1093" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1670" fieldname="会议编号" fldid="1" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1670,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=1,[Report_EntId]=1670,[EntId]=1670,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='会议编号',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='" type="checkbox"></li><li areaid="1093" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1670" fieldname="会议编号" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1670,' where  [FldUId]='be64418a-72a4-46a7-a1ef-9d3551131a71' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='2edd3f39-b691-4fde-923e-40a2cf4fc56f'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'2edd3f39-b691-4fde-923e-40a2cf4fc56f',1670,1670,'00000000-0000-0000-0000-000000000000',3,'会议主题',4,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1094" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1670" fieldname="会议主题" fldid="2" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1670,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=2,[Report_EntId]=1670,[EntId]=1670,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='会议主题',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1094" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1670" fieldname="会议主题" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1670,' where  [FldUId]='2edd3f39-b691-4fde-923e-40a2cf4fc56f' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='17918549-58b1-4912-ba8a-4dc689409cfd'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'17918549-58b1-4912-ba8a-4dc689409cfd',1670,1670,'00000000-0000-0000-0000-000000000000',4,'纪要内容',5,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1095" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1670" fieldname="纪要内容" fldid="3" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1670,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=3,[Report_EntId]=1670,[EntId]=1670,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=4,[FieldName]='纪要内容',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1095" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1670" fieldname="纪要内容" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1670,' where  [FldUId]='17918549-58b1-4912-ba8a-4dc689409cfd' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='fa47b8fa-fb32-497c-9e4d-e13045d12d61'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'fa47b8fa-fb32-497c-9e4d-e13045d12d61',1670,1670,'00000000-0000-0000-0000-000000000000',5,'创建时间',6,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1096" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1670" fieldname="创建时间" fldid="4" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1670,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=4,[Report_EntId]=1670,[EntId]=1670,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=5,[FieldName]='创建时间',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1096" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1670" fieldname="创建时间" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1670,' where  [FldUId]='fa47b8fa-fb32-497c-9e4d-e13045d12d61' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='112729c0-8d36-43c6-9405-83fe154aab40'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'112729c0-8d36-43c6-9405-83fe154aab40',1670,1670,'00000000-0000-0000-0000-000000000000',6,'创建者',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1097" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1670" fieldname="创建者" fldid="5" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1670,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=5,[Report_EntId]=1670,[EntId]=1670,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=6,[FieldName]='创建者',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1097" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1670" fieldname="创建者" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1670,' where  [FldUId]='112729c0-8d36-43c6-9405-83fe154aab40' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='79743684-4416-4a09-921e-afccce892d30'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(155,'79743684-4416-4a09-921e-afccce892d30',1670,1670,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',8,1,'',2,21,0,'','','','</span>
  </div>
</li><li areaid="1098" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,1670,''ListR_'',''','',-1,93,-1,-1,1,'1670,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=155,[Report_EntId]=1670,[EntId]=1670,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1098" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,1670,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1670,' where  [FldUId]='79743684-4416-4a09-921e-afccce892d30' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='7edcb2fd-f513-424c-a530-2cbe9fe82047'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(156,'7edcb2fd-f513-424c-a530-2cbe9fe82047',1670,1670,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',9,1,'',2,21,0,'','','',''',null,1040,480);">
<span class="i">编辑</span></a></div>
</li><li areaid="1099" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1670,''ListR_'',''','',-1,93,-1,-1,1,'1670,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=156,[Report_EntId]=1670,[EntId]=1670,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">编辑</span></a></div>
</li><li areaid="1099" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1670,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1670,' where  [FldUId]='7edcb2fd-f513-424c-a530-2cbe9fe82047' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='492760a5-5757-49c1-90ec-c52ac06147b0'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(157,'492760a5-5757-49c1-90ec-c52ac06147b0',1670,1670,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',10,1,'',2,21,0,'','','',''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="1100" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,1670,''ListR_'',''','',-1,93,-1,-1,1,'1670,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=157,[Report_EntId]=1670,[EntId]=1670,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=10,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="1100" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,1670,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1670,' where  [FldUId]='492760a5-5757-49c1-90ec-c52ac06147b0' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='39acaa2d-5099-b2e3-41a3-05a58dc3acde'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(213,'39acaa2d-5099-b2e3-41a3-05a58dc3acde',1670,1670,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',11,-1,'varchar',2,13,0,'','','',''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>','</div>
</div>
<!-- 结束 --></div>',-1,93,-1,-1,1,'1670,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=213,[Report_EntId]=1670,[EntId]=1670,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=11,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>',[LastHtml]='</div>
</div>
<!-- 结束 --></div>',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1670,' where  [FldUId]='39acaa2d-5099-b2e3-41a3-05a58dc3acde' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=1115

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=1115  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(1115,null,'行政_会议纪要表','行政_会议纪要表',0,0,0,0,0,0,1,1,3,'admin','2013-12-15 17:32:53',3,'admin','2013-12-15 17:32:53',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='行政_会议纪要表',[DBTableByName]='行政_会议纪要表',[IsForbid]=0,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=1,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:53',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:53',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=1115 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1115  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2618,1,1,1115,'int',1,1,1,'行政_会议纪要表','Id','Id','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议纪要表',[FieldName]='Id',[FieldByname]='Id',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1115  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1115  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2619,2,1,1115,'varchar',2,1,1,'行政_会议纪要表','会议编号','会议编号','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议纪要表',[FieldName]='会议编号',[FieldByname]='会议编号',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1115  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1115  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2620,3,1,1115,'varchar',2,1,1,'行政_会议纪要表','会议主题','会议主题','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议纪要表',[FieldName]='会议主题',[FieldByname]='会议主题',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1115  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1115  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2621,4,1,1115,'varchar',2,1,1,'行政_会议纪要表','纪要内容','纪要内容','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议纪要表',[FieldName]='纪要内容',[FieldByname]='纪要内容',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1115  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1115  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2622,5,1,1115,'datetime',3,1,1,'行政_会议纪要表','创建时间','创建时间','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议纪要表',[FieldName]='创建时间',[FieldByname]='创建时间',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1115  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1115  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2623,6,1,1115,'varchar',2,1,1,'行政_会议纪要表','创建者','创建者','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议纪要表',[FieldName]='创建者',[FieldByname]='创建者',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1115  and  [FieldId]=6 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=2880  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2880,'97b1b9af-7345-4b12-909d-d980969c0d28','待开会议',1972,'/Template/default/ListReport/ListReport_Tree001.aspx',1,'/images/default.gif','/images/default.gif',5,'',null,0,null,1,0,1,1,1,1,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='97b1b9af-7345-4b12-909d-d980969c0d28',[MenuName]='待开会议',[ParentId]=1972,[ProPath]='/Template/default/ListReport/ListReport_Tree001.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=5,[Target]='',[IsOpen]=null,[IsHidden]=0,[Remark]=null,[SSystemId]=1,[SMenuId]=0,[SystemId]=1,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=2880 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=2880  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(660,2880,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=2880  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=1699  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(1699,2880,'待开会议',1,1113,0,'行政_会议管理表',0,0,1,1,1699,null,null,1,null,null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=2880,[EntName]='待开会议',[MEnt]=1,[DBTableId]=1113,[DBConnectId]=0,[DBTableName]='行政_会议管理表',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=1,[SEntId]=1699,[FSystemId]=null,[FEntId]=null,[SystemId]=1,[Remark]=null,[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=1699 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=1699

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=1699  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(10832,2880,1699,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=2880,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=1699  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=1699

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1699  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18180,1,2880,1699,13,1,1,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2880,[TemplateId]=13,[ModuleId]=1,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1699  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1699  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18181,1,2880,1699,13,2,9,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2880,[TemplateId]=13,[ModuleId]=9,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1699  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1699  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18182,1,2880,1699,13,3,14,1,4,2,'/Template/Default/Form/AjaxForm/AjaxForm008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2880,[TemplateId]=13,[ModuleId]=14,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='/Template/Default/Form/AjaxForm/AjaxForm008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1699  and  [ModuleTypeId]=3 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1699  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18183,1,2880,1699,13,16,31,1,5,2,'/Template/Default/Browse/Browse008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2880,[TemplateId]=13,[ModuleId]=31,[GroupId]=1,[AreaId]=5,[ShowMode]=2,[AreaUrl]='/Template/Default/Browse/Browse008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1699  and  [ModuleTypeId]=16 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_BrowseReport_Run]  where [EntId]=1699

--Dcx_BrowseReport_Run
      if (select count(1) from [Dcx_BrowseReport_Run] where  [EntId]=1699  )<1 
      begin 
           Insert into [Dcx_BrowseReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[DIYJsCss],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('20d31f1c-889e-44c4-9a88-e6b25f3563c9','待开会议',1699,31,'','<$1699$>select [会议编号],[会议主题],[会议类型],[主办部门],[会议室名称],[会议室编号],[开始时间],[结束时间],[主持人],[纪要员],[参会人],[会议内容],[其他资源],[会议状态],[申请人],[申请时间],[LD_Id] from 行政_会议管理表 where [LD_Id]=''{$keyfieldvalue}''</$1699$>',1,1,20,'','DcxRun.MChildR_1699= {"MenuId":2880,"MEntId":1699,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"待开会议","EntMsg":{"E1699":{"EntId":1699,"EntName":"待开会议","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1699*LD_Id*2**2*行政_会议管理表*待开会议',3,'','2012-12-21 11:03:02',3,'','2013-11-17 2:53:09',1)
      end
      else 
      begin 
           update [Dcx_BrowseReport_Run] set [ReportId]='20d31f1c-889e-44c4-9a88-e6b25f3563c9',[ReportName]='待开会议',[ModuleId]=31,[StaticHtml]='',[LoadingSql]='<$1699$>select [会议编号],[会议主题],[会议类型],[主办部门],[会议室名称],[会议室编号],[开始时间],[结束时间],[主持人],[纪要员],[参会人],[会议内容],[其他资源],[会议状态],[申请人],[申请时间],[LD_Id] from 行政_会议管理表 where [LD_Id]=''{$keyfieldvalue}''</$1699$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[DIYJsCss]='',[AutoPublicJs]='DcxRun.MChildR_1699= {"MenuId":2880,"MEntId":1699,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"待开会议","EntMsg":{"E1699":{"EntId":1699,"EntName":"待开会议","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1699*LD_Id*2**2*行政_会议管理表*待开会议',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-21 11:03:02',[EditorId]=3,[Editor]='',[EditTime]='2013-11-17 2:53:09',[AccountId]=1 where  [EntId]=1699 
      end




--Dcx_BrowseReportField_Run
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='a8f2990e-78a1-421a-8158-5c002c31648d'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'a8f2990e-78a1-421a-8158-5c002c31648d',1699,1699,'00000000-0000-0000-0000-000000000000',11,'会议编号',1,1,'varchar',2,1,0,'','','','<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1699" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="651" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">待开会议</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1699" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="652" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">会议编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1699" fieldname="会议编号" fldid="1" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1699,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=1,[Report_EntId]=1699,[EntId]=1699,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=11,[FieldName]='会议编号',[FieldNO]=1,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1699" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="651" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">待开会议</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1699" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="652" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">会议编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1699" fieldname="会议编号" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1699,' where  [FldUId]='a8f2990e-78a1-421a-8158-5c002c31648d' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='35acee7b-f0c7-4a82-a533-8f65b4c92d5a'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'35acee7b-f0c7-4a82-a533-8f65b4c92d5a',1699,1699,'00000000-0000-0000-0000-000000000000',12,'会议主题',2,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="653" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">会议主题  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1699" fieldname="会议主题" fldid="2" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1699,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=2,[Report_EntId]=1699,[EntId]=1699,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=12,[FieldName]='会议主题',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="653" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">会议主题  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1699" fieldname="会议主题" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1699,' where  [FldUId]='35acee7b-f0c7-4a82-a533-8f65b4c92d5a' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='1537d716-3297-4622-a4c4-0032a4679f2a'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'1537d716-3297-4622-a4c4-0032a4679f2a',1699,1699,'00000000-0000-0000-0000-000000000000',13,'会议类型',3,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="654" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">会议类型  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1699" fieldname="会议类型" fldid="3" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1699,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=3,[Report_EntId]=1699,[EntId]=1699,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=13,[FieldName]='会议类型',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="654" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">会议类型  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1699" fieldname="会议类型" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1699,' where  [FldUId]='1537d716-3297-4622-a4c4-0032a4679f2a' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='9e03f905-f2c3-4044-a1d3-4d730711bd20'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'9e03f905-f2c3-4044-a1d3-4d730711bd20',1699,1699,'00000000-0000-0000-0000-000000000000',14,'主办部门',4,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="655" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">主办部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1699" fieldname="主办部门" fldid="4" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1699,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=4,[Report_EntId]=1699,[EntId]=1699,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=14,[FieldName]='主办部门',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="655" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">主办部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1699" fieldname="主办部门" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1699,' where  [FldUId]='9e03f905-f2c3-4044-a1d3-4d730711bd20' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='dae0d5d2-8c21-48e0-9820-e07cebdcac8a'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'dae0d5d2-8c21-48e0-9820-e07cebdcac8a',1699,1699,'00000000-0000-0000-0000-000000000000',15,'会议室名称',5,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="656" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">会议室名称  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1699" fieldname="会议室名称" fldid="5" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1699,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=5,[Report_EntId]=1699,[EntId]=1699,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=15,[FieldName]='会议室名称',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="656" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">会议室名称  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1699" fieldname="会议室名称" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1699,' where  [FldUId]='dae0d5d2-8c21-48e0-9820-e07cebdcac8a' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='ebfc1ece-37d9-45b7-ac5e-6fb1baf70fdc'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'ebfc1ece-37d9-45b7-ac5e-6fb1baf70fdc',1699,1699,'00000000-0000-0000-0000-000000000000',16,'会议室编号',6,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="657" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">会议室编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1699" fieldname="会议室编号" fldid="6" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1699,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=6,[Report_EntId]=1699,[EntId]=1699,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=16,[FieldName]='会议室编号',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="657" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">会议室编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1699" fieldname="会议室编号" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1699,' where  [FldUId]='ebfc1ece-37d9-45b7-ac5e-6fb1baf70fdc' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='7b484ce4-4ad2-4ec1-aa9f-b40a2b9194f1'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'7b484ce4-4ad2-4ec1-aa9f-b40a2b9194f1',1699,1699,'00000000-0000-0000-0000-000000000000',17,'开始时间',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="658" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">开始时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1699" fieldname="开始时间" fldid="7" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1699,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=7,[Report_EntId]=1699,[EntId]=1699,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=17,[FieldName]='开始时间',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="658" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">开始时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1699" fieldname="开始时间" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1699,' where  [FldUId]='7b484ce4-4ad2-4ec1-aa9f-b40a2b9194f1' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='cf3de95f-b0c7-4de6-8d36-93681be013c7'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'cf3de95f-b0c7-4de6-8d36-93681be013c7',1699,1699,'00000000-0000-0000-0000-000000000000',18,'结束时间',8,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="659" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="8">结束时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1699" fieldname="结束时间" fldid="8" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1699,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=8,[Report_EntId]=1699,[EntId]=1699,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=18,[FieldName]='结束时间',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="659" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="8">结束时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1699" fieldname="结束时间" fldid="8" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1699,' where  [FldUId]='cf3de95f-b0c7-4de6-8d36-93681be013c7' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='86c9a213-2d65-423e-9056-d60c39b30ef3'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'86c9a213-2d65-423e-9056-d60c39b30ef3',1699,1699,'00000000-0000-0000-0000-000000000000',19,'主持人',9,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="660" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="9">主持人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1699" fieldname="主持人" fldid="9" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1699,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=9,[Report_EntId]=1699,[EntId]=1699,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=19,[FieldName]='主持人',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="660" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="9">主持人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1699" fieldname="主持人" fldid="9" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1699,' where  [FldUId]='86c9a213-2d65-423e-9056-d60c39b30ef3' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='8275817b-5e68-4d26-abdb-5828303bc2c9'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'8275817b-5e68-4d26-abdb-5828303bc2c9',1699,1699,'00000000-0000-0000-0000-000000000000',20,'纪要员',10,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="661" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="10">纪要员  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1699" fieldname="纪要员" fldid="10" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1699,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=10,[Report_EntId]=1699,[EntId]=1699,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=20,[FieldName]='纪要员',[FieldNO]=10,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="661" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="10">纪要员  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1699" fieldname="纪要员" fldid="10" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1699,' where  [FldUId]='8275817b-5e68-4d26-abdb-5828303bc2c9' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='b42d4f41-91f2-4957-8c1c-0b609797b7cc'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'b42d4f41-91f2-4957-8c1c-0b609797b7cc',1699,1699,'00000000-0000-0000-0000-000000000000',21,'参会人',11,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="662" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="11">参会人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1699" fieldname="参会人" fldid="11" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1699,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=11,[Report_EntId]=1699,[EntId]=1699,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=21,[FieldName]='参会人',[FieldNO]=11,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="662" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="11">参会人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1699" fieldname="参会人" fldid="11" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1699,' where  [FldUId]='b42d4f41-91f2-4957-8c1c-0b609797b7cc' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='1bb58d01-8f2f-40df-8027-9825a600b8c6'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(12,'1bb58d01-8f2f-40df-8027-9825a600b8c6',1699,1699,'00000000-0000-0000-0000-000000000000',22,'会议内容',12,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="663" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="12">会议内容  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1699" fieldname="会议内容" fldid="12" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1699,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=12,[Report_EntId]=1699,[EntId]=1699,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=22,[FieldName]='会议内容',[FieldNO]=12,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="663" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="12">会议内容  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1699" fieldname="会议内容" fldid="12" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1699,' where  [FldUId]='1bb58d01-8f2f-40df-8027-9825a600b8c6' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='e15c2325-18ba-40f9-b41a-caaa8fffef3e'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(13,'e15c2325-18ba-40f9-b41a-caaa8fffef3e',1699,1699,'00000000-0000-0000-0000-000000000000',23,'其他资源',13,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="664" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="13">其他资源  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1699" fieldname="其他资源" fldid="13" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1699,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=13,[Report_EntId]=1699,[EntId]=1699,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=23,[FieldName]='其他资源',[FieldNO]=13,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="664" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="13">其他资源  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1699" fieldname="其他资源" fldid="13" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1699,' where  [FldUId]='e15c2325-18ba-40f9-b41a-caaa8fffef3e' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='3eea7ddf-89bf-4f8c-bf6d-46c24eb46a83'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(14,'3eea7ddf-89bf-4f8c-bf6d-46c24eb46a83',1699,1699,'00000000-0000-0000-0000-000000000000',24,'会议状态',14,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="665" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="14">会议状态  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1699" fieldname="会议状态" fldid="14" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1699,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=14,[Report_EntId]=1699,[EntId]=1699,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=24,[FieldName]='会议状态',[FieldNO]=14,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="665" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="14">会议状态  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1699" fieldname="会议状态" fldid="14" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1699,' where  [FldUId]='3eea7ddf-89bf-4f8c-bf6d-46c24eb46a83' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='16f0244d-28a1-4024-8cb6-65f32ac1460c'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(15,'16f0244d-28a1-4024-8cb6-65f32ac1460c',1699,1699,'00000000-0000-0000-0000-000000000000',25,'申请人',15,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="666" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="15">申请人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1699" fieldname="申请人" fldid="15" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1699,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=15,[Report_EntId]=1699,[EntId]=1699,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=25,[FieldName]='申请人',[FieldNO]=15,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="666" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="15">申请人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1699" fieldname="申请人" fldid="15" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1699,' where  [FldUId]='16f0244d-28a1-4024-8cb6-65f32ac1460c' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='ebc3c8cd-f98c-4e7d-9dfd-a45631fbf5c5'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(16,'ebc3c8cd-f98c-4e7d-9dfd-a45631fbf5c5',1699,1699,'00000000-0000-0000-0000-000000000000',26,'申请时间',16,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="667" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="16">申请时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1699" fieldname="申请时间" fldid="16" columntypeid="1" class="form-ctr">','</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1699" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="672" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="673" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1699" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="674" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1699" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="675" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1699" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="676" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="677" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',-1,-1,-1,-1,0,'1699,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=16,[Report_EntId]=1699,[EntId]=1699,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=26,[FieldName]='申请时间',[FieldNO]=16,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="667" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="16">申请时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1699" fieldname="申请时间" fldid="16" columntypeid="1" class="form-ctr">',[LastHtml]='</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1699" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="672" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="673" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1699" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="674" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1699" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="675" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1699" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="676" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="677" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1699,' where  [FldUId]='ebc3c8cd-f98c-4e7d-9dfd-a45631fbf5c5' 
      end



Delete from [Dcx_ListReport_Run]  where [EntId]=1699

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=1699  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('be2b0a21-77a6-4805-af03-e87224134cd0','待开会议',1699,1,'','','<$1699$>select *  from (select row_number() over( order by [LD_Id])as dcx_rowid,[会议编号],[会议主题],[会议类型],[主办部门],[会议室名称],[会议室编号],[开始时间],[结束时间],[主持人],[纪要员],[参会人],[会议内容],[其他资源],[会议状态],[申请人],[申请时间],[LD_Id] from 行政_会议管理表  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1699$><$1699:Count$>select count([LD_Id]) from 行政_会议管理表 where {$SearchArea}</$1699:Count$>',1,1,20,'DcxRun.ListR_1699= {"MenuId":2880,"MEntId":1699,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"待开会议","EntMsg":{"E1699":{"EntId":1699,"EntName":"待开会议","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1699*LD_Id*2**2*行政_会议管理表*待开会议',3,'','2012-12-22 5:16:19',3,'','2013-11-16 20:06:36',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='be2b0a21-77a6-4805-af03-e87224134cd0',[ReportName]='待开会议',[ModuleId]=1,[StaticHtml]='',[DIYJsCss]='',[LoadingSql]='<$1699$>select *  from (select row_number() over( order by [LD_Id])as dcx_rowid,[会议编号],[会议主题],[会议类型],[主办部门],[会议室名称],[会议室编号],[开始时间],[结束时间],[主持人],[纪要员],[参会人],[会议内容],[其他资源],[会议状态],[申请人],[申请时间],[LD_Id] from 行政_会议管理表  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1699$><$1699:Count$>select count([LD_Id]) from 行政_会议管理表 where {$SearchArea}</$1699:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[AutoPublicJs]='DcxRun.ListR_1699= {"MenuId":2880,"MEntId":1699,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"待开会议","EntMsg":{"E1699":{"EntId":1699,"EntName":"待开会议","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1699*LD_Id*2**2*行政_会议管理表*待开会议',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-22 5:16:19',[EditorId]=3,[Editor]='',[EditTime]='2013-11-16 20:06:36',[AccountId]=1 where  [EntId]=1699 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='d1ab8ab3-9412-c5ac-74b3-68e04081aa0f'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(212,'d1ab8ab3-9412-c5ac-74b3-68e04081aa0f',1699,1699,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="91" entid="1699" style="width: 1876px;" ctrlprex="ListR_" isrple="1"> <li areaid="1935" class="tool-li" style="position: static;">
</li><li areaid="1936" class="tool-li" style="position: static;"><a id="ListR_1699_btn_buildNew" class="list-bt-add" title="添   加" href="javascript:void(0);" onclick="javascript:DcxCom.ShowAddDataDlg(1699,''ListR_'');">添   加</a></li>
<li areaid="1937" class="tool-li" style="position: static;"><a id="ListR_1699_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1699,''ListR_'');">删   除</a></li>
<li areaid="1938" class="tool-li" style="position: static;"><a id="ListR_1699_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1699,''ListR_'');">导   出</a></li>
<li areaid="1939" class="tool-li" style="position: static;"><a id="ListR_1699_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1699,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1699" style="position: static;">
<a id="ListR_1699_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1699,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1699_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1699,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1699_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1699,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1699_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="92" entid="1699" class="list-head-ul" style="width: 1956px;" ctrlprex="ListR_" isrple="1">
<li areaid="1941" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1699" onclick="javascript:DcxCom.CheckedAll(this,1699,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="1942" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议编号 </label></li><li areaid="1943" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议主题 </label></li><li areaid="1944" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议类型 </label></li><li areaid="1945" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">主办部门 </label></li><li areaid="1946" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议室名称 </label></li><li areaid="1947" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议室编号 </label></li><li areaid="1948" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">开始时间 </label></li><li areaid="1949" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">结束时间 </label></li><li areaid="1950" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">主持人 </label></li><li areaid="1951" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">纪要员 </label></li><li areaid="1952" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">参会人 </label></li><li areaid="1953" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议内容 </label></li><li areaid="1954" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">其他资源 </label></li><li areaid="1955" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议状态 </label></li><li areaid="1956" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请人 </label></li><li areaid="1957" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请时间 </label></li><li areaid="1958" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li> </ul>
</div>
<div class="list-body">','',-1,93,-1,-1,1,'1699,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=212,[Report_EntId]=1699,[EntId]=1699,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="91" entid="1699" style="width: 1876px;" ctrlprex="ListR_" isrple="1"> <li areaid="1935" class="tool-li" style="position: static;">
</li><li areaid="1936" class="tool-li" style="position: static;"><a id="ListR_1699_btn_buildNew" class="list-bt-add" title="添   加" href="javascript:void(0);" onclick="javascript:DcxCom.ShowAddDataDlg(1699,''ListR_'');">添   加</a></li>
<li areaid="1937" class="tool-li" style="position: static;"><a id="ListR_1699_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1699,''ListR_'');">删   除</a></li>
<li areaid="1938" class="tool-li" style="position: static;"><a id="ListR_1699_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1699,''ListR_'');">导   出</a></li>
<li areaid="1939" class="tool-li" style="position: static;"><a id="ListR_1699_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1699,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1699" style="position: static;">
<a id="ListR_1699_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1699,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1699_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1699,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1699_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1699,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1699_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="92" entid="1699" class="list-head-ul" style="width: 1956px;" ctrlprex="ListR_" isrple="1">
<li areaid="1941" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1699" onclick="javascript:DcxCom.CheckedAll(this,1699,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="1942" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议编号 </label></li><li areaid="1943" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议主题 </label></li><li areaid="1944" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议类型 </label></li><li areaid="1945" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">主办部门 </label></li><li areaid="1946" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议室名称 </label></li><li areaid="1947" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议室编号 </label></li><li areaid="1948" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">开始时间 </label></li><li areaid="1949" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">结束时间 </label></li><li areaid="1950" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">主持人 </label></li><li areaid="1951" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">纪要员 </label></li><li areaid="1952" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">参会人 </label></li><li areaid="1953" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议内容 </label></li><li areaid="1954" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">其他资源 </label></li><li areaid="1955" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议状态 </label></li><li areaid="1956" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请人 </label></li><li areaid="1957" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请时间 </label></li><li areaid="1958" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li> </ul>
</div>
<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1699,' where  [FldUId]='d1ab8ab3-9412-c5ac-74b3-68e04081aa0f' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='31fbbb1c-b64d-4227-9bb5-505300ad2b40'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(154,'31fbbb1c-b64d-4227-9bb5-505300ad2b40',1699,1699,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',2,1,'',2,21,0,'','','','islonly="1" isgroup="1" groupid="93" class="list-body-ul" style="width: 1956px;" isrple="1">
<li areaid="1959" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1699" issyscheck="1" keyvalue="','',-1,93,-1,-1,1,'1699,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=154,[Report_EntId]=1699,[EntId]=1699,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='islonly="1" isgroup="1" groupid="93" class="list-body-ul" style="width: 1956px;" isrple="1">
<li areaid="1959" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1699" issyscheck="1" keyvalue="',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1699,' where  [FldUId]='31fbbb1c-b64d-4227-9bb5-505300ad2b40' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='c193b237-a51d-4499-b83f-9389bc20b6e8'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'c193b237-a51d-4499-b83f-9389bc20b6e8',1699,1699,'00000000-0000-0000-0000-000000000000',11,'会议编号',3,1,'varchar',2,1,0,'','','','" type="checkbox"></li><li areaid="1960" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1699" fieldname="会议编号" fldid="1" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1699,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=1,[Report_EntId]=1699,[EntId]=1699,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=11,[FieldName]='会议编号',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='" type="checkbox"></li><li areaid="1960" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1699" fieldname="会议编号" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1699,' where  [FldUId]='c193b237-a51d-4499-b83f-9389bc20b6e8' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='676f9a7c-7a37-4043-97d3-4dce12d00af7'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'676f9a7c-7a37-4043-97d3-4dce12d00af7',1699,1699,'00000000-0000-0000-0000-000000000000',12,'会议主题',4,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1961" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1699" fieldname="会议主题" fldid="2" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1699,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=2,[Report_EntId]=1699,[EntId]=1699,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=12,[FieldName]='会议主题',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1961" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1699" fieldname="会议主题" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1699,' where  [FldUId]='676f9a7c-7a37-4043-97d3-4dce12d00af7' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='a390dab5-1e5e-4bb2-a751-5fb1bb082cd6'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'a390dab5-1e5e-4bb2-a751-5fb1bb082cd6',1699,1699,'00000000-0000-0000-0000-000000000000',13,'会议类型',5,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1962" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1699" fieldname="会议类型" fldid="3" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1699,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=3,[Report_EntId]=1699,[EntId]=1699,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=13,[FieldName]='会议类型',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1962" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1699" fieldname="会议类型" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1699,' where  [FldUId]='a390dab5-1e5e-4bb2-a751-5fb1bb082cd6' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='dd30ca68-cb29-49b4-aa4d-1d7ab92a029d'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'dd30ca68-cb29-49b4-aa4d-1d7ab92a029d',1699,1699,'00000000-0000-0000-0000-000000000000',14,'主办部门',6,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1963" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1699" fieldname="主办部门" fldid="4" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1699,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=4,[Report_EntId]=1699,[EntId]=1699,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=14,[FieldName]='主办部门',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1963" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1699" fieldname="主办部门" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1699,' where  [FldUId]='dd30ca68-cb29-49b4-aa4d-1d7ab92a029d' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='59f43a86-92f1-4c83-b135-c2556475d15b'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'59f43a86-92f1-4c83-b135-c2556475d15b',1699,1699,'00000000-0000-0000-0000-000000000000',15,'会议室名称',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1964" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1699" fieldname="会议室名称" fldid="5" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1699,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=5,[Report_EntId]=1699,[EntId]=1699,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=15,[FieldName]='会议室名称',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1964" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1699" fieldname="会议室名称" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1699,' where  [FldUId]='59f43a86-92f1-4c83-b135-c2556475d15b' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='16d9f04f-b467-481e-ab9c-aaca53a595d0'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'16d9f04f-b467-481e-ab9c-aaca53a595d0',1699,1699,'00000000-0000-0000-0000-000000000000',16,'会议室编号',8,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1965" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1699" fieldname="会议室编号" fldid="6" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1699,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=6,[Report_EntId]=1699,[EntId]=1699,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=16,[FieldName]='会议室编号',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1965" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1699" fieldname="会议室编号" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1699,' where  [FldUId]='16d9f04f-b467-481e-ab9c-aaca53a595d0' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='0262864c-f47d-4fd5-b4d7-a050cb1d9486'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'0262864c-f47d-4fd5-b4d7-a050cb1d9486',1699,1699,'00000000-0000-0000-0000-000000000000',17,'开始时间',9,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1966" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1699" fieldname="开始时间" fldid="7" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1699,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=7,[Report_EntId]=1699,[EntId]=1699,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=17,[FieldName]='开始时间',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1966" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1699" fieldname="开始时间" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1699,' where  [FldUId]='0262864c-f47d-4fd5-b4d7-a050cb1d9486' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='9ccf2dc6-fe22-4e25-8376-5d3f5f51cb60'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'9ccf2dc6-fe22-4e25-8376-5d3f5f51cb60',1699,1699,'00000000-0000-0000-0000-000000000000',18,'结束时间',10,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1967" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1699" fieldname="结束时间" fldid="8" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1699,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=8,[Report_EntId]=1699,[EntId]=1699,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=18,[FieldName]='结束时间',[FieldNO]=10,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1967" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1699" fieldname="结束时间" fldid="8" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1699,' where  [FldUId]='9ccf2dc6-fe22-4e25-8376-5d3f5f51cb60' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='3c978c2f-e7fd-4ac1-9bde-99615b6bdb50'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'3c978c2f-e7fd-4ac1-9bde-99615b6bdb50',1699,1699,'00000000-0000-0000-0000-000000000000',19,'主持人',11,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1968" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1699" fieldname="主持人" fldid="9" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1699,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=9,[Report_EntId]=1699,[EntId]=1699,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=19,[FieldName]='主持人',[FieldNO]=11,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1968" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1699" fieldname="主持人" fldid="9" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1699,' where  [FldUId]='3c978c2f-e7fd-4ac1-9bde-99615b6bdb50' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='3d32eb25-1ecc-47d5-bb23-8451af17d5d0'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'3d32eb25-1ecc-47d5-bb23-8451af17d5d0',1699,1699,'00000000-0000-0000-0000-000000000000',20,'纪要员',12,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1969" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1699" fieldname="纪要员" fldid="10" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1699,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=10,[Report_EntId]=1699,[EntId]=1699,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=20,[FieldName]='纪要员',[FieldNO]=12,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1969" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1699" fieldname="纪要员" fldid="10" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1699,' where  [FldUId]='3d32eb25-1ecc-47d5-bb23-8451af17d5d0' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='6620c846-d6d3-4c48-9c3d-f2cac2b175a4'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'6620c846-d6d3-4c48-9c3d-f2cac2b175a4',1699,1699,'00000000-0000-0000-0000-000000000000',21,'参会人',13,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1970" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1699" fieldname="参会人" fldid="11" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1699,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=11,[Report_EntId]=1699,[EntId]=1699,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=21,[FieldName]='参会人',[FieldNO]=13,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1970" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1699" fieldname="参会人" fldid="11" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1699,' where  [FldUId]='6620c846-d6d3-4c48-9c3d-f2cac2b175a4' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='9f10a410-6de2-4ba0-901e-11048a861209'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(12,'9f10a410-6de2-4ba0-901e-11048a861209',1699,1699,'00000000-0000-0000-0000-000000000000',22,'会议内容',14,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1971" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1699" fieldname="会议内容" fldid="12" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1699,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=12,[Report_EntId]=1699,[EntId]=1699,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=22,[FieldName]='会议内容',[FieldNO]=14,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1971" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1699" fieldname="会议内容" fldid="12" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1699,' where  [FldUId]='9f10a410-6de2-4ba0-901e-11048a861209' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='06d5ecc4-f193-413e-b872-5a5fee17084e'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(13,'06d5ecc4-f193-413e-b872-5a5fee17084e',1699,1699,'00000000-0000-0000-0000-000000000000',23,'其他资源',15,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1972" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1699" fieldname="其他资源" fldid="13" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1699,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=13,[Report_EntId]=1699,[EntId]=1699,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=23,[FieldName]='其他资源',[FieldNO]=15,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1972" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1699" fieldname="其他资源" fldid="13" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1699,' where  [FldUId]='06d5ecc4-f193-413e-b872-5a5fee17084e' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='9969895f-55c2-4a93-a7ff-d77869932096'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(14,'9969895f-55c2-4a93-a7ff-d77869932096',1699,1699,'00000000-0000-0000-0000-000000000000',24,'会议状态',16,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1973" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1699" fieldname="会议状态" fldid="14" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1699,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=14,[Report_EntId]=1699,[EntId]=1699,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=24,[FieldName]='会议状态',[FieldNO]=16,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1973" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1699" fieldname="会议状态" fldid="14" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1699,' where  [FldUId]='9969895f-55c2-4a93-a7ff-d77869932096' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='14117116-5dad-41bb-8ff4-78fffb940cc0'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(15,'14117116-5dad-41bb-8ff4-78fffb940cc0',1699,1699,'00000000-0000-0000-0000-000000000000',25,'申请人',17,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1974" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1699" fieldname="申请人" fldid="15" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1699,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=15,[Report_EntId]=1699,[EntId]=1699,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=25,[FieldName]='申请人',[FieldNO]=17,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1974" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1699" fieldname="申请人" fldid="15" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1699,' where  [FldUId]='14117116-5dad-41bb-8ff4-78fffb940cc0' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='8dc1a3f4-044d-414c-b5b0-b640401e91dd'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(16,'8dc1a3f4-044d-414c-b5b0-b640401e91dd',1699,1699,'00000000-0000-0000-0000-000000000000',26,'申请时间',18,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1975" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1699" fieldname="申请时间" fldid="16" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1699,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=16,[Report_EntId]=1699,[EntId]=1699,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=26,[FieldName]='申请时间',[FieldNO]=18,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1975" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1699" fieldname="申请时间" fldid="16" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1699,' where  [FldUId]='8dc1a3f4-044d-414c-b5b0-b640401e91dd' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='b54cb99e-b755-44fe-8f71-c9acdb235019'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(155,'b54cb99e-b755-44fe-8f71-c9acdb235019',1699,1699,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',19,1,'',2,21,0,'','','','</span>
  </div>
</li><li areaid="1976" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1699,''ListR_'',''','',-1,93,-1,-1,1,'1699,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=155,[Report_EntId]=1699,[EntId]=1699,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=19,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1976" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1699,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1699,' where  [FldUId]='b54cb99e-b755-44fe-8f71-c9acdb235019' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='8a116f7d-d60b-b01f-4c22-f09ca0a852c5'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(213,'8a116f7d-d60b-b01f-4c22-f09ca0a852c5',1699,1699,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',20,-1,'varchar',2,13,0,'','','',''');">
<span class="i">浏览详细</span></a></div>
</li>    </ul>','</div>
</div>
<!-- 结束 --></div>',-1,93,-1,-1,1,'1699,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=213,[Report_EntId]=1699,[EntId]=1699,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=20,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''');">
<span class="i">浏览详细</span></a></div>
</li>    </ul>',[LastHtml]='</div>
</div>
<!-- 结束 --></div>',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1699,' where  [FldUId]='8a116f7d-d60b-b01f-4c22-f09ca0a852c5' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=1113

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=1113  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(1113,null,'行政_会议管理表','行政_会议管理表',0,0,0,0,0,1,1,1,3,'admin','2013-12-15 17:32:53',3,'admin','2013-12-15 17:32:53',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='行政_会议管理表',[DBTableByName]='行政_会议管理表',[IsForbid]=0,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=1,[SystemId]=1,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:53',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:53',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=1113 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2573,1,1,1113,'int',1,1,1,'行政_会议管理表','LD_Id','LD_Id','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='LD_Id',[FieldByname]='LD_Id',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2574,2,1,1113,'varchar',2,1,1,'行政_会议管理表','WFState','WFState','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFState',[FieldByname]='WFState',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2575,3,1,1113,'varchar',2,1,1,'行政_会议管理表','WFUserName','WFUserName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFUserName',[FieldByname]='WFUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2576,4,1,1113,'bit',4,1,1,'行政_会议管理表','WFIsFinish','WFIsFinish','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFIsFinish',[FieldByname]='WFIsFinish',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2577,5,1,1113,'bit',4,1,1,'行政_会议管理表','WFIsStart','WFIsStart','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFIsStart',[FieldByname]='WFIsStart',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2578,6,1,1113,'varchar',2,1,1,'行政_会议管理表','WFAllUser','WFAllUser','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFAllUser',[FieldByname]='WFAllUser',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2579,7,1,1113,'varchar',2,1,1,'行政_会议管理表','WFOpinion','WFOpinion','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFOpinion',[FieldByname]='WFOpinion',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2580,8,1,1113,'int',1,1,1,'行政_会议管理表','WFRunId','WFRunId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFRunId',[FieldByname]='WFRunId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2581,9,1,1113,'int',1,1,1,'行政_会议管理表','WFFlowId','WFFlowId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFFlowId',[FieldByname]='WFFlowId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2582,10,1,1113,'int',1,1,1,'行政_会议管理表','WFPrcsId','WFPrcsId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFPrcsId',[FieldByname]='WFPrcsId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2583,11,1,1113,'varchar',2,1,1,'行政_会议管理表','会议编号','会议编号','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='会议编号',[FieldByname]='会议编号',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2584,12,1,1113,'varchar',2,1,1,'行政_会议管理表','会议主题','会议主题','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='会议主题',[FieldByname]='会议主题',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2585,13,1,1113,'varchar',2,1,1,'行政_会议管理表','会议类型','会议类型','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='会议类型',[FieldByname]='会议类型',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2586,14,1,1113,'varchar',2,1,1,'行政_会议管理表','主办部门','主办部门','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='主办部门',[FieldByname]='主办部门',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2587,15,1,1113,'varchar',2,1,1,'行政_会议管理表','会议室名称','会议室名称','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='会议室名称',[FieldByname]='会议室名称',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2588,16,1,1113,'varchar',2,1,1,'行政_会议管理表','会议室编号','会议室编号','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='会议室编号',[FieldByname]='会议室编号',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2589,17,1,1113,'datetime',3,1,1,'行政_会议管理表','开始时间','开始时间','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='开始时间',[FieldByname]='开始时间',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2590,18,1,1113,'datetime',3,1,1,'行政_会议管理表','结束时间','结束时间','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='结束时间',[FieldByname]='结束时间',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2591,19,1,1113,'varchar',2,1,1,'行政_会议管理表','主持人','主持人','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='主持人',[FieldByname]='主持人',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2592,20,1,1113,'varchar',2,1,1,'行政_会议管理表','纪要员','纪要员','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='纪要员',[FieldByname]='纪要员',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2593,21,1,1113,'varchar',2,1,1,'行政_会议管理表','参会人','参会人','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='参会人',[FieldByname]='参会人',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2594,22,1,1113,'varchar',2,1,1,'行政_会议管理表','会议内容','会议内容','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='会议内容',[FieldByname]='会议内容',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2595,23,1,1113,'varchar',2,1,1,'行政_会议管理表','其他资源','其他资源','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='其他资源',[FieldByname]='其他资源',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2596,24,1,1113,'varchar',2,1,1,'行政_会议管理表','会议状态','会议状态','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='会议状态',[FieldByname]='会议状态',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2597,25,1,1113,'varchar',2,1,1,'行政_会议管理表','申请人','申请人','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='申请人',[FieldByname]='申请人',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2598,26,1,1113,'datetime',3,1,1,'行政_会议管理表','申请时间','申请时间','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='申请时间',[FieldByname]='申请时间',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=26 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=2881  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2881,'545a112d-5499-4d6f-a712-b579d4d2945d','已开会议',1972,'/Template/default/ListReport/ListReport_Tree001.aspx',1,'/images/default.gif','/images/default.gif',6,'',null,0,null,1,0,1,1,1,1,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='545a112d-5499-4d6f-a712-b579d4d2945d',[MenuName]='已开会议',[ParentId]=1972,[ProPath]='/Template/default/ListReport/ListReport_Tree001.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=6,[Target]='',[IsOpen]=null,[IsHidden]=0,[Remark]=null,[SSystemId]=1,[SMenuId]=0,[SystemId]=1,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=2881 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=2881  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(661,2881,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=2881  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=1700  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(1700,2881,'已开会议',1,1113,0,'行政_会议管理表',0,0,1,1,1700,null,null,1,null,null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=2881,[EntName]='已开会议',[MEnt]=1,[DBTableId]=1113,[DBConnectId]=0,[DBTableName]='行政_会议管理表',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=1,[SEntId]=1700,[FSystemId]=null,[FEntId]=null,[SystemId]=1,[Remark]=null,[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=1700 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=1700

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=1700  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(10833,2881,1700,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=2881,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=1700  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=1700

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1700  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18184,1,2881,1700,13,1,1,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2881,[TemplateId]=13,[ModuleId]=1,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1700  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1700  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18185,1,2881,1700,13,2,9,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2881,[TemplateId]=13,[ModuleId]=9,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1700  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1700  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18186,1,2881,1700,13,3,14,1,4,2,'/Template/Default/Form/AjaxForm/AjaxForm008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2881,[TemplateId]=13,[ModuleId]=14,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='/Template/Default/Form/AjaxForm/AjaxForm008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1700  and  [ModuleTypeId]=3 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1700  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18187,1,2881,1700,13,16,31,1,5,2,'/Template/Default/Browse/Browse008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2881,[TemplateId]=13,[ModuleId]=31,[GroupId]=1,[AreaId]=5,[ShowMode]=2,[AreaUrl]='/Template/Default/Browse/Browse008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1700  and  [ModuleTypeId]=16 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_BrowseReport_Run]  where [EntId]=1700

--Dcx_BrowseReport_Run
      if (select count(1) from [Dcx_BrowseReport_Run] where  [EntId]=1700  )<1 
      begin 
           Insert into [Dcx_BrowseReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[DIYJsCss],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('ff2ef32d-5953-4e55-82d8-f1fabb6f53e5','已开会议',1700,31,'','<$1700$>select [会议主题],[会议类型],[主办部门],[会议室名称],[会议室编号],[开始时间],[结束时间],[主持人],[纪要员],[参会人],[会议内容],[其他资源],[会议状态],[申请人],[申请时间],[LD_Id] from 行政_会议管理表 where [LD_Id]=''{$keyfieldvalue}''</$1700$>',1,1,20,'','DcxRun.MChildR_1700= {"MenuId":2881,"MEntId":1700,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"已开会议","EntMsg":{"E1700":{"EntId":1700,"EntName":"已开会议","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1700*LD_Id*2**2*行政_会议管理表*已开会议',3,'','2012-12-21 11:03:02',3,'','2013-11-17 2:53:12',1)
      end
      else 
      begin 
           update [Dcx_BrowseReport_Run] set [ReportId]='ff2ef32d-5953-4e55-82d8-f1fabb6f53e5',[ReportName]='已开会议',[ModuleId]=31,[StaticHtml]='',[LoadingSql]='<$1700$>select [会议主题],[会议类型],[主办部门],[会议室名称],[会议室编号],[开始时间],[结束时间],[主持人],[纪要员],[参会人],[会议内容],[其他资源],[会议状态],[申请人],[申请时间],[LD_Id] from 行政_会议管理表 where [LD_Id]=''{$keyfieldvalue}''</$1700$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[DIYJsCss]='',[AutoPublicJs]='DcxRun.MChildR_1700= {"MenuId":2881,"MEntId":1700,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"已开会议","EntMsg":{"E1700":{"EntId":1700,"EntName":"已开会议","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1700*LD_Id*2**2*行政_会议管理表*已开会议',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-21 11:03:02',[EditorId]=3,[Editor]='',[EditTime]='2013-11-17 2:53:12',[AccountId]=1 where  [EntId]=1700 
      end




--Dcx_BrowseReportField_Run
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='2f72bed1-6a59-4ef6-b79b-14f2d56e4c33'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'2f72bed1-6a59-4ef6-b79b-14f2d56e4c33',1700,1700,'00000000-0000-0000-0000-000000000000',12,'会议主题',1,1,'varchar',2,1,0,'','','','<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1700" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="625" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">已开会议</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1700" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="626" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">会议主题  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1700" fieldname="会议主题" fldid="1" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1700,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=1,[Report_EntId]=1700,[EntId]=1700,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=12,[FieldName]='会议主题',[FieldNO]=1,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1700" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="625" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">已开会议</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1700" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="626" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">会议主题  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1700" fieldname="会议主题" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1700,' where  [FldUId]='2f72bed1-6a59-4ef6-b79b-14f2d56e4c33' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='b6db15ec-a3fc-4868-aa16-da8d5e671c95'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'b6db15ec-a3fc-4868-aa16-da8d5e671c95',1700,1700,'00000000-0000-0000-0000-000000000000',13,'会议类型',2,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="627" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">会议类型  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1700" fieldname="会议类型" fldid="2" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1700,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=2,[Report_EntId]=1700,[EntId]=1700,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=13,[FieldName]='会议类型',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="627" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">会议类型  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1700" fieldname="会议类型" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1700,' where  [FldUId]='b6db15ec-a3fc-4868-aa16-da8d5e671c95' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='81f84605-9048-4320-b616-a212f339b7b8'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'81f84605-9048-4320-b616-a212f339b7b8',1700,1700,'00000000-0000-0000-0000-000000000000',14,'主办部门',3,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="628" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">主办部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1700" fieldname="主办部门" fldid="3" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1700,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=3,[Report_EntId]=1700,[EntId]=1700,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=14,[FieldName]='主办部门',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="628" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">主办部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1700" fieldname="主办部门" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1700,' where  [FldUId]='81f84605-9048-4320-b616-a212f339b7b8' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='938284cb-03ba-4c71-9070-7f1affbff01e'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'938284cb-03ba-4c71-9070-7f1affbff01e',1700,1700,'00000000-0000-0000-0000-000000000000',15,'会议室名称',4,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="629" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">会议室名称  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1700" fieldname="会议室名称" fldid="4" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1700,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=4,[Report_EntId]=1700,[EntId]=1700,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=15,[FieldName]='会议室名称',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="629" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">会议室名称  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1700" fieldname="会议室名称" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1700,' where  [FldUId]='938284cb-03ba-4c71-9070-7f1affbff01e' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='0c88c7af-5de5-4c8b-8930-27ed670f820a'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'0c88c7af-5de5-4c8b-8930-27ed670f820a',1700,1700,'00000000-0000-0000-0000-000000000000',16,'会议室编号',5,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="630" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">会议室编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1700" fieldname="会议室编号" fldid="5" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1700,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=5,[Report_EntId]=1700,[EntId]=1700,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=16,[FieldName]='会议室编号',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="630" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">会议室编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1700" fieldname="会议室编号" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1700,' where  [FldUId]='0c88c7af-5de5-4c8b-8930-27ed670f820a' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='537e15a6-1455-47fe-ad6e-6b08a0a5e126'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'537e15a6-1455-47fe-ad6e-6b08a0a5e126',1700,1700,'00000000-0000-0000-0000-000000000000',17,'开始时间',6,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="631" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">开始时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1700" fieldname="开始时间" fldid="6" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1700,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=6,[Report_EntId]=1700,[EntId]=1700,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=17,[FieldName]='开始时间',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="631" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">开始时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1700" fieldname="开始时间" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1700,' where  [FldUId]='537e15a6-1455-47fe-ad6e-6b08a0a5e126' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='064e2d54-0076-43a7-a2c1-80ddda2aaf59'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'064e2d54-0076-43a7-a2c1-80ddda2aaf59',1700,1700,'00000000-0000-0000-0000-000000000000',18,'结束时间',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="632" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">结束时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1700" fieldname="结束时间" fldid="7" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1700,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=7,[Report_EntId]=1700,[EntId]=1700,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=18,[FieldName]='结束时间',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="632" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">结束时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1700" fieldname="结束时间" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1700,' where  [FldUId]='064e2d54-0076-43a7-a2c1-80ddda2aaf59' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='ddee858c-4820-4802-beed-925789465cba'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'ddee858c-4820-4802-beed-925789465cba',1700,1700,'00000000-0000-0000-0000-000000000000',19,'主持人',8,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="633" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="8">主持人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1700" fieldname="主持人" fldid="8" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1700,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=8,[Report_EntId]=1700,[EntId]=1700,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=19,[FieldName]='主持人',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="633" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="8">主持人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1700" fieldname="主持人" fldid="8" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1700,' where  [FldUId]='ddee858c-4820-4802-beed-925789465cba' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='b588579f-1361-4679-89f2-5538e18309cf'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'b588579f-1361-4679-89f2-5538e18309cf',1700,1700,'00000000-0000-0000-0000-000000000000',20,'纪要员',9,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="634" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="9">纪要员  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1700" fieldname="纪要员" fldid="9" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1700,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=9,[Report_EntId]=1700,[EntId]=1700,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=20,[FieldName]='纪要员',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="634" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="9">纪要员  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1700" fieldname="纪要员" fldid="9" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1700,' where  [FldUId]='b588579f-1361-4679-89f2-5538e18309cf' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='9e44cada-b141-4d64-96e9-4ef6aeb05806'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'9e44cada-b141-4d64-96e9-4ef6aeb05806',1700,1700,'00000000-0000-0000-0000-000000000000',21,'参会人',10,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="635" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="10">参会人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1700" fieldname="参会人" fldid="10" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1700,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=10,[Report_EntId]=1700,[EntId]=1700,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=21,[FieldName]='参会人',[FieldNO]=10,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="635" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="10">参会人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1700" fieldname="参会人" fldid="10" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1700,' where  [FldUId]='9e44cada-b141-4d64-96e9-4ef6aeb05806' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='8d2f9b45-231d-4f7b-ad6b-84aa64978e7e'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'8d2f9b45-231d-4f7b-ad6b-84aa64978e7e',1700,1700,'00000000-0000-0000-0000-000000000000',22,'会议内容',11,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="636" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="11">会议内容  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1700" fieldname="会议内容" fldid="11" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1700,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=11,[Report_EntId]=1700,[EntId]=1700,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=22,[FieldName]='会议内容',[FieldNO]=11,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="636" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="11">会议内容  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1700" fieldname="会议内容" fldid="11" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1700,' where  [FldUId]='8d2f9b45-231d-4f7b-ad6b-84aa64978e7e' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='53462385-1205-455c-82de-e770a5493f80'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(12,'53462385-1205-455c-82de-e770a5493f80',1700,1700,'00000000-0000-0000-0000-000000000000',23,'其他资源',12,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="637" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="12">其他资源  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1700" fieldname="其他资源" fldid="12" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1700,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=12,[Report_EntId]=1700,[EntId]=1700,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=23,[FieldName]='其他资源',[FieldNO]=12,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="637" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="12">其他资源  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1700" fieldname="其他资源" fldid="12" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1700,' where  [FldUId]='53462385-1205-455c-82de-e770a5493f80' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='db81ca31-02b6-4634-b2b6-aae39fca4606'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(13,'db81ca31-02b6-4634-b2b6-aae39fca4606',1700,1700,'00000000-0000-0000-0000-000000000000',24,'会议状态',13,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="638" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="13">会议状态  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1700" fieldname="会议状态" fldid="13" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1700,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=13,[Report_EntId]=1700,[EntId]=1700,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=24,[FieldName]='会议状态',[FieldNO]=13,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="638" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="13">会议状态  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1700" fieldname="会议状态" fldid="13" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1700,' where  [FldUId]='db81ca31-02b6-4634-b2b6-aae39fca4606' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='45627158-41d5-4b6b-8909-83a4b1c61abd'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(14,'45627158-41d5-4b6b-8909-83a4b1c61abd',1700,1700,'00000000-0000-0000-0000-000000000000',25,'申请人',14,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="639" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="14">申请人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1700" fieldname="申请人" fldid="14" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1700,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=14,[Report_EntId]=1700,[EntId]=1700,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=25,[FieldName]='申请人',[FieldNO]=14,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="639" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="14">申请人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1700" fieldname="申请人" fldid="14" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1700,' where  [FldUId]='45627158-41d5-4b6b-8909-83a4b1c61abd' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='aef3a29b-9a75-43ea-88cf-12020700528e'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(15,'aef3a29b-9a75-43ea-88cf-12020700528e',1700,1700,'00000000-0000-0000-0000-000000000000',26,'申请时间',15,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="640" style="height: 38px; width: 792px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="15">申请时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1700" fieldname="申请时间" fldid="15" columntypeid="1" class="form-ctr">','</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1700" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="645" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="646" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1700" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="647" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1700" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="648" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1700" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="649" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="650" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',-1,-1,-1,-1,0,'1700,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=15,[Report_EntId]=1700,[EntId]=1700,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=26,[FieldName]='申请时间',[FieldNO]=15,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="640" style="height: 38px; width: 792px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="15">申请时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1700" fieldname="申请时间" fldid="15" columntypeid="1" class="form-ctr">',[LastHtml]='</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1700" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="645" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="646" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1700" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="647" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1700" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="648" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1700" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="649" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="650" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1700,' where  [FldUId]='aef3a29b-9a75-43ea-88cf-12020700528e' 
      end



Delete from [Dcx_ListReport_Run]  where [EntId]=1700

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=1700  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('fecc5090-8c5c-469c-a55c-0f8eba126a3a','已开会议',1700,1,'','','<$1700$>select *  from (select row_number() over( order by [LD_Id])as dcx_rowid,[会议主题],[会议类型],[主办部门],[会议室名称],[会议室编号],[开始时间],[结束时间],[主持人],[纪要员],[参会人],[会议内容],[其他资源],[会议状态],[申请人],[申请时间],[LD_Id] from 行政_会议管理表  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1700$><$1700:Count$>select count([LD_Id]) from 行政_会议管理表 where {$SearchArea}</$1700:Count$>',1,1,20,'DcxRun.ListR_1700= {"MenuId":2881,"MEntId":1700,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"已开会议","EntMsg":{"E1700":{"EntId":1700,"EntName":"已开会议","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1700*LD_Id*2**2*行政_会议管理表*已开会议',3,'','2012-12-22 5:16:19',3,'','2013-11-16 20:06:37',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='fecc5090-8c5c-469c-a55c-0f8eba126a3a',[ReportName]='已开会议',[ModuleId]=1,[StaticHtml]='',[DIYJsCss]='',[LoadingSql]='<$1700$>select *  from (select row_number() over( order by [LD_Id])as dcx_rowid,[会议主题],[会议类型],[主办部门],[会议室名称],[会议室编号],[开始时间],[结束时间],[主持人],[纪要员],[参会人],[会议内容],[其他资源],[会议状态],[申请人],[申请时间],[LD_Id] from 行政_会议管理表  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1700$><$1700:Count$>select count([LD_Id]) from 行政_会议管理表 where {$SearchArea}</$1700:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[AutoPublicJs]='DcxRun.ListR_1700= {"MenuId":2881,"MEntId":1700,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"已开会议","EntMsg":{"E1700":{"EntId":1700,"EntName":"已开会议","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1700*LD_Id*2**2*行政_会议管理表*已开会议',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-22 5:16:19',[EditorId]=3,[Editor]='',[EditTime]='2013-11-16 20:06:37',[AccountId]=1 where  [EntId]=1700 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='39ff3af2-06f4-295c-b4e3-d50480aa0136'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(212,'39ff3af2-06f4-295c-b4e3-d50480aa0136',1700,1700,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="91" entid="1700" style="width: 1766px;" ctrlprex="ListR_" isrple="1"> <li areaid="1845" class="tool-li" style="position: static;">
</li><li areaid="1846" class="tool-li" style="position: static;"><a id="ListR_1700_btn_buildNew" class="list-bt-add" title="添   加" href="javascript:void(0);" onclick="javascript:DcxCom.ShowAddDataDlg(1700,''ListR_'');">添   加</a></li>
<li areaid="1847" class="tool-li" style="position: static;"><a id="ListR_1700_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1700,''ListR_'');">删   除</a></li>
<li areaid="1848" class="tool-li" style="position: static;"><a id="ListR_1700_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1700,''ListR_'');">导   出</a></li>
<li areaid="1849" class="tool-li" style="position: static;"><a id="ListR_1700_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1700,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1700" style="position: static;">
<a id="ListR_1700_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1700,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1700_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1700,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1700_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1700,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1700_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="92" entid="1700" class="list-head-ul" style="width: 1838px;" ctrlprex="ListR_" isrple="1">
<li areaid="1851" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1700" onclick="javascript:DcxCom.CheckedAll(this,1700,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="1852" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议主题 </label></li><li areaid="1853" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议类型 </label></li><li areaid="1854" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">主办部门 </label></li><li areaid="1855" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议室名称 </label></li><li areaid="1856" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议室编号 </label></li><li areaid="1857" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">开始时间 </label></li><li areaid="1858" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">结束时间 </label></li><li areaid="1859" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">主持人 </label></li><li areaid="1860" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">纪要员 </label></li><li areaid="1861" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">参会人 </label></li><li areaid="1862" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议内容 </label></li><li areaid="1863" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">其他资源 </label></li><li areaid="1864" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议状态 </label></li><li areaid="1865" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请人 </label></li><li areaid="1866" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请时间 </label></li><li areaid="1867" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li> </ul>
</div>
<div class="list-body">','',-1,93,-1,-1,1,'1700,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=212,[Report_EntId]=1700,[EntId]=1700,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="91" entid="1700" style="width: 1766px;" ctrlprex="ListR_" isrple="1"> <li areaid="1845" class="tool-li" style="position: static;">
</li><li areaid="1846" class="tool-li" style="position: static;"><a id="ListR_1700_btn_buildNew" class="list-bt-add" title="添   加" href="javascript:void(0);" onclick="javascript:DcxCom.ShowAddDataDlg(1700,''ListR_'');">添   加</a></li>
<li areaid="1847" class="tool-li" style="position: static;"><a id="ListR_1700_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1700,''ListR_'');">删   除</a></li>
<li areaid="1848" class="tool-li" style="position: static;"><a id="ListR_1700_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1700,''ListR_'');">导   出</a></li>
<li areaid="1849" class="tool-li" style="position: static;"><a id="ListR_1700_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1700,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1700" style="position: static;">
<a id="ListR_1700_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1700,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1700_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1700,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1700_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1700,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1700_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="92" entid="1700" class="list-head-ul" style="width: 1838px;" ctrlprex="ListR_" isrple="1">
<li areaid="1851" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1700" onclick="javascript:DcxCom.CheckedAll(this,1700,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="1852" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议主题 </label></li><li areaid="1853" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议类型 </label></li><li areaid="1854" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">主办部门 </label></li><li areaid="1855" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议室名称 </label></li><li areaid="1856" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议室编号 </label></li><li areaid="1857" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">开始时间 </label></li><li areaid="1858" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">结束时间 </label></li><li areaid="1859" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">主持人 </label></li><li areaid="1860" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">纪要员 </label></li><li areaid="1861" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">参会人 </label></li><li areaid="1862" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议内容 </label></li><li areaid="1863" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">其他资源 </label></li><li areaid="1864" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议状态 </label></li><li areaid="1865" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请人 </label></li><li areaid="1866" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请时间 </label></li><li areaid="1867" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li> </ul>
</div>
<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1700,' where  [FldUId]='39ff3af2-06f4-295c-b4e3-d50480aa0136' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='ac78d1a4-9850-4a06-9447-d025bdca0083'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(154,'ac78d1a4-9850-4a06-9447-d025bdca0083',1700,1700,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',2,1,'',2,21,0,'','','','islonly="1" isgroup="1" groupid="93" class="list-body-ul" style="width: 1838px;" isrple="1">
<li areaid="1868" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1700" issyscheck="1" keyvalue="','',-1,93,-1,-1,1,'1700,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=154,[Report_EntId]=1700,[EntId]=1700,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='islonly="1" isgroup="1" groupid="93" class="list-body-ul" style="width: 1838px;" isrple="1">
<li areaid="1868" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1700" issyscheck="1" keyvalue="',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1700,' where  [FldUId]='ac78d1a4-9850-4a06-9447-d025bdca0083' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='7df96fe1-1d82-4eed-aeb4-a5cf8ab4fcbd'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'7df96fe1-1d82-4eed-aeb4-a5cf8ab4fcbd',1700,1700,'00000000-0000-0000-0000-000000000000',12,'会议主题',3,1,'varchar',2,1,0,'','','','" type="checkbox"></li><li areaid="1869" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1700" fieldname="会议主题" fldid="1" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1700,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=1,[Report_EntId]=1700,[EntId]=1700,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=12,[FieldName]='会议主题',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='" type="checkbox"></li><li areaid="1869" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1700" fieldname="会议主题" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1700,' where  [FldUId]='7df96fe1-1d82-4eed-aeb4-a5cf8ab4fcbd' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='eca0d67a-244f-4fc5-a1b8-45186ee0742f'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'eca0d67a-244f-4fc5-a1b8-45186ee0742f',1700,1700,'00000000-0000-0000-0000-000000000000',13,'会议类型',4,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1870" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1700" fieldname="会议类型" fldid="2" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1700,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=2,[Report_EntId]=1700,[EntId]=1700,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=13,[FieldName]='会议类型',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1870" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1700" fieldname="会议类型" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1700,' where  [FldUId]='eca0d67a-244f-4fc5-a1b8-45186ee0742f' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='da832265-aa87-4cf7-910b-bc2d62c7498e'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'da832265-aa87-4cf7-910b-bc2d62c7498e',1700,1700,'00000000-0000-0000-0000-000000000000',14,'主办部门',5,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1871" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1700" fieldname="主办部门" fldid="3" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1700,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=3,[Report_EntId]=1700,[EntId]=1700,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=14,[FieldName]='主办部门',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1871" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1700" fieldname="主办部门" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1700,' where  [FldUId]='da832265-aa87-4cf7-910b-bc2d62c7498e' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='ada8f355-945e-41b5-aeb7-b0764d9f962f'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'ada8f355-945e-41b5-aeb7-b0764d9f962f',1700,1700,'00000000-0000-0000-0000-000000000000',15,'会议室名称',6,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1872" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1700" fieldname="会议室名称" fldid="4" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1700,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=4,[Report_EntId]=1700,[EntId]=1700,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=15,[FieldName]='会议室名称',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1872" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1700" fieldname="会议室名称" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1700,' where  [FldUId]='ada8f355-945e-41b5-aeb7-b0764d9f962f' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='00b59bea-9aa6-478d-a4c8-53fc75aaabfa'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'00b59bea-9aa6-478d-a4c8-53fc75aaabfa',1700,1700,'00000000-0000-0000-0000-000000000000',16,'会议室编号',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1873" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1700" fieldname="会议室编号" fldid="5" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1700,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=5,[Report_EntId]=1700,[EntId]=1700,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=16,[FieldName]='会议室编号',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1873" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1700" fieldname="会议室编号" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1700,' where  [FldUId]='00b59bea-9aa6-478d-a4c8-53fc75aaabfa' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='0efa6926-3368-4782-9a1b-73aabdf2cf19'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'0efa6926-3368-4782-9a1b-73aabdf2cf19',1700,1700,'00000000-0000-0000-0000-000000000000',17,'开始时间',8,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1874" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1700" fieldname="开始时间" fldid="6" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1700,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=6,[Report_EntId]=1700,[EntId]=1700,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=17,[FieldName]='开始时间',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1874" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1700" fieldname="开始时间" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1700,' where  [FldUId]='0efa6926-3368-4782-9a1b-73aabdf2cf19' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='5d8e971e-67f3-4eda-b11c-b623c17b4053'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'5d8e971e-67f3-4eda-b11c-b623c17b4053',1700,1700,'00000000-0000-0000-0000-000000000000',18,'结束时间',9,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1875" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1700" fieldname="结束时间" fldid="7" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1700,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=7,[Report_EntId]=1700,[EntId]=1700,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=18,[FieldName]='结束时间',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1875" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1700" fieldname="结束时间" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1700,' where  [FldUId]='5d8e971e-67f3-4eda-b11c-b623c17b4053' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='13465b66-11ad-4d0a-8fd8-023c86941bf0'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'13465b66-11ad-4d0a-8fd8-023c86941bf0',1700,1700,'00000000-0000-0000-0000-000000000000',19,'主持人',10,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1876" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1700" fieldname="主持人" fldid="8" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1700,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=8,[Report_EntId]=1700,[EntId]=1700,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=19,[FieldName]='主持人',[FieldNO]=10,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1876" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1700" fieldname="主持人" fldid="8" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1700,' where  [FldUId]='13465b66-11ad-4d0a-8fd8-023c86941bf0' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='63863016-262a-4ae4-bf8d-5b87c82b48fb'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'63863016-262a-4ae4-bf8d-5b87c82b48fb',1700,1700,'00000000-0000-0000-0000-000000000000',20,'纪要员',11,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1877" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1700" fieldname="纪要员" fldid="9" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1700,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=9,[Report_EntId]=1700,[EntId]=1700,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=20,[FieldName]='纪要员',[FieldNO]=11,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1877" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1700" fieldname="纪要员" fldid="9" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1700,' where  [FldUId]='63863016-262a-4ae4-bf8d-5b87c82b48fb' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='a07c0732-0488-446e-a8ca-ac80931afe19'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'a07c0732-0488-446e-a8ca-ac80931afe19',1700,1700,'00000000-0000-0000-0000-000000000000',21,'参会人',12,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1878" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1700" fieldname="参会人" fldid="10" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1700,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=10,[Report_EntId]=1700,[EntId]=1700,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=21,[FieldName]='参会人',[FieldNO]=12,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1878" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1700" fieldname="参会人" fldid="10" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1700,' where  [FldUId]='a07c0732-0488-446e-a8ca-ac80931afe19' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='6961c609-afa2-46e3-9eb8-4779c0ccc090'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'6961c609-afa2-46e3-9eb8-4779c0ccc090',1700,1700,'00000000-0000-0000-0000-000000000000',22,'会议内容',13,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1879" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1700" fieldname="会议内容" fldid="11" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1700,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=11,[Report_EntId]=1700,[EntId]=1700,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=22,[FieldName]='会议内容',[FieldNO]=13,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1879" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1700" fieldname="会议内容" fldid="11" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1700,' where  [FldUId]='6961c609-afa2-46e3-9eb8-4779c0ccc090' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='995fe65e-8cd8-4f98-bc92-deaa0632c1f9'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(12,'995fe65e-8cd8-4f98-bc92-deaa0632c1f9',1700,1700,'00000000-0000-0000-0000-000000000000',23,'其他资源',14,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1880" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1700" fieldname="其他资源" fldid="12" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1700,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=12,[Report_EntId]=1700,[EntId]=1700,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=23,[FieldName]='其他资源',[FieldNO]=14,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1880" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1700" fieldname="其他资源" fldid="12" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1700,' where  [FldUId]='995fe65e-8cd8-4f98-bc92-deaa0632c1f9' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='fbe3b963-74e7-4ede-b313-b65a7ecdfa95'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(13,'fbe3b963-74e7-4ede-b313-b65a7ecdfa95',1700,1700,'00000000-0000-0000-0000-000000000000',24,'会议状态',15,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1881" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1700" fieldname="会议状态" fldid="13" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1700,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=13,[Report_EntId]=1700,[EntId]=1700,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=24,[FieldName]='会议状态',[FieldNO]=15,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1881" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1700" fieldname="会议状态" fldid="13" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1700,' where  [FldUId]='fbe3b963-74e7-4ede-b313-b65a7ecdfa95' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='c4319314-7472-460f-80d8-340bbdb3b04d'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(14,'c4319314-7472-460f-80d8-340bbdb3b04d',1700,1700,'00000000-0000-0000-0000-000000000000',25,'申请人',16,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1882" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1700" fieldname="申请人" fldid="14" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1700,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=14,[Report_EntId]=1700,[EntId]=1700,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=25,[FieldName]='申请人',[FieldNO]=16,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1882" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1700" fieldname="申请人" fldid="14" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1700,' where  [FldUId]='c4319314-7472-460f-80d8-340bbdb3b04d' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='ba256313-17e4-44d6-861a-a6de3eac4f63'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(15,'ba256313-17e4-44d6-861a-a6de3eac4f63',1700,1700,'00000000-0000-0000-0000-000000000000',26,'申请时间',17,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1883" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1700" fieldname="申请时间" fldid="15" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1700,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=15,[Report_EntId]=1700,[EntId]=1700,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=26,[FieldName]='申请时间',[FieldNO]=17,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1883" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1700" fieldname="申请时间" fldid="15" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1700,' where  [FldUId]='ba256313-17e4-44d6-861a-a6de3eac4f63' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='0ca19418-f32f-4af5-9490-313387b68b9b'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(155,'0ca19418-f32f-4af5-9490-313387b68b9b',1700,1700,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',18,1,'',2,21,0,'','','','</span>
  </div>
</li><li areaid="1884" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1700,''ListR_'',''','',-1,93,-1,-1,1,'1700,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=155,[Report_EntId]=1700,[EntId]=1700,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=18,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1884" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1700,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1700,' where  [FldUId]='0ca19418-f32f-4af5-9490-313387b68b9b' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='e0e56b5b-130f-97a4-e7b3-4b5bd142b77f'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(213,'e0e56b5b-130f-97a4-e7b3-4b5bd142b77f',1700,1700,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',19,-1,'varchar',2,13,0,'','','',''');">
<span class="i">浏览详细</span></a></div>
</li>    </ul>','</div>
</div>
<!-- 结束 --></div>',-1,93,-1,-1,1,'1700,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=213,[Report_EntId]=1700,[EntId]=1700,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=19,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''');">
<span class="i">浏览详细</span></a></div>
</li>    </ul>',[LastHtml]='</div>
</div>
<!-- 结束 --></div>',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1700,' where  [FldUId]='e0e56b5b-130f-97a4-e7b3-4b5bd142b77f' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=1113

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=1113  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(1113,null,'行政_会议管理表','行政_会议管理表',0,0,0,0,0,1,1,1,3,'admin','2013-12-15 17:32:53',3,'admin','2013-12-15 17:32:53',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='行政_会议管理表',[DBTableByName]='行政_会议管理表',[IsForbid]=0,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=1,[SystemId]=1,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:53',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:53',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=1113 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2573,1,1,1113,'int',1,1,1,'行政_会议管理表','LD_Id','LD_Id','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='LD_Id',[FieldByname]='LD_Id',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2574,2,1,1113,'varchar',2,1,1,'行政_会议管理表','WFState','WFState','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFState',[FieldByname]='WFState',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2575,3,1,1113,'varchar',2,1,1,'行政_会议管理表','WFUserName','WFUserName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFUserName',[FieldByname]='WFUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2576,4,1,1113,'bit',4,1,1,'行政_会议管理表','WFIsFinish','WFIsFinish','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFIsFinish',[FieldByname]='WFIsFinish',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2577,5,1,1113,'bit',4,1,1,'行政_会议管理表','WFIsStart','WFIsStart','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFIsStart',[FieldByname]='WFIsStart',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2578,6,1,1113,'varchar',2,1,1,'行政_会议管理表','WFAllUser','WFAllUser','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFAllUser',[FieldByname]='WFAllUser',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2579,7,1,1113,'varchar',2,1,1,'行政_会议管理表','WFOpinion','WFOpinion','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFOpinion',[FieldByname]='WFOpinion',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2580,8,1,1113,'int',1,1,1,'行政_会议管理表','WFRunId','WFRunId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFRunId',[FieldByname]='WFRunId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2581,9,1,1113,'int',1,1,1,'行政_会议管理表','WFFlowId','WFFlowId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFFlowId',[FieldByname]='WFFlowId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2582,10,1,1113,'int',1,1,1,'行政_会议管理表','WFPrcsId','WFPrcsId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFPrcsId',[FieldByname]='WFPrcsId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2583,11,1,1113,'varchar',2,1,1,'行政_会议管理表','会议编号','会议编号','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='会议编号',[FieldByname]='会议编号',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2584,12,1,1113,'varchar',2,1,1,'行政_会议管理表','会议主题','会议主题','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='会议主题',[FieldByname]='会议主题',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2585,13,1,1113,'varchar',2,1,1,'行政_会议管理表','会议类型','会议类型','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='会议类型',[FieldByname]='会议类型',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2586,14,1,1113,'varchar',2,1,1,'行政_会议管理表','主办部门','主办部门','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='主办部门',[FieldByname]='主办部门',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2587,15,1,1113,'varchar',2,1,1,'行政_会议管理表','会议室名称','会议室名称','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='会议室名称',[FieldByname]='会议室名称',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2588,16,1,1113,'varchar',2,1,1,'行政_会议管理表','会议室编号','会议室编号','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='会议室编号',[FieldByname]='会议室编号',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2589,17,1,1113,'datetime',3,1,1,'行政_会议管理表','开始时间','开始时间','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='开始时间',[FieldByname]='开始时间',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2590,18,1,1113,'datetime',3,1,1,'行政_会议管理表','结束时间','结束时间','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='结束时间',[FieldByname]='结束时间',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2591,19,1,1113,'varchar',2,1,1,'行政_会议管理表','主持人','主持人','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='主持人',[FieldByname]='主持人',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2592,20,1,1113,'varchar',2,1,1,'行政_会议管理表','纪要员','纪要员','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='纪要员',[FieldByname]='纪要员',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2593,21,1,1113,'varchar',2,1,1,'行政_会议管理表','参会人','参会人','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='参会人',[FieldByname]='参会人',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2594,22,1,1113,'varchar',2,1,1,'行政_会议管理表','会议内容','会议内容','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='会议内容',[FieldByname]='会议内容',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2595,23,1,1113,'varchar',2,1,1,'行政_会议管理表','其他资源','其他资源','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='其他资源',[FieldByname]='其他资源',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2596,24,1,1113,'varchar',2,1,1,'行政_会议管理表','会议状态','会议状态','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='会议状态',[FieldByname]='会议状态',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2597,25,1,1113,'varchar',2,1,1,'行政_会议管理表','申请人','申请人','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='申请人',[FieldByname]='申请人',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2598,26,1,1113,'datetime',3,1,1,'行政_会议管理表','申请时间','申请时间','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='申请时间',[FieldByname]='申请时间',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=26 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=2882  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2882,'300a67cf-c83e-4612-99b5-6f12a8b9bef7','会议管理',1972,'/Template/default/ListReport/ListReport_Tree001.aspx',1,'/images/default.gif','/images/default.gif',8,'',null,0,null,1,0,1,1,1,1,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='300a67cf-c83e-4612-99b5-6f12a8b9bef7',[MenuName]='会议管理',[ParentId]=1972,[ProPath]='/Template/default/ListReport/ListReport_Tree001.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=8,[Target]='',[IsOpen]=null,[IsHidden]=0,[Remark]=null,[SSystemId]=1,[SMenuId]=0,[SystemId]=1,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=2882 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=2882  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(662,2882,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=2882  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=1671  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(1671,2882,'会议管理',1,1113,0,'行政_会议管理表',0,0,1,1,1671,null,null,1,null,null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=2882,[EntName]='会议管理',[MEnt]=1,[DBTableId]=1113,[DBConnectId]=0,[DBTableName]='行政_会议管理表',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=1,[SEntId]=1671,[FSystemId]=null,[FEntId]=null,[SystemId]=1,[Remark]=null,[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=1671 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=1671

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=1671  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(10804,2882,1671,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=2882,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=1671  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=1671

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1671  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18068,1,2882,1671,13,1,1,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2882,[TemplateId]=13,[ModuleId]=1,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1671  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1671  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18069,1,2882,1671,13,2,9,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2882,[TemplateId]=13,[ModuleId]=9,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1671  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1671  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18070,1,2882,1671,13,3,14,1,4,2,'/Template/Default/Form/AjaxForm/AjaxForm008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2882,[TemplateId]=13,[ModuleId]=14,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='/Template/Default/Form/AjaxForm/AjaxForm008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1671  and  [ModuleTypeId]=3 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1671  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18071,1,2882,1671,13,16,31,1,5,2,'/Template/Default/Browse/Browse008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2882,[TemplateId]=13,[ModuleId]=31,[GroupId]=1,[AreaId]=5,[ShowMode]=2,[AreaUrl]='/Template/Default/Browse/Browse008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1671  and  [ModuleTypeId]=16 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_SearchForm_Run]  where [EntId]=1671

--Dcx_SearchForm_Run
      if (select count(1) from [Dcx_SearchForm_Run] where  [EntId]=1671  )<1 
      begin 
           Insert into [Dcx_SearchForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('6ea6bcfc-932f-4469-a7e6-6521d7e6a87e','会议管理',1671,9,'','',0,'','','DcxRun.SearchF_1671= {"MenuId":2882,"MEntId":1671,"EntName":"会议管理","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1671":{"EntId":1671,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_1671.EntMsg.E1671.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"行政_会议管理表","EntId":1671,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"会议室名称":{"DtId":2,"DB":1,"CId":1,"FL":100},"会议主题":{"DtId":2,"DB":1,"CId":1,"FL":100},"流程是否已结束":{"DtId":4,"DB":0,"CId":3,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.SearchF_1671.EntMsg.E1671.GetDataRowModel=function()
{
    return {"会议室名称":"","会议主题":"","流程是否已结束":false,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_1671.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1671,''SearchF_'',buildNew,closeDlg);

}','',20,'','','','1671*LD_Id*2**2*行政_会议管理表*会议管理',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 5:45:57',3,'admin','2013-11-16 17:36:05',1)
      end
      else 
      begin 
           update [Dcx_SearchForm_Run] set [FormId]='6ea6bcfc-932f-4469-a7e6-6521d7e6a87e',[FormName]='会议管理',[ModuleId]=9,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.SearchF_1671= {"MenuId":2882,"MEntId":1671,"EntName":"会议管理","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1671":{"EntId":1671,"KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_1671.EntMsg.E1671.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"行政_会议管理表","EntId":1671,"KeyField":"LD_Id","MKeyField":"LD_Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"会议室名称":{"DtId":2,"DB":1,"CId":1,"FL":100},"会议主题":{"DtId":2,"DB":1,"CId":1,"FL":100},"流程是否已结束":{"DtId":4,"DB":0,"CId":3,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.SearchF_1671.EntMsg.E1671.GetDataRowModel=function()
{
    return {"会议室名称":"","会议主题":"","流程是否已结束":false,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"LD_Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_1671.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1671,''SearchF_'',buildNew,closeDlg);

}',[LoadingSql]='',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='1671*LD_Id*2**2*行政_会议管理表*会议管理',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 5:45:57',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-16 17:36:05',[AccountId]=1 where  [EntId]=1671 
      end




--Dcx_SearchFormField_Run
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='4031ab67-ec64-44c3-ad60-ea1fe36e34ee'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'4031ab67-ec64-44c3-ad60-ea1fe36e34ee',1671,1671,'00000000-0000-0000-0000-000000000000',1,'Like','会议室名称',2,2,15,'',5,1,1,0,1,1,0,-1,1,0,'','','','','<div class="searchform">
<ul class="search-block w920" entid="1671" isgroup="1" groupid="27" ctrlprex="SearchF_" isrple="1">
<li style="position: static;" class="search-li w270 h32" scroll="no" areaid="105"><label class="search-title pad7" fldid="1" istitle="1">会议室名称</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">','','','','<input  id="d1671_会议室名称"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1671,''SearchF_'',1671,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1671,''SearchF_'',1671);" EntId="1671" IsField=1 DBField=1 IsPost=1 FieldName="会议室名称" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'1671,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=1,[Form_EntId]=1671,[EntId]=1671,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[CompareOperatorType]='Like',[FieldName]='会议室名称',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=15,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="searchform">
<ul class="search-block w920" entid="1671" isgroup="1" groupid="27" ctrlprex="SearchF_" isrple="1">
<li style="position: static;" class="search-li w270 h32" scroll="no" areaid="105"><label class="search-title pad7" fldid="1" istitle="1">会议室名称</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1671_会议室名称"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1671,''SearchF_'',1671,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1671,''SearchF_'',1671);" EntId="1671" IsField=1 DBField=1 IsPost=1 FieldName="会议室名称" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1671,' where  [FldUId]='4031ab67-ec64-44c3-ad60-ea1fe36e34ee' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='a1be727f-9ecd-42d5-9dd8-dc2da101df5d'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'a1be727f-9ecd-42d5-9dd8-dc2da101df5d',1671,1671,'00000000-0000-0000-0000-000000000000',2,'Like','会议主题',2,2,12,'',5,1,1,0,1,1,0,-1,1,0,'','','','','</span> </div></li>
<li style="width: 241px; position: static;" class="search-li w240 h32" scroll="no" areaid="106"><label class="search-title pad7" fldid="2" istitle="1">会议主题</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">','','','','<input  id="d1671_会议主题"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1671,''SearchF_'',1671,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1671,''SearchF_'',1671);" EntId="1671" IsField=1 DBField=1 IsPost=1 FieldName="会议主题" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'1671,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=2,[Form_EntId]=1671,[EntId]=1671,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[CompareOperatorType]='Like',[FieldName]='会议主题',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=12,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="width: 241px; position: static;" class="search-li w240 h32" scroll="no" areaid="106"><label class="search-title pad7" fldid="2" istitle="1">会议主题</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1671_会议主题"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1671,''SearchF_'',1671,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1671,''SearchF_'',1671);" EntId="1671" IsField=1 DBField=1 IsPost=1 FieldName="会议主题" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1671,' where  [FldUId]='a1be727f-9ecd-42d5-9dd8-dc2da101df5d' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='402b264e-6dc6-4e99-aa22-9de17a041327'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'402b264e-6dc6-4e99-aa22-9de17a041327',1671,1671,'00000000-0000-0000-0000-000000000000',3,'=','流程是否已结束',4,4,-1,'',1,1,1,0,3,1,0,-1,1,0,'','','','','</span> </div></li>
<li style="width: 269px; position: static;" class="search-li w270 h32" scroll="no" areaid="107"><label class="search-title pad7" fldid="3" istitle="1">流程是否已结束</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">','</span> </div></li>
<li style="position: static;" class="search-li w100 h32" scroll="no" areaid="108">
<div class="searchform-button" onclick="javascript:return VL_Search(1671);">
<div class="search-btn">&nbsp;</div><a id="1671_searchBT" href="javascript:void(0);">搜索</a> </div></li></ul></div>','','','<select id="d1671_流程是否已结束" name="d1671_流程是否已结束" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1671,''SearchF_'',1671,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1671,''SearchF_'',1671);" EntId="1671" IsField=1 DBField=0 IsPost=1 FieldName="流程是否已结束" dType="4" Vtp="1" RDT="4" Isc="1" RId="1" CId="3" FId="3" vlk=0    Cpre="="  style="width:150px;">','<option  value="False"  >否</option>
<option  value="True"  >是</option>
</select>','',1,-1,-1,-1,-1,0,'1671,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=3,[Form_EntId]=1671,[EntId]=1671,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[CompareOperatorType]='=',[FieldName]='流程是否已结束',[FieldDataTypeId]=4,[RunDataTypeId]=4,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=1,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="width: 269px; position: static;" class="search-li w270 h32" scroll="no" areaid="107"><label class="search-title pad7" fldid="3" istitle="1">流程是否已结束</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">',[LastHtml]='</span> </div></li>
<li style="position: static;" class="search-li w100 h32" scroll="no" areaid="108">
<div class="searchform-button" onclick="javascript:return VL_Search(1671);">
<div class="search-btn">&nbsp;</div><a id="1671_searchBT" href="javascript:void(0);">搜索</a> </div></li></ul></div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1671_流程是否已结束" name="d1671_流程是否已结束" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1671,''SearchF_'',1671,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1671,''SearchF_'',1671);" EntId="1671" IsField=1 DBField=0 IsPost=1 FieldName="流程是否已结束" dType="4" Vtp="1" RDT="4" Isc="1" RId="1" CId="3" FId="3" vlk=0    Cpre="="  style="width:150px;">',[CtrlbackHtml]='<option  value="False"  >否</option>
<option  value="True"  >是</option>
</select>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1671,' where  [FldUId]='402b264e-6dc6-4e99-aa22-9de17a041327' 
      end



Delete from [Dcx_BrowseReport_Run]  where [EntId]=1671

--Dcx_BrowseReport_Run
      if (select count(1) from [Dcx_BrowseReport_Run] where  [EntId]=1671  )<1 
      begin 
           Insert into [Dcx_BrowseReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[DIYJsCss],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('8132f21c-7f31-430f-a187-06c4d9d278a6','会议管理',1671,31,'','<$1671$>select [WFState],[WFUserName],[会议室名称],[会议状态],[会议类型],[会议主题],[主办部门],[开始时间],[结束时间],[主持人],[纪要员],[参会人],[会议内容],[其他资源],[申请人],[申请时间],[LD_Id] from 行政_会议管理表 where [LD_Id]=''{$keyfieldvalue}''</$1671$>',1,1,20,'','DcxRun.MChildR_1671= {"MenuId":2882,"MEntId":1671,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"会议管理","EntMsg":{"E1671":{"EntId":1671,"EntName":"会议管理","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1671*LD_Id*2**2*行政_会议管理表*会议管理',3,'','2012-12-21 11:03:02',3,'','2013-11-17 2:53:15',1)
      end
      else 
      begin 
           update [Dcx_BrowseReport_Run] set [ReportId]='8132f21c-7f31-430f-a187-06c4d9d278a6',[ReportName]='会议管理',[ModuleId]=31,[StaticHtml]='',[LoadingSql]='<$1671$>select [WFState],[WFUserName],[会议室名称],[会议状态],[会议类型],[会议主题],[主办部门],[开始时间],[结束时间],[主持人],[纪要员],[参会人],[会议内容],[其他资源],[申请人],[申请时间],[LD_Id] from 行政_会议管理表 where [LD_Id]=''{$keyfieldvalue}''</$1671$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[DIYJsCss]='',[AutoPublicJs]='DcxRun.MChildR_1671= {"MenuId":2882,"MEntId":1671,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"会议管理","EntMsg":{"E1671":{"EntId":1671,"EntName":"会议管理","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1671*LD_Id*2**2*行政_会议管理表*会议管理',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-21 11:03:02',[EditorId]=3,[Editor]='',[EditTime]='2013-11-17 2:53:15',[AccountId]=1 where  [EntId]=1671 
      end




--Dcx_BrowseReportField_Run
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='acefd026-be3b-4222-853a-8a46ee952ccd'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'acefd026-be3b-4222-853a-8a46ee952ccd',1671,1671,'00000000-0000-0000-0000-000000000000',2,'WFState',1,1,'varchar',2,1,0,'','','','<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1671" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="651" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">会议管理</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1671" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="652" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">当前状态  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1671" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1671,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=1,[Report_EntId]=1671,[EntId]=1671,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='WFState',[FieldNO]=1,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1671" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="651" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">会议管理</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1671" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="652" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">当前状态  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1671" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1671,' where  [FldUId]='acefd026-be3b-4222-853a-8a46ee952ccd' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='6b1cf7a4-f203-4a92-97b8-394397dd1584'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'6b1cf7a4-f203-4a92-97b8-394397dd1584',1671,1671,'00000000-0000-0000-0000-000000000000',3,'WFUserName',2,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="653" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">当前办理人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1671" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1671,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=2,[Report_EntId]=1671,[EntId]=1671,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='WFUserName',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="653" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">当前办理人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1671" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1671,' where  [FldUId]='6b1cf7a4-f203-4a92-97b8-394397dd1584' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='16938146-6482-499b-ad37-6d2a5a037936'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'16938146-6482-499b-ad37-6d2a5a037936',1671,1671,'00000000-0000-0000-0000-000000000000',15,'会议室名称',3,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="654" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">会议室名称  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1671" fieldname="会议室名称" fldid="3" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1671,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=3,[Report_EntId]=1671,[EntId]=1671,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=15,[FieldName]='会议室名称',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="654" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">会议室名称  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1671" fieldname="会议室名称" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1671,' where  [FldUId]='16938146-6482-499b-ad37-6d2a5a037936' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='a2ab6a79-cf98-47d0-bfb3-5a973b9f9f60'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'a2ab6a79-cf98-47d0-bfb3-5a973b9f9f60',1671,1671,'00000000-0000-0000-0000-000000000000',24,'会议状态',4,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="655" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">会议状态  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1671" fieldname="会议状态" fldid="4" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1671,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=4,[Report_EntId]=1671,[EntId]=1671,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=24,[FieldName]='会议状态',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="655" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">会议状态  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1671" fieldname="会议状态" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1671,' where  [FldUId]='a2ab6a79-cf98-47d0-bfb3-5a973b9f9f60' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='5a1cbd90-749f-43aa-9f58-20b0fe057b94'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'5a1cbd90-749f-43aa-9f58-20b0fe057b94',1671,1671,'00000000-0000-0000-0000-000000000000',13,'会议类型',5,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="656" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">会议类型  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1671" fieldname="会议类型" fldid="5" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1671,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=5,[Report_EntId]=1671,[EntId]=1671,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=13,[FieldName]='会议类型',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="656" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">会议类型  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1671" fieldname="会议类型" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1671,' where  [FldUId]='5a1cbd90-749f-43aa-9f58-20b0fe057b94' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='955a0c8e-682e-4cc3-81bd-cce305f67499'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'955a0c8e-682e-4cc3-81bd-cce305f67499',1671,1671,'00000000-0000-0000-0000-000000000000',12,'会议主题',6,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="657" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">会议主题  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1671" fieldname="会议主题" fldid="6" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1671,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=6,[Report_EntId]=1671,[EntId]=1671,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=12,[FieldName]='会议主题',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="657" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">会议主题  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1671" fieldname="会议主题" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1671,' where  [FldUId]='955a0c8e-682e-4cc3-81bd-cce305f67499' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='126c8b63-653f-4d41-aa45-3c923ad2f17d'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'126c8b63-653f-4d41-aa45-3c923ad2f17d',1671,1671,'00000000-0000-0000-0000-000000000000',14,'主办部门',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="658" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">主办部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1671" fieldname="主办部门" fldid="7" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1671,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=7,[Report_EntId]=1671,[EntId]=1671,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=14,[FieldName]='主办部门',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="658" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">主办部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1671" fieldname="主办部门" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1671,' where  [FldUId]='126c8b63-653f-4d41-aa45-3c923ad2f17d' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='92cc6ffd-5542-41b2-bddb-8e916fc4e4c5'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'92cc6ffd-5542-41b2-bddb-8e916fc4e4c5',1671,1671,'00000000-0000-0000-0000-000000000000',17,'开始时间',8,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="659" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="8">开始时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1671" fieldname="开始时间" fldid="8" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1671,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=8,[Report_EntId]=1671,[EntId]=1671,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=17,[FieldName]='开始时间',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="659" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="8">开始时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1671" fieldname="开始时间" fldid="8" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1671,' where  [FldUId]='92cc6ffd-5542-41b2-bddb-8e916fc4e4c5' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='8a9a686c-2066-4c77-86ac-6a07d64019ad'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'8a9a686c-2066-4c77-86ac-6a07d64019ad',1671,1671,'00000000-0000-0000-0000-000000000000',18,'结束时间',9,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="660" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="9">结束时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1671" fieldname="结束时间" fldid="9" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1671,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=9,[Report_EntId]=1671,[EntId]=1671,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=18,[FieldName]='结束时间',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="660" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="9">结束时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1671" fieldname="结束时间" fldid="9" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1671,' where  [FldUId]='8a9a686c-2066-4c77-86ac-6a07d64019ad' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='7dca54b0-6121-453e-aaaa-02e1e50e9925'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'7dca54b0-6121-453e-aaaa-02e1e50e9925',1671,1671,'00000000-0000-0000-0000-000000000000',19,'主持人',10,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="661" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="10">主持人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1671" fieldname="主持人" fldid="10" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1671,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=10,[Report_EntId]=1671,[EntId]=1671,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=19,[FieldName]='主持人',[FieldNO]=10,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="661" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="10">主持人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1671" fieldname="主持人" fldid="10" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1671,' where  [FldUId]='7dca54b0-6121-453e-aaaa-02e1e50e9925' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='7f427a6a-01b3-4187-96f0-b1774843fe88'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'7f427a6a-01b3-4187-96f0-b1774843fe88',1671,1671,'00000000-0000-0000-0000-000000000000',20,'纪要员',11,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="662" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="11">纪要员  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1671" fieldname="纪要员" fldid="11" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1671,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=11,[Report_EntId]=1671,[EntId]=1671,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=20,[FieldName]='纪要员',[FieldNO]=11,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="662" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="11">纪要员  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1671" fieldname="纪要员" fldid="11" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1671,' where  [FldUId]='7f427a6a-01b3-4187-96f0-b1774843fe88' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='06f9a065-016c-4e24-9269-257f068c0d8a'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(12,'06f9a065-016c-4e24-9269-257f068c0d8a',1671,1671,'00000000-0000-0000-0000-000000000000',21,'参会人',12,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="663" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="12">参会人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1671" fieldname="参会人" fldid="12" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1671,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=12,[Report_EntId]=1671,[EntId]=1671,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=21,[FieldName]='参会人',[FieldNO]=12,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="663" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="12">参会人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1671" fieldname="参会人" fldid="12" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1671,' where  [FldUId]='06f9a065-016c-4e24-9269-257f068c0d8a' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='cc2bfc0e-2dad-4892-93b8-bcbc051af6e7'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(13,'cc2bfc0e-2dad-4892-93b8-bcbc051af6e7',1671,1671,'00000000-0000-0000-0000-000000000000',22,'会议内容',13,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="664" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="13">会议内容  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1671" fieldname="会议内容" fldid="13" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1671,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=13,[Report_EntId]=1671,[EntId]=1671,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=22,[FieldName]='会议内容',[FieldNO]=13,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="664" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="13">会议内容  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1671" fieldname="会议内容" fldid="13" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1671,' where  [FldUId]='cc2bfc0e-2dad-4892-93b8-bcbc051af6e7' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='0fd9c31f-4986-4626-bf40-d8fac33ab3f6'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(14,'0fd9c31f-4986-4626-bf40-d8fac33ab3f6',1671,1671,'00000000-0000-0000-0000-000000000000',23,'其他资源',14,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="665" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="14">其他资源  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1671" fieldname="其他资源" fldid="14" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1671,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=14,[Report_EntId]=1671,[EntId]=1671,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=23,[FieldName]='其他资源',[FieldNO]=14,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="665" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="14">其他资源  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1671" fieldname="其他资源" fldid="14" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1671,' where  [FldUId]='0fd9c31f-4986-4626-bf40-d8fac33ab3f6' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='4a9048ae-b81e-4e3b-8c41-4c05cf5adf93'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(15,'4a9048ae-b81e-4e3b-8c41-4c05cf5adf93',1671,1671,'00000000-0000-0000-0000-000000000000',25,'申请人',15,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="666" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="15">申请人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1671" fieldname="申请人" fldid="15" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1671,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=15,[Report_EntId]=1671,[EntId]=1671,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=25,[FieldName]='申请人',[FieldNO]=15,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="666" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="15">申请人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1671" fieldname="申请人" fldid="15" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1671,' where  [FldUId]='4a9048ae-b81e-4e3b-8c41-4c05cf5adf93' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='c9f134b8-220a-4b9d-bed5-2b378cc203b0'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(16,'c9f134b8-220a-4b9d-bed5-2b378cc203b0',1671,1671,'00000000-0000-0000-0000-000000000000',26,'申请时间',16,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="667" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="16">申请时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1671" fieldname="申请时间" fldid="16" columntypeid="1" class="form-ctr">','</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1671" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="672" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="673" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1671" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="674" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1671" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="675" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1671" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="676" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="677" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',-1,-1,-1,-1,0,'1671,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=16,[Report_EntId]=1671,[EntId]=1671,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=26,[FieldName]='申请时间',[FieldNO]=16,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="667" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="16">申请时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1671" fieldname="申请时间" fldid="16" columntypeid="1" class="form-ctr">',[LastHtml]='</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1671" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="672" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="673" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1671" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="674" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1671" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="675" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1671" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="676" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="677" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1671,' where  [FldUId]='c9f134b8-220a-4b9d-bed5-2b378cc203b0' 
      end



Delete from [Dcx_ListReport_Run]  where [EntId]=1671

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=1671  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('fcc835b3-873d-4095-9c45-d91065fe5df5','会议管理',1671,1,'','','<$1671$>select *  from (select row_number() over( order by [LD_Id])as dcx_rowid,[WFState],[WFUserName],[会议室名称],[会议状态],[会议类型],[会议主题],[主办部门],[开始时间],[结束时间],[主持人],[纪要员],[参会人],[会议内容],[其他资源],[申请人],[申请时间],[LD_Id] from 行政_会议管理表  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1671$><$1671:Count$>select count([LD_Id]) from 行政_会议管理表 where {$SearchArea}</$1671:Count$>',1,1,20,'DcxRun.ListR_1671= {"MenuId":2882,"MEntId":1671,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"会议管理","EntMsg":{"E1671":{"EntId":1671,"EntName":"会议管理","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1671*LD_Id*2**2*行政_会议管理表*会议管理',3,'','2012-12-22 5:16:19',3,'','2013-11-16 20:06:40',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='fcc835b3-873d-4095-9c45-d91065fe5df5',[ReportName]='会议管理',[ModuleId]=1,[StaticHtml]='',[DIYJsCss]='',[LoadingSql]='<$1671$>select *  from (select row_number() over( order by [LD_Id])as dcx_rowid,[WFState],[WFUserName],[会议室名称],[会议状态],[会议类型],[会议主题],[主办部门],[开始时间],[结束时间],[主持人],[纪要员],[参会人],[会议内容],[其他资源],[申请人],[申请时间],[LD_Id] from 行政_会议管理表  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1671$><$1671:Count$>select count([LD_Id]) from 行政_会议管理表 where {$SearchArea}</$1671:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[AutoPublicJs]='DcxRun.ListR_1671= {"MenuId":2882,"MEntId":1671,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"会议管理","EntMsg":{"E1671":{"EntId":1671,"EntName":"会议管理","KeyFieldValue":"","DBTableName":"","KeyField":"LD_Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1671*LD_Id*2**2*行政_会议管理表*会议管理',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-22 5:16:19',[EditorId]=3,[Editor]='',[EditTime]='2013-11-16 20:06:40',[AccountId]=1 where  [EntId]=1671 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='39454504-b943-0168-4cb0-34027bd473fe'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(212,'39454504-b943-0168-4cb0-34027bd473fe',1671,1671,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="91" entid="1671" style="width: 1908px;" ctrlprex="ListR_" isrple="1"> <li areaid="2001" class="tool-li" style="position: static;">
</li><li areaid="2002" class="tool-li" style="position: static;"><a id="ListR_1671_btn_buildNew" class="list-bt-add" title="添   加" href="javascript:void(0);" onclick="javascript:DcxCom.ShowAddDataDlg(1671,''ListR_'');">添   加</a></li>
<li areaid="2003" class="tool-li" style="position: static;"><a id="ListR_1671_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1671,''ListR_'');">删   除</a></li>
<li areaid="2004" class="tool-li" style="position: static;"><a id="ListR_1671_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1671,''ListR_'');">导   出</a></li>
<li areaid="2005" class="tool-li" style="position: static;"><a id="ListR_1671_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1671,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1671" style="position: static;">
<a id="ListR_1671_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1671,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1671_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1671,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1671_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1671,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1671_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="92" entid="1671" class="list-head-ul" style="width: 1990px;" ctrlprex="ListR_" isrple="1">
<li areaid="2007" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1671" onclick="javascript:DcxCom.CheckedAll(this,1671,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="2008" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">当前状态 </label></li><li areaid="2009" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">当前办理人 </label></li><li areaid="2010" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议室名称 </label></li><li areaid="2011" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议状态 </label></li><li areaid="2012" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议类型 </label></li><li areaid="2013" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议主题 </label></li><li areaid="2014" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">主办部门 </label></li><li areaid="2015" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">开始时间 </label></li><li areaid="2016" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">结束时间 </label></li><li areaid="2017" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">主持人 </label></li><li areaid="2018" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">纪要员 </label></li><li areaid="2019" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">参会人 </label></li><li areaid="2020" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议内容 </label></li><li areaid="2021" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">其他资源 </label></li><li areaid="2022" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请人 </label></li><li areaid="2023" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请时间 </label></li><li areaid="2024" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="2025" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">','',-1,93,-1,-1,1,'1671,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=212,[Report_EntId]=1671,[EntId]=1671,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="91" entid="1671" style="width: 1908px;" ctrlprex="ListR_" isrple="1"> <li areaid="2001" class="tool-li" style="position: static;">
</li><li areaid="2002" class="tool-li" style="position: static;"><a id="ListR_1671_btn_buildNew" class="list-bt-add" title="添   加" href="javascript:void(0);" onclick="javascript:DcxCom.ShowAddDataDlg(1671,''ListR_'');">添   加</a></li>
<li areaid="2003" class="tool-li" style="position: static;"><a id="ListR_1671_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1671,''ListR_'');">删   除</a></li>
<li areaid="2004" class="tool-li" style="position: static;"><a id="ListR_1671_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1671,''ListR_'');">导   出</a></li>
<li areaid="2005" class="tool-li" style="position: static;"><a id="ListR_1671_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1671,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1671" style="position: static;">
<a id="ListR_1671_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1671,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1671_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1671,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1671_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1671,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1671_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="92" entid="1671" class="list-head-ul" style="width: 1990px;" ctrlprex="ListR_" isrple="1">
<li areaid="2007" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1671" onclick="javascript:DcxCom.CheckedAll(this,1671,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="2008" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">当前状态 </label></li><li areaid="2009" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">当前办理人 </label></li><li areaid="2010" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议室名称 </label></li><li areaid="2011" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议状态 </label></li><li areaid="2012" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议类型 </label></li><li areaid="2013" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议主题 </label></li><li areaid="2014" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">主办部门 </label></li><li areaid="2015" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">开始时间 </label></li><li areaid="2016" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">结束时间 </label></li><li areaid="2017" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">主持人 </label></li><li areaid="2018" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">纪要员 </label></li><li areaid="2019" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">参会人 </label></li><li areaid="2020" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议内容 </label></li><li areaid="2021" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">其他资源 </label></li><li areaid="2022" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请人 </label></li><li areaid="2023" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">申请时间 </label></li><li areaid="2024" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="2025" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1671,' where  [FldUId]='39454504-b943-0168-4cb0-34027bd473fe' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='737d893d-32be-40eb-a172-4c84ac32a878'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(154,'737d893d-32be-40eb-a172-4c84ac32a878',1671,1671,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',2,1,'',2,21,0,'','','','islonly="1" isgroup="1" groupid="93" class="list-body-ul" style="width: 1990px;" isrple="1">
<li areaid="2026" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1671" issyscheck="1" keyvalue="','',-1,93,-1,-1,1,'1671,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=154,[Report_EntId]=1671,[EntId]=1671,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='islonly="1" isgroup="1" groupid="93" class="list-body-ul" style="width: 1990px;" isrple="1">
<li areaid="2026" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1671" issyscheck="1" keyvalue="',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1671,' where  [FldUId]='737d893d-32be-40eb-a172-4c84ac32a878' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='86ff9883-f45a-4909-a802-bfbe66fc15c4'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'86ff9883-f45a-4909-a802-bfbe66fc15c4',1671,1671,'00000000-0000-0000-0000-000000000000',2,'WFState',3,1,'varchar',2,1,0,'','','','" type="checkbox"></li><li areaid="2027" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowCurWfDlg(this);">
   <span isfield="1" entid="1671" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1671,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=1,[Report_EntId]=1671,[EntId]=1671,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='WFState',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='" type="checkbox"></li><li areaid="2027" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowCurWfDlg(this);">
   <span isfield="1" entid="1671" fieldname="WFState" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1671,' where  [FldUId]='86ff9883-f45a-4909-a802-bfbe66fc15c4' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='22a47270-0a46-4c53-9f48-f2a7c14cdeeb'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'22a47270-0a46-4c53-9f48-f2a7c14cdeeb',1671,1671,'00000000-0000-0000-0000-000000000000',3,'WFUserName',4,1,'varchar',2,1,0,'','','','</span>
   </a>
  </div>
</li><li areaid="2028" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowWfCurUserDlg(this);">
   <span isfield="1" entid="1671" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1671,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=2,[Report_EntId]=1671,[EntId]=1671,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='WFUserName',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   </a>
  </div>
</li><li areaid="2028" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <a href="javascript:void(0);" onclick="javascript:DcxCom.ShowWfCurUserDlg(this);">
   <span isfield="1" entid="1671" fieldname="WFUserName" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1671,' where  [FldUId]='22a47270-0a46-4c53-9f48-f2a7c14cdeeb' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='c38a6f3e-0ed1-4580-a787-4d676f003379'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'c38a6f3e-0ed1-4580-a787-4d676f003379',1671,1671,'00000000-0000-0000-0000-000000000000',15,'会议室名称',5,1,'varchar',2,1,0,'','','','</span>
   </a>
  </div>
</li><li areaid="2029" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1671" fieldname="会议室名称" fldid="3" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1671,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=3,[Report_EntId]=1671,[EntId]=1671,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=15,[FieldName]='会议室名称',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
   </a>
  </div>
</li><li areaid="2029" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1671" fieldname="会议室名称" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1671,' where  [FldUId]='c38a6f3e-0ed1-4580-a787-4d676f003379' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='b9981ca7-ee99-435a-b959-0b03a1d043e1'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'b9981ca7-ee99-435a-b959-0b03a1d043e1',1671,1671,'00000000-0000-0000-0000-000000000000',24,'会议状态',6,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2030" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1671" fieldname="会议状态" fldid="4" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1671,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=4,[Report_EntId]=1671,[EntId]=1671,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=24,[FieldName]='会议状态',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2030" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1671" fieldname="会议状态" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1671,' where  [FldUId]='b9981ca7-ee99-435a-b959-0b03a1d043e1' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='b3061a3a-9c36-4da2-88eb-0cd3328f12b1'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'b3061a3a-9c36-4da2-88eb-0cd3328f12b1',1671,1671,'00000000-0000-0000-0000-000000000000',13,'会议类型',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2031" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1671" fieldname="会议类型" fldid="5" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1671,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=5,[Report_EntId]=1671,[EntId]=1671,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=13,[FieldName]='会议类型',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2031" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1671" fieldname="会议类型" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1671,' where  [FldUId]='b3061a3a-9c36-4da2-88eb-0cd3328f12b1' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='815dc150-e839-4e01-a3e9-61a7076e81e2'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'815dc150-e839-4e01-a3e9-61a7076e81e2',1671,1671,'00000000-0000-0000-0000-000000000000',12,'会议主题',8,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2032" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1671" fieldname="会议主题" fldid="6" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1671,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=6,[Report_EntId]=1671,[EntId]=1671,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=12,[FieldName]='会议主题',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2032" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1671" fieldname="会议主题" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1671,' where  [FldUId]='815dc150-e839-4e01-a3e9-61a7076e81e2' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='ada0bfa8-46e5-4723-b1f0-a2230ce38d79'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'ada0bfa8-46e5-4723-b1f0-a2230ce38d79',1671,1671,'00000000-0000-0000-0000-000000000000',14,'主办部门',9,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2033" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1671" fieldname="主办部门" fldid="7" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1671,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=7,[Report_EntId]=1671,[EntId]=1671,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=14,[FieldName]='主办部门',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2033" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1671" fieldname="主办部门" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1671,' where  [FldUId]='ada0bfa8-46e5-4723-b1f0-a2230ce38d79' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='f6a9b0cd-cca1-4c50-a4fc-9822bbd0ea23'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'f6a9b0cd-cca1-4c50-a4fc-9822bbd0ea23',1671,1671,'00000000-0000-0000-0000-000000000000',17,'开始时间',10,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2034" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1671" fieldname="开始时间" fldid="8" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1671,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=8,[Report_EntId]=1671,[EntId]=1671,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=17,[FieldName]='开始时间',[FieldNO]=10,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2034" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1671" fieldname="开始时间" fldid="8" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1671,' where  [FldUId]='f6a9b0cd-cca1-4c50-a4fc-9822bbd0ea23' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='59aafced-fc1c-4960-b831-b49a7d81333f'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'59aafced-fc1c-4960-b831-b49a7d81333f',1671,1671,'00000000-0000-0000-0000-000000000000',18,'结束时间',11,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2035" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1671" fieldname="结束时间" fldid="9" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1671,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=9,[Report_EntId]=1671,[EntId]=1671,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=18,[FieldName]='结束时间',[FieldNO]=11,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2035" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1671" fieldname="结束时间" fldid="9" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1671,' where  [FldUId]='59aafced-fc1c-4960-b831-b49a7d81333f' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='d6a936ce-f7d1-49c8-aad5-636ce920a11b'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'d6a936ce-f7d1-49c8-aad5-636ce920a11b',1671,1671,'00000000-0000-0000-0000-000000000000',19,'主持人',12,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2036" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1671" fieldname="主持人" fldid="10" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1671,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=10,[Report_EntId]=1671,[EntId]=1671,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=19,[FieldName]='主持人',[FieldNO]=12,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2036" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1671" fieldname="主持人" fldid="10" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1671,' where  [FldUId]='d6a936ce-f7d1-49c8-aad5-636ce920a11b' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='cb0aaac3-52ec-4de1-8ecc-726de3be7d18'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'cb0aaac3-52ec-4de1-8ecc-726de3be7d18',1671,1671,'00000000-0000-0000-0000-000000000000',20,'纪要员',13,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2037" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1671" fieldname="纪要员" fldid="11" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1671,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=11,[Report_EntId]=1671,[EntId]=1671,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=20,[FieldName]='纪要员',[FieldNO]=13,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2037" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1671" fieldname="纪要员" fldid="11" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1671,' where  [FldUId]='cb0aaac3-52ec-4de1-8ecc-726de3be7d18' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='2770749b-fd25-4111-bb22-218a88ebbe6d'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(12,'2770749b-fd25-4111-bb22-218a88ebbe6d',1671,1671,'00000000-0000-0000-0000-000000000000',21,'参会人',14,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2038" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1671" fieldname="参会人" fldid="12" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1671,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=12,[Report_EntId]=1671,[EntId]=1671,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=21,[FieldName]='参会人',[FieldNO]=14,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2038" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1671" fieldname="参会人" fldid="12" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1671,' where  [FldUId]='2770749b-fd25-4111-bb22-218a88ebbe6d' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='b81455fa-9a19-4a5e-93e1-d854b2996584'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(13,'b81455fa-9a19-4a5e-93e1-d854b2996584',1671,1671,'00000000-0000-0000-0000-000000000000',22,'会议内容',15,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2039" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1671" fieldname="会议内容" fldid="13" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1671,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=13,[Report_EntId]=1671,[EntId]=1671,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=22,[FieldName]='会议内容',[FieldNO]=15,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2039" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1671" fieldname="会议内容" fldid="13" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1671,' where  [FldUId]='b81455fa-9a19-4a5e-93e1-d854b2996584' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='c27348e5-f7bb-48b4-96e1-4826ddbcf151'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(14,'c27348e5-f7bb-48b4-96e1-4826ddbcf151',1671,1671,'00000000-0000-0000-0000-000000000000',23,'其他资源',16,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2040" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1671" fieldname="其他资源" fldid="14" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1671,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=14,[Report_EntId]=1671,[EntId]=1671,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=23,[FieldName]='其他资源',[FieldNO]=16,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2040" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1671" fieldname="其他资源" fldid="14" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1671,' where  [FldUId]='c27348e5-f7bb-48b4-96e1-4826ddbcf151' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='5bda14da-8698-4480-b346-be0f90aa128a'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(15,'5bda14da-8698-4480-b346-be0f90aa128a',1671,1671,'00000000-0000-0000-0000-000000000000',25,'申请人',17,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2041" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1671" fieldname="申请人" fldid="15" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1671,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=15,[Report_EntId]=1671,[EntId]=1671,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=25,[FieldName]='申请人',[FieldNO]=17,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2041" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1671" fieldname="申请人" fldid="15" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1671,' where  [FldUId]='5bda14da-8698-4480-b346-be0f90aa128a' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='9e81881c-e3ee-4b2b-a7b8-2ae9c924fb30'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(16,'9e81881c-e3ee-4b2b-a7b8-2ae9c924fb30',1671,1671,'00000000-0000-0000-0000-000000000000',26,'申请时间',18,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="2042" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1671" fieldname="申请时间" fldid="16" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1671,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=16,[Report_EntId]=1671,[EntId]=1671,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=26,[FieldName]='申请时间',[FieldNO]=18,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2042" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1671" fieldname="申请时间" fldid="16" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1671,' where  [FldUId]='9e81881c-e3ee-4b2b-a7b8-2ae9c924fb30' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='4748fd03-817a-4dd7-bd8b-b25cc1b45243'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(155,'4748fd03-817a-4dd7-bd8b-b25cc1b45243',1671,1671,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',19,1,'',2,21,0,'','','','</span>
  </div>
</li><li areaid="2043" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1671,''ListR_'',''','',-1,93,-1,-1,1,'1671,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=155,[Report_EntId]=1671,[EntId]=1671,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=19,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="2043" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1671,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1671,' where  [FldUId]='4748fd03-817a-4dd7-bd8b-b25cc1b45243' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='901ce217-1903-417a-af1e-f1b1385b15af'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(156,'901ce217-1903-417a-af1e-f1b1385b15af',1671,1671,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',20,1,'',2,21,0,'','','',''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="2044" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,1671,''ListR_'',''','',-1,93,-1,-1,1,'1671,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=156,[Report_EntId]=1671,[EntId]=1671,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=20,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="2044" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,1671,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1671,' where  [FldUId]='901ce217-1903-417a-af1e-f1b1385b15af' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='a72c9d42-15b6-3f37-769c-42712f5ad5f2'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(213,'a72c9d42-15b6-3f37-769c-42712f5ad5f2',1671,1671,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',21,-1,'varchar',2,13,0,'','','',''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>','</div>
</div>
<!-- 结束 --></div>',-1,93,-1,-1,1,'1671,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=213,[Report_EntId]=1671,[EntId]=1671,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=21,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>',[LastHtml]='</div>
</div>
<!-- 结束 --></div>',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1671,' where  [FldUId]='a72c9d42-15b6-3f37-769c-42712f5ad5f2' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=1113

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=1113  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(1113,null,'行政_会议管理表','行政_会议管理表',0,0,0,0,0,1,1,1,3,'admin','2013-12-15 17:32:53',3,'admin','2013-12-15 17:32:53',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='行政_会议管理表',[DBTableByName]='行政_会议管理表',[IsForbid]=0,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=1,[SystemId]=1,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:53',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:53',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=1113 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2573,1,1,1113,'int',1,1,1,'行政_会议管理表','LD_Id','LD_Id','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='LD_Id',[FieldByname]='LD_Id',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2574,2,1,1113,'varchar',2,1,1,'行政_会议管理表','WFState','WFState','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFState',[FieldByname]='WFState',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2575,3,1,1113,'varchar',2,1,1,'行政_会议管理表','WFUserName','WFUserName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFUserName',[FieldByname]='WFUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2576,4,1,1113,'bit',4,1,1,'行政_会议管理表','WFIsFinish','WFIsFinish','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFIsFinish',[FieldByname]='WFIsFinish',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2577,5,1,1113,'bit',4,1,1,'行政_会议管理表','WFIsStart','WFIsStart','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFIsStart',[FieldByname]='WFIsStart',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2578,6,1,1113,'varchar',2,1,1,'行政_会议管理表','WFAllUser','WFAllUser','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFAllUser',[FieldByname]='WFAllUser',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2579,7,1,1113,'varchar',2,1,1,'行政_会议管理表','WFOpinion','WFOpinion','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFOpinion',[FieldByname]='WFOpinion',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2580,8,1,1113,'int',1,1,1,'行政_会议管理表','WFRunId','WFRunId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFRunId',[FieldByname]='WFRunId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2581,9,1,1113,'int',1,1,1,'行政_会议管理表','WFFlowId','WFFlowId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFFlowId',[FieldByname]='WFFlowId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2582,10,1,1113,'int',1,1,1,'行政_会议管理表','WFPrcsId','WFPrcsId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='WFPrcsId',[FieldByname]='WFPrcsId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2583,11,1,1113,'varchar',2,1,1,'行政_会议管理表','会议编号','会议编号','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='会议编号',[FieldByname]='会议编号',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2584,12,1,1113,'varchar',2,1,1,'行政_会议管理表','会议主题','会议主题','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='会议主题',[FieldByname]='会议主题',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2585,13,1,1113,'varchar',2,1,1,'行政_会议管理表','会议类型','会议类型','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='会议类型',[FieldByname]='会议类型',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2586,14,1,1113,'varchar',2,1,1,'行政_会议管理表','主办部门','主办部门','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='主办部门',[FieldByname]='主办部门',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2587,15,1,1113,'varchar',2,1,1,'行政_会议管理表','会议室名称','会议室名称','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='会议室名称',[FieldByname]='会议室名称',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2588,16,1,1113,'varchar',2,1,1,'行政_会议管理表','会议室编号','会议室编号','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='会议室编号',[FieldByname]='会议室编号',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2589,17,1,1113,'datetime',3,1,1,'行政_会议管理表','开始时间','开始时间','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='开始时间',[FieldByname]='开始时间',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2590,18,1,1113,'datetime',3,1,1,'行政_会议管理表','结束时间','结束时间','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='结束时间',[FieldByname]='结束时间',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2591,19,1,1113,'varchar',2,1,1,'行政_会议管理表','主持人','主持人','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='主持人',[FieldByname]='主持人',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2592,20,1,1113,'varchar',2,1,1,'行政_会议管理表','纪要员','纪要员','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='纪要员',[FieldByname]='纪要员',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2593,21,1,1113,'varchar',2,1,1,'行政_会议管理表','参会人','参会人','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='参会人',[FieldByname]='参会人',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2594,22,1,1113,'varchar',2,1,1,'行政_会议管理表','会议内容','会议内容','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='会议内容',[FieldByname]='会议内容',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2595,23,1,1113,'varchar',2,1,1,'行政_会议管理表','其他资源','其他资源','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='其他资源',[FieldByname]='其他资源',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2596,24,1,1113,'varchar',2,1,1,'行政_会议管理表','会议状态','会议状态','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='会议状态',[FieldByname]='会议状态',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2597,25,1,1113,'varchar',2,1,1,'行政_会议管理表','申请人','申请人','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='申请人',[FieldByname]='申请人',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1113  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2598,26,1,1113,'datetime',3,1,1,'行政_会议管理表','申请时间','申请时间','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议管理表',[FieldName]='申请时间',[FieldByname]='申请时间',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1113  and  [FieldId]=26 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=2883  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2883,'26185b52-315b-49dd-abc5-e4c132d0bb44','会议室管理',1972,'/Template/default/ListReport/ListReport_Tree001.aspx',1,'/images/default.gif','/images/default.gif',9,'',null,0,null,1,0,1,1,1,1,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='26185b52-315b-49dd-abc5-e4c132d0bb44',[MenuName]='会议室管理',[ParentId]=1972,[ProPath]='/Template/default/ListReport/ListReport_Tree001.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=9,[Target]='',[IsOpen]=null,[IsHidden]=0,[Remark]=null,[SSystemId]=1,[SMenuId]=0,[SystemId]=1,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=2883 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=2883  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(663,2883,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=2883  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=1672  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(1672,2883,'会议室管理',1,1116,0,'行政_会议室表',0,0,1,1,1672,null,null,1,null,null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=2883,[EntName]='会议室管理',[MEnt]=1,[DBTableId]=1116,[DBConnectId]=0,[DBTableName]='行政_会议室表',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=1,[SEntId]=1672,[FSystemId]=null,[FEntId]=null,[SystemId]=1,[Remark]=null,[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=1672 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=1672

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=1672  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(10805,2883,1672,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=2883,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=1672  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=1672

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1672  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18072,1,2883,1672,13,1,1,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2883,[TemplateId]=13,[ModuleId]=1,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1672  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1672  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18073,1,2883,1672,13,2,9,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2883,[TemplateId]=13,[ModuleId]=9,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1672  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1672  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18074,1,2883,1672,13,3,14,1,4,2,'/Template/Default/Form/AjaxForm/AjaxForm008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2883,[TemplateId]=13,[ModuleId]=14,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='/Template/Default/Form/AjaxForm/AjaxForm008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1672  and  [ModuleTypeId]=3 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1672  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18075,1,2883,1672,13,16,31,1,5,2,'/Template/Default/Browse/Browse008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2883,[TemplateId]=13,[ModuleId]=31,[GroupId]=1,[AreaId]=5,[ShowMode]=2,[AreaUrl]='/Template/Default/Browse/Browse008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1672  and  [ModuleTypeId]=16 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_AjaxForm_Run]  where [EntId]=1672

--Dcx_AjaxForm_Run
      if (select count(1) from [Dcx_AjaxForm_Run] where  [EntId]=1672  )<1 
      begin 
           Insert into [Dcx_AjaxForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('58ea7b48-5327-4123-8699-e943897e07a1','会议室管理',1672,14,'','',0,'','','DcxRun.AjaxF_1672= {"MenuId":2883,"MEntId":1672,"EntName":"会议室管理","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1672":{"EntId":1672,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_1672.EntMsg.E1672.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"行政_会议室表","EntId":1672,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"会议室编号":{"DtId":2,"DB":1,"CId":1,"FL":-1},"会议室名称":{"DtId":2,"DB":1,"CId":1,"FL":-1},"容纳人数":{"DtId":2,"DB":1,"CId":1,"FL":-1},"会议室资源描述":{"DtId":2,"DB":1,"CId":2,"FL":-1},"说明":{"DtId":2,"DB":1,"CId":2,"FL":-1}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_1672.EntMsg.E1672.GetDataRowModel=function()
{
    return {"会议室编号":"","会议室名称":"","容纳人数":"","会议室资源描述":"","说明":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_1672.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1672,''AjaxF_'',buildNew,closeDlg);

}','<$1672$>select [会议室编号],[会议室名称],[容纳人数],[会议室资源描述],[说明],[Id] from 行政_会议室表 where [Id]=''{$keyfieldvalue}''</$1672$>',20,'','','','1672*Id*2**2*行政_会议室表*会议室管理',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 7:02:48',3,'admin','2013-11-16 18:33:47',1)
      end
      else 
      begin 
           update [Dcx_AjaxForm_Run] set [FormId]='58ea7b48-5327-4123-8699-e943897e07a1',[FormName]='会议室管理',[ModuleId]=14,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.AjaxF_1672= {"MenuId":2883,"MEntId":1672,"EntName":"会议室管理","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1672":{"EntId":1672,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_1672.EntMsg.E1672.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"行政_会议室表","EntId":1672,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"会议室编号":{"DtId":2,"DB":1,"CId":1,"FL":-1},"会议室名称":{"DtId":2,"DB":1,"CId":1,"FL":-1},"容纳人数":{"DtId":2,"DB":1,"CId":1,"FL":-1},"会议室资源描述":{"DtId":2,"DB":1,"CId":2,"FL":-1},"说明":{"DtId":2,"DB":1,"CId":2,"FL":-1}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_1672.EntMsg.E1672.GetDataRowModel=function()
{
    return {"会议室编号":"","会议室名称":"","容纳人数":"","会议室资源描述":"","说明":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_1672.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1672,''AjaxF_'',buildNew,closeDlg);

}',[LoadingSql]='<$1672$>select [会议室编号],[会议室名称],[容纳人数],[会议室资源描述],[说明],[Id] from 行政_会议室表 where [Id]=''{$keyfieldvalue}''</$1672$>',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='1672*Id*2**2*行政_会议室表*会议室管理',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 7:02:48',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-16 18:33:47',[AccountId]=1 where  [EntId]=1672 
      end




--Dcx_AjaxFormField_Run
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='ca307534-f965-4e04-a30b-49a564e84c34'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3162,'ca307534-f965-4e04-a30b-49a564e84c34',1672,1672,'00000000-0000-0000-0000-000000000000','会议室编号',2,2,2,'select Substring(cast((case when count(会议室编号)=0 then 0 when count(会议室编号)>0 then   max(cast(会议室编号 as int)) end )+101 as varchar),2,2)  from 行政_会议室表',2,1,null,0,1,1,0,1,-1,0,0,'','','','','<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="1672" groupid="176" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="456" class="li-area-title" scroll="no" style="width: 94px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">会议室管理</span></div>
</li>
<li areaid="457" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
<li areaid="458" class="li-area1" scroll="no" style="display: none; position: static;">
<a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.AjaxF_1672.SubmitForm(false);">
<span class="op_bt_i">保存</span> </a></li>
<li areaid="459" class="li-area1" scroll="no" style="display: none; position: static;">
<a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(1672,''AjaxF_'');"><span class="op_bt_i">新建</span>
</a></li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="177" entid="1672" class="ul-mform" ctrlprex="AjaxF_" isrple="1">
<li areaid="460" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3162" istitle="1">会议室编号 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d1672_会议室编号"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1672,''AjaxF_'',1672,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1672,''AjaxF_'',1672);" EntId="1672" IsField=1 DBField=1 IsPost=1 FieldName="会议室编号" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="1" FId="3162" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1672,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3162,[Form_EntId]=1672,[EntId]=1672,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='会议室编号',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=2,[DefaultValue]='select Substring(cast((case when count(会议室编号)=0 then 0 when count(会议室编号)>0 then   max(cast(会议室编号 as int)) end )+101 as varchar),2,2)  from 行政_会议室表',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="1672" groupid="176" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="456" class="li-area-title" scroll="no" style="width: 94px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">会议室管理</span></div>
</li>
<li areaid="457" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
<li areaid="458" class="li-area1" scroll="no" style="display: none; position: static;">
<a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.AjaxF_1672.SubmitForm(false);">
<span class="op_bt_i">保存</span> </a></li>
<li areaid="459" class="li-area1" scroll="no" style="display: none; position: static;">
<a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(1672,''AjaxF_'');"><span class="op_bt_i">新建</span>
</a></li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="177" entid="1672" class="ul-mform" ctrlprex="AjaxF_" isrple="1">
<li areaid="460" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3162" istitle="1">会议室编号 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1672_会议室编号"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1672,''AjaxF_'',1672,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1672,''AjaxF_'',1672);" EntId="1672" IsField=1 DBField=1 IsPost=1 FieldName="会议室编号" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="1" FId="3162" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1672,' where  [FldUId]='ca307534-f965-4e04-a30b-49a564e84c34' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='fcd50d14-3881-489e-b24e-bd5f238eff8b'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3163,'fcd50d14-3881-489e-b24e-bd5f238eff8b',1672,1672,'00000000-0000-0000-0000-000000000000','会议室名称',2,2,3,'',5,1,null,0,1,1,0,2,-1,0,0,'','','','','</span>
</div>
</li>
<li areaid="461" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3163" istitle="1">会议室名称 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d1672_会议室名称"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1672,''AjaxF_'',1672,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1672,''AjaxF_'',1672);" EntId="1672" IsField=1 DBField=1 IsPost=1 FieldName="会议室名称" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="3163" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1672,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3163,[Form_EntId]=1672,[EntId]=1672,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='会议室名称',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=3,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=2,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="461" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3163" istitle="1">会议室名称 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1672_会议室名称"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1672,''AjaxF_'',1672,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1672,''AjaxF_'',1672);" EntId="1672" IsField=1 DBField=1 IsPost=1 FieldName="会议室名称" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="3163" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1672,' where  [FldUId]='fcd50d14-3881-489e-b24e-bd5f238eff8b' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='cc6e9f09-997e-42ca-b329-488ad562aa0c'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3164,'cc6e9f09-997e-42ca-b329-488ad562aa0c',1672,1672,'00000000-0000-0000-0000-000000000000','容纳人数',2,2,4,'',5,1,null,0,1,1,0,3,-1,0,0,'','','','','</span>
</div>
</li>
<li areaid="462" style="height: 38px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3164">容纳人数  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1672_容纳人数"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1672,''AjaxF_'',1672,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1672,''AjaxF_'',1672);" EntId="1672" IsField=1 DBField=1 IsPost=1 FieldName="容纳人数" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="3164" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1672,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3164,[Form_EntId]=1672,[EntId]=1672,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='容纳人数',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=4,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=3,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="462" style="height: 38px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3164">容纳人数  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1672_容纳人数"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1672,''AjaxF_'',1672,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1672,''AjaxF_'',1672);" EntId="1672" IsField=1 DBField=1 IsPost=1 FieldName="容纳人数" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="3164" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1672,' where  [FldUId]='cc6e9f09-997e-42ca-b329-488ad562aa0c' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='1601316c-702e-42a3-8974-7d038c640c30'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3165,'1601316c-702e-42a3-8974-7d038c640c30',1672,1672,'00000000-0000-0000-0000-000000000000','会议室资源描述',2,2,5,'',5,1,null,0,2,1,0,4,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="463" style="height: 138px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3165">会议室资源描述  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1672_会议室资源描述" class="form-txts"  style="width:432px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1672,''AjaxF_'',1672,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1672,''AjaxF_'',1672);" EntId="1672" IsField=1 DBField=1 IsPost=1 FieldName="会议室资源描述" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="3165" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1672,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3165,[Form_EntId]=1672,[EntId]=1672,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='会议室资源描述',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=5,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=4,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="463" style="height: 138px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3165">会议室资源描述  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1672_会议室资源描述" class="form-txts"  style="width:432px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1672,''AjaxF_'',1672,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1672,''AjaxF_'',1672);" EntId="1672" IsField=1 DBField=1 IsPost=1 FieldName="会议室资源描述" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="3165" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1672,' where  [FldUId]='1601316c-702e-42a3-8974-7d038c640c30' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='c06eeff5-9808-4ee9-841d-23d15f52ab53'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3166,'c06eeff5-9808-4ee9-841d-23d15f52ab53',1672,1672,'00000000-0000-0000-0000-000000000000','说明',2,2,6,'',5,1,null,0,2,1,0,5,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="464" style="height: 138px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3166">说明  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','</span>
  </div>
</li>
</ul>
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="178" entid="1672" class="tab_ul" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="465" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li areaid="466" istab="1" tabid="2" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1" style="display: none;">
<ul isgroup="1" groupid="179" entid="1672" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="467" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: block;">
<ul isgroup="1" groupid="180" entid="1672" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="468" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="1672" groupid="181" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="469" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
<li areaid="470" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>','','','<textarea  id="d1672_说明" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1672,''AjaxF_'',1672,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1672,''AjaxF_'',1672);" EntId="1672" IsField=1 DBField=1 IsPost=1 FieldName="说明" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="3166" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1672,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3166,[Form_EntId]=1672,[EntId]=1672,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='说明',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=6,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=5,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="464" style="height: 138px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3166">说明  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
  </div>
</li>
</ul>
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="178" entid="1672" class="tab_ul" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="465" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li areaid="466" istab="1" tabid="2" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1" style="display: none;">
<ul isgroup="1" groupid="179" entid="1672" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="467" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: block;">
<ul isgroup="1" groupid="180" entid="1672" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="468" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="1672" groupid="181" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="469" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
<li areaid="470" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1672_说明" class="form-txts"  style="width:225px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,1672,''AjaxF_'',1672,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1672,''AjaxF_'',1672);" EntId="1672" IsField=1 DBField=1 IsPost=1 FieldName="说明" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="3166" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1672,' where  [FldUId]='c06eeff5-9808-4ee9-841d-23d15f52ab53' 
      end



Delete from [Dcx_SearchForm_Run]  where [EntId]=1672

--Dcx_SearchForm_Run
      if (select count(1) from [Dcx_SearchForm_Run] where  [EntId]=1672  )<1 
      begin 
           Insert into [Dcx_SearchForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('d78919ec-4091-48df-b643-d0ff1dc19076','会议室管理',1672,9,'','',0,'','','DcxRun.SearchF_1672= {"MenuId":2883,"MEntId":1672,"EntName":"会议室管理","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1672":{"EntId":1672,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_1672.EntMsg.E1672.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"行政_会议室表","EntId":1672,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"会议室名称":{"DtId":2,"DB":1,"CId":1,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.SearchF_1672.EntMsg.E1672.GetDataRowModel=function()
{
    return {"会议室名称":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_1672.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1672,''SearchF_'',buildNew,closeDlg);

}','',20,'','','','1672*Id*2**2*行政_会议室表*会议室管理',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 5:45:57',3,'admin','2013-11-16 17:36:06',1)
      end
      else 
      begin 
           update [Dcx_SearchForm_Run] set [FormId]='d78919ec-4091-48df-b643-d0ff1dc19076',[FormName]='会议室管理',[ModuleId]=9,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.SearchF_1672= {"MenuId":2883,"MEntId":1672,"EntName":"会议室管理","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1672":{"EntId":1672,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_1672.EntMsg.E1672.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"行政_会议室表","EntId":1672,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"会议室名称":{"DtId":2,"DB":1,"CId":1,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.SearchF_1672.EntMsg.E1672.GetDataRowModel=function()
{
    return {"会议室名称":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_1672.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1672,''SearchF_'',buildNew,closeDlg);

}',[LoadingSql]='',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='1672*Id*2**2*行政_会议室表*会议室管理',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 5:45:57',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-16 17:36:06',[AccountId]=1 where  [EntId]=1672 
      end




--Dcx_SearchFormField_Run
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='06f4e638-460a-4fd1-9081-4ceb6a902d67'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'06f4e638-460a-4fd1-9081-4ceb6a902d67',1672,1672,'00000000-0000-0000-0000-000000000000',1,'Like','会议室名称',2,2,3,'',5,1,1,0,1,1,0,-1,1,0,'','','','','<div class="searchform">
<ul class="search-block w920" entid="1672" isgroup="1" groupid="27" ctrlprex="SearchF_" isrple="1">
<li style="position: static;" class="search-li w270 h32" scroll="no" areaid="53"><label class="search-title pad7" fldid="1" istitle="1">会议室名称</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">','</span> </div></li>
<li style="position: static;" class="search-li w100 h32" scroll="no" areaid="54">
<div class="searchform-button" onclick="javascript:return VL_Search(1672);">
<div class="search-btn">&nbsp;</div><a id="1672_searchBT" href="javascript:void(0);">搜索</a> </div></li></ul></div>','','','<input  id="d1672_会议室名称"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1672,''SearchF_'',1672,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1672,''SearchF_'',1672);" EntId="1672" IsField=1 DBField=1 IsPost=1 FieldName="会议室名称" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'1672,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=1,[Form_EntId]=1672,[EntId]=1672,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[CompareOperatorType]='Like',[FieldName]='会议室名称',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=3,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="searchform">
<ul class="search-block w920" entid="1672" isgroup="1" groupid="27" ctrlprex="SearchF_" isrple="1">
<li style="position: static;" class="search-li w270 h32" scroll="no" areaid="53"><label class="search-title pad7" fldid="1" istitle="1">会议室名称</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">',[LastHtml]='</span> </div></li>
<li style="position: static;" class="search-li w100 h32" scroll="no" areaid="54">
<div class="searchform-button" onclick="javascript:return VL_Search(1672);">
<div class="search-btn">&nbsp;</div><a id="1672_searchBT" href="javascript:void(0);">搜索</a> </div></li></ul></div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1672_会议室名称"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,1672,''SearchF_'',1672,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1672,''SearchF_'',1672);" EntId="1672" IsField=1 DBField=1 IsPost=1 FieldName="会议室名称" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1672,' where  [FldUId]='06f4e638-460a-4fd1-9081-4ceb6a902d67' 
      end



Delete from [Dcx_BrowseReport_Run]  where [EntId]=1672

--Dcx_BrowseReport_Run
      if (select count(1) from [Dcx_BrowseReport_Run] where  [EntId]=1672  )<1 
      begin 
           Insert into [Dcx_BrowseReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[DIYJsCss],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('47e5678f-a7e0-4f20-b6bb-5f76ee7cb617','会议室管理',1672,31,'','<$1672$>select [会议室编号],[会议室名称],[容纳人数],[会议室资源描述],[说明],[Id] from 行政_会议室表 where [Id]=''{$keyfieldvalue}''</$1672$>',1,1,20,'','DcxRun.MChildR_1672= {"MenuId":2883,"MEntId":1672,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"会议室管理","EntMsg":{"E1672":{"EntId":1672,"EntName":"会议室管理","KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1672*Id*2**2*行政_会议室表*会议室管理',3,'','2012-12-21 11:03:02',3,'','2013-11-17 2:53:17',1)
      end
      else 
      begin 
           update [Dcx_BrowseReport_Run] set [ReportId]='47e5678f-a7e0-4f20-b6bb-5f76ee7cb617',[ReportName]='会议室管理',[ModuleId]=31,[StaticHtml]='',[LoadingSql]='<$1672$>select [会议室编号],[会议室名称],[容纳人数],[会议室资源描述],[说明],[Id] from 行政_会议室表 where [Id]=''{$keyfieldvalue}''</$1672$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[DIYJsCss]='',[AutoPublicJs]='DcxRun.MChildR_1672= {"MenuId":2883,"MEntId":1672,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"会议室管理","EntMsg":{"E1672":{"EntId":1672,"EntName":"会议室管理","KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1672*Id*2**2*行政_会议室表*会议室管理',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-21 11:03:02',[EditorId]=3,[Editor]='',[EditTime]='2013-11-17 2:53:17',[AccountId]=1 where  [EntId]=1672 
      end




--Dcx_BrowseReportField_Run
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='5422c6eb-fd4d-409c-a16d-cea5d885e5ce'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'5422c6eb-fd4d-409c-a16d-cea5d885e5ce',1672,1672,'00000000-0000-0000-0000-000000000000',2,'会议室编号',1,1,'varchar',2,1,0,'','','','<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1672" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="365" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">会议室管理</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1672" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="366" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">会议室编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1672" fieldname="会议室编号" fldid="1" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1672,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=1,[Report_EntId]=1672,[EntId]=1672,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='会议室编号',[FieldNO]=1,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1672" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="365" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">会议室管理</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1672" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="366" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">会议室编号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1672" fieldname="会议室编号" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1672,' where  [FldUId]='5422c6eb-fd4d-409c-a16d-cea5d885e5ce' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='920d3f32-2582-438f-98a7-1bfd418788ef'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'920d3f32-2582-438f-98a7-1bfd418788ef',1672,1672,'00000000-0000-0000-0000-000000000000',3,'会议室名称',2,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="367" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">会议室名称  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1672" fieldname="会议室名称" fldid="2" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1672,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=2,[Report_EntId]=1672,[EntId]=1672,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='会议室名称',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="367" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">会议室名称  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1672" fieldname="会议室名称" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1672,' where  [FldUId]='920d3f32-2582-438f-98a7-1bfd418788ef' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='fdb58d3b-38c3-4df9-bfc4-baa4850c34bf'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'fdb58d3b-38c3-4df9-bfc4-baa4850c34bf',1672,1672,'00000000-0000-0000-0000-000000000000',4,'容纳人数',3,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="368" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">容纳人数  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1672" fieldname="容纳人数" fldid="3" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1672,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=3,[Report_EntId]=1672,[EntId]=1672,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=4,[FieldName]='容纳人数',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="368" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">容纳人数  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1672" fieldname="容纳人数" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1672,' where  [FldUId]='fdb58d3b-38c3-4df9-bfc4-baa4850c34bf' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='0a62cf0a-f095-45b0-aa15-102aa712ff13'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'0a62cf0a-f095-45b0-aa15-102aa712ff13',1672,1672,'00000000-0000-0000-0000-000000000000',5,'会议室资源描述',4,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="369" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">会议室资源描述  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1672" fieldname="会议室资源描述" fldid="4" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1672,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=4,[Report_EntId]=1672,[EntId]=1672,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=5,[FieldName]='会议室资源描述',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="369" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">会议室资源描述  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1672" fieldname="会议室资源描述" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1672,' where  [FldUId]='0a62cf0a-f095-45b0-aa15-102aa712ff13' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='c293dd54-3720-48de-aab4-e77efba58a7a'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'c293dd54-3720-48de-aab4-e77efba58a7a',1672,1672,'00000000-0000-0000-0000-000000000000',6,'说明',5,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="370" style="height: 38px; width: 792px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">说明  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1672" fieldname="说明" fldid="5" columntypeid="1" class="form-ctr">','</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1672" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="375" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="376" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1672" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="377" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1672" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="378" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1672" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="379" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="380" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',-1,-1,-1,-1,0,'1672,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=5,[Report_EntId]=1672,[EntId]=1672,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=6,[FieldName]='说明',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="370" style="height: 38px; width: 792px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">说明  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1672" fieldname="说明" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1672" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="375" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="376" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1672" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="377" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1672" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="378" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1672" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="379" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="380" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1672,' where  [FldUId]='c293dd54-3720-48de-aab4-e77efba58a7a' 
      end



Delete from [Dcx_ListReport_Run]  where [EntId]=1672

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=1672  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('598a8ce2-032f-4e88-9c08-8bee618336c6','会议室管理',1672,1,'','','<$1672$>select *  from (select row_number() over( order by [Id])as dcx_rowid,[会议室编号],[会议室名称],[容纳人数],[会议室资源描述],[说明],[Id] from 行政_会议室表  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1672$><$1672:Count$>select count([Id]) from 行政_会议室表 where {$SearchArea}</$1672:Count$>',1,1,20,'DcxRun.ListR_1672= {"MenuId":2883,"MEntId":1672,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"会议室管理","EntMsg":{"E1672":{"EntId":1672,"EntName":"会议室管理","KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1672*Id*2**2*行政_会议室表*会议室管理',3,'','2012-12-22 5:16:19',3,'','2013-11-16 20:06:41',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='598a8ce2-032f-4e88-9c08-8bee618336c6',[ReportName]='会议室管理',[ModuleId]=1,[StaticHtml]='',[DIYJsCss]='',[LoadingSql]='<$1672$>select *  from (select row_number() over( order by [Id])as dcx_rowid,[会议室编号],[会议室名称],[容纳人数],[会议室资源描述],[说明],[Id] from 行政_会议室表  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1672$><$1672:Count$>select count([Id]) from 行政_会议室表 where {$SearchArea}</$1672:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[AutoPublicJs]='DcxRun.ListR_1672= {"MenuId":2883,"MEntId":1672,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"会议室管理","EntMsg":{"E1672":{"EntId":1672,"EntName":"会议室管理","KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1672*Id*2**2*行政_会议室表*会议室管理',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-22 5:16:19',[EditorId]=3,[Editor]='',[EditTime]='2013-11-16 20:06:41',[AccountId]=1 where  [EntId]=1672 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='db4d4e3c-4c10-5395-affc-41d202215568'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(212,'db4d4e3c-4c10-5395-affc-41d202215568',1672,1672,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="91" entid="1672" style="width: 730px;" ctrlprex="ListR_" isrple="1"> <li areaid="1077" class="tool-li" style="position: static;">
</li><li areaid="1078" class="tool-li" style="position: static;"><a id="ListR_1672_btn_buildNew" class="list-bt-add" title="添   加" href="javascript:void(0);" onclick="javascript:DcxCom.ShowAddDataDlg(1672,''ListR_'');">添   加</a></li>
<li areaid="1079" class="tool-li" style="position: static;"><a id="ListR_1672_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1672,''ListR_'');">删   除</a></li>
<li areaid="1080" class="tool-li" style="position: static;"><a id="ListR_1672_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1672,''ListR_'');">导   出</a></li>
<li areaid="1081" class="tool-li" style="position: static;"><a id="ListR_1672_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1672,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1672" style="position: static;">
<a id="ListR_1672_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1672,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1672_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1672,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1672_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1672,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1672_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="92" entid="1672" class="list-head-ul" style="width: 726px;" ctrlprex="ListR_" isrple="1">
<li areaid="1083" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1672" onclick="javascript:DcxCom.CheckedAll(this,1672,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="1084" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议室编号 </label></li><li areaid="1085" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议室名称 </label></li><li areaid="1086" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">容纳人数 </label></li><li areaid="1087" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议室资源描述 </label></li><li areaid="1088" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">说明 </label></li><li areaid="1089" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="编辑"><span class="i">编辑</span></a></div></li><li areaid="1090" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="1091" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">','',-1,93,-1,-1,1,'1672,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=212,[Report_EntId]=1672,[EntId]=1672,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="91" entid="1672" style="width: 730px;" ctrlprex="ListR_" isrple="1"> <li areaid="1077" class="tool-li" style="position: static;">
</li><li areaid="1078" class="tool-li" style="position: static;"><a id="ListR_1672_btn_buildNew" class="list-bt-add" title="添   加" href="javascript:void(0);" onclick="javascript:DcxCom.ShowAddDataDlg(1672,''ListR_'');">添   加</a></li>
<li areaid="1079" class="tool-li" style="position: static;"><a id="ListR_1672_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1672,''ListR_'');">删   除</a></li>
<li areaid="1080" class="tool-li" style="position: static;"><a id="ListR_1672_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1672,''ListR_'');">导   出</a></li>
<li areaid="1081" class="tool-li" style="position: static;"><a id="ListR_1672_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1672,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1672" style="position: static;">
<a id="ListR_1672_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1672,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1672_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1672,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1672_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1672,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1672_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="92" entid="1672" class="list-head-ul" style="width: 726px;" ctrlprex="ListR_" isrple="1">
<li areaid="1083" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1672" onclick="javascript:DcxCom.CheckedAll(this,1672,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="1084" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议室编号 </label></li><li areaid="1085" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议室名称 </label></li><li areaid="1086" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">容纳人数 </label></li><li areaid="1087" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">会议室资源描述 </label></li><li areaid="1088" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">说明 </label></li><li areaid="1089" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="编辑"><span class="i">编辑</span></a></div></li><li areaid="1090" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="1091" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1672,' where  [FldUId]='db4d4e3c-4c10-5395-affc-41d202215568' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='b8eb458f-99ee-4d46-96b2-5a42cd35b640'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(154,'b8eb458f-99ee-4d46-96b2-5a42cd35b640',1672,1672,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',2,1,'',2,21,0,'','','','islonly="1" isgroup="1" groupid="93" class="list-body-ul" style="width: 726px;" isrple="1">
<li areaid="1092" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1672" issyscheck="1" keyvalue="','',-1,93,-1,-1,1,'1672,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=154,[Report_EntId]=1672,[EntId]=1672,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='islonly="1" isgroup="1" groupid="93" class="list-body-ul" style="width: 726px;" isrple="1">
<li areaid="1092" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1672" issyscheck="1" keyvalue="',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1672,' where  [FldUId]='b8eb458f-99ee-4d46-96b2-5a42cd35b640' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='f0765596-4921-4782-b7d9-4eef41b3fe30'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'f0765596-4921-4782-b7d9-4eef41b3fe30',1672,1672,'00000000-0000-0000-0000-000000000000',2,'会议室编号',3,1,'varchar',2,1,0,'','','','" type="checkbox"></li><li areaid="1093" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1672" fieldname="会议室编号" fldid="1" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1672,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=1,[Report_EntId]=1672,[EntId]=1672,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='会议室编号',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='" type="checkbox"></li><li areaid="1093" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1672" fieldname="会议室编号" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1672,' where  [FldUId]='f0765596-4921-4782-b7d9-4eef41b3fe30' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='b40d9814-c8eb-4ff0-a8aa-2554a5ed3d6e'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'b40d9814-c8eb-4ff0-a8aa-2554a5ed3d6e',1672,1672,'00000000-0000-0000-0000-000000000000',3,'会议室名称',4,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1094" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1672" fieldname="会议室名称" fldid="2" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1672,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=2,[Report_EntId]=1672,[EntId]=1672,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='会议室名称',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1094" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1672" fieldname="会议室名称" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1672,' where  [FldUId]='b40d9814-c8eb-4ff0-a8aa-2554a5ed3d6e' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='70ac7881-5c94-423a-8afb-d6628d8538f7'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'70ac7881-5c94-423a-8afb-d6628d8538f7',1672,1672,'00000000-0000-0000-0000-000000000000',4,'容纳人数',5,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1095" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1672" fieldname="容纳人数" fldid="3" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1672,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=3,[Report_EntId]=1672,[EntId]=1672,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=4,[FieldName]='容纳人数',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1095" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1672" fieldname="容纳人数" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1672,' where  [FldUId]='70ac7881-5c94-423a-8afb-d6628d8538f7' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='1ebc9839-961c-49f2-8dbe-3c0a31d476be'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'1ebc9839-961c-49f2-8dbe-3c0a31d476be',1672,1672,'00000000-0000-0000-0000-000000000000',5,'会议室资源描述',6,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1096" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1672" fieldname="会议室资源描述" fldid="4" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1672,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=4,[Report_EntId]=1672,[EntId]=1672,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=5,[FieldName]='会议室资源描述',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1096" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1672" fieldname="会议室资源描述" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1672,' where  [FldUId]='1ebc9839-961c-49f2-8dbe-3c0a31d476be' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='1efb9b86-5749-40d8-ac14-ea6b6897498d'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'1efb9b86-5749-40d8-ac14-ea6b6897498d',1672,1672,'00000000-0000-0000-0000-000000000000',6,'说明',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1097" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1672" fieldname="说明" fldid="5" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1672,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=5,[Report_EntId]=1672,[EntId]=1672,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=6,[FieldName]='说明',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1097" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1672" fieldname="说明" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1672,' where  [FldUId]='1efb9b86-5749-40d8-ac14-ea6b6897498d' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='e6ab4678-194d-4b0c-8ab3-9946985b3437'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(155,'e6ab4678-194d-4b0c-8ab3-9946985b3437',1672,1672,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',8,1,'',2,21,0,'','','','</span>
  </div>
</li><li areaid="1098" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,1672,''ListR_'',''','',-1,93,-1,-1,1,'1672,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=155,[Report_EntId]=1672,[EntId]=1672,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1098" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,1672,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1672,' where  [FldUId]='e6ab4678-194d-4b0c-8ab3-9946985b3437' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='bd4bd490-0093-43f3-946f-4a56aaa0f191'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(156,'bd4bd490-0093-43f3-946f-4a56aaa0f191',1672,1672,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',9,1,'',2,21,0,'','','',''',null,1040,480);">
<span class="i">编辑</span></a></div>
</li><li areaid="1099" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1672,''ListR_'',''','',-1,93,-1,-1,1,'1672,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=156,[Report_EntId]=1672,[EntId]=1672,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">编辑</span></a></div>
</li><li areaid="1099" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1672,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1672,' where  [FldUId]='bd4bd490-0093-43f3-946f-4a56aaa0f191' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='cf4cf554-7779-41b6-b644-41871d410b2c'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(157,'cf4cf554-7779-41b6-b644-41871d410b2c',1672,1672,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',10,1,'',2,21,0,'','','',''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="1100" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,1672,''ListR_'',''','',-1,93,-1,-1,1,'1672,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=157,[Report_EntId]=1672,[EntId]=1672,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=10,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="1100" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,1672,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1672,' where  [FldUId]='cf4cf554-7779-41b6-b644-41871d410b2c' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='e32728c0-6157-e658-f8a3-a39dae378665'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(213,'e32728c0-6157-e658-f8a3-a39dae378665',1672,1672,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',11,-1,'varchar',2,13,0,'','','',''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>','</div>
</div>
<!-- 结束 --></div>',-1,93,-1,-1,1,'1672,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=213,[Report_EntId]=1672,[EntId]=1672,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=11,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>',[LastHtml]='</div>
</div>
<!-- 结束 --></div>',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1672,' where  [FldUId]='e32728c0-6157-e658-f8a3-a39dae378665' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=1116

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=1116  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(1116,null,'行政_会议室表','行政_会议室表',0,0,0,0,0,0,1,1,3,'admin','2013-12-15 17:32:53',3,'admin','2013-12-15 17:32:53',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='行政_会议室表',[DBTableByName]='行政_会议室表',[IsForbid]=0,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=1,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:53',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:53',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=1116 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1116  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2624,1,1,1116,'int',1,1,1,'行政_会议室表','Id','Id','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议室表',[FieldName]='Id',[FieldByname]='Id',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1116  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1116  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2625,2,1,1116,'varchar',2,1,1,'行政_会议室表','会议室编号','会议室编号','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议室表',[FieldName]='会议室编号',[FieldByname]='会议室编号',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1116  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1116  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2626,3,1,1116,'varchar',2,1,1,'行政_会议室表','会议室名称','会议室名称','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议室表',[FieldName]='会议室名称',[FieldByname]='会议室名称',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1116  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1116  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2627,4,1,1116,'varchar',2,1,1,'行政_会议室表','容纳人数','容纳人数','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议室表',[FieldName]='容纳人数',[FieldByname]='容纳人数',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1116  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1116  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2628,5,1,1116,'varchar',2,1,1,'行政_会议室表','会议室资源描述','会议室资源描述','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议室表',[FieldName]='会议室资源描述',[FieldByname]='会议室资源描述',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1116  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1116  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(2629,6,1,1116,'varchar',2,1,1,'行政_会议室表','说明','说明','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='行政_会议室表',[FieldName]='说明',[FieldByname]='说明',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1116  and  [FieldId]=6 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=2884  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2884,'de62ae3c-8511-475f-bd00-528fab972fdf','会议类型',1972,'/Template/default/ListReport/ListReport_Tree001.aspx',1,'/images/default.gif','/images/default.gif',10,'',null,0,null,1,0,1,1,1,1,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='de62ae3c-8511-475f-bd00-528fab972fdf',[MenuName]='会议类型',[ParentId]=1972,[ProPath]='/Template/default/ListReport/ListReport_Tree001.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=10,[Target]='',[IsOpen]=null,[IsHidden]=0,[Remark]=null,[SSystemId]=1,[SMenuId]=0,[SystemId]=1,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=2884 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=2884  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(664,2884,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=2884  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=1673  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(1673,2884,'会议类型',1,772,0,'参数表',0,0,1,1,1673,null,null,1,null,null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=2884,[EntName]='会议类型',[MEnt]=1,[DBTableId]=772,[DBConnectId]=0,[DBTableName]='参数表',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=1,[SEntId]=1673,[FSystemId]=null,[FEntId]=null,[SystemId]=1,[Remark]=null,[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=1673 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=1673

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=1673  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(10806,2884,1673,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=2884,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=1673  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=1673

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1673  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18076,1,2884,1673,13,1,1,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2884,[TemplateId]=13,[ModuleId]=1,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1673  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1673  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18077,1,2884,1673,13,2,9,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2884,[TemplateId]=13,[ModuleId]=9,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1673  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1673  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18078,1,2884,1673,13,3,14,1,4,2,'/Template/Default/Form/AjaxForm/AjaxForm008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2884,[TemplateId]=13,[ModuleId]=14,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='/Template/Default/Form/AjaxForm/AjaxForm008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1673  and  [ModuleTypeId]=3 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1673  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(18079,1,2884,1673,13,16,31,1,5,2,'/Template/Default/Browse/Browse008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=1,[MenuId]=2884,[TemplateId]=13,[ModuleId]=31,[GroupId]=1,[AreaId]=5,[ShowMode]=2,[AreaUrl]='/Template/Default/Browse/Browse008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1673  and  [ModuleTypeId]=16 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_AjaxForm_Run]  where [EntId]=1673

--Dcx_AjaxForm_Run
      if (select count(1) from [Dcx_AjaxForm_Run] where  [EntId]=1673  )<1 
      begin 
           Insert into [Dcx_AjaxForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('1f165d6c-82b5-420f-99ac-3f388c8f9637','会议类型',1673,14,'','',0,'','','DcxRun.AjaxF_1673= {"MenuId":2884,"MEntId":1673,"EntName":"会议类型","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1673":{"EntId":1673,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_1673.EntMsg.E1673.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"参数表","EntId":1673,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"参数类型":{"DtId":2,"DB":1,"CId":4,"FL":-1},"参数文本值":{"DtId":2,"DB":1,"CId":1,"FL":-1}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_1673.EntMsg.E1673.GetDataRowModel=function()
{
    return {"参数类型":"会议类型","参数文本值":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_1673.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1673,''AjaxF_'',buildNew,closeDlg);

}','<$1673$>select [参数类型],[参数文本值],[Id] from 参数表 where [Id]=''{$keyfieldvalue}''</$1673$>',20,'','','','1673*Id*2**2*参数表*会议类型',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 7:02:48',3,'admin','2013-11-16 18:33:48',1)
      end
      else 
      begin 
           update [Dcx_AjaxForm_Run] set [FormId]='1f165d6c-82b5-420f-99ac-3f388c8f9637',[FormName]='会议类型',[ModuleId]=14,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.AjaxF_1673= {"MenuId":2884,"MEntId":1673,"EntName":"会议类型","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1673":{"EntId":1673,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_1673.EntMsg.E1673.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"参数表","EntId":1673,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"参数类型":{"DtId":2,"DB":1,"CId":4,"FL":-1},"参数文本值":{"DtId":2,"DB":1,"CId":1,"FL":-1}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_1673.EntMsg.E1673.GetDataRowModel=function()
{
    return {"参数类型":"会议类型","参数文本值":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_1673.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1673,''AjaxF_'',buildNew,closeDlg);

}',[LoadingSql]='<$1673$>select [参数类型],[参数文本值],[Id] from 参数表 where [Id]=''{$keyfieldvalue}''</$1673$>',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='1673*Id*2**2*参数表*会议类型',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 7:02:48',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-16 18:33:48',[AccountId]=1 where  [EntId]=1673 
      end




--Dcx_AjaxFormField_Run
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='35da1bbd-616e-4d4f-bf6b-065193e3d04c'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3167,'35da1bbd-616e-4d4f-bf6b-065193e3d04c',1673,1673,'00000000-0000-0000-0000-000000000000','参数类型',2,2,2,'会议类型',5,9,null,0,4,1,0,1,-1,0,0,'','','','','<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="1673" groupid="176" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="351" class="li-area-title" scroll="no" style="width: 77px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">会议类型</span></div>
</li>
<li areaid="352" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
<li areaid="353" class="li-area1" scroll="no" style="display: none; position: static;">
<a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.AjaxF_1673.SubmitForm(false);">
<span class="op_bt_i">保存</span> </a></li>
<li areaid="354" class="li-area1" scroll="no" style="display: none; position: static;">
<a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(1673,''AjaxF_'');"><span class="op_bt_i">新建</span>
</a></li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="177" entid="1673" class="ul-mform" ctrlprex="AjaxF_" isrple="1">
<li areaid="355" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3167" istitle="1">参数类型 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d1673_参数类型" class="form-lbl" style="width:201px;" IsForField=1 EntId="1673" CId="4" FId="3167" Vtp="5"  >','</span><input id="d1673_参数类型_hid" type="hidden"  EntId="1673" IsField=1 DBField=1 IsPost=1 FieldName="参数类型" dType="2" Vtp="5" RDT="2" Isc="0" RId="9" CId="4" FId="3167" vlk=0    value="','" />',-1,-1,-1,-1,0,'1673,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3167,[Form_EntId]=1673,[EntId]=1673,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='参数类型',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=2,[DefaultValue]='会议类型',[ValueType]=5,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="1673" groupid="176" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="351" class="li-area-title" scroll="no" style="width: 77px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">会议类型</span></div>
</li>
<li areaid="352" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
<li areaid="353" class="li-area1" scroll="no" style="display: none; position: static;">
<a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.AjaxF_1673.SubmitForm(false);">
<span class="op_bt_i">保存</span> </a></li>
<li areaid="354" class="li-area1" scroll="no" style="display: none; position: static;">
<a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(1673,''AjaxF_'');"><span class="op_bt_i">新建</span>
</a></li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="177" entid="1673" class="ul-mform" ctrlprex="AjaxF_" isrple="1">
<li areaid="355" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3167" istitle="1">参数类型 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1673_参数类型" class="form-lbl" style="width:201px;" IsForField=1 EntId="1673" CId="4" FId="3167" Vtp="5"  >',[CtrlbackHtml]='</span><input id="d1673_参数类型_hid" type="hidden"  EntId="1673" IsField=1 DBField=1 IsPost=1 FieldName="参数类型" dType="2" Vtp="5" RDT="2" Isc="0" RId="9" CId="4" FId="3167" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1673,' where  [FldUId]='35da1bbd-616e-4d4f-bf6b-065193e3d04c' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='dcab0831-8119-475e-a415-8c5a519033fd'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3168,'dcab0831-8119-475e-a415-8c5a519033fd',1673,1673,'00000000-0000-0000-0000-000000000000','参数文本值',2,2,3,'',5,1,null,0,1,1,0,2,-1,0,0,'','','','','</span>
</div>
</li>
<li areaid="356" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3168" istitle="1">参数文本值 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','</span>
</div>
</li>
</ul>
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="178" entid="1673" class="tab_ul" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="357" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li areaid="358" istab="1" tabid="2" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1" style="display: none;">
<ul isgroup="1" groupid="179" entid="1673" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="359" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: block;">
<ul isgroup="1" groupid="180" entid="1673" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="360" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="1673" groupid="181" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="361" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
<li areaid="362" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>','','','<input  id="d1673_参数文本值"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1673,''AjaxF_'',1673,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1673,''AjaxF_'',1673);" EntId="1673" IsField=1 DBField=1 IsPost=1 FieldName="参数文本值" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="3168" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1673,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3168,[Form_EntId]=1673,[EntId]=1673,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='参数文本值',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=3,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=2,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="356" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="3168" istitle="1">参数文本值 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
</div>
</li>
</ul>
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="178" entid="1673" class="tab_ul" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="357" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li areaid="358" istab="1" tabid="2" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1" style="display: none;">
<ul isgroup="1" groupid="179" entid="1673" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="359" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: block;">
<ul isgroup="1" groupid="180" entid="1673" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="360" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="1673" groupid="181" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="361" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
<li areaid="362" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1673_参数文本值"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1673,''AjaxF_'',1673,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1673,''AjaxF_'',1673);" EntId="1673" IsField=1 DBField=1 IsPost=1 FieldName="参数文本值" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="3168" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1673,' where  [FldUId]='dcab0831-8119-475e-a415-8c5a519033fd' 
      end



Delete from [Dcx_BrowseReport_Run]  where [EntId]=1673

--Dcx_BrowseReport_Run
      if (select count(1) from [Dcx_BrowseReport_Run] where  [EntId]=1673  )<1 
      begin 
           Insert into [Dcx_BrowseReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[DIYJsCss],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('a28a4bde-2282-47b4-a80f-76bc2f042837','会议类型',1673,31,'','<$1673$>select [参数文本值],[Id] from 参数表 where [Id]=''{$keyfieldvalue}''</$1673$>',1,1,20,'','DcxRun.MChildR_1673= {"MenuId":2884,"MEntId":1673,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"会议类型","EntMsg":{"E1673":{"EntId":1673,"EntName":"会议类型","KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1673*Id*2**2*参数表*会议类型',3,'','2012-12-21 11:03:02',3,'','2013-11-17 2:53:20',1)
      end
      else 
      begin 
           update [Dcx_BrowseReport_Run] set [ReportId]='a28a4bde-2282-47b4-a80f-76bc2f042837',[ReportName]='会议类型',[ModuleId]=31,[StaticHtml]='',[LoadingSql]='<$1673$>select [参数文本值],[Id] from 参数表 where [Id]=''{$keyfieldvalue}''</$1673$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[DIYJsCss]='',[AutoPublicJs]='DcxRun.MChildR_1673= {"MenuId":2884,"MEntId":1673,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"会议类型","EntMsg":{"E1673":{"EntId":1673,"EntName":"会议类型","KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1673*Id*2**2*参数表*会议类型',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-21 11:03:02',[EditorId]=3,[Editor]='',[EditTime]='2013-11-17 2:53:20',[AccountId]=1 where  [EntId]=1673 
      end




--Dcx_BrowseReportField_Run
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='2b8a2c89-2c38-490c-b466-0ea771c59483'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'2b8a2c89-2c38-490c-b466-0ea771c59483',1673,1673,'00000000-0000-0000-0000-000000000000',3,'参数文本值',1,1,'varchar',2,1,0,'','','','<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1673" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="261" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">会议类型</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1673" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="262" style="height: 38px; width: 792px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">名称  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1673" fieldname="参数文本值" fldid="1" columntypeid="1" class="form-ctr">','</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1673" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="267" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="268" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1673" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="269" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1673" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="270" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1673" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="271" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="272" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',-1,-1,-1,-1,0,'1673,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=1,[Report_EntId]=1673,[EntId]=1673,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='参数文本值',[FieldNO]=1,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1673" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="261" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">会议类型</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1673" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="262" style="height: 38px; width: 792px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">名称  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1673" fieldname="参数文本值" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1673" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="267" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="268" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1673" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="269" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1673" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="270" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1673" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="271" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="272" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1673,' where  [FldUId]='2b8a2c89-2c38-490c-b466-0ea771c59483' 
      end



Delete from [Dcx_ListReport_Run]  where [EntId]=1673

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=1673  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('cc3ce829-8a37-40a1-bc06-14b7a9cdb3a1','会议类型',1673,1,'','','<$1673$>select *  from (select row_number() over( order by [Id])as dcx_rowid,[参数文本值],[Id] from 参数表  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1673$><$1673:Count$>select count([Id]) from 参数表 where {$SearchArea}</$1673:Count$>',1,1,20,'DcxRun.ListR_1673= {"MenuId":2884,"MEntId":1673,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"会议类型","EntMsg":{"E1673":{"EntId":1673,"EntName":"会议类型","KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1673*Id*2**2*参数表*会议类型',3,'','2012-12-22 5:16:19',3,'','2013-11-16 20:06:43',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='cc3ce829-8a37-40a1-bc06-14b7a9cdb3a1',[ReportName]='会议类型',[ModuleId]=1,[StaticHtml]='',[DIYJsCss]='',[LoadingSql]='<$1673$>select *  from (select row_number() over( order by [Id])as dcx_rowid,[参数文本值],[Id] from 参数表  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1673$><$1673:Count$>select count([Id]) from 参数表 where {$SearchArea}</$1673:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[AutoPublicJs]='DcxRun.ListR_1673= {"MenuId":2884,"MEntId":1673,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"会议类型","EntMsg":{"E1673":{"EntId":1673,"EntName":"会议类型","KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1673*Id*2**2*参数表*会议类型',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-22 5:16:19',[EditorId]=3,[Editor]='',[EditTime]='2013-11-16 20:06:43',[AccountId]=1 where  [EntId]=1673 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='1118951f-5724-1415-6393-5d539c9eedc0'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(212,'1118951f-5724-1415-6393-5d539c9eedc0',1673,1673,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="91" entid="1673" ctrlprex="ListR_" isrple="1"> <li areaid="717" class="tool-li" style="position: static;">
</li><li areaid="718" class="tool-li" style="position: static;"><a id="ListR_1673_btn_buildNew" class="list-bt-add" title="添   加" href="javascript:void(0);" onclick="javascript:DcxCom.ShowAddDataDlg(1673,''ListR_'');">添   加</a></li>
<li areaid="719" class="tool-li" style="position: static;"><a id="ListR_1673_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1673,''ListR_'');">删   除</a></li>
<li areaid="720" class="tool-li" style="position: static;"><a id="ListR_1673_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1673,''ListR_'');">导   出</a></li>
<li areaid="721" class="tool-li" style="position: static;"><a id="ListR_1673_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1673,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1673" style="position: static;">
<a id="ListR_1673_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1673,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1673_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1673,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1673_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1673,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1673_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="92" entid="1673" class="list-head-ul" style="width: 254px;" ctrlprex="ListR_" isrple="1">
<li areaid="723" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1673" onclick="javascript:DcxCom.CheckedAll(this,1673,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="724" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">名称 </label></li><li areaid="725" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="编辑"><span class="i">编辑</span></a></div></li><li areaid="726" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="727" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">','',-1,93,-1,-1,1,'1673,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=212,[Report_EntId]=1673,[EntId]=1673,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="91" entid="1673" ctrlprex="ListR_" isrple="1"> <li areaid="717" class="tool-li" style="position: static;">
</li><li areaid="718" class="tool-li" style="position: static;"><a id="ListR_1673_btn_buildNew" class="list-bt-add" title="添   加" href="javascript:void(0);" onclick="javascript:DcxCom.ShowAddDataDlg(1673,''ListR_'');">添   加</a></li>
<li areaid="719" class="tool-li" style="position: static;"><a id="ListR_1673_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1673,''ListR_'');">删   除</a></li>
<li areaid="720" class="tool-li" style="position: static;"><a id="ListR_1673_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1673,''ListR_'');">导   出</a></li>
<li areaid="721" class="tool-li" style="position: static;"><a id="ListR_1673_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1673,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1673" style="position: static;">
<a id="ListR_1673_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1673,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1673_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1673,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1673_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1673,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1673_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="92" entid="1673" class="list-head-ul" style="width: 254px;" ctrlprex="ListR_" isrple="1">
<li areaid="723" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1673" onclick="javascript:DcxCom.CheckedAll(this,1673,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="724" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">名称 </label></li><li areaid="725" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="编辑"><span class="i">编辑</span></a></div></li><li areaid="726" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="727" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1673,' where  [FldUId]='1118951f-5724-1415-6393-5d539c9eedc0' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='4a3126ef-202f-42d3-8072-725b3ab1bde7'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(154,'4a3126ef-202f-42d3-8072-725b3ab1bde7',1673,1673,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',2,1,'',2,21,0,'','','','islonly="1" isgroup="1" groupid="93" class="list-body-ul" style="width: 254px;" isrple="1">
<li areaid="728" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1673" issyscheck="1" keyvalue="','',-1,93,-1,-1,1,'1673,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=154,[Report_EntId]=1673,[EntId]=1673,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='islonly="1" isgroup="1" groupid="93" class="list-body-ul" style="width: 254px;" isrple="1">
<li areaid="728" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1673" issyscheck="1" keyvalue="',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1673,' where  [FldUId]='4a3126ef-202f-42d3-8072-725b3ab1bde7' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='2275c0e8-e282-4f78-994b-0fbfa3be77d5'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'2275c0e8-e282-4f78-994b-0fbfa3be77d5',1673,1673,'00000000-0000-0000-0000-000000000000',3,'参数文本值',3,1,'varchar',2,1,0,'','','','" type="checkbox"></li><li areaid="729" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1673" fieldname="参数文本值" fldid="1" columntypeid="1" class="form-ctr">','',-1,93,-1,-1,1,'1673,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=1,[Report_EntId]=1673,[EntId]=1673,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='参数文本值',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='" type="checkbox"></li><li areaid="729" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1673" fieldname="参数文本值" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1673,' where  [FldUId]='2275c0e8-e282-4f78-994b-0fbfa3be77d5' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='a5bc3000-ca7f-4452-8ba8-ba95710fccfb'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(155,'a5bc3000-ca7f-4452-8ba8-ba95710fccfb',1673,1673,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',4,1,'',2,21,0,'','','','</span>
  </div>
</li><li areaid="730" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,1673,''ListR_'',''','',-1,93,-1,-1,1,'1673,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=155,[Report_EntId]=1673,[EntId]=1673,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="730" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,1673,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1673,' where  [FldUId]='a5bc3000-ca7f-4452-8ba8-ba95710fccfb' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='2645c68a-6a15-4af4-8ca7-bc448bb8ae56'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(156,'2645c68a-6a15-4af4-8ca7-bc448bb8ae56',1673,1673,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',5,1,'',2,21,0,'','','',''',null,1040,480);">
<span class="i">编辑</span></a></div>
</li><li areaid="731" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1673,''ListR_'',''','',-1,93,-1,-1,1,'1673,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=156,[Report_EntId]=1673,[EntId]=1673,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">编辑</span></a></div>
</li><li areaid="731" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1673,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1673,' where  [FldUId]='2645c68a-6a15-4af4-8ca7-bc448bb8ae56' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='1d8e750a-dc66-44ac-80f6-10e6e9b9ba21'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(157,'1d8e750a-dc66-44ac-80f6-10e6e9b9ba21',1673,1673,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',6,1,'',2,21,0,'','','',''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="732" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,1673,''ListR_'',''','',-1,93,-1,-1,1,'1673,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=157,[Report_EntId]=1673,[EntId]=1673,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="732" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,1673,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1673,' where  [FldUId]='1d8e750a-dc66-44ac-80f6-10e6e9b9ba21' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='8be217b3-a324-0be1-3e9b-9559fae0e614'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(213,'8be217b3-a324-0be1-3e9b-9559fae0e614',1673,1673,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',7,-1,'varchar',2,13,0,'','','',''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>','</div>
</div>
<!-- 结束 --></div>',-1,93,-1,-1,1,'1673,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=213,[Report_EntId]=1673,[EntId]=1673,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=7,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>',[LastHtml]='</div>
</div>
<!-- 结束 --></div>',[RowIndex]=-1,[TableIndex]=93,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1673,' where  [FldUId]='8be217b3-a324-0be1-3e9b-9559fae0e614' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=772

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=772  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(772,null,'参数表','参数表',0,0,0,0,0,0,1,1,3,'admin','2013-12-15 17:32:41',3,'admin','2013-12-15 17:32:41',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='参数表',[DBTableByName]='参数表',[IsForbid]=0,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=1,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:41',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:41',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=772 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=772  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(1362,1,1,772,'int',1,1,1,'参数表','Id','Id','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='参数表',[FieldName]='Id',[FieldByname]='Id',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=772  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=772  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(1363,2,1,772,'varchar',2,1,1,'参数表','参数类型','参数类型','',0,0,0,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='参数表',[FieldName]='参数类型',[FieldByname]='参数类型',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=772  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=772  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(1364,3,1,772,'varchar',2,1,1,'参数表','参数文本值','参数文本值','',0,0,0,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='参数表',[FieldName]='参数文本值',[FieldByname]='参数文本值',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=772  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=772  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(1365,4,1,772,'varchar',2,1,1,'参数表','参数隐藏值','参数隐藏值','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='参数表',[FieldName]='参数隐藏值',[FieldByname]='参数隐藏值',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=772  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=772  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(1366,5,1,772,'int',1,1,1,'参数表','上级Id','上级Id','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='参数表',[FieldName]='上级Id',[FieldByname]='上级Id',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=772  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=772  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(1367,6,1,772,'varchar',2,1,1,'参数表','上级文本值','上级文本值','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='参数表',[FieldName]='上级文本值',[FieldByname]='上级文本值',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=772  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=772  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(1368,7,1,772,'varchar',2,1,1,'参数表','参数文本值2','参数文本值2','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='参数表',[FieldName]='参数文本值2',[FieldByname]='参数文本值2',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=772  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=772  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(1369,8,1,772,'varchar',2,1,1,'参数表','参数文本值3','参数文本值3','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='参数表',[FieldName]='参数文本值3',[FieldByname]='参数文本值3',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=772  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=772  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(1370,9,1,772,'varchar',2,1,1,'参数表','参数文本值4','参数文本值4','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='参数表',[FieldName]='参数文本值4',[FieldByname]='参数文本值4',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=772  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=772  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(1371,10,1,772,'varchar',2,1,1,'参数表','参数文本值5','参数文本值5','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='参数表',[FieldName]='参数文本值5',[FieldByname]='参数文本值5',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=772  and  [FieldId]=10 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=2938  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2938,'49efb9df-8f00-4fe5-bb09-29887cb7aabb','会议申s请（隐藏）',1972,'/WorkFlow/NewWork.html?type=1&flowid=55&flow_name=会议申请',1,'/images/default.gif','/images/default.gif',1,'',null,1,null,1,0,1,0,1,1,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='49efb9df-8f00-4fe5-bb09-29887cb7aabb',[MenuName]='会议申s请（隐藏）',[ParentId]=1972,[ProPath]='/WorkFlow/NewWork.html?type=1&flowid=55&flow_name=会议申请',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=1,[Target]='',[IsOpen]=null,[IsHidden]=1,[Remark]=null,[SSystemId]=1,[SMenuId]=0,[SystemId]=1,[EntityCount]=0,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=2938 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=2938  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(717,2938,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=2938  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




 GO--mygofuck 

UPDATE [WF_FlowType]
   SET [ManageUsers] ='admin'
      ,[ManageNames] = 'admin'
      ,[QueryUsers] ='admin'
      ,[QueryNames] ='admin'
      ,[CanQueryRoles] ='系统管理员'
      ,[CanQueryRolesId] = '3'
      ,[CanManageRoles] ='系统管理员'
      ,[CanManageRolesId] ='3'
      ,[CanStartUsers] =null
      ,[CanStartNames] = null
      ,[CanStartRoles] ='Public'
      ,[CanStartRolesId] = '1'
      ,[Creator] = 'admin'
      ,[CreateTime] =  getdate() 



 GO--mygofuck 
--系统的Insert语句集合--




UPDATE [WF_FlowType]
   SET [ManageUsers] ='admin'
      ,[ManageNames] = 'admin'
      ,[QueryUsers] ='admin'
      ,[QueryNames] ='admin'
      ,[CanQueryRoles] ='系统管理员'
      ,[CanQueryRolesId] = '3'
      ,[CanManageRoles] ='系统管理员'
      ,[CanManageRolesId] ='3'
      ,[CanStartUsers] =null
      ,[CanStartNames] = null
      ,[CanStartRoles] ='Public'
      ,[CanStartRolesId] = '1'
      ,[Creator] = 'admin'
      ,[CreateTime] =  getdate() 



 GO--mygofuck 

--参数表

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=391  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(391,'学历','本科','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='学历',[参数文本值]='本科',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=391 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=392  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(392,'政治面貌','一般群众','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='政治面貌',[参数文本值]='一般群众',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=392 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=393  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(393,'政治面貌','共青团员','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='政治面貌',[参数文本值]='共青团员',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=393 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=394  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(394,'岗位','董事长','1',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='董事长',[参数隐藏值]='1',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=394 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=395  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(395,'岗位','总经理','2',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='总经理',[参数隐藏值]='2',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=395 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=396  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(396,'','Teach','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='',[参数文本值]='Teach',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=396 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=397  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(397,'','Sale','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='',[参数文本值]='Sale',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=397 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=398  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(398,'','Research','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='',[参数文本值]='Research',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=398 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=399  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(399,'','Teach','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='',[参数文本值]='Teach',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=399 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=400  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(400,'','Sale','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='',[参数文本值]='Sale',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=400 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=401  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(401,'','Sale','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='',[参数文本值]='Sale',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=401 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=402  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(402,'学历','硕士','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='学历',[参数文本值]='硕士',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=402 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=403  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(403,'学历','博士','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='学历',[参数文本值]='博士',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=403 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=404  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(404,'学历','初中','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='学历',[参数文本值]='初中',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=404 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=405  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(405,'学历','高中','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='学历',[参数文本值]='高中',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=405 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=406  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(406,'学历','中专','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='学历',[参数文本值]='中专',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=406 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=407  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(407,'学历','大专','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='学历',[参数文本值]='大专',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=407 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=408  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(408,'币种','人民币',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='币种',[参数文本值]='人民币',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=408 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=409  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(409,'币种','美金',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='币种',[参数文本值]='美金',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=409 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=410  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(410,'币种','英镑',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='币种',[参数文本值]='英镑',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=410 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=411  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(411,'贷款类型','房贷',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='贷款类型',[参数文本值]='房贷',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=411 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=412  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(412,'贷款类型','车贷',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='贷款类型',[参数文本值]='车贷',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=412 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=413  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(413,'贷款银行','中国银行',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='贷款银行',[参数文本值]='中国银行',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=413 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=414  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(414,'贷款银行','中国农业银行',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='贷款银行',[参数文本值]='中国农业银行',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=414 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=415  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(415,'贷款银行','建设银行',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='贷款银行',[参数文本值]='建设银行',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=415 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=416  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(416,'贷款银行','工商银行',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='贷款银行',[参数文本值]='工商银行',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=416 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=417  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(417,'办公用品类别','消耗品-A类',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='办公用品类别',[参数文本值]='消耗品-A类',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=417 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=418  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(418,'办公用品限额','100',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='办公用品限额',[参数文本值]='100',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=418 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=419  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(419,'办公用品采购帐户','622222222222222222222',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='办公用品采购帐户',[参数文本值]='622222222222222222222',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=419 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=420  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(420,'固定资产类型','房屋建筑物',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='固定资产类型',[参数文本值]='房屋建筑物',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=420 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=421  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(421,'资产减少类型','类型1',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='资产减少类型',[参数文本值]='类型1',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=421 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=422  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(422,'资产增加类型','购买',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='资产增加类型',[参数文本值]='购买',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=422 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=423  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(423,'办公用品类别','设备器材',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='办公用品类别',[参数文本值]='设备器材',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=423 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=424  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(424,'贷款银行','瑞士银行',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='贷款银行',[参数文本值]='瑞士银行',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=424 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=425  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(425,'贷款类型','地贷',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='贷款类型',[参数文本值]='地贷',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=425 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=426  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(426,'资产增加类型','自制',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='资产增加类型',[参数文本值]='自制',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=426 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=427  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(427,'企业类型','汽车销售',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='企业类型',[参数文本值]='汽车销售',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=427 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=428  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(428,'汽车厂商','上海大众',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='汽车厂商',[参数文本值]='上海大众',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=428 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=429  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(429,'汽车工商','北京现代',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='汽车工商',[参数文本值]='北京现代',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=429 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=430  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(430,'汽车工商','北京现代',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='汽车工商',[参数文本值]='北京现代',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=430 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=431  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(431,'汽车厂商','北京现代',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='汽车厂商',[参数文本值]='北京现代',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=431 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=432  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(432,'单位','粒','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='单位',[参数文本值]='粒',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=432 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=433  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(433,'年款','234','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='年款',[参数文本值]='234',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=433 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=434  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(434,'货位','外购配件','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='货位',[参数文本值]='外购配件',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=434 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=435  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(435,'货位','旧件','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='货位',[参数文本值]='旧件',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=435 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=436  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(436,'货位','精品','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='货位',[参数文本值]='精品',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=436 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=437  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(437,'车身颜色','红','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车身颜色',[参数文本值]='红',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=437 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=438  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(438,'车身颜色','绿','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车身颜色',[参数文本值]='绿',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=438 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=439  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(439,'车身颜色','蓝色','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车身颜色',[参数文本值]='蓝色',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=439 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=440  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(440,'配件车型','奔驰140','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='配件车型',[参数文本值]='奔驰140',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=440 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=441  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(441,'配件车型','通用','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='配件车型',[参数文本值]='通用',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=441 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=442  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(442,'配件车型','大众','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='配件车型',[参数文本值]='大众',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=442 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=443  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(443,'货位','上海大众','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='货位',[参数文本值]='上海大众',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=443 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=444  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(444,'货位','轮胎','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='货位',[参数文本值]='轮胎',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=444 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=445  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(445,'单位','个','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='单位',[参数文本值]='个',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=445 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=446  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(446,'单位','套','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='单位',[参数文本值]='套',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=446 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=447  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(447,'单位','条','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='单位',[参数文本值]='条',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=447 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=448  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(448,'仓库','大众配件仓库','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='仓库',[参数文本值]='大众配件仓库',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=448 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=449  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(449,'仓库','现代配件仓库','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='仓库',[参数文本值]='现代配件仓库',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=449 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=450  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(450,'仓库','综合仓库','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='仓库',[参数文本值]='综合仓库',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=450 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=451  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(451,'接车人员','谢博超','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='接车人员',[参数文本值]='谢博超',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=451 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=452  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(452,'接车人员','郑泽夏','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='接车人员',[参数文本值]='郑泽夏',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=452 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=453  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(453,'接车人员','林跃波','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='接车人员',[参数文本值]='林跃波',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=453 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=454  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(454,'接车人员','黄丽金','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='接车人员',[参数文本值]='黄丽金',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=454 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=455  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(455,'接车人员','陈佳泽','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='接车人员',[参数文本值]='陈佳泽',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=455 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=456  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(456,'配件车型','佳美2.2','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='配件车型',[参数文本值]='佳美2.2',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=456 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=457  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(457,'配件车型','帕萨特1.8','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='配件车型',[参数文本值]='帕萨特1.8',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=457 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=458  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(458,'配件车型','丰田吉普V6 3400','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='配件车型',[参数文本值]='丰田吉普V6 3400',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=458 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=459  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(459,'配件车型','金杯','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='配件车型',[参数文本值]='金杯',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=459 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=460  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(460,'配件车型','别克GL8','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='配件车型',[参数文本值]='别克GL8',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=460 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=461  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(461,'配件车型','三菱吉普V31','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='配件车型',[参数文本值]='三菱吉普V31',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=461 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=462  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(462,'维修类别','日常客户','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='维修类别',[参数文本值]='日常客户',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=462 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=463  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(463,'维修类别','定点车','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='维修类别',[参数文本值]='定点车',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=463 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=464  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(464,'维修类别','保险车','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='维修类别',[参数文本值]='保险车',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=464 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=465  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(465,'维修性质','一般维修','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='维修性质',[参数文本值]='一般维修',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=465 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=466  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(466,'维修类别','内部车','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='维修类别',[参数文本值]='内部车',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=466 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=467  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(467,'维修性质','钣金喷漆','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='维修性质',[参数文本值]='钣金喷漆',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=467 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=468  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(468,'维修性质','大修','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='维修性质',[参数文本值]='大修',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=468 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=469  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(469,'所属区域','揭阳','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='所属区域',[参数文本值]='揭阳',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=469 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=470  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(470,'所属区域','普宁','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='所属区域',[参数文本值]='普宁',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=470 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=471  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(471,'车辆类型','大卡车',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆类型',[参数文本值]='大卡车',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=471 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=472  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(472,'车辆类型','小货车',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆类型',[参数文本值]='小货车',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=472 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=473  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(473,'报考车型','qq',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='报考车型',[参数文本值]='qq',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=473 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=474  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(474,'车辆类型','轿车',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆类型',[参数文本值]='轿车',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=474 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=475  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(475,'报考车型','12122223',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='报考车型',[参数文本值]='12122223',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=475 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=476  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(476,'抵押物类型','土地',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='抵押物类型',[参数文本值]='土地',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=476 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=477  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(477,'抵押物类型','房宅',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='抵押物类型',[参数文本值]='房宅',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=477 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=478  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(478,'抵押物类型','汽车',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='抵押物类型',[参数文本值]='汽车',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=478 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=479  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(479,'抵押物类型','固定资产',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='抵押物类型',[参数文本值]='固定资产',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=479 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=480  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(480,'抵押物类型','物业',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='抵押物类型',[参数文本值]='物业',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=480 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=481  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(481,'币种','欧元',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='币种',[参数文本值]='欧元',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=481 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=482  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(482,'币种','日元',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='币种',[参数文本值]='日元',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=482 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=483  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(483,'币种','港币',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='币种',[参数文本值]='港币',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=483 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=484  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(484,'土地来源性质权属','商业',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='土地来源性质权属',[参数文本值]='商业',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=484 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=485  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(485,'土地来源性质权属','住宅',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='土地来源性质权属',[参数文本值]='住宅',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=485 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=486  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(486,'土地来源性质权属','仓库',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='土地来源性质权属',[参数文本值]='仓库',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=486 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=487  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(487,'土地来源性质权属','城建',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='土地来源性质权属',[参数文本值]='城建',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=487 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=488  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(488,'审批人类型','部长',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='审批人类型',[参数文本值]='部长',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=488 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=489  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(489,'审批人类型','经理',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='审批人类型',[参数文本值]='经理',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=489 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=490  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(490,'审批人类型','组长',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='审批人类型',[参数文本值]='组长',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=490 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=491  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(491,'审批人类型','项目经理',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='审批人类型',[参数文本值]='项目经理',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=491 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=492  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(492,'审批结论','同意',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='审批结论',[参数文本值]='同意',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=492 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=493  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(493,'审批结论','不同意',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='审批结论',[参数文本值]='不同意',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=493 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=494  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(494,'审批结论','待定',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='审批结论',[参数文本值]='待定',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=494 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=495  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(495,'贷后维护类型','类型一',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='贷后维护类型',[参数文本值]='类型一',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=495 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=496  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(496,'贷后维护类型','类型二',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='贷后维护类型',[参数文本值]='类型二',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=496 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=497  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(497,'贷后维护类型','类型三',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='贷后维护类型',[参数文本值]='类型三',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=497 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=498  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(498,'贷后维护结论','好',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='贷后维护结论',[参数文本值]='好',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=498 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=499  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(499,'贷后维护结论','一般',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='贷后维护结论',[参数文本值]='一般',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=499 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=500  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(500,'贷后维护结论','良好',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='贷后维护结论',[参数文本值]='良好',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=500 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=501  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(501,'贷款综合费收入账号','43434343',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='贷款综合费收入账号',[参数文本值]='43434343',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=501 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=502  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(502,'贷款综合费收入账号','252525252',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='贷款综合费收入账号',[参数文本值]='252525252',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=502 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=504  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(504,'政治面貌','中共党员','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='政治面貌',[参数文本值]='中共党员',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=504 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=505  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(505,'职称','初级会计师','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='职称',[参数文本值]='初级会计师',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=505 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=506  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(506,'职称','中级会计师','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='职称',[参数文本值]='中级会计师',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=506 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=507  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(507,'职称','高级会计师','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='职称',[参数文本值]='高级会计师',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=507 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=508  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(508,'职称','初级工程师','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='职称',[参数文本值]='初级工程师',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=508 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=509  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(509,'职称','中级工程师','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='职称',[参数文本值]='中级工程师',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=509 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=510  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(510,'职称','高级工程师','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='职称',[参数文本值]='高级工程师',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=510 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=511  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(511,'职称','初级技工','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='职称',[参数文本值]='初级技工',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=511 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=512  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(512,'职称','高级技工','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='职称',[参数文本值]='高级技工',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=512 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=513  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(513,'职称','MBA','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='职称',[参数文本值]='MBA',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=513 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=514  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(514,'职称','初级HR','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='职称',[参数文本值]='初级HR',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=514 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=515  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(515,'职称','高级HR','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='职称',[参数文本值]='高级HR',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=515 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=516  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(516,'外语语种','英语','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='外语语种',[参数文本值]='英语',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=516 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=517  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(517,'外语语种','法语','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='外语语种',[参数文本值]='法语',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=517 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=518  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(518,'外语语种','日语','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='外语语种',[参数文本值]='日语',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=518 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=519  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(519,'外语语种','韩语','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='外语语种',[参数文本值]='韩语',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=519 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=520  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(520,'外语语种','西班牙语','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='外语语种',[参数文本值]='西班牙语',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=520 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=521  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(521,'外语语种','德语','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='外语语种',[参数文本值]='德语',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=521 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=522  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(522,'外语语种','意大利语','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='外语语种',[参数文本值]='意大利语',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=522 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=523  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(523,'外语语种','俄语','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='外语语种',[参数文本值]='俄语',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=523 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=524  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(524,'奖惩事项','奖金','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='奖惩事项',[参数文本值]='奖金',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=524 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=525  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(525,'奖惩事项','补贴','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='奖惩事项',[参数文本值]='补贴',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=525 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=526  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(526,'奖惩事项','晋升','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='奖惩事项',[参数文本值]='晋升',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=526 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=527  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(527,'岗位','财务经理','3',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='财务经理',[参数隐藏值]='3',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=527 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=528  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(528,'岗位','行政经理','4',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='行政经理',[参数隐藏值]='4',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=528 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=529  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(529,'岗位','总经理秘书','5',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='总经理秘书',[参数隐藏值]='5',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=529 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=530  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(530,'岗位','总经理助理','6',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='总经理助理',[参数隐藏值]='6',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=530 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=531  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(531,'岗位','总经理司机','7',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='总经理司机',[参数隐藏值]='7',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=531 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=532  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(532,'岗位','财务部副经理','8',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='财务部副经理',[参数隐藏值]='8',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=532 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=533  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(533,'职称','助理工程师','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='职称',[参数文本值]='助理工程师',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=533 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=534  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(534,'固定资产类型','机器设备',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='固定资产类型',[参数文本值]='机器设备',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=534 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=535  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(535,'固定资产类型','运输起重设备',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='固定资产类型',[参数文本值]='运输起重设备',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=535 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=536  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(536,'固定资产类型','电子设备',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='固定资产类型',[参数文本值]='电子设备',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=536 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=537  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(537,'资产减少类型','正常损耗',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='资产减少类型',[参数文本值]='正常损耗',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=537 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=538  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(538,'资产增加类型','建造',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='资产增加类型',[参数文本值]='建造',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=538 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=539  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(539,'资产减少类型','折旧',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='资产减少类型',[参数文本值]='折旧',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=539 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=540  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(540,'资产增加类型','承租',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='资产增加类型',[参数文本值]='承租',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=540 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=541  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(541,'资产减少类型','报废',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='资产减少类型',[参数文本值]='报废',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=541 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=542  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(542,'还款方式','现金',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='还款方式',[参数文本值]='现金',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=542 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=543  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(543,'还款方式','分期付款',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='还款方式',[参数文本值]='分期付款',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=543 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=544  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(544,'担保方式','XXX',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='担保方式',[参数文本值]='XXX',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=544 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=545  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(545,'拍卖结果','成交',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='拍卖结果',[参数文本值]='成交',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=545 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=546  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(546,'佣金收取方式','现金',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='佣金收取方式',[参数文本值]='现金',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=546 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=547  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(547,'身份证明','身份证',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='身份证明',[参数文本值]='身份证',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=547 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=548  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(548,'身份证明','护照',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='身份证明',[参数文本值]='护照',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=548 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=549  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(549,'报考业务种类','快速型',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='报考业务种类',[参数文本值]='快速型',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=549 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=550  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(550,'拍卖方式','直拍',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='拍卖方式',[参数文本值]='直拍',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=550 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=551  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(551,'贷款银行','中国交通银行',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='贷款银行',[参数文本值]='中国交通银行',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=551 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=552  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(552,'企业类型','个人企业',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='企业类型',[参数文本值]='个人企业',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=552 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=553  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(553,'企业类型','合伙企业',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='企业类型',[参数文本值]='合伙企业',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=553 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=554  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(554,'担保方式','物业担保',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='担保方式',[参数文本值]='物业担保',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=554 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=555  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(555,'资产增加类型','债务重组',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='资产增加类型',[参数文本值]='债务重组',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=555 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=556  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(556,'职务','董事','1',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='职务',[参数文本值]='董事',[参数隐藏值]='1',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=556 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=557  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(557,'职务','经理','2',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='职务',[参数文本值]='经理',[参数隐藏值]='2',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=557 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=558  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(558,'职务','主管','3',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='职务',[参数文本值]='主管',[参数隐藏值]='3',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=558 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=559  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(559,'职务','一般员工','4',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='职务',[参数文本值]='一般员工',[参数隐藏值]='4',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=559 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=560  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(560,'职务','实习员工','5',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='职务',[参数文本值]='实习员工',[参数隐藏值]='5',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=560 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=561  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(561,'岗位','财务主管','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='财务主管',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=561 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=562  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(562,'岗位','财务助理','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='财务助理',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=562 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=563  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(563,'岗位','会计主管','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='会计主管',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=563 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=564  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(564,'岗位','会计','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='会计',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=564 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=565  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(565,'岗位','出纳','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='出纳',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=565 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=566  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(566,'岗位','记账员','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='记账员',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=566 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=567  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(567,'岗位','资金管理员','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='资金管理员',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=567 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=568  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(568,'岗位','结算员','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='结算员',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=568 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=569  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(569,'岗位','行政部副经理','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='行政部副经理',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=569 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=570  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(570,'岗位','行政主管','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='行政主管',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=570 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=571  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(571,'岗位','行政专员','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='行政专员',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=571 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=572  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(572,'岗位','文员','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='文员',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=572 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=573  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(573,'岗位','后勤经理','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='后勤经理',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=573 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=574  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(574,'岗位','后勤部副经理','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='后勤部副经理',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=574 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=575  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(575,'岗位','后勤主管','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='后勤主管',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=575 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=576  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(576,'岗位','保安队长','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='保安队长',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=576 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=577  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(577,'岗位','保安','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='保安',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=577 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=578  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(578,'岗位','厨师','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='厨师',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=578 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=579  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(579,'岗位','厨工','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='厨工',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=579 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=580  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(580,'岗位','人力资源经理','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='人力资源经理',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=580 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=581  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(581,'岗位','HR副经理','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='HR副经理',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=581 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=582  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(582,'岗位','人力资源主管','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='人力资源主管',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=582 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=583  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(583,'岗位','市场部经理','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='市场部经理',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=583 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=584  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(584,'岗位','市场部副经理','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='市场部副经理',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=584 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=585  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(585,'岗位','市场主管','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='市场主管',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=585 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=586  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(586,'岗位','市场专员','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='市场专员',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=586 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=587  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(587,'岗位','市场助理','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='市场助理',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=587 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=588  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(588,'岗位','业务经理','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='业务经理',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=588 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=589  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(589,'岗位','业务副经理','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='业务副经理',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=589 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=590  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(590,'岗位','业务主管','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='业务主管',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=590 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=591  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(591,'岗位','业务员','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='业务员',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=591 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=592  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(592,'岗位','销售经理','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='销售经理',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=592 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=593  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(593,'岗位','销售部副经理','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='销售部副经理',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=593 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=594  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(594,'岗位','销售主管','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='销售主管',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=594 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=595  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(595,'岗位','销售顾问','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='销售顾问',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=595 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=596  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(596,'岗位','展厅经理','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='展厅经理',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=596 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=597  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(597,'岗位','市场管理员','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='市场管理员',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=597 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=598  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(598,'岗位','区域管理员','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='区域管理员',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=598 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=599  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(599,'岗位','批发业务员','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='批发业务员',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=599 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=600  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(600,'岗位','信息员','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='信息员',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=600 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=601  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(601,'岗位','售后部经理','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='售后部经理',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=601 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=602  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(602,'岗位','技术总监','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='技术总监',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=602 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=603  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(603,'岗位','车间主任','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='车间主任',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=603 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=604  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(604,'岗位','完检员','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='完检员',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=604 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=605  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(605,'岗位','售后部主管','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='售后部主管',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=605 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=606  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(606,'岗位','服务顾问','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='服务顾问',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=606 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=607  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(607,'岗位','车辆理赔员','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='车辆理赔员',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=607 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=608  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(608,'岗位','配件组长','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='配件组长',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=608 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=609  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(609,'岗位','配件管理员','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='配件管理员',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=609 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=610  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(610,'岗位','配件主管','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='配件主管',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=610 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=611  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(611,'岗位','索赔专员','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='索赔专员',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=611 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=612  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(612,'岗位','保险理赔员','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='保险理赔员',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=612 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=613  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(613,'岗位','机电一组组长','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='机电一组组长',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=613 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=614  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(614,'岗位','机电一组电工','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='机电一组电工',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=614 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=615  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(615,'岗位','机电二组组长','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='机电二组组长',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=615 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=616  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(616,'岗位','机电二组电工','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='机电二组电工',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=616 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=617  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(617,'岗位','喷漆组长','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='喷漆组长',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=617 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=618  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(618,'岗位','喷漆工','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='喷漆工',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=618 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=619  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(619,'岗位','喷漆学徒','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='喷漆学徒',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=619 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=620  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(620,'岗位','钣金组长','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='钣金组长',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=620 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=621  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(621,'岗位','钣金工','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='钣金工',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=621 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=622  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(622,'岗位','钣金学徒','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='钣金学徒',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=622 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=623  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(623,'岗位','机修学徒','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='机修学徒',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=623 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=624  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(624,'岗位','洗车工','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='洗车工',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=624 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=625  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(625,'岗位','清洁工','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='清洁工',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=625 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=626  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(626,'岗位','副总经理','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='副总经理',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=626 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=627  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(627,'岗位','内勤主管','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='内勤主管',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=627 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=628  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(628,'岗位','内勤','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='内勤',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=628 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=629  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(629,'岗位','外勤','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='外勤',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=629 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=630  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(630,'岗位','调度员','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='调度员',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=630 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=631  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(631,'岗位','搬运工','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='搬运工',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=631 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=632  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(632,'岗位','出租车队长','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='出租车队长',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=632 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=633  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(633,'岗位','出租车司机','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='出租车司机',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=633 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=634  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(634,'岗位','网络管理员','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='网络管理员',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=634 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=635  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(635,'岗位','办事员','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='岗位',[参数文本值]='办事员',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=635 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=636  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(636,'学历','小学','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='学历',[参数文本值]='小学',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=636 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=637  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(637,'政治面貌','其他','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='政治面貌',[参数文本值]='其他',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=637 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=638  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(638,'学历','中技','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='学历',[参数文本值]='中技',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=638 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=639  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(639,'学历','职业中专','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='学历',[参数文本值]='职业中专',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=639 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=640  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(640,'车辆颜色','炫黑',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆颜色',[参数文本值]='炫黑',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=640 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=641  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(641,'车辆颜色','晶银',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆颜色',[参数文本值]='晶银',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=641 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=642  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(642,'车辆颜色','映灰',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆颜色',[参数文本值]='映灰',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=642 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=643  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(643,'车辆颜色','榴红',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆颜色',[参数文本值]='榴红',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=643 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=644  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(644,'车辆颜色','莹白',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆颜色',[参数文本值]='莹白',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=644 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=645  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(645,'车辆颜色','谧蓝',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆颜色',[参数文本值]='谧蓝',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=645 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=646  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(646,'车辆颜色','臻栗',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆颜色',[参数文本值]='臻栗',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=646 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=647  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(647,'车辆颜色','灿金',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆颜色',[参数文本值]='灿金',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=647 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=648  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(648,'车辆颜色','乌木黑',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆颜色',[参数文本值]='乌木黑',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=648 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=649  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(649,'车辆颜色','闪光银',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆颜色',[参数文本值]='闪光银',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=649 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=650  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(650,'车辆颜色','贵族白',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆颜色',[参数文本值]='贵族白',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=650 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=651  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(651,'车辆颜色','柠檬黄',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆颜色',[参数文本值]='柠檬黄',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=651 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=652  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(652,'车辆颜色','香槟银',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆颜色',[参数文本值]='香槟银',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=652 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=653  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(653,'车辆颜色','激情蓝',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆颜色',[参数文本值]='激情蓝',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=653 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=654  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(654,'车辆颜色','浪漫红',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆颜色',[参数文本值]='浪漫红',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=654 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=655  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(655,'车辆颜色','都市红',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆颜色',[参数文本值]='都市红',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=655 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=656  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(656,'车辆颜色','天空蓝',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆颜色',[参数文本值]='天空蓝',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=656 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=657  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(657,'车辆颜色','魅力蓝',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆颜色',[参数文本值]='魅力蓝',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=657 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=658  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(658,'车辆颜色','沙滩金',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆颜色',[参数文本值]='沙滩金',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=658 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=659  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(659,'车辆颜色','水晶银',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆颜色',[参数文本值]='水晶银',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=659 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=660  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(660,'车辆颜色','铂光银',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆颜色',[参数文本值]='铂光银',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=660 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=661  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(661,'销售地区','揭阳-展厅',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='销售地区',[参数文本值]='揭阳-展厅',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=661 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=662  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(662,'销售地区','普宁-宏阳',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='销售地区',[参数文本值]='普宁-宏阳',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=662 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=663  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(663,'销售地区','普宁-其他',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='销售地区',[参数文本值]='普宁-其他',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=663 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=664  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(664,'销售地区','潮州-工业',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='销售地区',[参数文本值]='潮州-工业',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=664 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=665  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(665,'销售地区','潮州-穗新',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='销售地区',[参数文本值]='潮州-穗新',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=665 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=666  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(666,'销售地区','潮州-饶平三博',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='销售地区',[参数文本值]='潮州-饶平三博',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=666 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=667  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(667,'销售地区','潮州-茂昌',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='销售地区',[参数文本值]='潮州-茂昌',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=667 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=668  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(668,'销售地区','潮州-悦亚',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='销售地区',[参数文本值]='潮州-悦亚',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=668 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=669  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(669,'销售地区','潮州-长豪',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='销售地区',[参数文本值]='潮州-长豪',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=669 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=670  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(670,'销售地区','梅州-鹰广',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='销售地区',[参数文本值]='梅州-鹰广',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=670 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=671  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(671,'销售地区','梅州-华发',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='销售地区',[参数文本值]='梅州-华发',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=671 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=672  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(672,'销售地区','潮州-其他',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='销售地区',[参数文本值]='潮州-其他',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=672 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=673  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(673,'销售地区','梅州-其他',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='销售地区',[参数文本值]='梅州-其他',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=673 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=674  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(674,'销售地区','梅州-兴宁桦昌',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='销售地区',[参数文本值]='梅州-兴宁桦昌',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=674 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=675  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(675,'销售地区','梅州-五华城兴',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='销售地区',[参数文本值]='梅州-五华城兴',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=675 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=676  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(676,'销售地区','梅州-丰顺粤海',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='销售地区',[参数文本值]='梅州-丰顺粤海',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=676 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=677  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(677,'销售地区','梅州-飞驰',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='销售地区',[参数文本值]='梅州-飞驰',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=677 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=678  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(678,'销售地区','汕尾-新华',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='销售地区',[参数文本值]='汕尾-新华',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=678 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=679  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(679,'销售地区','汕尾-陆丰万通',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='销售地区',[参数文本值]='汕尾-陆丰万通',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=679 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=680  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(680,'销售地区','汕尾-其他',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='销售地区',[参数文本值]='汕尾-其他',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=680 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=681  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(681,'销售地区','揭西-丰源',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='销售地区',[参数文本值]='揭西-丰源',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=681 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=682  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(682,'办公用品类别','消耗品-B类',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='办公用品类别',[参数文本值]='消耗品-B类',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=682 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=683  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(683,'办公用品类别','日常用品',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='办公用品类别',[参数文本值]='日常用品',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=683 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=684  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(684,'办公用品类别','管理品',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='办公用品类别',[参数文本值]='管理品',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=684 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=685  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(685,'办公用品类别','其他',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='办公用品类别',[参数文本值]='其他',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=685 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=686  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(686,'公章用途类型','业务专用',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='公章用途类型',[参数文本值]='业务专用',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=686 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=687  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(687,'公章用途类型','汽修厂专用',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='公章用途类型',[参数文本值]='汽修厂专用',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=687 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=688  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(688,'公章用途类型','综合管理部专用',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='公章用途类型',[参数文本值]='综合管理部专用',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=688 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=689  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(689,'公章用途类型','财务部专用',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='公章用途类型',[参数文本值]='财务部专用',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=689 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=690  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(690,'公章用途类型','人力资源部专用',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='公章用途类型',[参数文本值]='人力资源部专用',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=690 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=691  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(691,'公章用途类型','合同专用',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='公章用途类型',[参数文本值]='合同专用',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=691 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=692  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(692,'公章用途类型','证明专用',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='公章用途类型',[参数文本值]='证明专用',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=692 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=693  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(693,'职称','助理会计师','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='职称',[参数文本值]='助理会计师',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=693 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=694  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(694,'信用等级','优',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='信用等级',[参数文本值]='优',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=694 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=695  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(695,'信用等级','良',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='信用等级',[参数文本值]='良',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=695 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=696  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(696,'信用等级','中',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='信用等级',[参数文本值]='中',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=696 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=697  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(697,'信用等级','差',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='信用等级',[参数文本值]='差',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=697 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=698  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(698,'车辆颜色','反射银',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆颜色',[参数文本值]='反射银',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=698 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=699  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(699,'车辆颜色','深黑',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆颜色',[参数文本值]='深黑',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=699 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=700  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(700,'车辆颜色','铂金灰',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆颜色',[参数文本值]='铂金灰',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=700 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=701  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(701,'车辆颜色','太空银',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆颜色',[参数文本值]='太空银',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=701 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=702  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(702,'车辆颜色','镭射灰',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆颜色',[参数文本值]='镭射灰',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=702 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=703  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(703,'车辆颜色','海蓝',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆颜色',[参数文本值]='海蓝',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=703 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=704  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(704,'车辆颜色','糖果白',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆颜色',[参数文本值]='糖果白',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=704 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=705  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(705,'车辆颜色','嫣红',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆颜色',[参数文本值]='嫣红',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=705 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=706  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(706,'贷款部门机构号','009003','典当业务部',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='贷款部门机构号',[参数文本值]='009003',[参数隐藏值]='典当业务部',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=706 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=707  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(707,'车辆颜色','反射银',null,null,'上海大众',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆颜色',[参数文本值]='反射银',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='上海大众',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=707 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=708  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(708,'车辆颜色','深黑',null,null,'上海大众',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆颜色',[参数文本值]='深黑',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='上海大众',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=708 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=709  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(709,'车辆颜色','铂金灰',null,null,'上海大众',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆颜色',[参数文本值]='铂金灰',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='上海大众',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=709 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=710  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(710,'车辆颜色','太空银',null,null,'上海大众',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆颜色',[参数文本值]='太空银',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='上海大众',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=710 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=711  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(711,'车辆颜色','镭射灰',null,null,'上海大众',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆颜色',[参数文本值]='镭射灰',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='上海大众',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=711 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=712  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(712,'车辆颜色','糖果白',null,null,'上海大众',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆颜色',[参数文本值]='糖果白',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='上海大众',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=712 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=713  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(713,'供车方','上海大众',null,null,null,'10736649','10367926','11023370','10360701')
      end
      else 
      begin 
           update [参数表] set [参数类型]='供车方',[参数文本值]='上海大众',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]='10736649',[参数文本值3]='10367926',[参数文本值4]='11023370',[参数文本值5]='10360701' where  [Id]=713 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=714  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(714,'供车方','北京现代',null,null,null,'10736648','10367926','11023370','10360701')
      end
      else 
      begin 
           update [参数表] set [参数类型]='供车方',[参数文本值]='北京现代',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]='10736648',[参数文本值3]='10367926',[参数文本值4]='11023370',[参数文本值5]='10360701' where  [Id]=714 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=715  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(715,'供车方','按揭中心',null,null,null,'10609519','10367926','11023370','10360701')
      end
      else 
      begin 
           update [参数表] set [参数类型]='供车方',[参数文本值]='按揭中心',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]='10609519',[参数文本值3]='10367926',[参数文本值4]='11023370',[参数文本值5]='10360701' where  [Id]=715 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=716  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(716,'职称','注册拍卖师','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='职称',[参数文本值]='注册拍卖师',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=716 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=717  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(717,'标的类型','小汽车号牌',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='标的类型',[参数文本值]='小汽车号牌',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=717 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=718  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(718,'标的类型','动产—机动车',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='标的类型',[参数文本值]='动产—机动车',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=718 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=719  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(719,'标的类型','动产—机械设备',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='标的类型',[参数文本值]='动产—机械设备',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=719 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=720  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(720,'标的类型','不动产—房产',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='标的类型',[参数文本值]='不动产—房产',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=720 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=721  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(721,'标的类型','不动产—土地',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='标的类型',[参数文本值]='不动产—土地',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=721 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=722  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(722,'拍卖方式','英格兰式拍卖',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='拍卖方式',[参数文本值]='英格兰式拍卖',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=722 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=723  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(723,'佣金收取方式','汇款',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='佣金收取方式',[参数文本值]='汇款',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=723 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=724  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(724,'车辆颜色','联合灰',null,null,'上海大众',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆颜色',[参数文本值]='联合灰',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='上海大众',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=724 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=725  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(725,'车辆颜色','银蓝',null,null,'上海大众',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆颜色',[参数文本值]='银蓝',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='上海大众',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=725 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=726  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(726,'配件车型','I30','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='配件车型',[参数文本值]='I30',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=726 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=727  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(727,'配件车型','领翔','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='配件车型',[参数文本值]='领翔',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=727 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=728  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(728,'配件车型','名驭','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='配件车型',[参数文本值]='名驭',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=728 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=729  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(729,'配件车型','索纳塔','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='配件车型',[参数文本值]='索纳塔',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=729 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=730  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(730,'配件车型','途胜','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='配件车型',[参数文本值]='途胜',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=730 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=731  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(731,'配件车型','雅绅特','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='配件车型',[参数文本值]='雅绅特',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=731 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=732  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(732,'配件车型','伊兰特','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='配件车型',[参数文本值]='伊兰特',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=732 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=733  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(733,'配件车型','御翔','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='配件车型',[参数文本值]='御翔',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=733 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=734  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(734,'配件车型','悦动','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='配件车型',[参数文本值]='悦动',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=734 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=735  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(735,'车身颜色','白','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车身颜色',[参数文本值]='白',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=735 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=736  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(736,'销售地区','潮州市',null,null,'上海大众',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='销售地区',[参数文本值]='潮州市',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='上海大众',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=736 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=737  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(737,'销售地区','揭阳市',null,null,'上海大众',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='销售地区',[参数文本值]='揭阳市',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='上海大众',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=737 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=738  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(738,'销售地区','梅州市',null,null,'上海大众',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='销售地区',[参数文本值]='梅州市',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='上海大众',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=738 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=739  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(739,'销售地区','汕头市',null,null,'上海大众',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='销售地区',[参数文本值]='汕头市',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='上海大众',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=739 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=740  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(740,'销售地区','汕尾市',null,null,'上海大众',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='销售地区',[参数文本值]='汕尾市',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='上海大众',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=740 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=741  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(741,'寄存地点','群记汽车城',null,null,'上海大众',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='寄存地点',[参数文本值]='群记汽车城',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='上海大众',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=741 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=742  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(742,'寄存地点','展厅',null,null,'上海大众',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='寄存地点',[参数文本值]='展厅',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='上海大众',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=742 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=743  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(743,'寄存地点','潮州安顺达',null,null,'上海大众',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='寄存地点',[参数文本值]='潮州安顺达',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='上海大众',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=743 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=744  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(744,'寄存地点','潮州长豪',null,null,'上海大众',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='寄存地点',[参数文本值]='潮州长豪',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='上海大众',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=744 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=745  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(745,'寄存地点','潮州工业',null,null,'上海大众',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='寄存地点',[参数文本值]='潮州工业',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='上海大众',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=745 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=746  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(746,'寄存地点','潮州茂昌',null,null,'上海大众',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='寄存地点',[参数文本值]='潮州茂昌',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='上海大众',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=746 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=747  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(747,'寄存地点','潮州穗新',null,null,'上海大众',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='寄存地点',[参数文本值]='潮州穗新',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='上海大众',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=747 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=748  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(748,'寄存地点','潮州悦亚',null,null,'上海大众',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='寄存地点',[参数文本值]='潮州悦亚',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='上海大众',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=748 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=749  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(749,'寄存地点','饶平三博',null,null,'上海大众',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='寄存地点',[参数文本值]='饶平三博',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='上海大众',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=749 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=750  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(750,'寄存地点','普宁宏阳',null,null,'上海大众',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='寄存地点',[参数文本值]='普宁宏阳',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='上海大众',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=750 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=751  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(751,'寄存地点','普宁盛兴',null,null,'上海大众',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='寄存地点',[参数文本值]='普宁盛兴',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='上海大众',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=751 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=752  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(752,'寄存地点','揭西丰源',null,null,'上海大众',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='寄存地点',[参数文本值]='揭西丰源',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='上海大众',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=752 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=753  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(753,'寄存地点','梅州鹰广',null,null,'上海大众',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='寄存地点',[参数文本值]='梅州鹰广',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='上海大众',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=753 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=754  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(754,'寄存地点','梅州飞驰',null,null,'上海大众',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='寄存地点',[参数文本值]='梅州飞驰',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='上海大众',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=754 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=755  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(755,'寄存地点','梅州华发',null,null,'上海大众',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='寄存地点',[参数文本值]='梅州华发',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='上海大众',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=755 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=756  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(756,'寄存地点','五华城兴',null,null,'上海大众',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='寄存地点',[参数文本值]='五华城兴',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='上海大众',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=756 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=757  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(757,'寄存地点','兴宁桦昌',null,null,'上海大众',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='寄存地点',[参数文本值]='兴宁桦昌',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='上海大众',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=757 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=758  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(758,'寄存地点','丰顺粤海',null,null,'上海大众',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='寄存地点',[参数文本值]='丰顺粤海',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='上海大众',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=758 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=759  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(759,'寄存地点','汕头大众',null,null,'上海大众',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='寄存地点',[参数文本值]='汕头大众',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='上海大众',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=759 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=760  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(760,'寄存地点','汕尾新华',null,null,'上海大众',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='寄存地点',[参数文本值]='汕尾新华',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='上海大众',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=760 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=761  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(761,'寄存地点','陆丰万通',null,null,'上海大众',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='寄存地点',[参数文本值]='陆丰万通',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='上海大众',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=761 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=762  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(762,'寄存地点','售后（质损维修）',null,null,'上海大众',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='寄存地点',[参数文本值]='售后（质损维修）',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='上海大众',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=762 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=763  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(763,'寄存地点','在途',null,null,'上海大众',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='寄存地点',[参数文本值]='在途',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='上海大众',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=763 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=764  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(764,'销售地区','福建省漳州市',null,null,'上海大众',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='销售地区',[参数文本值]='福建省漳州市',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='上海大众',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=764 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=765  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(765,'销售地区','广州市',null,null,'上海大众',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='销售地区',[参数文本值]='广州市',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='上海大众',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=765 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=766  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(766,'销售地区','江西省赣州市',null,null,'上海大众',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='销售地区',[参数文本值]='江西省赣州市',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='上海大众',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=766 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=767  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(767,'车辆颜色','品蓝',null,null,'上海大众',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆颜色',[参数文本值]='品蓝',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='上海大众',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=767 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=768  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(768,'车辆颜色','摩卡蓝',null,null,'上海大众',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆颜色',[参数文本值]='摩卡蓝',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='上海大众',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=768 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=769  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(769,'车辆颜色','炫晶橙',null,null,'上海大众',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆颜色',[参数文本值]='炫晶橙',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='上海大众',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=769 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=770  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(770,'维修类别','检测活动','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='维修类别',[参数文本值]='检测活动',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=770 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=771  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(771,'维修类别','网点配件','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='维修类别',[参数文本值]='网点配件',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=771 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=772  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(772,'维修类别','首保','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='维修类别',[参数文本值]='首保',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=772 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=773  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(773,'维修类别','网点保养','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='维修类别',[参数文本值]='网点保养',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=773 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=774  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(774,'维修类别','保险索赔','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='维修类别',[参数文本值]='保险索赔',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=774 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=775  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(775,'维修类别','售前精品','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='维修类别',[参数文本值]='售前精品',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=775 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=776  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(776,'维修类别','网点首保','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='维修类别',[参数文本值]='网点首保',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=776 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=777  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(777,'维修类别','厂家索赔','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='维修类别',[参数文本值]='厂家索赔',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=777 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=778  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(778,'维修类别','厂家索赔','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='维修类别',[参数文本值]='厂家索赔',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=778 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=779  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(779,'维修类别','内部车','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='维修类别',[参数文本值]='内部车',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=779 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=780  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(780,'维修类别','售后精品','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='维修类别',[参数文本值]='售后精品',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=780 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=781  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(781,'车身颜色','银色','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车身颜色',[参数文本值]='银色',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=781 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=782  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(782,'车身颜色','灰色','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车身颜色',[参数文本值]='灰色',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=782 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=783  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(783,'车身颜色','枣红色','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车身颜色',[参数文本值]='枣红色',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=783 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=784  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(784,'车身颜色','深蓝色','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车身颜色',[参数文本值]='深蓝色',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=784 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=785  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(785,'车身颜色','淡绿色','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车身颜色',[参数文本值]='淡绿色',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=785 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=786  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(786,'车身颜色','墨绿色','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车身颜色',[参数文本值]='墨绿色',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=786 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=787  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(787,'车身颜色','黄色','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车身颜色',[参数文本值]='黄色',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=787 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=788  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(788,'车身颜色','香槟银','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车身颜色',[参数文本值]='香槟银',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=788 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=789  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(789,'维修性质','公司内部','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='维修性质',[参数文本值]='公司内部',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=789 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=790  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(790,'维修性质','自费','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='维修性质',[参数文本值]='自费',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=790 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=791  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(791,'维修性质','厂家索赔','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='维修性质',[参数文本值]='厂家索赔',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=791 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=792  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(792,'维修性质','5000公里强制保养','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='维修性质',[参数文本值]='5000公里强制保养',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=792 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=793  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(793,'维修性质','外售','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='维修性质',[参数文本值]='外售',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=793 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=794  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(794,'所属区域','揭东','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='所属区域',[参数文本值]='揭东',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=794 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=795  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(795,'所属区域','揭西','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='所属区域',[参数文本值]='揭西',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=795 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=796  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(796,'所属区域','丰顺','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='所属区域',[参数文本值]='丰顺',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=796 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=797  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(797,'所属区域','梅州','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='所属区域',[参数文本值]='梅州',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=797 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=798  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(798,'所属区域','陆丰','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='所属区域',[参数文本值]='陆丰',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=798 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=799  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(799,'所属区域','汕尾','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='所属区域',[参数文本值]='汕尾',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=799 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=800  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(800,'所属区域','仙桥','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='所属区域',[参数文本值]='仙桥',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=800 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=801  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(801,'所属区域','潮州','',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='所属区域',[参数文本值]='潮州',[参数隐藏值]='',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=801 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=802  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(802,'培训_专业类别','B类（基础）',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='培训_专业类别',[参数文本值]='B类（基础）',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=802 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=803  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(803,'培训_专业类别','F（财务）',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='培训_专业类别',[参数文本值]='F（财务）',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=803 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=804  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(804,'培训_专业类别','A（行政）',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='培训_专业类别',[参数文本值]='A（行政）',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=804 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=805  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(805,'培训_专业类别','HR（人力资源）',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='培训_专业类别',[参数文本值]='HR（人力资源）',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=805 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=806  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(806,'培训_专业类别','W（生产）',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='培训_专业类别',[参数文本值]='W（生产）',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=806 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=807  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(807,'培训_专业类别','M（市场）',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='培训_专业类别',[参数文本值]='M（市场）',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=807 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=808  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(808,'培训_专业类别','T（外部培训）',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='培训_专业类别',[参数文本值]='T（外部培训）',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=808 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=809  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(809,'培训_专业细分','管线（GX）',null,806,'W（生产）',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='培训_专业细分',[参数文本值]='管线（GX）',[参数隐藏值]=null,[上级Id]=806,[上级文本值]='W（生产）',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=809 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=810  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(810,'培训_专业细分','无线基站（WJ）',null,802,'B类（基础）',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='培训_专业细分',[参数文本值]='无线基站（WJ）',[参数隐藏值]=null,[上级Id]=802,[上级文本值]='B类（基础）',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=810 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=811  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(811,'培训_专业细分','核心网（HX）',null,808,'T（外部培训）',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='培训_专业细分',[参数文本值]='核心网（HX）',[参数隐藏值]=null,[上级Id]=808,[上级文本值]='T（外部培训）',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=811 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=812  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(812,'贷款部门机构号','001001002','234',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='贷款部门机构号',[参数文本值]='001001002',[参数隐藏值]='234',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=812 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=813  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(813,'贷款部门机构号','001004','财务部门',null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='贷款部门机构号',[参数文本值]='001004',[参数隐藏值]='财务部门',[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=813 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=814  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(814,'行业','计算机/IT/软件',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='行业',[参数文本值]='计算机/IT/软件',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=814 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=815  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(815,'行业','咨询/顾问/培训',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='行业',[参数文本值]='咨询/顾问/培训',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=815 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=816  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(816,'行业','金融证券',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='行业',[参数文本值]='金融证券',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=816 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=817  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(817,'行业','电子/电器',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='行业',[参数文本值]='电子/电器',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=817 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=818  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(818,'行业','仪器/设备/机械',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='行业',[参数文本值]='仪器/设备/机械',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=818 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=819  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(819,'客户来源','网络搜索',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='客户来源',[参数文本值]='网络搜索',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=819 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=820  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(820,'客户来源','网络广告',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='客户来源',[参数文本值]='网络广告',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=820 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=821  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(821,'客户来源','老客户介绍',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='客户来源',[参数文本值]='老客户介绍',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=821 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=822  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(822,'客户来源','网络搜索',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='客户来源',[参数文本值]='网络搜索',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=822 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=823  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(823,'客户来源','合作伙伴',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='客户来源',[参数文本值]='合作伙伴',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=823 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=824  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(824,'客户来源','传统媒体',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='客户来源',[参数文本值]='传统媒体',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=824 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=825  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(825,'客户来源','朋友推荐',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='客户来源',[参数文本值]='朋友推荐',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=825 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=826  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(826,'客户来源','企业库',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='客户来源',[参数文本值]='企业库',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=826 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=827  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(827,'客户来源','朋友/老客户来源',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='客户来源',[参数文本值]='朋友/老客户来源',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=827 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=828  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(828,'客户来源','展览会',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='客户来源',[参数文本值]='展览会',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=828 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=829  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(829,'客户来源','其他',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='客户来源',[参数文本值]='其他',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=829 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=830  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(830,'客户类型','潜在客户',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='客户类型',[参数文本值]='潜在客户',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=830 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=831  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(831,'客户类型','重点客户',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='客户类型',[参数文本值]='重点客户',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=831 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=832  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(832,'客户类型','短期客户',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='客户类型',[参数文本值]='短期客户',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=832 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=833  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(833,'客户类型','中期客户',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='客户类型',[参数文本值]='中期客户',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=833 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=834  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(834,'客户类型','长期客户',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='客户类型',[参数文本值]='长期客户',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=834 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=835  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(835,'客户类型','潜在客户',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='客户类型',[参数文本值]='潜在客户',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=835 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=837  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(837,'客户类型','正式客户',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='客户类型',[参数文本值]='正式客户',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=837 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=838  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(838,'客户类型','合作伙伴',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='客户类型',[参数文本值]='合作伙伴',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=838 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=839  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(839,'客户类型','经销商',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='客户类型',[参数文本值]='经销商',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=839 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=840  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(840,'客户类型','试用用户',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='客户类型',[参数文本值]='试用用户',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=840 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=841  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(841,'客户类型','集成商',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='客户类型',[参数文本值]='集成商',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=841 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=842  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(842,'公司规模','少于10个员工',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='公司规模',[参数文本值]='少于10个员工',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=842 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=843  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(843,'公司规模','10至100个员工',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='公司规模',[参数文本值]='10至100个员工',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=843 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=844  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(844,'公司规模','100至200个员工',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='公司规模',[参数文本值]='100至200个员工',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=844 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=845  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(845,'公司规模','200至500个员工',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='公司规模',[参数文本值]='200至500个员工',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=845 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=846  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(846,'公司规模','500至1000个员工',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='公司规模',[参数文本值]='500至1000个员工',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=846 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=847  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(847,'公司规模','1000至2000个员工',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='公司规模',[参数文本值]='1000至2000个员工',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=847 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=848  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(848,'公司规模','大型集团',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='公司规模',[参数文本值]='大型集团',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=848 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=849  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(849,'公司规模','2000个员工以上',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='公司规模',[参数文本值]='2000个员工以上',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=849 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=850  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(850,'往来单位部门','财务部',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='往来单位部门',[参数文本值]='财务部',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=850 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=851  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(851,'往来单位部门','销售部',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='往来单位部门',[参数文本值]='销售部',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=851 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=852  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(852,'往来单位部门','行政部',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='往来单位部门',[参数文本值]='行政部',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=852 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=853  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(853,'往来单位部门','业拓部',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='往来单位部门',[参数文本值]='业拓部',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=853 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=854  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(854,'往来单位部门','采购部',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='往来单位部门',[参数文本值]='采购部',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=854 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=855  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(855,'往来单位部门','工程部',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='往来单位部门',[参数文本值]='工程部',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=855 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=856  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(856,'往来单位部门','开发部',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='往来单位部门',[参数文本值]='开发部',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=856 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=857  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(857,'往来单位部门','生产管理部',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='往来单位部门',[参数文本值]='生产管理部',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=857 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=858  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(858,'往来单位部门','商务部',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='往来单位部门',[参数文本值]='商务部',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=858 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=859  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(859,'往来单位部门','设计室',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='往来单位部门',[参数文本值]='设计室',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=859 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=860  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(860,'往来单位部门','生计科',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='往来单位部门',[参数文本值]='生计科',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=860 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=861  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(861,'往来单位部门','项目管理部',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='往来单位部门',[参数文本值]='项目管理部',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=861 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=862  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(862,'行业','汽车',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='行业',[参数文本值]='汽车',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=862 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=867  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(867,'关怀类别','电话',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='关怀类别',[参数文本值]='电话',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=867 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=868  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(868,'关怀类别','会面',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='关怀类别',[参数文本值]='会面',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=868 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=869  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(869,'关怀类别','Email',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='关怀类别',[参数文本值]='Email',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=869 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=870  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(870,'关怀类别','传真',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='关怀类别',[参数文本值]='传真',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=870 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=871  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(871,'关怀类别','即时沟通',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='关怀类别',[参数文本值]='即时沟通',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=871 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=872  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(872,'关怀类别','事务',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='关怀类别',[参数文本值]='事务',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=872 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=873  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(873,'关怀类别','月度计划',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='关怀类别',[参数文本值]='月度计划',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=873 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=874  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(874,'关怀类别','出差计划',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='关怀类别',[参数文本值]='出差计划',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=874 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=875  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(875,'关怀类别','拜访',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='关怀类别',[参数文本值]='拜访',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=875 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=876  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(876,'问题分类','产品出错',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='问题分类',[参数文本值]='产品出错',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=876 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=877  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(877,'问题分类','技术未达标',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='问题分类',[参数文本值]='技术未达标',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=877 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=878  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(878,'回访类型','电话',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='回访类型',[参数文本值]='电话',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=878 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=879  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(879,'回访类型','邮件',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='回访类型',[参数文本值]='邮件',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=879 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=880  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(880,'回访类型','信函',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='回访类型',[参数文本值]='信函',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=880 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=881  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(881,'培训_专业类别','电脑',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='培训_专业类别',[参数文本值]='电脑',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=881 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=882  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(882,'行业','饮食',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='行业',[参数文本值]='饮食',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=882 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=885  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(885,'机会进度','1-前期接触',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='机会进度',[参数文本值]='1-前期接触',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=885 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=886  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(886,'机会进度','2-机会评估',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='机会进度',[参数文本值]='2-机会评估',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=886 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=887  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(887,'机会进度','3-需求分析',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='机会进度',[参数文本值]='3-需求分析',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=887 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=888  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(888,'机会进度','4-方案提供',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='机会进度',[参数文本值]='4-方案提供',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=888 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=889  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(889,'机会进度','5-多方选择/评估',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='机会进度',[参数文本值]='5-多方选择/评估',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=889 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=890  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(890,'机会进度','6-决定购买',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='机会进度',[参数文本值]='6-决定购买',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=890 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=891  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(891,'机会进度','7-价格交流',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='机会进度',[参数文本值]='7-价格交流',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=891 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=892  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(892,'机会进度','8-商务谈判',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='机会进度',[参数文本值]='8-商务谈判',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=892 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=893  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(893,'机会进度','9-签订合同/购买',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='机会进度',[参数文本值]='9-签订合同/购买',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=893 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=894  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(894,'学习要求','24431423',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='学习要求',[参数文本值]='24431423',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=894 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=895  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(895,'学习方式','2342342',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='学习方式',[参数文本值]='2342342',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=895 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=896  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(896,'寄存地点','123',null,null,'北京现代',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='寄存地点',[参数文本值]='123',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='北京现代',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=896 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=897  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(897,'资产来源方式','购买',null,null,'',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='资产来源方式',[参数文本值]='购买',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=897 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=898  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(898,'资产来源方式','租赁',null,null,'',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='资产来源方式',[参数文本值]='租赁',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=898 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=899  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(899,'资产来源方式','受赠',null,null,'',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='资产来源方式',[参数文本值]='受赠',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=899 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=900  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(900,'资产来源方式','借用',null,null,'',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='资产来源方式',[参数文本值]='借用',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=900 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=901  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(901,'资产类别','房屋、建筑物',null,null,'',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='资产类别',[参数文本值]='房屋、建筑物',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=901 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=902  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(902,'资产类别','工具',null,null,'',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='资产类别',[参数文本值]='工具',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=902 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=903  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(903,'资产类别','家具',null,null,'',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='资产类别',[参数文本值]='家具',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=903 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=904  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(904,'资产类别','运输设备',null,null,'',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='资产类别',[参数文本值]='运输设备',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=904 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=905  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(905,'资产类别','电子设备',null,null,'',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='资产类别',[参数文本值]='电子设备',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=905 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=906  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(906,'资产清理方式','报废',null,null,'',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='资产清理方式',[参数文本值]='报废',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=906 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=907  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(907,'资产状态','出售',null,null,'',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='资产状态',[参数文本值]='出售',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=907 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=908  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(908,'资产清理方式','损坏',null,null,'',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='资产清理方式',[参数文本值]='损坏',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=908 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=909  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(909,'资产清理方式','损失',null,null,'',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='资产清理方式',[参数文本值]='损失',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=909 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=910  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(910,'行业','房地产，建筑业',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='行业',[参数文本值]='房地产，建筑业',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=910 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=911  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(911,'行业','传媒，报业，书刊',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='行业',[参数文本值]='传媒，报业，书刊',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=911 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=912  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(912,'会议类型','部门会议',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='会议类型',[参数文本值]='部门会议',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=912 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=913  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(913,'会议类型','公司会议',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='会议类型',[参数文本值]='公司会议',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=913 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=914  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(914,'会议类型','小组讨论',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='会议类型',[参数文本值]='小组讨论',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=914 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=915  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(915,'会议类型','临时会议',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='会议类型',[参数文本值]='临时会议',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=915 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=916  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(916,'会议类型','全体员工会',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='会议类型',[参数文本值]='全体员工会',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=916 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=917  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(917,'会议类型','中心会议',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='会议类型',[参数文本值]='中心会议',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=917 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=918  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(918,'会议类型','领导会议',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='会议类型',[参数文本值]='领导会议',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=918 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=919  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(919,'会议类型','财务部的会议',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='会议类型',[参数文本值]='财务部的会议',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=919 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=920  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(920,'办公用品限额','200',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='办公用品限额',[参数文本值]='200',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=920 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=921  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(921,'办公用品限额','120',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='办公用品限额',[参数文本值]='120',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=921 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=922  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(922,'办公用品采购帐户','8888888888888888888',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='办公用品采购帐户',[参数文本值]='8888888888888888888',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=922 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=923  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(923,'会议类型','物流',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='会议类型',[参数文本值]='物流',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=923 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=924  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(924,'会议类型','全部员人',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='会议类型',[参数文本值]='全部员人',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=924 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=925  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(925,'公章用途类型','行政',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='公章用途类型',[参数文本值]='行政',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=925 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=926  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(926,'办公用品采购帐户','564364535435463564',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='办公用品采购帐户',[参数文本值]='564364535435463564',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=926 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=927  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(927,'办公用品采购帐户','5555585856858',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='办公用品采购帐户',[参数文本值]='5555585856858',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=927 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=928  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(928,'培训_专业细分','共发生的股份',null,802,'B类（基础）',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='培训_专业细分',[参数文本值]='共发生的股份',[参数隐藏值]=null,[上级Id]=802,[上级文本值]='B类（基础）',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=928 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=929  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(929,'培训_专业细分','而后方',null,804,'A（行政）',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='培训_专业细分',[参数文本值]='而后方',[参数隐藏值]=null,[上级Id]=804,[上级文本值]='A（行政）',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=929 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=930  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(930,'培训_专业细分','而后方可',null,804,'A（行政）',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='培训_专业细分',[参数文本值]='而后方可',[参数隐藏值]=null,[上级Id]=804,[上级文本值]='A（行政）',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=930 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=931  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(931,'学习方式','行当奉麾盖发挥',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='学习方式',[参数文本值]='行当奉麾盖发挥',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=931 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=932  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(932,'学习方式','悠远',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='学习方式',[参数文本值]='悠远',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=932 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=933  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(933,'学习要求','哈苏',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='学习要求',[参数文本值]='哈苏',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=933 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=934  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(934,'学习要求','fdgr',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='学习要求',[参数文本值]='fdgr',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=934 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=935  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(935,'关怀类别','短信',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='关怀类别',[参数文本值]='短信',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=935 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=936  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(936,'客户等级','A',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='客户等级',[参数文本值]='A',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=936 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=937  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(937,'客户等级','B',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='客户等级',[参数文本值]='B',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=937 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=938  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(938,'客户等级','C',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='客户等级',[参数文本值]='C',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=938 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=939  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(939,'客户等级','D',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='客户等级',[参数文本值]='D',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=939 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=940  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(940,'行业','贸易',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='行业',[参数文本值]='贸易',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=940 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=941  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(941,'行业','广告行业',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='行业',[参数文本值]='广告行业',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=941 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=942  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(942,'行业','政府机关',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='行业',[参数文本值]='政府机关',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=942 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=943  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(943,'行业','教育',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='行业',[参数文本值]='教育',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=943 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=944  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(944,'行业','服饰',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='行业',[参数文本值]='服饰',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=944 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=945  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(945,'培训类别','选修',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='培训类别',[参数文本值]='选修',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=945 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=946  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(946,'培训类别','必修',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='培训类别',[参数文本值]='必修',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=946 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=947  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(947,'培训方式','内部培训',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='培训方式',[参数文本值]='内部培训',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=947 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=948  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(948,'培训类别','考试',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='培训类别',[参数文本值]='考试',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=948 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=950  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(950,'企业类型','房地产咨询顾问',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='企业类型',[参数文本值]='房地产咨询顾问',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=950 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=951  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(951,'adf','asgf',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='adf',[参数文本值]='asgf',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=951 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=952  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(952,'adf','asgf',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='adf',[参数文本值]='asgf',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=952 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=953  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(953,'adf','asgf',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='adf',[参数文本值]='asgf',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=953 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=954  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(954,'adf','asgf',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='adf',[参数文本值]='asgf',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=954 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=955  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(955,'adf','asgf',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='adf',[参数文本值]='asgf',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=955 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=956  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(956,'车辆颜色','',null,null,'',null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='车辆颜色',[参数文本值]='',[参数隐藏值]=null,[上级Id]=null,[上级文本值]='',[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=956 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 

     SET IDENTITY_INSERT [参数表] ON 
      if (select count(1) from [参数表] where  [Id]=957  )<1 
      begin 
           Insert into [参数表] ([Id],[参数类型],[参数文本值],[参数隐藏值],[上级Id],[上级文本值],[参数文本值2],[参数文本值3],[参数文本值4],[参数文本值5])values(957,'图书类别','',null,null,null,null,null,null,null)
      end
      else 
      begin 
           update [参数表] set [参数类型]='图书类别',[参数文本值]='',[参数隐藏值]=null,[上级Id]=null,[上级文本值]=null,[参数文本值2]=null,[参数文本值3]=null,[参数文本值4]=null,[参数文本值5]=null where  [Id]=957 
      end

     SET IDENTITY_INSERT [参数表] OFF 

 GO--mygofuck 



--系统的Insert语句集合--



declare  @topMenuId int 
set  @topMenuId=-1 

--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=3132  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(3132,'38e3451b-ee17-4c25-ac5d-bba2bcd122c1','表单检验',3279,'/Template/default/search_list/top_bottom/listForm.aspx',1,'/images/default.gif','/images/default.gif',1,'right_fram',0,1,'',29,0,29,1,1,1,null,'',0,0,'',null,3,'admin','2013-10-9 4:19:28',1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='38e3451b-ee17-4c25-ac5d-bba2bcd122c1',[MenuName]='表单检验',[ParentId]=3279,[ProPath]='/Template/default/search_list/top_bottom/listForm.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=1,[Target]='right_fram',[IsOpen]=0,[IsHidden]=1,[Remark]='',[SSystemId]=29,[SMenuId]=0,[SystemId]=29,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=0,[Creator]='',[CreateTime]=null,[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-9 4:19:28',[AccountId]=1 where  [MenuId]=3132 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3132  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(930,3132,'表单检验','Public',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='表单检验',[RoleName]='Public',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3132  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=1848  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(1848,3132,'表单验证',1,50,0,'Dcx_AjaxForm_ValIdate',0,0,1,29,1848,null,null,29,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3132,[EntName]='表单验证',[MEnt]=1,[DBTableId]=50,[DBConnectId]=0,[DBTableName]='Dcx_AjaxForm_ValIdate',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=1848,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=1848 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=1848

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=1848  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(10949,3132,1848,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=3132,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=1848  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=1848

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1848  and  [ModuleTypeId]=18  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20431,29,3132,1848,1,18,49,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3132,[TemplateId]=1,[ModuleId]=49,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1848  and  [ModuleTypeId]=18 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_DefaultForm_Run]  where [EntId]=1848

--Dcx_DefaultForm_Run
      if (select count(1) from [Dcx_DefaultForm_Run] where  [EntId]=1848  )<1 
      begin 
           Insert into [Dcx_DefaultForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[OtherMsg],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('9294b249-0a76-9b0b-2b66-7bd01e896c0e','设置验证',1848,-1,'','',0,'','<link rel="stylesheet" type="text/css" href="/css/JQEasyUI_themes/default/easyui.css" />
<link rel="stylesheet" type="text/css" href="/css/JQEasyUI_themes/icon.css" />
<script src="/js/JQEasyUI_plugins/jquery.linkbutton.js" type="text/javascript"></script>
<script type="text/javascript" src="/js/FormValidate/FormValidate.js"></script>
<script type="text/javascript" src="/js/FormValidate/FormValidateCommon.js"></script>
<script type="text/javascript">


</script>','DcxRun.DefaultF_1848= {"MenuId":3132,"MEntId":1848,"EntName":"表单验证","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1848":{"EntId":1848,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":27,"Ent":[{"EntId":1848,"Fld":[{"FldId":11,"Vld":[]},{"FldId":4,"Vld":[]},{"FldId":7,"Vld":[]},{"FldId":2,"Vld":[]},{"FldId":9,"Vld":[]},{"FldId":20,"Vld":[]},{"FldId":21,"Vld":[{"Id":16,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":""}]},{"FldId":6,"Vld":[]},{"FldId":3,"Vld":[]},{"FldId":1,"Vld":[]},{"FldId":22,"Vld":[]},{"FldId":13,"Vld":[]},{"FldId":16,"Vld":[]},{"FldId":17,"Vld":[]}]}]};
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_1848.EntMsg.E1848.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_AjaxForm_ValIdate","EntId":1848,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"FldId":{"DtId":1,"DB":1,"CId":3,"FL":4},"VlType":{"DtId":1,"DB":1,"CId":7,"FL":4},"ErrorMsg":{"DtId":2,"DB":1,"CId":1,"FL":500},"OkMsg":{"DtId":2,"DB":1,"CId":1,"FL":500},"WarnMsg":{"DtId":2,"DB":1,"CId":1,"FL":500},"RExp":{"DtId":2,"DB":1,"CId":1,"FL":5000},"CompOpT":{"DtId":1,"DB":1,"CId":3,"FL":4},"CompV":{"DtId":2,"DB":1,"CId":1,"FL":500},"MinValue":{"DtId":2,"DB":1,"CId":1,"FL":500},"MaxValue":{"DtId":2,"DB":1,"CId":1,"FL":500},"OnlyValueType":{"DtId":1,"DB":1,"CId":7,"FL":4}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_1848.EntMsg.E1848.GetDataRowModel=function()
{
    return {"FldId":-1,"VlType":-1,"ErrorMsg":"","OkMsg":"","WarnMsg":"","RExp":"","CompOpT":-1,"CompV":"","MinValue":"","MaxValue":"","OnlyValueType":-1,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_1848.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1848,''DefaultF_'',buildNew,closeDlg);

}','<$1848$>select [FldId],[VlType],[WarnMsg],[OkMsg],[ErrorMsg],[OnlyValueType],[RExp],[CompOpT],[CompV],[MinValue],[MaxValue],[Condition],[Id] from Dcx_AjaxForm_ValIdate where [Id]=''{$keyfieldvalue}''</$1848$>',10,'1848*Id*2**2*Dcx_AjaxForm_ValIdate*表单验证','','','',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-5-4 8:36:32',3,'admin','2013-10-2 18:34:03',1)
      end
      else 
      begin 
           update [Dcx_DefaultForm_Run] set [FormId]='9294b249-0a76-9b0b-2b66-7bd01e896c0e',[FormName]='设置验证',[ModuleId]=-1,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='',[DIYJsCss2]='<link rel="stylesheet" type="text/css" href="/css/JQEasyUI_themes/default/easyui.css" />
<link rel="stylesheet" type="text/css" href="/css/JQEasyUI_themes/icon.css" />
<script src="/js/JQEasyUI_plugins/jquery.linkbutton.js" type="text/javascript"></script>
<script type="text/javascript" src="/js/FormValidate/FormValidate.js"></script>
<script type="text/javascript" src="/js/FormValidate/FormValidateCommon.js"></script>
<script type="text/javascript">


</script>',[AutoPublicJs]='DcxRun.DefaultF_1848= {"MenuId":3132,"MEntId":1848,"EntName":"表单验证","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1848":{"EntId":1848,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":27,"Ent":[{"EntId":1848,"Fld":[{"FldId":11,"Vld":[]},{"FldId":4,"Vld":[]},{"FldId":7,"Vld":[]},{"FldId":2,"Vld":[]},{"FldId":9,"Vld":[]},{"FldId":20,"Vld":[]},{"FldId":21,"Vld":[{"Id":16,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":""}]},{"FldId":6,"Vld":[]},{"FldId":3,"Vld":[]},{"FldId":1,"Vld":[]},{"FldId":22,"Vld":[]},{"FldId":13,"Vld":[]},{"FldId":16,"Vld":[]},{"FldId":17,"Vld":[]}]}]};
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_1848.EntMsg.E1848.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_AjaxForm_ValIdate","EntId":1848,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"FldId":{"DtId":1,"DB":1,"CId":3,"FL":4},"VlType":{"DtId":1,"DB":1,"CId":7,"FL":4},"ErrorMsg":{"DtId":2,"DB":1,"CId":1,"FL":500},"OkMsg":{"DtId":2,"DB":1,"CId":1,"FL":500},"WarnMsg":{"DtId":2,"DB":1,"CId":1,"FL":500},"RExp":{"DtId":2,"DB":1,"CId":1,"FL":5000},"CompOpT":{"DtId":1,"DB":1,"CId":3,"FL":4},"CompV":{"DtId":2,"DB":1,"CId":1,"FL":500},"MinValue":{"DtId":2,"DB":1,"CId":1,"FL":500},"MaxValue":{"DtId":2,"DB":1,"CId":1,"FL":500},"OnlyValueType":{"DtId":1,"DB":1,"CId":7,"FL":4}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_1848.EntMsg.E1848.GetDataRowModel=function()
{
    return {"FldId":-1,"VlType":-1,"ErrorMsg":"","OkMsg":"","WarnMsg":"","RExp":"","CompOpT":-1,"CompV":"","MinValue":"","MaxValue":"","OnlyValueType":-1,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_1848.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1848,''DefaultF_'',buildNew,closeDlg);

}',[LoadingSql]='<$1848$>select [FldId],[VlType],[WarnMsg],[OkMsg],[ErrorMsg],[OnlyValueType],[RExp],[CompOpT],[CompV],[MinValue],[MaxValue],[Condition],[Id] from Dcx_AjaxForm_ValIdate where [Id]=''{$keyfieldvalue}''</$1848$>',[PageSize]=10,[OtherMsg]='1848*Id*2**2*Dcx_AjaxForm_ValIdate*表单验证',[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-5-4 8:36:32',[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-2 18:34:03',[AccountId]=1 where  [EntId]=1848 
      end




--Dcx_DefaultFormField_Run
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='6648a941-a177-3db1-986b-a584ebabf168'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'6648a941-a177-3db1-986b-a584ebabf168',1848,1848,'00000000-0000-0000-0000-000000000000',1,'FldId',1,1,2,'',5,1,1,0,3,1,-1,-1,1,0,'','','','','<div class="defaultform" entid="1848" ctrlprex="DefaultF_">
<ul class="ul-group" groupid="1" isgroup="1" isrple="1">
<li style="position: static; width: 596px; height: 68px; display: none;" class="li-area" areaid="1" scroll="no"><label class="area-title pad7" fldid="1" istitle="1">当前字段</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<select id="d1848_FldId" name="d1848_FldId" class="form-select"  EntId="1848" IsField=1 DBField=1 IsPost=1 FieldName="FldId" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="3" FId="1" vlk=0    style="width:250px;">','</select>','',1,-1,-1,-1,0,'1848,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=1,[Form_EntId]=1848,[EntId]=1848,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[FieldName]='FldId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=2,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="defaultform" entid="1848" ctrlprex="DefaultF_">
<ul class="ul-group" groupid="1" isgroup="1" isrple="1">
<li style="position: static; width: 596px; height: 68px; display: none;" class="li-area" areaid="1" scroll="no"><label class="area-title pad7" fldid="1" istitle="1">当前字段</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1848_FldId" name="d1848_FldId" class="form-select"  EntId="1848" IsField=1 DBField=1 IsPost=1 FieldName="FldId" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="3" FId="1" vlk=0    style="width:250px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1848,' where  [FldUId]='6648a941-a177-3db1-986b-a584ebabf168' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='d9fc2166-4673-f4d4-ea24-260f6ae6279d'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(17,'d9fc2166-4673-f4d4-ea24-260f6ae6279d',1848,1848,'00000000-0000-0000-0000-000000000000',2,'Field1757',2,2,-1,'',5,1,1,0,3,3,-1,-1,1,0,'','','','','</span>
</div>
</li>
<li style="position: static; width: 596px; height: 30px;" class="li-area" areaid="19" scroll="no">
<table style="MARGIN: 0px 5px; WIDTH: 600px" id="pageContent">
<tbody>
<tr>
<td style="PADDING-RIGHT: 8px; WHITE-SPACE: nowrap; HEIGHT: 35px; PADDING-TOP: 5px" valign="top" align="right"><a id="btnNew" class="easyui-linkbutton" href="javascript:BuildNewVld();" iconcls="icon-add">新 建</a> <a id="btnUpdate" class="easyui-linkbutton" href="javascript:SaveVldForm();" iconcls="icon-save">保 存</a> <a id="but_delete" class="easyui-linkbutton" onclick="javascript:DeleteVld();" href="javascript:void(0);" iconcls="icon-cancel">删 除</a></td></tr></tbody></table></li>
<li style="position: static; width: 596px; height: 68px;" class="li-area" areaid="17" scroll="no"><label class="area-title pad7" fldid="17" istitle="1">当前验证</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<select id="d1848_Field1757" name="d1848_Field1757" class="form-select"  onchange ="javascript:initValidate();" EntId="1848" IsField=1 DBField=0 IsPost=0 FieldName="Field1757" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="3" FId="17" vlk=0    style="width:250px;">','</select>','',1,-1,-1,-1,0,'1848,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=17,[Form_EntId]=1848,[EntId]=1848,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[FieldName]='Field1757',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li style="position: static; width: 596px; height: 30px;" class="li-area" areaid="19" scroll="no">
<table style="MARGIN: 0px 5px; WIDTH: 600px" id="pageContent">
<tbody>
<tr>
<td style="PADDING-RIGHT: 8px; WHITE-SPACE: nowrap; HEIGHT: 35px; PADDING-TOP: 5px" valign="top" align="right"><a id="btnNew" class="easyui-linkbutton" href="javascript:BuildNewVld();" iconcls="icon-add">新 建</a> <a id="btnUpdate" class="easyui-linkbutton" href="javascript:SaveVldForm();" iconcls="icon-save">保 存</a> <a id="but_delete" class="easyui-linkbutton" onclick="javascript:DeleteVld();" href="javascript:void(0);" iconcls="icon-cancel">删 除</a></td></tr></tbody></table></li>
<li style="position: static; width: 596px; height: 68px;" class="li-area" areaid="17" scroll="no"><label class="area-title pad7" fldid="17" istitle="1">当前验证</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1848_Field1757" name="d1848_Field1757" class="form-select"  onchange ="javascript:initValidate();" EntId="1848" IsField=1 DBField=0 IsPost=0 FieldName="Field1757" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="3" FId="17" vlk=0    style="width:250px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1848,' where  [FldUId]='d9fc2166-4673-f4d4-ea24-260f6ae6279d' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='c0455cc7-4259-1dd5-3daf-f6ce8c318090'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'c0455cc7-4259-1dd5-3daf-f6ce8c318090',1848,1848,'00000000-0000-0000-0000-000000000000',3,'VlType',1,1,3,'非空|1',1,7,1,0,7,1,-1,-1,1,0,'','','','','</span>
</div>
</li>
<li style="position: static; width: 596px;" class="li-area" areaid="18" scroll="no">
<div class="form-title"><br>
<h2 style="FONT-SIZE: 15px">设置</h2></div><br></li>
<li style="position: static; width: 596px; height: 67px;" class="li-area" areaid="2" scroll="no"><label class="area-title pad7" fldid="2" istitle="1">验证</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<div id="d1848_VlType" class="form-radio" style="" EntId="1848" IsField=1 DBField=1 IsPost=1 FieldName="VlType" dType="1" Vtp="1" RDT="1" Isc="1" RId="1" CId="7" FId="2" vlk=0    Type="1"  onclick ="javascript:Show_Hide_Vld();DcxVld.Validate(this,1848,''DefaultF_'',1848);" onfocus ="javascript:DcxVld.ValidateFocus(this,1848,''DefaultF_'',1848);"><span class="form-radio-item"  >
<input id="ddcx_1848_VlType_0"  name="ddcx_1848_VlType" checked ="checked" type="radio"  text="非空"  value="1"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1848_VlType_0">非空</label></span>
<span class="form-radio-item"  >
<input id="ddcx_1848_VlType_1"  name="ddcx_1848_VlType"  type="radio"  text="值比较"  value="2"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1848_VlType_1">值比较</label></span>
<span class="form-radio-item"  >
<input id="ddcx_1848_VlType_2"  name="ddcx_1848_VlType"  type="radio"  text="值范围"  value="3"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1848_VlType_2">值范围</label></span>
<span class="form-radio-item"  >
<input id="ddcx_1848_VlType_3"  name="ddcx_1848_VlType"  type="radio"  text="正则表达式"  value="4"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1848_VlType_3">正则表达式</label></span>
<span class="form-radio-item"  >
<input id="ddcx_1848_VlType_4"  name="ddcx_1848_VlType"  type="radio"  text="值唯一"  value="5"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1848_VlType_4">值唯一</label></span>
<span class="form-radio-item"  >
<input id="ddcx_1848_VlType_5"  name="ddcx_1848_VlType"  type="radio"  text="执行函数来验证"  value="6"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1848_VlType_5">执行函数来验证</label></span>
<span class="clearfix"></span>','</div>','',1,-1,-1,-1,0,'1848,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=2,[Form_EntId]=1848,[EntId]=1848,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[FieldName]='VlType',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=3,[DefaultValue]='非空|1',[ValueType]=1,[RunValueType]=7,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=7,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li style="position: static; width: 596px;" class="li-area" areaid="18" scroll="no">
<div class="form-title"><br>
<h2 style="FONT-SIZE: 15px">设置</h2></div><br></li>
<li style="position: static; width: 596px; height: 67px;" class="li-area" areaid="2" scroll="no"><label class="area-title pad7" fldid="2" istitle="1">验证</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d1848_VlType" class="form-radio" style="" EntId="1848" IsField=1 DBField=1 IsPost=1 FieldName="VlType" dType="1" Vtp="1" RDT="1" Isc="1" RId="1" CId="7" FId="2" vlk=0    Type="1"  onclick ="javascript:Show_Hide_Vld();DcxVld.Validate(this,1848,''DefaultF_'',1848);" onfocus ="javascript:DcxVld.ValidateFocus(this,1848,''DefaultF_'',1848);"><span class="form-radio-item"  >
<input id="ddcx_1848_VlType_0"  name="ddcx_1848_VlType" checked ="checked" type="radio"  text="非空"  value="1"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1848_VlType_0">非空</label></span>
<span class="form-radio-item"  >
<input id="ddcx_1848_VlType_1"  name="ddcx_1848_VlType"  type="radio"  text="值比较"  value="2"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1848_VlType_1">值比较</label></span>
<span class="form-radio-item"  >
<input id="ddcx_1848_VlType_2"  name="ddcx_1848_VlType"  type="radio"  text="值范围"  value="3"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1848_VlType_2">值范围</label></span>
<span class="form-radio-item"  >
<input id="ddcx_1848_VlType_3"  name="ddcx_1848_VlType"  type="radio"  text="正则表达式"  value="4"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1848_VlType_3">正则表达式</label></span>
<span class="form-radio-item"  >
<input id="ddcx_1848_VlType_4"  name="ddcx_1848_VlType"  type="radio"  text="值唯一"  value="5"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1848_VlType_4">值唯一</label></span>
<span class="form-radio-item"  >
<input id="ddcx_1848_VlType_5"  name="ddcx_1848_VlType"  type="radio"  text="执行函数来验证"  value="6"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1848_VlType_5">执行函数来验证</label></span>
<span class="clearfix"></span>',[CtrlbackHtml]='</div>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1848,' where  [FldUId]='c0455cc7-4259-1dd5-3daf-f6ce8c318090' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='3f9afe6f-3b69-a15a-5074-acf6241e37c7'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'3f9afe6f-3b69-a15a-5074-acf6241e37c7',1848,1848,'00000000-0000-0000-0000-000000000000',4,'WarnMsg',2,2,6,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>

	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li>
<li style="position: static; width: 596px; height: 68px;" class="li-area" areaid="5" scroll="no"><label class="area-title pad7" fldid="5" istitle="1">开始时的提醒</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d1848_WarnMsg"   type="text" class="form-txt"  style="width:320px;" EntId="1848" IsField=1 DBField=1 IsPost=1 FieldName="WarnMsg" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="5" vlk=0    value="','"/>','',1,-1,-1,-1,0,'1848,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=5,[Form_EntId]=1848,[EntId]=1848,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=4,[FieldName]='WarnMsg',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=6,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li>
<li style="position: static; width: 596px; height: 68px;" class="li-area" areaid="5" scroll="no"><label class="area-title pad7" fldid="5" istitle="1">开始时的提醒</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1848_WarnMsg"   type="text" class="form-txt"  style="width:320px;" EntId="1848" IsField=1 DBField=1 IsPost=1 FieldName="WarnMsg" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="5" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1848,' where  [FldUId]='3f9afe6f-3b69-a15a-5074-acf6241e37c7' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='459cb909-7c61-135c-0e64-82d7dc2a52b4'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'459cb909-7c61-135c-0e64-82d7dc2a52b4',1848,1848,'00000000-0000-0000-0000-000000000000',5,'OkMsg',2,2,5,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>

	<div class="form-rmk" isrmk="1" style="PADDING-LEFT: 4px; CLEAR: none">
		&nbsp;</div>
	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li>
<li style="width: 596px; height: 80px; position: static;" class="li-area" areaid="4" scroll="no"><label class="area-title pad7" fldid="4" istitle="1">正确时的提醒</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d1848_OkMsg"   type="text" class="form-txt"  style="width:320px;" onblur ="javascript:if(!DcxVld.Validate(this,1848,''DefaultF_'',1848,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1848,''DefaultF_'',1848);" EntId="1848" IsField=1 DBField=1 IsPost=1 FieldName="OkMsg" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="4" vlk=0    value="','"/>','',1,-1,-1,-1,0,'1848,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=4,[Form_EntId]=1848,[EntId]=1848,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=5,[FieldName]='OkMsg',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=5,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

	<div class="form-rmk" isrmk="1" style="PADDING-LEFT: 4px; CLEAR: none">
		&nbsp;</div>
	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li>
<li style="width: 596px; height: 80px; position: static;" class="li-area" areaid="4" scroll="no"><label class="area-title pad7" fldid="4" istitle="1">正确时的提醒</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1848_OkMsg"   type="text" class="form-txt"  style="width:320px;" onblur ="javascript:if(!DcxVld.Validate(this,1848,''DefaultF_'',1848,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1848,''DefaultF_'',1848);" EntId="1848" IsField=1 DBField=1 IsPost=1 FieldName="OkMsg" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="4" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1848,' where  [FldUId]='459cb909-7c61-135c-0e64-82d7dc2a52b4' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='895cda7d-165e-b6b4-b29d-c7bd44091a6b'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'895cda7d-165e-b6b4-b29d-c7bd44091a6b',1848,1848,'00000000-0000-0000-0000-000000000000',6,'ErrorMsg',2,2,4,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>

	<div class="form-rmk" isrmk="1" style="PADDING-LEFT: 4px; CLEAR: none">
		输入正确时的内容</div>
	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li>
<li style="position: static; width: 596px; height: 68px;" class="li-area" areaid="3" scroll="no"><label class="area-title pad7" fldid="3" istitle="1">错误时的提醒</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d1848_ErrorMsg"   type="text" class="form-txt"  style="width:320px;" EntId="1848" IsField=1 DBField=1 IsPost=1 FieldName="ErrorMsg" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="3" vlk=0    value="','"/>','',1,-1,-1,-1,0,'1848,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=3,[Form_EntId]=1848,[EntId]=1848,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=6,[FieldName]='ErrorMsg',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=4,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

	<div class="form-rmk" isrmk="1" style="PADDING-LEFT: 4px; CLEAR: none">
		输入正确时的内容</div>
	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li>
<li style="position: static; width: 596px; height: 68px;" class="li-area" areaid="3" scroll="no"><label class="area-title pad7" fldid="3" istitle="1">错误时的提醒</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1848_ErrorMsg"   type="text" class="form-txt"  style="width:320px;" EntId="1848" IsField=1 DBField=1 IsPost=1 FieldName="ErrorMsg" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="3" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1848,' where  [FldUId]='895cda7d-165e-b6b4-b29d-c7bd44091a6b' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='9a60d129-3470-0510-7b88-126805b167e4'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(24,'9a60d129-3470-0510-7b88-126805b167e4',1848,1848,'00000000-0000-0000-0000-000000000000',7,'FunctionName',2,2,-1,'',5,1,1,0,1,3,-1,-1,0,0,'','','','','</span>

	<div class="form-rmk" isrmk="1" style="PADDING-LEFT: 4px; CLEAR: none">
		&nbsp;</div>
	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li>
<li style="position: static; width: 596px; height: 100px;" class="li-area" areaid="23" scroll="no"><label class="area-title pad7" fldid="23" istitle="1">用于验证的函数，或一段代码</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d1848_FunctionName"   type="text" class="form-txt"  style="width:320px;" EntId="1848" IsField=1 DBField=0 IsPost=0 FieldName="FunctionName" dType="2" Vtp="5" RDT="2" Isc="1" RId="-1" CId="1" FId="24" vlk=0    value="','"/>','',1,23,-1,-1,0,'1848,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=24,[Form_EntId]=1848,[EntId]=1848,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=7,[FieldName]='FunctionName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

	<div class="form-rmk" isrmk="1" style="PADDING-LEFT: 4px; CLEAR: none">
		&nbsp;</div>
	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li>
<li style="position: static; width: 596px; height: 100px;" class="li-area" areaid="23" scroll="no"><label class="area-title pad7" fldid="23" istitle="1">用于验证的函数，或一段代码</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1848_FunctionName"   type="text" class="form-txt"  style="width:320px;" EntId="1848" IsField=1 DBField=0 IsPost=0 FieldName="FunctionName" dType="2" Vtp="5" RDT="2" Isc="1" RId="-1" CId="1" FId="24" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=23,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1848,' where  [FldUId]='9a60d129-3470-0510-7b88-126805b167e4' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='2d380c5c-e63e-a11a-1911-3fac93cb088b'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(22,'2d380c5c-e63e-a11a-1911-3fac93cb088b',1848,1848,'00000000-0000-0000-0000-000000000000',8,'OnlyValueType',1,1,18,'在数据表中值唯一|1',1,7,1,0,7,1,-1,-1,1,0,'','','','','</span>

	<div class="form-rmk" isrmk="1" style="PADDING-LEFT: 0px; CLEAR: left">
		注意：验证是否通过，取决于被执行代码返回的值是True还是False。代码中如果要获取被验证控件的值，请使用{value}。</div>
	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li>
<li style="position: static; width: 596px; height: 68px; display: none;" class="li-area" areaid="22" scroll="no"><label class="area-title pad7" fldid="21" istitle="1">值唯一的类型</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<div id="d1848_OnlyValueType" class="form-radio" style="" EntId="1848" IsField=1 DBField=1 IsPost=1 FieldName="OnlyValueType" dType="1" Vtp="1" RDT="1" Isc="1" RId="1" CId="7" FId="22" vlk=0    Type="1"  onclick ="javascript:DcxVld.Validate(this,1848,''DefaultF_'',1848);" onfocus ="javascript:DcxVld.ValidateFocus(this,1848,''DefaultF_'',1848);"><span class="form-radio-item"  >
<input id="ddcx_1848_OnlyValueType_0"  name="ddcx_1848_OnlyValueType" checked ="checked" type="radio"  text="在数据表中值唯一"  value="1"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1848_OnlyValueType_0">在数据表中值唯一</label></span>
<span class="form-radio-item"  >
<input id="ddcx_1848_OnlyValueType_1"  name="ddcx_1848_OnlyValueType"  type="radio"  text="在主体下值唯一"  value="2"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1848_OnlyValueType_1">在主体下值唯一</label></span>
<span class="clearfix"></span>','</div>','',-1,-1,-1,-1,0,'1848,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=22,[Form_EntId]=1848,[EntId]=1848,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=8,[FieldName]='OnlyValueType',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=18,[DefaultValue]='在数据表中值唯一|1',[ValueType]=1,[RunValueType]=7,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=7,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

	<div class="form-rmk" isrmk="1" style="PADDING-LEFT: 0px; CLEAR: left">
		注意：验证是否通过，取决于被执行代码返回的值是True还是False。代码中如果要获取被验证控件的值，请使用{value}。</div>
	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li>
<li style="position: static; width: 596px; height: 68px; display: none;" class="li-area" areaid="22" scroll="no"><label class="area-title pad7" fldid="21" istitle="1">值唯一的类型</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d1848_OnlyValueType" class="form-radio" style="" EntId="1848" IsField=1 DBField=1 IsPost=1 FieldName="OnlyValueType" dType="1" Vtp="1" RDT="1" Isc="1" RId="1" CId="7" FId="22" vlk=0    Type="1"  onclick ="javascript:DcxVld.Validate(this,1848,''DefaultF_'',1848);" onfocus ="javascript:DcxVld.ValidateFocus(this,1848,''DefaultF_'',1848);"><span class="form-radio-item"  >
<input id="ddcx_1848_OnlyValueType_0"  name="ddcx_1848_OnlyValueType" checked ="checked" type="radio"  text="在数据表中值唯一"  value="1"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1848_OnlyValueType_0">在数据表中值唯一</label></span>
<span class="form-radio-item"  >
<input id="ddcx_1848_OnlyValueType_1"  name="ddcx_1848_OnlyValueType"  type="radio"  text="在主体下值唯一"  value="2"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1848_OnlyValueType_1">在主体下值唯一</label></span>
<span class="clearfix"></span>',[CtrlbackHtml]='</div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1848,' where  [FldUId]='2d380c5c-e63e-a11a-1911-3fac93cb088b' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='3b8b57bc-32d8-6e2e-8b50-62824e49edfd'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(16,'3b8b57bc-32d8-6e2e-8b50-62824e49edfd',1848,1848,'00000000-0000-0000-0000-000000000000',9,'Field1649',2,2,-1,'SELECT [Name],[ErrorMsg]+''{&*&}''+[RegularExpression] FROM [Dcx_SysRegularExpression] order by Id',2,1,1,0,3,3,-1,-1,1,0,'','','','','</span>
</div>
</li>
<li style="position: static; width: 596px; height: 69px; display: none;" class="li-area" areaid="16" scroll="no"><label class="area-title pad7" fldid="16" istitle="1">常用验证</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<select id="d1848_Field1649" name="d1848_Field1649" class="form-select"  onchange ="javascript:SetExplain(this);" EntId="1848" IsField=1 DBField=0 IsPost=0 FieldName="Field1649" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="3" FId="16" vlk=0    style="width:240px;">','</select>','',1,-1,-1,-1,0,'1848,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=16,[Form_EntId]=1848,[EntId]=1848,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=9,[FieldName]='Field1649',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='SELECT [Name],[ErrorMsg]+''{&*&}''+[RegularExpression] FROM [Dcx_SysRegularExpression] order by Id',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li style="position: static; width: 596px; height: 69px; display: none;" class="li-area" areaid="16" scroll="no"><label class="area-title pad7" fldid="16" istitle="1">常用验证</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1848_Field1649" name="d1848_Field1649" class="form-select"  onchange ="javascript:SetExplain(this);" EntId="1848" IsField=1 DBField=0 IsPost=0 FieldName="Field1649" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="3" FId="16" vlk=0    style="width:240px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1848,' where  [FldUId]='3b8b57bc-32d8-6e2e-8b50-62824e49edfd' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='875669c2-7ee0-168a-9a71-1ab952c7798c'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'875669c2-7ee0-168a-9a71-1ab952c7798c',1848,1848,'00000000-0000-0000-0000-000000000000',10,'RExp',2,2,7,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>

	<div class="form-rmk" isrmk="1" style="PADDING-LEFT: 4px; CLEAR: none">
		&nbsp;</div>
	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li>
<li style="width: 596px; height: 68px; display: none; position: static;" class="li-area" areaid="6" scroll="no"><label class="area-title pad7" fldid="6" istitle="1">正则表达式</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d1848_RExp"   type="text" class="form-txt"  style="width:320px;" EntId="1848" IsField=1 DBField=1 IsPost=1 FieldName="RExp" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="6" vlk=0    value="','"/>','',1,-1,-1,-1,0,'1848,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=6,[Form_EntId]=1848,[EntId]=1848,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=10,[FieldName]='RExp',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=7,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

	<div class="form-rmk" isrmk="1" style="PADDING-LEFT: 4px; CLEAR: none">
		&nbsp;</div>
	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li>
<li style="width: 596px; height: 68px; display: none; position: static;" class="li-area" areaid="6" scroll="no"><label class="area-title pad7" fldid="6" istitle="1">正则表达式</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1848_RExp"   type="text" class="form-txt"  style="width:320px;" EntId="1848" IsField=1 DBField=1 IsPost=1 FieldName="RExp" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="6" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1848,' where  [FldUId]='875669c2-7ee0-168a-9a71-1ab952c7798c' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='4e118cbb-7e40-b934-9b4d-9f6fb9ac7340'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'4e118cbb-7e40-b934-9b4d-9f6fb9ac7340',1848,1848,'00000000-0000-0000-0000-000000000000',11,'CompOpT',1,1,8,'',1,1,1,0,3,1,-1,-1,1,0,'','','','','</span>

	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li>
<li style="width: 596px; height: 69px; display: none; position: static;" class="li-area" areaid="7" scroll="no"><label class="area-title pad7" fldid="7" istitle="1">比较方式</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<select id="d1848_CompOpT" name="d1848_CompOpT" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1848,''DefaultF_'',1848,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1848,''DefaultF_'',1848);" EntId="1848" IsField=1 DBField=1 IsPost=1 FieldName="CompOpT" dType="1" Vtp="1" RDT="1" Isc="1" RId="1" CId="3" FId="7" vlk=0    style="width:250px;">','<option  value="1"  >等于</option>
<option  value="2"  >不等于</option>
<option  value="3"  >大于</option>
<option  value="4"  >大于或等于</option>
<option  value="5"  >小于</option>
<option  value="6"  >小于或等于</option>
<option  value="7"  >含有</option>
<option  value="8"  >不含有</option>
<option  value="9"  >以...开始</option>
<option  value="10"  >以...结束</option>
</select>','',1,-1,-1,-1,0,'1848,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=7,[Form_EntId]=1848,[EntId]=1848,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=11,[FieldName]='CompOpT',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=8,[DefaultValue]='',[ValueType]=1,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li>
<li style="width: 596px; height: 69px; display: none; position: static;" class="li-area" areaid="7" scroll="no"><label class="area-title pad7" fldid="7" istitle="1">比较方式</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1848_CompOpT" name="d1848_CompOpT" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1848,''DefaultF_'',1848,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1848,''DefaultF_'',1848);" EntId="1848" IsField=1 DBField=1 IsPost=1 FieldName="CompOpT" dType="1" Vtp="1" RDT="1" Isc="1" RId="1" CId="3" FId="7" vlk=0    style="width:250px;">',[CtrlbackHtml]='<option  value="1"  >等于</option>
<option  value="2"  >不等于</option>
<option  value="3"  >大于</option>
<option  value="4"  >大于或等于</option>
<option  value="5"  >小于</option>
<option  value="6"  >小于或等于</option>
<option  value="7"  >含有</option>
<option  value="8"  >不含有</option>
<option  value="9"  >以...开始</option>
<option  value="10"  >以...结束</option>
</select>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1848,' where  [FldUId]='4e118cbb-7e40-b934-9b4d-9f6fb9ac7340' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='386f222e-8fa1-6701-b985-2a855cfec7a7'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'386f222e-8fa1-6701-b985-2a855cfec7a7',1848,1848,'00000000-0000-0000-0000-000000000000',12,'CompV',2,2,10,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>

	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li>
<li style="width: 596px; height: 68px; display: none; position: static;" class="li-area" areaid="9" scroll="no"><label class="area-title pad7" fldid="9" istitle="1">比较的值</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d1848_CompV"   type="text" class="form-txt"  style="width:320px;" onblur ="javascript:if(!DcxVld.Validate(this,1848,''DefaultF_'',1848,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1848,''DefaultF_'',1848);" EntId="1848" IsField=1 DBField=1 IsPost=1 FieldName="CompV" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="9" vlk=0    value="','"/>','',1,-1,-1,-1,0,'1848,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=9,[Form_EntId]=1848,[EntId]=1848,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=12,[FieldName]='CompV',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=10,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li>
<li style="width: 596px; height: 68px; display: none; position: static;" class="li-area" areaid="9" scroll="no"><label class="area-title pad7" fldid="9" istitle="1">比较的值</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1848_CompV"   type="text" class="form-txt"  style="width:320px;" onblur ="javascript:if(!DcxVld.Validate(this,1848,''DefaultF_'',1848,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1848,''DefaultF_'',1848);" EntId="1848" IsField=1 DBField=1 IsPost=1 FieldName="CompV" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="9" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1848,' where  [FldUId]='386f222e-8fa1-6701-b985-2a855cfec7a7' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='51fbbf3c-4586-1ddf-085c-bd5ee9e20efe'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'51fbbf3c-4586-1ddf-085c-bd5ee9e20efe',1848,1848,'00000000-0000-0000-0000-000000000000',13,'MinValue',2,2,12,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>

	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li>
<li style="width: 596px; height: 68px; display: none; position: static;" class="li-area" areaid="11" scroll="no"><label class="area-title pad7" fldid="11" istitle="1">最小值</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d1848_MinValue"   type="text" class="form-txt"  style="width:320px;" EntId="1848" IsField=1 DBField=1 IsPost=1 FieldName="MinValue" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="11" vlk=0    value="','"/>','',1,-1,-1,-1,0,'1848,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=11,[Form_EntId]=1848,[EntId]=1848,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=13,[FieldName]='MinValue',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=12,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li>
<li style="width: 596px; height: 68px; display: none; position: static;" class="li-area" areaid="11" scroll="no"><label class="area-title pad7" fldid="11" istitle="1">最小值</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1848_MinValue"   type="text" class="form-txt"  style="width:320px;" EntId="1848" IsField=1 DBField=1 IsPost=1 FieldName="MinValue" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="11" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1848,' where  [FldUId]='51fbbf3c-4586-1ddf-085c-bd5ee9e20efe' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='c621abac-3009-8910-282d-ce98a8f5c975'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(13,'c621abac-3009-8910-282d-ce98a8f5c975',1848,1848,'00000000-0000-0000-0000-000000000000',14,'MaxValue',2,2,14,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>

	<div class="form-rmk" isrmk="1" style="PADDING-LEFT: 4px; CLEAR: none">
		&nbsp;</div>
	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li>
<li style="position: static; width: 596px; height: 68px; display: none;" class="li-area" areaid="13" scroll="no"><label class="area-title pad7" fldid="13" istitle="1">最大值</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d1848_MaxValue"   type="text" class="form-txt"  style="width:320px;" EntId="1848" IsField=1 DBField=1 IsPost=1 FieldName="MaxValue" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="13" vlk=0    value="','"/>','',1,-1,-1,-1,0,'1848,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=13,[Form_EntId]=1848,[EntId]=1848,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=14,[FieldName]='MaxValue',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=14,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

	<div class="form-rmk" isrmk="1" style="PADDING-LEFT: 4px; CLEAR: none">
		&nbsp;</div>
	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li>
<li style="position: static; width: 596px; height: 68px; display: none;" class="li-area" areaid="13" scroll="no"><label class="area-title pad7" fldid="13" istitle="1">最大值</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1848_MaxValue"   type="text" class="form-txt"  style="width:320px;" EntId="1848" IsField=1 DBField=1 IsPost=1 FieldName="MaxValue" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="13" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1848,' where  [FldUId]='c621abac-3009-8910-282d-ce98a8f5c975' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='64f16b63-07d5-cf6d-ce1b-c7b099efe92b'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(20,'64f16b63-07d5-cf6d-ce1b-c7b099efe92b',1848,1848,'00000000-0000-0000-0000-000000000000',15,'Condition',2,2,17,'',5,1,1,0,1,1,-1,-1,0,0,'','','','','</span>

	<div class="form-rmk" isrmk="1" style="PADDING-LEFT: 4px; CLEAR: none">
		&nbsp;</div>
	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li>
<li style="position: static; width: 596px;" class="li-area" areaid="20" scroll="no">
<div class="form-title"><br>
<h2 style="FONT-SIZE: 15px">验证被执行的前提条件<span style="COLOR: #333; MARGIN-LEFT: 5px; FONT-SIZE: 12px">(符合本条件的情况下，本验证才会起作用）</span></h2></div><br></li>
<li style="position: static; width: 596px; height: 70px;" class="li-area" areaid="21" scroll="no" columntype="" dbfieldid="10316"><label class="area-title pad7" istitle="1">验前条件 </label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','</span>
</div>
</li></ul></div>','','','<input  id="d1848_Condition"   type="text" class="form-txt"  style="width:320px;" EntId="1848" IsField=1 DBField=1 IsPost=0 FieldName="Condition" dType="2" Vtp="5" RDT="2" Isc="1" RId="-1" CId="1" FId="20" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1848,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=20,[Form_EntId]=1848,[EntId]=1848,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=15,[FieldName]='Condition',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=17,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

	<div class="form-rmk" isrmk="1" style="PADDING-LEFT: 4px; CLEAR: none">
		&nbsp;</div>
	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li>
<li style="position: static; width: 596px;" class="li-area" areaid="20" scroll="no">
<div class="form-title"><br>
<h2 style="FONT-SIZE: 15px">验证被执行的前提条件<span style="COLOR: #333; MARGIN-LEFT: 5px; FONT-SIZE: 12px">(符合本条件的情况下，本验证才会起作用）</span></h2></div><br></li>
<li style="position: static; width: 596px; height: 70px;" class="li-area" areaid="21" scroll="no" columntype="" dbfieldid="10316"><label class="area-title pad7" istitle="1">验前条件 </label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
</div>
</li></ul></div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1848_Condition"   type="text" class="form-txt"  style="width:320px;" EntId="1848" IsField=1 DBField=1 IsPost=0 FieldName="Condition" dType="2" Vtp="5" RDT="2" Isc="1" RId="-1" CId="1" FId="20" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1848,' where  [FldUId]='64f16b63-07d5-cf6d-ce1b-c7b099efe92b' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=50

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=50  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(50,null,'Dcx_AjaxForm_Validate','Dcx_AjaxForm_Validate',1,0,0,0,0,0,29,1,3,'admin','2013-12-15 17:32:07',3,'admin','2013-12-15 17:32:07',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='Dcx_AjaxForm_Validate',[DBTableByName]='Dcx_AjaxForm_Validate',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=29,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:07',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:07',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=50 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=50  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16080,1,29,50,'bigint',13,1,1,'Dcx_AjaxForm_Validate','Id','Id','',1,1,0,8,19,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bigint',[FieldDataTypeId]=13,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_AjaxForm_Validate',[FieldName]='Id',[FieldByname]='Id',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=8,[Precision]=19,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=50  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=50  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16081,2,29,50,'int',1,1,1,'Dcx_AjaxForm_Validate','FldId','FldId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_AjaxForm_Validate',[FieldName]='FldId',[FieldByname]='FldId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=50  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=50  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16082,3,29,50,'int',1,1,1,'Dcx_AjaxForm_Validate','VlType','VlType','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_AjaxForm_Validate',[FieldName]='VlType',[FieldByname]='VlType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=50  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=50  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16083,4,29,50,'varchar',2,1,1,'Dcx_AjaxForm_Validate','ErrorMsg','ErrorMsg','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_AjaxForm_Validate',[FieldName]='ErrorMsg',[FieldByname]='ErrorMsg',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=50  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=50  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16084,5,29,50,'varchar',2,1,1,'Dcx_AjaxForm_Validate','OkMsg','OkMsg','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_AjaxForm_Validate',[FieldName]='OkMsg',[FieldByname]='OkMsg',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=50  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=50  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16085,6,29,50,'varchar',2,1,1,'Dcx_AjaxForm_Validate','WarnMsg','WarnMsg','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_AjaxForm_Validate',[FieldName]='WarnMsg',[FieldByname]='WarnMsg',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=50  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=50  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16086,7,29,50,'varchar',2,1,1,'Dcx_AjaxForm_Validate','RExp','RExp','',0,0,1,5000,5000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_AjaxForm_Validate',[FieldName]='RExp',[FieldByname]='RExp',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=5000,[Precision]=5000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=50  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=50  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16087,8,29,50,'int',1,1,1,'Dcx_AjaxForm_Validate','CompOpT','CompOpT','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_AjaxForm_Validate',[FieldName]='CompOpT',[FieldByname]='CompOpT',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=50  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=50  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16088,9,29,50,'int',1,1,1,'Dcx_AjaxForm_Validate','CompDT','CompDT','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_AjaxForm_Validate',[FieldName]='CompDT',[FieldByname]='CompDT',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=50  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=50  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16089,10,29,50,'varchar',2,1,1,'Dcx_AjaxForm_Validate','CompV','CompV','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_AjaxForm_Validate',[FieldName]='CompV',[FieldByname]='CompV',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=50  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=50  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16090,11,29,50,'int',1,1,1,'Dcx_AjaxForm_Validate','CompVT','CompVT','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_AjaxForm_Validate',[FieldName]='CompVT',[FieldByname]='CompVT',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=50  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=50  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16091,12,29,50,'varchar',2,1,1,'Dcx_AjaxForm_Validate','MinValue','MinValue','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_AjaxForm_Validate',[FieldName]='MinValue',[FieldByname]='MinValue',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=50  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=50  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16092,13,29,50,'int',1,1,1,'Dcx_AjaxForm_Validate','MinVT','MinVT','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_AjaxForm_Validate',[FieldName]='MinVT',[FieldByname]='MinVT',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=50  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=50  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16093,14,29,50,'varchar',2,1,1,'Dcx_AjaxForm_Validate','MaxValue','MaxValue','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_AjaxForm_Validate',[FieldName]='MaxValue',[FieldByname]='MaxValue',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=50  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=50  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16094,15,29,50,'int',1,1,1,'Dcx_AjaxForm_Validate','MaxVT','MaxVT','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_AjaxForm_Validate',[FieldName]='MaxVT',[FieldByname]='MaxVT',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=50  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=50  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16095,16,29,50,'int',1,1,1,'Dcx_AjaxForm_Validate','RangeDT','RangeDT','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_AjaxForm_Validate',[FieldName]='RangeDT',[FieldByname]='RangeDT',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=50  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=50  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16096,17,29,50,'varchar',2,1,1,'Dcx_AjaxForm_Validate','Condition','Condition','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_AjaxForm_Validate',[FieldName]='Condition',[FieldByname]='Condition',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=50  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=50  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16097,18,29,50,'int',1,1,1,'Dcx_AjaxForm_Validate','OnlyValueType','OnlyValueType','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_AjaxForm_Validate',[FieldName]='OnlyValueType',[FieldByname]='OnlyValueType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=50  and  [FieldId]=18 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=3256  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(3256,'7c1d5f4a-725f-4afd-8ea3-7a5d9b7d2a0b','新闻公告',3278,'',7,'/images/default.gif','/images/default.gif',0,'',0,1,'',29,0,29,1,1,1,null,'',0,0,'',null,3,'admin','2013-10-9 4:14:16',1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='7c1d5f4a-725f-4afd-8ea3-7a5d9b7d2a0b',[MenuName]='新闻公告',[ParentId]=3278,[ProPath]='',[TemplateId]=7,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=0,[Target]='',[IsOpen]=0,[IsHidden]=1,[Remark]='',[SSystemId]=29,[SMenuId]=0,[SystemId]=29,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=0,[Creator]='',[CreateTime]=null,[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-9 4:14:16',[AccountId]=1 where  [MenuId]=3256 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3256  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(1035,3256,'新闻公告','Public',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='新闻公告',[RoleName]='Public',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3256  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3256  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(965,3256,'新闻公告','系统管理员',3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='新闻公告',[RoleName]='系统管理员',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3256  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2001  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2001,3256,'新闻公告',1,1204,0,'新闻公告',0,0,1,29,2001,null,null,29,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3256,[EntName]='新闻公告',[MEnt]=1,[DBTableId]=1204,[DBConnectId]=0,[DBTableName]='新闻公告',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2001,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2001 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=2001

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2001  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11044,3256,2001,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=3256,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2001  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2001

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2001  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20432,29,3256,2001,7,2,62,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3256,[TemplateId]=7,[ModuleId]=62,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2001  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2001  and  [ModuleTypeId]=9  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20433,29,3256,2001,7,9,50,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3256,[TemplateId]=7,[ModuleId]=50,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2001  and  [ModuleTypeId]=9 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2001  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20434,29,3256,2001,7,16,58,1,3,2,'/Template/Default/Form/AjaxForm/AjaxForm008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3256,[TemplateId]=7,[ModuleId]=58,[GroupId]=1,[AreaId]=3,[ShowMode]=2,[AreaUrl]='/Template/Default/Form/AjaxForm/AjaxForm008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=2001  and  [ModuleTypeId]=16 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2001  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20435,29,3256,2001,7,3,55,1,4,2,'/Template/Default/Browse/Browse008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3256,[TemplateId]=7,[ModuleId]=55,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='/Template/Default/Browse/Browse008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=2001  and  [ModuleTypeId]=3 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_DBTable_Run]  where [DBTableId]=1204

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=1204  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(1204,null,'新闻公告','新闻公告',0,0,0,0,0,0,29,1,3,'admin','2013-12-15 17:32:52',3,'admin','2013-12-15 17:32:52',null,null,1,1085,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='新闻公告',[DBTableByName]='新闻公告',[IsForbid]=0,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=29,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:52',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:52',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=1,[SDbTableId]=1085,[IsChange]=null,[IsSystem]=null where  [DBTableId]=1204 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1204  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18167,15,29,1204,'varchar',2,1,1,'新闻公告','是否重要','是否重要','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='新闻公告',[FieldName]='是否重要',[FieldByname]='是否重要',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1204  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1204  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18168,14,29,1204,'varchar',2,1,1,'新闻公告','releasedept','releasedept','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='新闻公告',[FieldName]='releasedept',[FieldByname]='releasedept',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1204  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1204  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18169,13,29,1204,'varchar',2,1,1,'新闻公告','releaseuser','releaseuser','',0,0,1,30,30,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='新闻公告',[FieldName]='releaseuser',[FieldByname]='releaseuser',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=30,[Precision]=30,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1204  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1204  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18170,12,29,1204,'datetime',3,1,1,'新闻公告','releasedate','releasedate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='新闻公告',[FieldName]='releasedate',[FieldByname]='releasedate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1204  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1204  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18171,11,29,1204,'bit',4,1,1,'新闻公告','smsed','smsed','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='新闻公告',[FieldName]='smsed',[FieldByname]='smsed',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1204  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1204  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18172,10,29,1204,'bit',4,1,1,'新闻公告','sms','sms','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='新闻公告',[FieldName]='sms',[FieldByname]='sms',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1204  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1204  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18173,9,29,1204,'text',6,1,1,'新闻公告','body','body','',0,0,1,16,2147483647,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='text',[FieldDataTypeId]=6,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='新闻公告',[FieldName]='body',[FieldByname]='body',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=16,[Precision]=2147483647,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1204  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1204  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18174,8,29,1204,'varchar',2,1,1,'新闻公告','infotype','infotype','',0,0,1,20,20,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='新闻公告',[FieldName]='infotype',[FieldByname]='infotype',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=20,[Precision]=20,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1204  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1204  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18175,7,29,1204,'datetime',3,1,1,'新闻公告','offtime','offtime','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='新闻公告',[FieldName]='offtime',[FieldByname]='offtime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1204  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1204  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18176,6,29,1204,'datetime',3,1,1,'新闻公告','ontime','ontime','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='新闻公告',[FieldName]='ontime',[FieldByname]='ontime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1204  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1204  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18177,5,29,1204,'int',1,1,1,'新闻公告','onoff','onoff','1',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='新闻公告',[FieldName]='onoff',[FieldByname]='onoff',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1204  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1204  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18178,4,29,1204,'int',1,1,1,'新闻公告','ordernum','ordernum','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='新闻公告',[FieldName]='ordernum',[FieldByname]='ordernum',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1204  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1204  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18179,3,29,1204,'varchar',2,1,1,'新闻公告','itemurl','itemurl','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='新闻公告',[FieldName]='itemurl',[FieldByname]='itemurl',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1204  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1204  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18180,2,29,1204,'varchar',2,1,1,'新闻公告','item','item','',0,0,0,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='新闻公告',[FieldName]='item',[FieldByname]='item',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1204  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1204  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18181,1,29,1204,'int',1,1,1,'新闻公告','id','id','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='新闻公告',[FieldName]='id',[FieldByname]='id',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1204  and  [FieldId]=1 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=3273  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(3273,'1d2d5b46-9b50-4a66-894c-2bdf8f000a5e','组织管理',3290,'',0,'/images/default.gif','/images/default.gif',0,'',0,0,'',29,null,29,0,0,1,null,'',0,0,'',null,3,'admin','2013-9-3 7:00:38',1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='1d2d5b46-9b50-4a66-894c-2bdf8f000a5e',[MenuName]='组织管理',[ParentId]=3290,[ProPath]='',[TemplateId]=0,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=0,[Target]='',[IsOpen]=0,[IsHidden]=0,[Remark]='',[SSystemId]=29,[SMenuId]=null,[SystemId]=29,[EntityCount]=0,[VersionId]=0,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=0,[Creator]='',[CreateTime]=null,[EditorId]=3,[Editor]='admin',[EditTime]='2013-9-3 7:00:38',[AccountId]=1 where  [MenuId]=3273 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3273  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(1036,3273,'组织管理','Public',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='组织管理',[RoleName]='Public',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3273  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3273  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(968,3273,'组织管理','系统管理员',3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='组织管理',[RoleName]='系统管理员',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3273  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=3274  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(3274,'46d7ad85-34ba-4893-a6ef-00d96f5ad83b','用户管理',3273,'/System/ListReport_Tree001.aspx?menuid=3274&navindex=2',48,'/images/default.gif','/images/default.gif',2,'rightFrame',0,0,'',29,-1,29,3,1,1,'2013-7-10 1:33:01','',0,0,'',null,3,'admin','2013-10-9 4:19:48',1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='46d7ad85-34ba-4893-a6ef-00d96f5ad83b',[MenuName]='用户管理',[ParentId]=3273,[ProPath]='/System/ListReport_Tree001.aspx?menuid=3274&navindex=2',[TemplateId]=48,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=2,[Target]='rightFrame',[IsOpen]=0,[IsHidden]=0,[Remark]='',[SSystemId]=29,[SMenuId]=-1,[SystemId]=29,[EntityCount]=3,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]='2013-7-10 1:33:01',[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=0,[Creator]='',[CreateTime]=null,[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-9 4:19:48',[AccountId]=1 where  [MenuId]=3274 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3274  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(1037,3274,'用户管理','Public',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='用户管理',[RoleName]='Public',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3274  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3274  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(969,3274,'用户管理','系统管理员',3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='用户管理',[RoleName]='系统管理员',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3274  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2054  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2054,3274,'用户管理',1,1200,0,'Dcx_User',0,0,1,29,2054,null,null,29,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3274,[EntName]='用户管理',[MEnt]=1,[DBTableId]=1200,[DBConnectId]=0,[DBTableName]='Dcx_User',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2054,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2054 
      end
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2280  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2280,3274,'批量添加',1,1200,0,'Dcx_User',0,0,1,29,2280,null,null,29,'',0,0,0,-1,1,1,'2013-7-10 8:42:57','',0,null,null,null,null,0,'',null,3,'admin','2013-8-22 15:36:27',1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3274,[EntName]='批量添加',[MEnt]=1,[DBTableId]=1200,[DBConnectId]=0,[DBTableName]='Dcx_User',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2280,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=0,[IsChecked]=0,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]='2013-7-10 8:42:57',[AddDcxUserName]='',[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=0,[Creator]='',[CreateTime]=null,[EditorId]=3,[Editor]='admin',[EditTime]='2013-8-22 15:36:27',[AccountId]=1 where  [EntId]=2280 
      end
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2292  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2292,3274,'邀请同事',1,1200,0,'Dcx_User',0,0,1,29,2292,null,null,29,'',0,0,0,-1,1,1,'2013-8-22 15:38:42','admin',3,null,null,null,null,3,'admin','2013-8-22 15:38:42',3,'admin','2013-8-22 15:38:42',1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3274,[EntName]='邀请同事',[MEnt]=1,[DBTableId]=1200,[DBConnectId]=0,[DBTableName]='Dcx_User',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2292,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=0,[IsChecked]=0,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]='2013-8-22 15:38:42',[AddDcxUserName]='admin',[AddDcxUserId]=3,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-8-22 15:38:42',[EditorId]=3,[Editor]='admin',[EditTime]='2013-8-22 15:38:42',[AccountId]=1 where  [EntId]=2292 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=2054

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2054  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11088,3274,2054,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=3274,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2054  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2054

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2054  and  [ModuleTypeId]=5  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20476,29,3274,2054,86,5,25,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3274,[TemplateId]=86,[ModuleId]=25,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2054  and  [ModuleTypeId]=5 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2054  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20477,29,3274,2054,86,2,9,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3274,[TemplateId]=86,[ModuleId]=9,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2054  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2054  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20478,29,3274,2054,86,1,1,1,3,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3274,[TemplateId]=86,[ModuleId]=1,[GroupId]=1,[AreaId]=3,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2054  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2054  and  [ModuleTypeId]=18  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20479,29,3274,2054,86,18,42,1,4,2,'/Template/Default/Form/DefaultForm008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3274,[TemplateId]=86,[ModuleId]=42,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='/Template/Default/Form/DefaultForm008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=2054  and  [ModuleTypeId]=18 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2054  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20480,29,3274,2054,86,16,31,1,5,2,'/Template/Default/Browse/Browse008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3274,[TemplateId]=86,[ModuleId]=31,[GroupId]=1,[AreaId]=5,[ShowMode]=2,[AreaUrl]='/Template/Default/Browse/Browse008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=2054  and  [ModuleTypeId]=16 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_DefaultForm_Run]  where [EntId]=2054

--Dcx_DefaultForm_Run
      if (select count(1) from [Dcx_DefaultForm_Run] where  [EntId]=2054  )<1 
      begin 
           Insert into [Dcx_DefaultForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[OtherMsg],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('d04bf294-cf8e-1f62-4058-bbf77563f5c5','用户管理',2054,-1,'','',0,'<script src="/Js/Control/LTreeRList/LTreeRList.js"></script>','<script type="text/javascript" src="/Js/System/Manage/AddUser.js"></script>','DcxRun.DefaultF_2054= {"MenuId":3274,"MEntId":2054,"EntName":"用户管理","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2054":{"EntId":2054,"KeyFieldValue":"","DBTableName":"","KeyField":"UserId","KeydtId":2,"JoinKeyField":"UserId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{
InitCtrlHtml_DateYMD(null,2054,''DefaultF_'',''Birthday'',7,null,null,false);
InitCtrlHtml_Address(null,2054,''DefaultF_'',''Address'',10,null,null,false);

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":32,"Ent":[{"EntId":2054,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,20}$","err":"限制0-20个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":16,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[-_a-zA-Z0-9\\u4e00-\\u9fa5]+$","err":"格式要求为汉字+英文+数字+下划线","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":18,"vlId":5,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"该用户名已被注册，请使用其他用户名注册。如果您是该用户名的主人，请<a href=\"/login.aspx\">登陆</a>。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":2,"Vld":[{"Id":4,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,20}$","err":"限制0-20个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":3,"Vld":[{"Id":5,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":6,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":20,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^\\w+((-\\w+)|(\\.\\w+))*\\@[A-Za-z0-9]+((\\.|-)[A-Za-z0-9]+)*\\.[A-Za-z0-9]+$","err":"格式要求为电子邮箱格式，例如xx@163.com","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":22,"vlId":5,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"Email已被占用！","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":4,"Vld":[{"Id":7,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":5,"Vld":[{"Id":8,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":9,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{6,16}$","err":"密码由6-16个字符组成。","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":25,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[-!-~]+$","err":"密码仅能含有：字母，数字，符号，不能输入汉字，全角字符，空格等其他字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":6,"Vld":[]},{"FldId":7,"Vld":[{"Id":10,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-)) (20|21|22|23|[0-1]?\\d):[0-5]?\\d:[0-5]?\\d|((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))","err":"格式要求为日期时间格式：yyyy-mm-dd  hh:mm:ss","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":8,"Vld":[{"Id":11,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":9,"Vld":[{"Id":12,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,100}$","err":"限制0-100个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":10,"Vld":[{"Id":13,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,150}$","err":"限制0-150个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":11,"Vld":[{"Id":14,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":12,"Vld":[{"Id":27,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"请输入确认密码","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":29,"vlId":2,"cdn":"","compT":1,"compV":"{@PWD}","minV":"","maxV":"","rExp":"","err":"密码不一致，请再次确认。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":13,"Vld":[{"id":30,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":14,"Vld":[{"Id":31,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":15,"Vld":[{"Id":32,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]}]}]};
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2054.EntMsg.E2054.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_User","EntId":2054,"KeyField":"UserId","MKeyField":"UserId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"UserName":{"DtId":2,"DB":1,"CId":1,"FL":20},"RealName":{"DtId":2,"DB":1,"CId":1,"FL":20},"Email":{"DtId":2,"DB":1,"CId":1,"FL":50},"Sex":{"DtId":2,"DB":1,"CId":7,"FL":50},"PWD":{"DtId":2,"DB":1,"CId":17,"FL":100},"Birthday":{"DtId":3,"DB":1,"CId":48,"FL":8},"PositionId":{"DtId":1,"DB":1,"CId":3,"FL":4},"Http":{"DtId":2,"DB":1,"CId":1,"FL":100},"Address":{"DtId":2,"DB":1,"CId":46,"FL":150},"Telephone":{"DtId":2,"DB":1,"CId":1,"FL":50},"DeptId":{"DtId":1,"DB":1,"CId":40,"FL":4},"AccountId":{"DtId":1,"DB":1,"CId":1,"FL":4}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2054.EntMsg.E2054.GetDataRowModel=function()
{
    return {"UserName":"","RealName":"","Email":"","Sex":"","PWD":"123456","Birthday":new Date(),"PositionId":-1,"Http":"","Address":"","Telephone":"","DeptId":-1,"AccountId":-1,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"UserId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2054.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2054,''DefaultF_'',buildNew,closeDlg);

}','<$2054$>select [UserName],[RealName],[Sex],[Email],[PWD],[DeptId],[Birthday],[PositionId],[Http],[Address],[Telephone],[AccountId],[UserId] from Dcx_User where [UserId]=''{$keyfieldvalue}''</$2054$>',10,'2054*UserId*2*UserId*2*Dcx_User*用户管理','','','',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-6 4:27:05',3,'admin','2013-11-29 3:38:30',1)
      end
      else 
      begin 
           update [Dcx_DefaultForm_Run] set [FormId]='d04bf294-cf8e-1f62-4058-bbf77563f5c5',[FormName]='用户管理',[ModuleId]=-1,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script src="/Js/Control/LTreeRList/LTreeRList.js"></script>',[DIYJsCss2]='<script type="text/javascript" src="/Js/System/Manage/AddUser.js"></script>',[AutoPublicJs]='DcxRun.DefaultF_2054= {"MenuId":3274,"MEntId":2054,"EntName":"用户管理","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2054":{"EntId":2054,"KeyFieldValue":"","DBTableName":"","KeyField":"UserId","KeydtId":2,"JoinKeyField":"UserId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{
InitCtrlHtml_DateYMD(null,2054,''DefaultF_'',''Birthday'',7,null,null,false);
InitCtrlHtml_Address(null,2054,''DefaultF_'',''Address'',10,null,null,false);

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":32,"Ent":[{"EntId":2054,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,20}$","err":"限制0-20个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":16,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[-_a-zA-Z0-9\\u4e00-\\u9fa5]+$","err":"格式要求为汉字+英文+数字+下划线","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":18,"vlId":5,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"该用户名已被注册，请使用其他用户名注册。如果您是该用户名的主人，请<a href=\"/login.aspx\">登陆</a>。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":2,"Vld":[{"Id":4,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,20}$","err":"限制0-20个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":3,"Vld":[{"Id":5,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":6,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":20,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^\\w+((-\\w+)|(\\.\\w+))*\\@[A-Za-z0-9]+((\\.|-)[A-Za-z0-9]+)*\\.[A-Za-z0-9]+$","err":"格式要求为电子邮箱格式，例如xx@163.com","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":22,"vlId":5,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"Email已被占用！","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":4,"Vld":[{"Id":7,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":5,"Vld":[{"Id":8,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":9,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{6,16}$","err":"密码由6-16个字符组成。","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":25,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[-!-~]+$","err":"密码仅能含有：字母，数字，符号，不能输入汉字，全角字符，空格等其他字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":6,"Vld":[]},{"FldId":7,"Vld":[{"Id":10,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-)) (20|21|22|23|[0-1]?\\d):[0-5]?\\d:[0-5]?\\d|((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))","err":"格式要求为日期时间格式：yyyy-mm-dd  hh:mm:ss","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":8,"Vld":[{"Id":11,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":9,"Vld":[{"Id":12,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,100}$","err":"限制0-100个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":10,"Vld":[{"Id":13,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,150}$","err":"限制0-150个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":11,"Vld":[{"Id":14,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":12,"Vld":[{"Id":27,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"请输入确认密码","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":29,"vlId":2,"cdn":"","compT":1,"compV":"{@PWD}","minV":"","maxV":"","rExp":"","err":"密码不一致，请再次确认。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":13,"Vld":[{"id":30,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":14,"Vld":[{"Id":31,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":15,"Vld":[{"Id":32,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]}]}]};
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2054.EntMsg.E2054.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_User","EntId":2054,"KeyField":"UserId","MKeyField":"UserId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"UserName":{"DtId":2,"DB":1,"CId":1,"FL":20},"RealName":{"DtId":2,"DB":1,"CId":1,"FL":20},"Email":{"DtId":2,"DB":1,"CId":1,"FL":50},"Sex":{"DtId":2,"DB":1,"CId":7,"FL":50},"PWD":{"DtId":2,"DB":1,"CId":17,"FL":100},"Birthday":{"DtId":3,"DB":1,"CId":48,"FL":8},"PositionId":{"DtId":1,"DB":1,"CId":3,"FL":4},"Http":{"DtId":2,"DB":1,"CId":1,"FL":100},"Address":{"DtId":2,"DB":1,"CId":46,"FL":150},"Telephone":{"DtId":2,"DB":1,"CId":1,"FL":50},"DeptId":{"DtId":1,"DB":1,"CId":40,"FL":4},"AccountId":{"DtId":1,"DB":1,"CId":1,"FL":4}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2054.EntMsg.E2054.GetDataRowModel=function()
{
    return {"UserName":"","RealName":"","Email":"","Sex":"","PWD":"123456","Birthday":new Date(),"PositionId":-1,"Http":"","Address":"","Telephone":"","DeptId":-1,"AccountId":-1,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"UserId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2054.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2054,''DefaultF_'',buildNew,closeDlg);

}',[LoadingSql]='<$2054$>select [UserName],[RealName],[Sex],[Email],[PWD],[DeptId],[Birthday],[PositionId],[Http],[Address],[Telephone],[AccountId],[UserId] from Dcx_User where [UserId]=''{$keyfieldvalue}''</$2054$>',[PageSize]=10,[OtherMsg]='2054*UserId*2*UserId*2*Dcx_User*用户管理',[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-6 4:27:05',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-29 3:38:30',[AccountId]=1 where  [EntId]=2054 
      end




--Dcx_DefaultFormField_Run
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='274ab448-c693-694c-5091-e8ddf539abc4'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'274ab448-c693-694c-5091-e8ddf539abc4',2054,2054,'00000000-0000-0000-0000-000000000000',1,'UserName',2,2,3,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','<div class="defaultform ">
	<div class="div_top">
		<div class="title-div">
			<ul class="ul-title" entid="2054" groupid="5" isgroup="1" ctrlprex="DefaultF_" isrple="1">
				<li areaid="20" class="li-area-title" scroll="no" style="position: static;">
					<div class="form-title5" id="div_head1">
						<span class="title-name" id="h2_title">用户管理</span></div>
				</li>
				<li areaid="21" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
				<li areaid="22" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.DefaultF_2054.SubmitForm(false);"><span class="op_bt_i">保存</span> </a></li>
				<li areaid="23" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(2054,''DefaultF_'');"><span class="op_bt_i">新建</span> </a></li>
			</ul>
		</div>
		<div class="frame-div">
			<ul class="ul-mform" entid="2054" groupid="1" isgroup="1" ctrlprex="DefaultF_" isrple="1">
				<li areaid="24" class="li-area" scroll="no" style="height: 45px; width: 595px; position: static;"><label class="area-title pad4" fldid="1" istitle="1">用户名</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2054_UserName"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2054,''DefaultF_'',2054,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2054,''DefaultF_'',2054);" EntId="2054" IsField=1 DBField=1 IsPost=1 FieldName="UserName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2054,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=1,[Form_EntId]=2054,[EntId]=2054,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[FieldName]='UserName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=3,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="defaultform ">
	<div class="div_top">
		<div class="title-div">
			<ul class="ul-title" entid="2054" groupid="5" isgroup="1" ctrlprex="DefaultF_" isrple="1">
				<li areaid="20" class="li-area-title" scroll="no" style="position: static;">
					<div class="form-title5" id="div_head1">
						<span class="title-name" id="h2_title">用户管理</span></div>
				</li>
				<li areaid="21" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
				<li areaid="22" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.DefaultF_2054.SubmitForm(false);"><span class="op_bt_i">保存</span> </a></li>
				<li areaid="23" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(2054,''DefaultF_'');"><span class="op_bt_i">新建</span> </a></li>
			</ul>
		</div>
		<div class="frame-div">
			<ul class="ul-mform" entid="2054" groupid="1" isgroup="1" ctrlprex="DefaultF_" isrple="1">
				<li areaid="24" class="li-area" scroll="no" style="height: 45px; width: 595px; position: static;"><label class="area-title pad4" fldid="1" istitle="1">用户名</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2054_UserName"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2054,''DefaultF_'',2054,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2054,''DefaultF_'',2054);" EntId="2054" IsField=1 DBField=1 IsPost=1 FieldName="UserName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2054,' where  [FldUId]='274ab448-c693-694c-5091-e8ddf539abc4' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='f2293502-22fe-3445-6c27-c439b09ef7ab'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'f2293502-22fe-3445-6c27-c439b09ef7ab',2054,2054,'00000000-0000-0000-0000-000000000000',2,'RealName',2,2,5,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span><div iserr="1" class="form-vld"></div>

</div>
</li><li areaid="36" class="li-area" scroll="no" style="height: 45px; width: 595px; position: static;"><label class="area-title pad4" fldid="2" istitle="1">姓名</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2054_RealName"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2054,''DefaultF_'',2054,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2054,''DefaultF_'',2054);" EntId="2054" IsField=1 DBField=1 IsPost=1 FieldName="RealName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2054,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=2,[Form_EntId]=2054,[EntId]=2054,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[FieldName]='RealName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=5,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span><div iserr="1" class="form-vld"></div>

</div>
</li><li areaid="36" class="li-area" scroll="no" style="height: 45px; width: 595px; position: static;"><label class="area-title pad4" fldid="2" istitle="1">姓名</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2054_RealName"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2054,''DefaultF_'',2054,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2054,''DefaultF_'',2054);" EntId="2054" IsField=1 DBField=1 IsPost=1 FieldName="RealName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2054,' where  [FldUId]='f2293502-22fe-3445-6c27-c439b09ef7ab' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='43237e73-eedb-b942-b3da-aea8fae463dd'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'43237e73-eedb-b942-b3da-aea8fae463dd',2054,2054,'00000000-0000-0000-0000-000000000000',3,'Sex',2,2,25,'男|',1,7,1,0,7,1,-1,-1,1,0,'','','','','</span>

</div>
</li><li areaid="34" class="li-area" scroll="no" style="height: 45px; width: 595px; position: static;"><label class="area-title pad4" fldid="4" istitle="1">性别</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<div id="d2054_Sex" class="form-radio" style="" EntId="2054" IsField=1 DBField=1 IsPost=1 FieldName="Sex" dType="2" Vtp="1" RDT="2" Isc="1" RId="7" CId="7" FId="4" vlk=0    Type="1"  onclick ="javascript:DcxVld.Validate(this,2054,''DefaultF_'',2054);" onfocus ="javascript:DcxVld.ValidateFocus(this,2054,''DefaultF_'',2054);"><span class="form-radio-item"  >
<input id="ddcx_2054_Sex_0"  name="ddcx_2054_Sex" checked ="checked" type="radio"  text="男"  value=""  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2054_Sex_0">男</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2054_Sex_1"  name="ddcx_2054_Sex"  type="radio"  text="女"  value="女"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2054_Sex_1">女</label></span>
<span class="clearfix"></span>','</div>','',-1,-1,-1,-1,0,'2054,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=4,[Form_EntId]=2054,[EntId]=2054,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[FieldName]='Sex',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=25,[DefaultValue]='男|',[ValueType]=1,[RunValueType]=7,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=7,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

</div>
</li><li areaid="34" class="li-area" scroll="no" style="height: 45px; width: 595px; position: static;"><label class="area-title pad4" fldid="4" istitle="1">性别</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2054_Sex" class="form-radio" style="" EntId="2054" IsField=1 DBField=1 IsPost=1 FieldName="Sex" dType="2" Vtp="1" RDT="2" Isc="1" RId="7" CId="7" FId="4" vlk=0    Type="1"  onclick ="javascript:DcxVld.Validate(this,2054,''DefaultF_'',2054);" onfocus ="javascript:DcxVld.ValidateFocus(this,2054,''DefaultF_'',2054);"><span class="form-radio-item"  >
<input id="ddcx_2054_Sex_0"  name="ddcx_2054_Sex" checked ="checked" type="radio"  text="男"  value=""  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2054_Sex_0">男</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2054_Sex_1"  name="ddcx_2054_Sex"  type="radio"  text="女"  value="女"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2054_Sex_1">女</label></span>
<span class="clearfix"></span>',[CtrlbackHtml]='</div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2054,' where  [FldUId]='43237e73-eedb-b942-b3da-aea8fae463dd' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='93aeaf3c-ee9e-5383-f07f-b06af58e4f3d'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'93aeaf3c-ee9e-5383-f07f-b06af58e4f3d',2054,2054,'00000000-0000-0000-0000-000000000000',4,'Email',2,2,7,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>

</div>
</li><li areaid="35" class="li-area" scroll="no" style="height: 45px; width: 595px; position: static;"><label class="area-title pad4" fldid="3" istitle="1">Email</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2054_Email"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2054,''DefaultF_'',2054,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2054,''DefaultF_'',2054);" EntId="2054" IsField=1 DBField=1 IsPost=1 FieldName="Email" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="3" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2054,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=3,[Form_EntId]=2054,[EntId]=2054,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=4,[FieldName]='Email',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=7,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

</div>
</li><li areaid="35" class="li-area" scroll="no" style="height: 45px; width: 595px; position: static;"><label class="area-title pad4" fldid="3" istitle="1">Email</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2054_Email"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2054,''DefaultF_'',2054,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2054,''DefaultF_'',2054);" EntId="2054" IsField=1 DBField=1 IsPost=1 FieldName="Email" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="3" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2054,' where  [FldUId]='93aeaf3c-ee9e-5383-f07f-b06af58e4f3d' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='ebe39557-4334-3d98-dee4-60f69c220e3b'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'ebe39557-4334-3d98-dee4-60f69c220e3b',2054,2054,'00000000-0000-0000-0000-000000000000',5,'PWD',2,2,22,'123456',5,1,1,0,17,1,-1,-1,1,0,'','','','','</span><div iserr="1" class="form-vld"></div>



</div>
</li><li areaid="33" class="li-area" scroll="no" style="height: 45px; width: 595px; position: static;"><label class="area-title pad4" fldid="5" istitle="1">密码</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2054_PWD"   type="password" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2054,''DefaultF_'',2054,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2054,''DefaultF_'',2054);" EntId="2054" IsField=1 DBField=1 IsPost=1 FieldName="PWD" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="17" FId="5" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2054,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=5,[Form_EntId]=2054,[EntId]=2054,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=5,[FieldName]='PWD',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=22,[DefaultValue]='123456',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=17,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span><div iserr="1" class="form-vld"></div>



</div>
</li><li areaid="33" class="li-area" scroll="no" style="height: 45px; width: 595px; position: static;"><label class="area-title pad4" fldid="5" istitle="1">密码</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2054_PWD"   type="password" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2054,''DefaultF_'',2054,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2054,''DefaultF_'',2054);" EntId="2054" IsField=1 DBField=1 IsPost=1 FieldName="PWD" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="17" FId="5" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2054,' where  [FldUId]='ebe39557-4334-3d98-dee4-60f69c220e3b' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='ca5a0cc1-e21b-3740-b8c5-5eea88ce2774'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(12,'ca5a0cc1-e21b-3740-b8c5-5eea88ce2774',2054,2054,'00000000-0000-0000-0000-000000000000',6,'PWD2',2,2,-1,'123456',5,1,1,0,17,3,-1,-1,0,0,'','','','','</span><div isrmk="1" style="clear: none; padding-left: 4px;" class="form-rmk">默认：123456</div><div iserr="1" class="form-vld"></div>




</div>
</li>
				<li areaid="25" class="li-area" scroll="no" style="height: 55px; width: 595px; position: static;"><label class="area-title pad4" fldid="12" istitle="1">确认密码</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2054_PWD2"   type="password" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2054,''DefaultF_'',2054,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2054,''DefaultF_'',2054);" EntId="2054" IsField=1 DBField=0 IsPost=0 FieldName="PWD2" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="17" FId="12" vlk=0    value="','"/>','',1,25,-1,-1,0,'2054,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=12,[Form_EntId]=2054,[EntId]=2054,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=6,[FieldName]='PWD2',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='123456',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=17,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span><div isrmk="1" style="clear: none; padding-left: 4px;" class="form-rmk">默认：123456</div><div iserr="1" class="form-vld"></div>




</div>
</li>
				<li areaid="25" class="li-area" scroll="no" style="height: 55px; width: 595px; position: static;"><label class="area-title pad4" fldid="12" istitle="1">确认密码</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2054_PWD2"   type="password" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2054,''DefaultF_'',2054,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2054,''DefaultF_'',2054);" EntId="2054" IsField=1 DBField=0 IsPost=0 FieldName="PWD2" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="17" FId="12" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=25,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2054,' where  [FldUId]='ca5a0cc1-e21b-3740-b8c5-5eea88ce2774' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='6246c345-107c-f176-827d-e5dc4b36d8f3'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(13,'6246c345-107c-f176-827d-e5dc4b36d8f3',2054,2054,'00000000-0000-0000-0000-000000000000',7,'DeptId',1,1,14,'',5,2,1,0,40,1,-1,22,1,0,'','','','','</span>

	<div isrmk="1" style="clear: none; padding-left: 4px;" class="form-rmk">默认：123456</div><div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li><li areaid="41" class="li-area" fldid="-1" scroll="no" style="width: 595px; height: 45px; position: static; display: none;"><label class="area-title pad4" fldid="14333" istitle="1">密码</label>
<div class="field-content pad4">
	<a href="javascript:void(0);" onclick="javascript:SetChangePwd(this);" style="margin-left:15px;text-decoration :underline;color:orange;">修改密码</a></div>
</li><li areaid="40" class="li-area" scroll="no" style="height: 55px; width: 595px; position: static;"><label class="area-title pad4" fldid="13" istitle="1">所属部门</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<div id="d2054_DeptId" class="form-ddl" style="-width:230px;" IsForField=1 EntId="2054" FId="13" Vtp="5" RId="2" Isc="1" CId="40" FieldName="DeptId" ><input  id="d2054_DeptId_Text" type="text" class="form-ddl-txt" readonly="readOnly"  CId="40" FId="13" Vtp="5"  RId="2" Isc="1"  style="width:200px;" onclick ="javascript:DcxTree.ShowDialogAf(this,22,2054,''DeptId'',false);" onchange ="javascript:if(!DcxVld.Validate(this,2054,''DefaultF_'',2054,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2054,''DefaultF_'',2054);" onkeyup ="javascript:DcxTree.ShowDialogAf(this,22,2054,''DeptId'',true);" value="','" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2054_DeptId_hid" type="hidden"  EntId="2054" IsField=1 DBField=1 IsPost=1 FieldName="DeptId" dType="1" Vtp="5" RDT="1" Isc="1" RId="2" CId="40" FId="13" vlk=0   TId=22  value="','" />',-1,-1,-1,-1,0,'2054,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=13,[Form_EntId]=2054,[EntId]=2054,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=7,[FieldName]='DeptId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=14,[DefaultValue]='',[ValueType]=5,[RunValueType]=2,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=40,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=22,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

	<div isrmk="1" style="clear: none; padding-left: 4px;" class="form-rmk">默认：123456</div><div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li><li areaid="41" class="li-area" fldid="-1" scroll="no" style="width: 595px; height: 45px; position: static; display: none;"><label class="area-title pad4" fldid="14333" istitle="1">密码</label>
<div class="field-content pad4">
	<a href="javascript:void(0);" onclick="javascript:SetChangePwd(this);" style="margin-left:15px;text-decoration :underline;color:orange;">修改密码</a></div>
</li><li areaid="40" class="li-area" scroll="no" style="height: 55px; width: 595px; position: static;"><label class="area-title pad4" fldid="13" istitle="1">所属部门</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2054_DeptId" class="form-ddl" style="-width:230px;" IsForField=1 EntId="2054" FId="13" Vtp="5" RId="2" Isc="1" CId="40" FieldName="DeptId" ><input  id="d2054_DeptId_Text" type="text" class="form-ddl-txt" readonly="readOnly"  CId="40" FId="13" Vtp="5"  RId="2" Isc="1"  style="width:200px;" onclick ="javascript:DcxTree.ShowDialogAf(this,22,2054,''DeptId'',false);" onchange ="javascript:if(!DcxVld.Validate(this,2054,''DefaultF_'',2054,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2054,''DefaultF_'',2054);" onkeyup ="javascript:DcxTree.ShowDialogAf(this,22,2054,''DeptId'',true);" value="',[CtrlbackHtml]='" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2054_DeptId_hid" type="hidden"  EntId="2054" IsField=1 DBField=1 IsPost=1 FieldName="DeptId" dType="1" Vtp="5" RDT="1" Isc="1" RId="2" CId="40" FId="13" vlk=0   TId=22  value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2054,' where  [FldUId]='6246c345-107c-f176-827d-e5dc4b36d8f3' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='00f52661-f51c-b8c7-7bd4-aada6a0f367c'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'00f52661-f51c-b8c7-7bd4-aada6a0f367c',2054,2054,'00000000-0000-0000-0000-000000000000',8,'Birthday',3,3,30,'',5,10,1,0,48,1,-1,-1,1,0,'','','','','</span>
</div>
</li>
			</ul>
		</div>
		<div class="div_tabs">
			<ul class="tab_ul" entid="2054" groupid="2" isgroup="1" islonly="1" istab="1" ctrlprex="DefaultF_" isrple="1">
				<li areaid="26" class="ui-droppable  li-tab de-selected" istab="1" scroll="no" style="position: static; z-index: 3; height: 29px; width: 70px;" tabid="1"><a class="tab_a" href="javascript:void(0);" tabid="1">其他信息</a></li>
				<li areaid="27" class="ui-droppable  li-tab" istab="1" scroll="no" style="height: 29px; width: 70px; display: none; position: static;" tabid="2"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
			</ul>
			<div class="tabs-content" style="display: block;" tabid="1">
				<ul class="ul-mform" entid="2054" groupid="3" isgroup="1" ctrlprex="DefaultF_" isrple="1">
					<li areaid="28" class="li-area" scroll="no" style="width: 595px; height: 45px; position: static;">
						<label class="area-title pad4" fldid="7" istitle="1">出生日期</label>
						<div class="field-content pad4">
							<span class="form-ctr" isfcontain="1"><div id="d2054_Birthday" ctrlprex="DefaultF_" class="form-dateymd" style="" isforfield="1" entid="2054" fid="7" rid="10" cid="48" fieldname="Birthday"><table><tbody><tr>
<td><select id="d2054_Birthday_1" onchange="javascript:GetChildOption_DateYMD(this);" class="form-select" style="width:120px;" vlabel="1" isyear="1"><option selected="" vid="0" value="0">年份</option></select>年</td><td><select id="d2054_Birthday_2" onchange="javascript:GetChildOption_DateYMD(this);" class="form-select" style="width:80px;" vlabel="2" ismonth="1"><option selected="" vid="0" value="0">月份</option></select>月</td><td><select id="d2054_Birthday_3" onchange="javascript:GetChildOption_DateYMD(this);" class="form-select" style="width:80px;" vlabel="3" isday="1"><option selected="" vid="0" value="0">日</option></select>日</td></tr></tbody></table>
</div>','','','','<input  id="d2054_Birthday_hid"   type="hidden"  EntId="2054" IsField=1 DBField=1 IsPost=1 FieldName="Birthday" dType="3" Vtp="5" RDT="3" Isc="1" RId="10" CId="48" FId="7" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2054,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=7,[Form_EntId]=2054,[EntId]=2054,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=8,[FieldName]='Birthday',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=30,[DefaultValue]='',[ValueType]=5,[RunValueType]=10,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=48,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
			</ul>
		</div>
		<div class="div_tabs">
			<ul class="tab_ul" entid="2054" groupid="2" isgroup="1" islonly="1" istab="1" ctrlprex="DefaultF_" isrple="1">
				<li areaid="26" class="ui-droppable  li-tab de-selected" istab="1" scroll="no" style="position: static; z-index: 3; height: 29px; width: 70px;" tabid="1"><a class="tab_a" href="javascript:void(0);" tabid="1">其他信息</a></li>
				<li areaid="27" class="ui-droppable  li-tab" istab="1" scroll="no" style="height: 29px; width: 70px; display: none; position: static;" tabid="2"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
			</ul>
			<div class="tabs-content" style="display: block;" tabid="1">
				<ul class="ul-mform" entid="2054" groupid="3" isgroup="1" ctrlprex="DefaultF_" isrple="1">
					<li areaid="28" class="li-area" scroll="no" style="width: 595px; height: 45px; position: static;">
						<label class="area-title pad4" fldid="7" istitle="1">出生日期</label>
						<div class="field-content pad4">
							<span class="form-ctr" isfcontain="1"><div id="d2054_Birthday" ctrlprex="DefaultF_" class="form-dateymd" style="" isforfield="1" entid="2054" fid="7" rid="10" cid="48" fieldname="Birthday"><table><tbody><tr>
<td><select id="d2054_Birthday_1" onchange="javascript:GetChildOption_DateYMD(this);" class="form-select" style="width:120px;" vlabel="1" isyear="1"><option selected="" vid="0" value="0">年份</option></select>年</td><td><select id="d2054_Birthday_2" onchange="javascript:GetChildOption_DateYMD(this);" class="form-select" style="width:80px;" vlabel="2" ismonth="1"><option selected="" vid="0" value="0">月份</option></select>月</td><td><select id="d2054_Birthday_3" onchange="javascript:GetChildOption_DateYMD(this);" class="form-select" style="width:80px;" vlabel="3" isday="1"><option selected="" vid="0" value="0">日</option></select>日</td></tr></tbody></table>
</div>',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2054_Birthday_hid"   type="hidden"  EntId="2054" IsField=1 DBField=1 IsPost=1 FieldName="Birthday" dType="3" Vtp="5" RDT="3" Isc="1" RId="10" CId="48" FId="7" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2054,' where  [FldUId]='00f52661-f51c-b8c7-7bd4-aada6a0f367c' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='06bac348-1478-d4da-2cc9-e6d71d93ab4e'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'06bac348-1478-d4da-2cc9-e6d71d93ab4e',2054,2054,'00000000-0000-0000-0000-000000000000',9,'PositionId',1,1,15,'SELECT[PositionName], [PositionId] FROM [Dcx_Position]',2,1,1,0,3,1,-1,-1,1,0,'','','','','</span>


</div>
					</li>
					<li areaid="29" class="li-area" fldid="-1" scroll="no" style="width: 595px; height: 45px; position: static;">
						<label class="area-title pad4" fldid="8" istitle="1">职位</label>
						<div class="field-content pad4">
							<span class="form-ctr" isfcontain="1">','','','','<select id="d2054_PositionId" name="d2054_PositionId" class="form-select"  onchange ="javascript:DcxVld.Validate(this,2054,''DefaultF_'',2054,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,2054,''DefaultF_'',2054);" EntId="2054" IsField=1 DBField=1 IsPost=1 FieldName="PositionId" dType="1" Vtp="2" RDT="1" Isc="1" RId="1" CId="3" FId="8" vlk=0    style="width:200px;">','</select>','',-1,-1,-1,-1,0,'2054,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=8,[Form_EntId]=2054,[EntId]=2054,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=9,[FieldName]='PositionId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=15,[DefaultValue]='SELECT[PositionName], [PositionId] FROM [Dcx_Position]',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>


</div>
					</li>
					<li areaid="29" class="li-area" fldid="-1" scroll="no" style="width: 595px; height: 45px; position: static;">
						<label class="area-title pad4" fldid="8" istitle="1">职位</label>
						<div class="field-content pad4">
							<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d2054_PositionId" name="d2054_PositionId" class="form-select"  onchange ="javascript:DcxVld.Validate(this,2054,''DefaultF_'',2054,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,2054,''DefaultF_'',2054);" EntId="2054" IsField=1 DBField=1 IsPost=1 FieldName="PositionId" dType="1" Vtp="2" RDT="1" Isc="1" RId="1" CId="3" FId="8" vlk=0    style="width:200px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2054,' where  [FldUId]='06bac348-1478-d4da-2cc9-e6d71d93ab4e' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='a4f438c7-1e1a-9bd9-dca5-e0ffb2da6a93'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'a4f438c7-1e1a-9bd9-dca5-e0ffb2da6a93',2054,2054,'00000000-0000-0000-0000-000000000000',10,'Http',2,2,34,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
</div>
					</li><li areaid="39" class="li-area" fldid="-1" scroll="no" style="width: 595px; height: 45px; position: static;">
						<label class="area-title pad4" fldid="9" istitle="1">个人主页</label>
						<div class="field-content pad4">
							<span class="form-ctr" isfcontain="1">','','','','<input  id="d2054_Http"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2054,''DefaultF_'',2054,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2054,''DefaultF_'',2054);" EntId="2054" IsField=1 DBField=1 IsPost=1 FieldName="Http" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="9" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2054,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=9,[Form_EntId]=2054,[EntId]=2054,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=10,[FieldName]='Http',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=34,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
					</li><li areaid="39" class="li-area" fldid="-1" scroll="no" style="width: 595px; height: 45px; position: static;">
						<label class="area-title pad4" fldid="9" istitle="1">个人主页</label>
						<div class="field-content pad4">
							<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2054_Http"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2054,''DefaultF_'',2054,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2054,''DefaultF_'',2054);" EntId="2054" IsField=1 DBField=1 IsPost=1 FieldName="Http" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="9" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2054,' where  [FldUId]='a4f438c7-1e1a-9bd9-dca5-e0ffb2da6a93' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='6fd75787-0f44-ab56-73b5-b2fb5bebe11b'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'6fd75787-0f44-ab56-73b5-b2fb5bebe11b',2054,2054,'00000000-0000-0000-0000-000000000000',11,'Address',2,2,8,'',5,10,1,0,46,1,-1,-1,1,0,'','','','','</span>
</div>
					</li><li areaid="38" class="li-area" fldid="-1" scroll="no" style="width: 595px; height: 45px; position: static;">
						<label class="area-title pad4" fldid="10" istitle="1">所在地区</label>
						<div class="field-content pad4">
							<span class="form-ctr" isfcontain="1"><div id="d2054_Address" ctrlprex="DefaultF_" class="form-address" style="" isforfield="1" entid="2054" fid="10" rid="10" cid="46" fieldname="Address"><table><tbody><tr>
<td><select id="d2054_Address_1" class="form-select" onchange="javascript:GetChildOption_Address(this);" style="width:120px;" vlabel="1"><option selected="" vid="0" value="0">选择国家</option></select></td><td><select id="d2054_Address_2" class="form-select" onchange="javascript:GetChildOption_Address(this);" style="width:80px;" vlabel="2"><option selected="" vid="0" value="0">选择省</option></select></td><td><select id="d2054_Address_3" class="form-select" onchange="javascript:GetChildOption_Address(this);" style="width:80px;" vlabel="3"><option selected="" vid="0" value="0">选择市</option></select></td></tr></tbody></table>
</div>','','','','<input  id="d2054_Address_hid"   type="hidden"  EntId="2054" IsField=1 DBField=1 IsPost=1 FieldName="Address" dType="2" Vtp="5" RDT="2" Isc="1" RId="10" CId="46" FId="10" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2054,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=10,[Form_EntId]=2054,[EntId]=2054,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=11,[FieldName]='Address',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=8,[DefaultValue]='',[ValueType]=5,[RunValueType]=10,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=46,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
					</li><li areaid="38" class="li-area" fldid="-1" scroll="no" style="width: 595px; height: 45px; position: static;">
						<label class="area-title pad4" fldid="10" istitle="1">所在地区</label>
						<div class="field-content pad4">
							<span class="form-ctr" isfcontain="1"><div id="d2054_Address" ctrlprex="DefaultF_" class="form-address" style="" isforfield="1" entid="2054" fid="10" rid="10" cid="46" fieldname="Address"><table><tbody><tr>
<td><select id="d2054_Address_1" class="form-select" onchange="javascript:GetChildOption_Address(this);" style="width:120px;" vlabel="1"><option selected="" vid="0" value="0">选择国家</option></select></td><td><select id="d2054_Address_2" class="form-select" onchange="javascript:GetChildOption_Address(this);" style="width:80px;" vlabel="2"><option selected="" vid="0" value="0">选择省</option></select></td><td><select id="d2054_Address_3" class="form-select" onchange="javascript:GetChildOption_Address(this);" style="width:80px;" vlabel="3"><option selected="" vid="0" value="0">选择市</option></select></td></tr></tbody></table>
</div>',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2054_Address_hid"   type="hidden"  EntId="2054" IsField=1 DBField=1 IsPost=1 FieldName="Address" dType="2" Vtp="5" RDT="2" Isc="1" RId="10" CId="46" FId="10" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2054,' where  [FldUId]='6fd75787-0f44-ab56-73b5-b2fb5bebe11b' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='3f27a1bc-2188-75f3-094c-e48c7a1c440a'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'3f27a1bc-2188-75f3-094c-e48c7a1c440a',2054,2054,'00000000-0000-0000-0000-000000000000',12,'Telephone',2,2,26,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
</div>
					</li><li areaid="37" class="li-area" fldid="-1" scroll="no" style="width: 595px; height: 45px; position: static;">
						<label class="area-title pad4" fldid="11" istitle="1">电话号码</label>
						<div class="field-content pad4">
							<span class="form-ctr" isfcontain="1">','','','','<input  id="d2054_Telephone"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2054,''DefaultF_'',2054,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2054,''DefaultF_'',2054);" EntId="2054" IsField=1 DBField=1 IsPost=1 FieldName="Telephone" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="11" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2054,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=11,[Form_EntId]=2054,[EntId]=2054,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=12,[FieldName]='Telephone',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=26,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
					</li><li areaid="37" class="li-area" fldid="-1" scroll="no" style="width: 595px; height: 45px; position: static;">
						<label class="area-title pad4" fldid="11" istitle="1">电话号码</label>
						<div class="field-content pad4">
							<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2054_Telephone"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2054,''DefaultF_'',2054,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2054,''DefaultF_'',2054);" EntId="2054" IsField=1 DBField=1 IsPost=1 FieldName="Telephone" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="11" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2054,' where  [FldUId]='3f27a1bc-2188-75f3-094c-e48c7a1c440a' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='637661d0-c568-ca25-e6fe-3b1458db97d9'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(15,'637661d0-c568-ca25-e6fe-3b1458db97d9',2054,2054,'00000000-0000-0000-0000-000000000000',13,'AccountId',1,1,10,'{$AccountId}',0,1,1,0,1,1,-1,-1,1,0,'','','','{$AccountId},','</span>

<div iserr="1" class="form-vld"></div>
</div>
					</li><li areaid="44" class="li-area" fldid="-1" scroll="no" style="width: 595px; height: 45px; position: static; display: none;"><label class="area-title pad4" fldid="15" istitle="1">AccountId</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','</span>
</div>
</li><li areaid="42" class="li-area" fldid="-1" scroll="no" style="width: 595px; height: 45px; display: none; position: static;"><label class="area-title pad4" fldid="-1" istitle="1">请编辑</label>
<div class="field-content pad4">
	请编辑</div></li><li areaid="45" class="li-area" fldid="-1" scroll="no" style="width: 595px; height: 45px; display: none; position: static;"><label class="area-title pad4" fldid="-1" istitle="1">请编辑</label>
<div class="field-content pad4">
	请编辑</div></li><li areaid="43" class="li-area" fldid="-1" scroll="no" style="width: 595px; height: 45px; display: none; position: static;"><label class="area-title pad4" fldid="14333" istitle="1">Field4185</label>
<div class="field-content pad4">
	&nbsp;</div>
</li>
				</ul>
			</div>
			<div class="tabs-content" style="display: none;" tabid="2">
				<ul class="ul-mform" entid="2054" groupid="4" isgroup="1" style="" ctrlprex="DefaultF_" isrple="1">
					<li areaid="30" class="li-area" scroll="no" style="width: 595px; height: 55px; position: static; display: none;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
					
				</ul>
			</div>
		</div>
	</div>
</div>
<br>','','','<input  id="d2054_AccountId"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2054,''DefaultF_'',2054,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2054,''DefaultF_'',2054);" EntId="2054" IsField=1 DBField=1 IsPost=1 FieldName="AccountId" dType="1" Vtp="0" RDT="1" Isc="1" RId="1" CId="1" FId="15" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2054,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=15,[Form_EntId]=2054,[EntId]=2054,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=13,[FieldName]='AccountId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=10,[DefaultValue]='{$AccountId}',[ValueType]=0,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$AccountId},',[BeforeHtml]='</span>

<div iserr="1" class="form-vld"></div>
</div>
					</li><li areaid="44" class="li-area" fldid="-1" scroll="no" style="width: 595px; height: 45px; position: static; display: none;"><label class="area-title pad4" fldid="15" istitle="1">AccountId</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
</div>
</li><li areaid="42" class="li-area" fldid="-1" scroll="no" style="width: 595px; height: 45px; display: none; position: static;"><label class="area-title pad4" fldid="-1" istitle="1">请编辑</label>
<div class="field-content pad4">
	请编辑</div></li><li areaid="45" class="li-area" fldid="-1" scroll="no" style="width: 595px; height: 45px; display: none; position: static;"><label class="area-title pad4" fldid="-1" istitle="1">请编辑</label>
<div class="field-content pad4">
	请编辑</div></li><li areaid="43" class="li-area" fldid="-1" scroll="no" style="width: 595px; height: 45px; display: none; position: static;"><label class="area-title pad4" fldid="14333" istitle="1">Field4185</label>
<div class="field-content pad4">
	&nbsp;</div>
</li>
				</ul>
			</div>
			<div class="tabs-content" style="display: none;" tabid="2">
				<ul class="ul-mform" entid="2054" groupid="4" isgroup="1" style="" ctrlprex="DefaultF_" isrple="1">
					<li areaid="30" class="li-area" scroll="no" style="width: 595px; height: 55px; position: static; display: none;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
					
				</ul>
			</div>
		</div>
	</div>
</div>
<br>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2054_AccountId"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2054,''DefaultF_'',2054,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2054,''DefaultF_'',2054);" EntId="2054" IsField=1 DBField=1 IsPost=1 FieldName="AccountId" dType="1" Vtp="0" RDT="1" Isc="1" RId="1" CId="1" FId="15" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2054,' where  [FldUId]='637661d0-c568-ca25-e6fe-3b1458db97d9' 
      end



Delete from [Dcx_SearchForm_Run]  where [EntId]=2054

--Dcx_SearchForm_Run
      if (select count(1) from [Dcx_SearchForm_Run] where  [EntId]=2054  )<1 
      begin 
           Insert into [Dcx_SearchForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('332e4b35-4de9-8e2f-6cb1-9ef6611258ec','用户管理',2054,9,'','',0,'','','DcxRun.SearchF_2054= {"MenuId":3274,"MEntId":2054,"EntName":"用户管理","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2054":{"EntId":2054,"KeyFieldValue":"","DBTableName":"","KeyField":"UserId","KeydtId":2,"JoinKeyField":"UserId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_2054.EntMsg.E2054.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_User","EntId":2054,"KeyField":"UserId","MKeyField":"UserId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"UserName":{"DtId":2,"DB":1,"CId":1,"FL":20},"RealName":{"DtId":2,"DB":1,"CId":1,"FL":20}},"Data":{"Row":[]}};
}
DcxRun.SearchF_2054.EntMsg.E2054.GetDataRowModel=function()
{
    return {"UserName":"","RealName":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"UserId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_2054.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2054,''SearchF_'',buildNew,closeDlg);

}','',10,'','','','2054*UserId*2*UserId*2*Dcx_User*用户管理',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-6 4:23:40',3,'admin','2013-8-22 5:58:37',1)
      end
      else 
      begin 
           update [Dcx_SearchForm_Run] set [FormId]='332e4b35-4de9-8e2f-6cb1-9ef6611258ec',[FormName]='用户管理',[ModuleId]=9,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.SearchF_2054= {"MenuId":3274,"MEntId":2054,"EntName":"用户管理","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2054":{"EntId":2054,"KeyFieldValue":"","DBTableName":"","KeyField":"UserId","KeydtId":2,"JoinKeyField":"UserId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_2054.EntMsg.E2054.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_User","EntId":2054,"KeyField":"UserId","MKeyField":"UserId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"UserName":{"DtId":2,"DB":1,"CId":1,"FL":20},"RealName":{"DtId":2,"DB":1,"CId":1,"FL":20}},"Data":{"Row":[]}};
}
DcxRun.SearchF_2054.EntMsg.E2054.GetDataRowModel=function()
{
    return {"UserName":"","RealName":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"UserId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_2054.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2054,''SearchF_'',buildNew,closeDlg);

}',[LoadingSql]='',[PageSize]=10,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='2054*UserId*2*UserId*2*Dcx_User*用户管理',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-6 4:23:40',[EditorId]=3,[Editor]='admin',[EditTime]='2013-8-22 5:58:37',[AccountId]=1 where  [EntId]=2054 
      end




--Dcx_SearchFormField_Run
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='839514cf-cf85-94ab-b75c-a752dd606147'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'839514cf-cf85-94ab-b75c-a752dd606147',2054,2054,'00000000-0000-0000-0000-000000000000',1,'Like','UserName',2,2,3,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','<div class="searchform">
	<ul class="search-block" groupid="1" isgroup="1" isrple="1">
		<li areaid="5" class="search-li" scroll="no" style="width: 230px; height: 38px; position: static;"><label class="search-title pad7" fldid="1" istitle="1">用户名</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2054_UserName"   type="text" class="form-txt"  style="width:150px;" EntId="2054" IsField=1 DBField=1 IsPost=1 FieldName="UserName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'2054,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=1,[Form_EntId]=2054,[EntId]=2054,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[CompareOperatorType]='Like',[FieldName]='UserName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=3,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="searchform">
	<ul class="search-block" groupid="1" isgroup="1" isrple="1">
		<li areaid="5" class="search-li" scroll="no" style="width: 230px; height: 38px; position: static;"><label class="search-title pad7" fldid="1" istitle="1">用户名</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2054_UserName"   type="text" class="form-txt"  style="width:150px;" EntId="2054" IsField=1 DBField=1 IsPost=1 FieldName="UserName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2054,' where  [FldUId]='839514cf-cf85-94ab-b75c-a752dd606147' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='90cd1e45-1113-7e45-e9c8-5278531e5ffd'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'90cd1e45-1113-7e45-e9c8-5278531e5ffd',2054,2054,'00000000-0000-0000-0000-000000000000',2,'Like','RealName',2,2,5,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>

</div>
</li>
		<li areaid="6" class="search-li" scroll="no" style="width: 230px; height: 38px; position: static;"><label class="search-title pad7" fldid="2" istitle="1">姓名</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">','</span>
</div>
</li>
		
		<li areaid="8" class="" scroll="no" style="width: 102px; height: 33px; position: static;"><div class="searchform-button " onclick="javascript:return VL_Search(2054);" style="margin-top:3px;">
	<div class="search-btn">
		&nbsp;</div>
	<a href="javascript:void(0);" id="2054_searchBT">搜索</a></div></li>
	</ul>
</div>
<br>','','','<input  id="d2054_RealName"   type="text" class="form-txt"  style="width:150px;" EntId="2054" IsField=1 DBField=1 IsPost=1 FieldName="RealName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'2054,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=2,[Form_EntId]=2054,[EntId]=2054,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[CompareOperatorType]='Like',[FieldName]='RealName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=5,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

</div>
</li>
		<li areaid="6" class="search-li" scroll="no" style="width: 230px; height: 38px; position: static;"><label class="search-title pad7" fldid="2" istitle="1">姓名</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
</div>
</li>
		
		<li areaid="8" class="" scroll="no" style="width: 102px; height: 33px; position: static;"><div class="searchform-button " onclick="javascript:return VL_Search(2054);" style="margin-top:3px;">
	<div class="search-btn">
		&nbsp;</div>
	<a href="javascript:void(0);" id="2054_searchBT">搜索</a></div></li>
	</ul>
</div>
<br>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2054_RealName"   type="text" class="form-txt"  style="width:150px;" EntId="2054" IsField=1 DBField=1 IsPost=1 FieldName="RealName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2054,' where  [FldUId]='90cd1e45-1113-7e45-e9c8-5278531e5ffd' 
      end



Delete from [Dcx_BrowseReport_Run]  where [EntId]=2054

--Dcx_BrowseReport_Run
      if (select count(1) from [Dcx_BrowseReport_Run] where  [EntId]=2054  )<1 
      begin 
           Insert into [Dcx_BrowseReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[DIYJsCss],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('e9cb3598-4cb5-245f-00db-af0f92dda7bc','用户管理',2054,-1,'','<$2054$>select [RealName],[UserName],[Email],[Sex],[Telephone],[Phone],[Birthday],[Http],[UserId]
,(SELECT top 1 A.[PositionName] FROM [Dcx_Position] as A where A.[PositionId]=Dcx_User.[PositionId]) as [PositionName]
,(SELECT top 1 A.[DeptName] FROM [Dcx_Dept] as A where A.[DeptId]=Dcx_User.[DeptId]) as [DeptName]
 from Dcx_User where [UserId]={$keyfieldvalue}</$2054$>',1,1,10,'<style type="text/css">
   
div.browse_main{
max-width:670px!important;
}
div.browse_main div{
max-width:670px!important;
}
	</style>','DcxRun.MChildR_2054= {"MenuId":3274,"MEntId":2054,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"用户管理","EntMsg":{"E2054":{"EntId":2054,"EntName":"用户管理","KeyFieldValue":"","DBTableName":"","KeyField":"UserId","KeydtId":2,"JoinKeyField":"UserId","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','2054*UserId*2*UserId*2*Dcx_User*用户管理',3,'','2013-1-13 3:12:32',3,'','2013-9-5 7:32:06',1)
      end
      else 
      begin 
           update [Dcx_BrowseReport_Run] set [ReportId]='e9cb3598-4cb5-245f-00db-af0f92dda7bc',[ReportName]='用户管理',[ModuleId]=-1,[StaticHtml]='',[LoadingSql]='<$2054$>select [RealName],[UserName],[Email],[Sex],[Telephone],[Phone],[Birthday],[Http],[UserId]
,(SELECT top 1 A.[PositionName] FROM [Dcx_Position] as A where A.[PositionId]=Dcx_User.[PositionId]) as [PositionName]
,(SELECT top 1 A.[DeptName] FROM [Dcx_Dept] as A where A.[DeptId]=Dcx_User.[DeptId]) as [DeptName]
 from Dcx_User where [UserId]={$keyfieldvalue}</$2054$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=10,[DIYJsCss]='<style type="text/css">
   
div.browse_main{
max-width:670px!important;
}
div.browse_main div{
max-width:670px!important;
}
	</style>',[AutoPublicJs]='DcxRun.MChildR_2054= {"MenuId":3274,"MEntId":2054,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"用户管理","EntMsg":{"E2054":{"EntId":2054,"EntName":"用户管理","KeyFieldValue":"","DBTableName":"","KeyField":"UserId","KeydtId":2,"JoinKeyField":"UserId","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='2054*UserId*2*UserId*2*Dcx_User*用户管理',[CreatorId]=3,[Creator]='',[CreateTime]='2013-1-13 3:12:32',[EditorId]=3,[Editor]='',[EditTime]='2013-9-5 7:32:06',[AccountId]=1 where  [EntId]=2054 
      end




--Dcx_BrowseReportField_Run
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='be5e22cf-2deb-d877-8e9b-fdcb974f0ae0'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'be5e22cf-2deb-d877-8e9b-fdcb974f0ae0',2054,2054,'00000000-0000-0000-0000-000000000000',5,'RealName',1,1,'varchar',2,1,0,'','','','<div class="browse ">
	<div class="div_top">
		<div class="title-div">
			<ul class="ul-title" groupid="5" isgroup="1" style="width: 614px;" isrple="1">
				<li areaid="63" class="li-area-title" scroll="no" style="width: 98px; height: 44px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">用户信息</span></div>
</li>
				<li areaid="64" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;">
					<a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
				<li areaid="65" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:ShowFormDialog(''SearchF_'',2054,1,this);"><span class="op_bt_i">编辑</span> </a></li>
			 			</ul>
		</div>
		<div class="frame-div">
			<ul class="ul-mform" groupid="1" isgroup="1" style="width: 614px;" isrple="1">
				<li areaid="70" class="li-area" scroll="no" style="width: 305px; height: 38px; position: static;"><label class="area-title pad7" fldid="3" istitle="1">姓名</label>
<div class="field-content pad7">
	<span isfield="1" entid="2054" fieldname="RealName" fldid="3" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'2054,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=3,[Report_EntId]=2054,[EntId]=2054,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=5,[FieldName]='RealName',[FieldNO]=1,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="browse ">
	<div class="div_top">
		<div class="title-div">
			<ul class="ul-title" groupid="5" isgroup="1" style="width: 614px;" isrple="1">
				<li areaid="63" class="li-area-title" scroll="no" style="width: 98px; height: 44px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">用户信息</span></div>
</li>
				<li areaid="64" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;">
					<a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
				<li areaid="65" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:ShowFormDialog(''SearchF_'',2054,1,this);"><span class="op_bt_i">编辑</span> </a></li>
			 			</ul>
		</div>
		<div class="frame-div">
			<ul class="ul-mform" groupid="1" isgroup="1" style="width: 614px;" isrple="1">
				<li areaid="70" class="li-area" scroll="no" style="width: 305px; height: 38px; position: static;"><label class="area-title pad7" fldid="3" istitle="1">姓名</label>
<div class="field-content pad7">
	<span isfield="1" entid="2054" fieldname="RealName" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2054,' where  [FldUId]='be5e22cf-2deb-d877-8e9b-fdcb974f0ae0' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='3daa8e80-3992-5888-3746-09247037e7cb'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'3daa8e80-3992-5888-3746-09247037e7cb',2054,2054,'00000000-0000-0000-0000-000000000000',3,'UserName',2,1,'varchar',2,1,0,'','','','</span>
</div>
</li><li areaid="66" class="li-area" scroll="no" style="height: 38px; width: 305px; position: static;"><label class="area-title pad7" fldid="1" istitle="1">用户名</label>
<div class="field-content pad7">
	<span isfield="1" entid="2054" fieldname="UserName" fldid="1" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'2054,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=1,[Report_EntId]=2054,[EntId]=2054,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='UserName',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
</div>
</li><li areaid="66" class="li-area" scroll="no" style="height: 38px; width: 305px; position: static;"><label class="area-title pad7" fldid="1" istitle="1">用户名</label>
<div class="field-content pad7">
	<span isfield="1" entid="2054" fieldname="UserName" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2054,' where  [FldUId]='3daa8e80-3992-5888-3746-09247037e7cb' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='df9ca89a-fd7c-e52d-0198-61e5f026789f'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'df9ca89a-fd7c-e52d-0198-61e5f026789f',2054,2054,'00000000-0000-0000-0000-000000000000',7,'Email',3,1,'varchar',2,1,0,'','','','</span>
</div>
</li>
				<li areaid="67" class="li-area" scroll="no" style="height: 38px; width: 305px; position: static;"><label class="area-title pad7" fldid="2" istitle="1">Email</label>
<div class="field-content pad7">
	<span isfield="1" entid="2054" fieldname="Email" fldid="2" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'2054,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=2,[Report_EntId]=2054,[EntId]=2054,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=7,[FieldName]='Email',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
</div>
</li>
				<li areaid="67" class="li-area" scroll="no" style="height: 38px; width: 305px; position: static;"><label class="area-title pad7" fldid="2" istitle="1">Email</label>
<div class="field-content pad7">
	<span isfield="1" entid="2054" fieldname="Email" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2054,' where  [FldUId]='df9ca89a-fd7c-e52d-0198-61e5f026789f' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='ec283599-d076-9a96-7be5-e2f8428ba572'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'ec283599-d076-9a96-7be5-e2f8428ba572',2054,2054,'00000000-0000-0000-0000-000000000000',25,'Sex',4,1,'varchar',2,1,0,'','','','</span>
</div>
</li><li areaid="74" class="li-area" fldid="-1" scroll="no" style="width: 305px; height: 38px; position: static;"><label class="area-title pad7" fldid="4" istitle="1">性别</label>
<div class="field-content pad7">
	<span isfield="1" entid="2054" fieldname="Sex" fldid="4" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'2054,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=4,[Report_EntId]=2054,[EntId]=2054,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=25,[FieldName]='Sex',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
</div>
</li><li areaid="74" class="li-area" fldid="-1" scroll="no" style="width: 305px; height: 38px; position: static;"><label class="area-title pad7" fldid="4" istitle="1">性别</label>
<div class="field-content pad7">
	<span isfield="1" entid="2054" fieldname="Sex" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2054,' where  [FldUId]='ec283599-d076-9a96-7be5-e2f8428ba572' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='1c0e4e54-44bf-16ed-cb86-34f2c5d7c28a'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'1c0e4e54-44bf-16ed-cb86-34f2c5d7c28a',2054,2054,'00000000-0000-0000-0000-000000000000',-1,'PositionName',5,1,'varchar',2,1,0,'','','','</span>
</div>
</li><li areaid="72" class="li-area" scroll="no" style="width: 305px; height: 38px; position: static;"><label class="area-title pad7" fldid="10" istitle="1">职务</label>
<div class="field-content pad4">
	<span isfield="1" entid="2054" fieldname="PositionName" fldid="10" columntypeid="1" class="form-ctr">','',72,3,-1,-1,0,'2054,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=10,[Report_EntId]=2054,[EntId]=2054,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='PositionName',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
</div>
</li><li areaid="72" class="li-area" scroll="no" style="width: 305px; height: 38px; position: static;"><label class="area-title pad7" fldid="10" istitle="1">职务</label>
<div class="field-content pad4">
	<span isfield="1" entid="2054" fieldname="PositionName" fldid="10" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=72,[TableIndex]=3,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2054,' where  [FldUId]='1c0e4e54-44bf-16ed-cb86-34f2c5d7c28a' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='08635bd7-2fcd-114c-a375-b19f96ec2598'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'08635bd7-2fcd-114c-a375-b19f96ec2598',2054,2054,'00000000-0000-0000-0000-000000000000',-1,'DeptName',6,1,'varchar',2,1,0,'','','','</span>
</div>
</li><li areaid="79" class="li-area" scroll="no" style="width: 305px; height: 38px; position: static;"><label class="area-title pad7" fldid="11" istitle="1">所在部门</label>
<div class="field-content pad4">
	<span isfield="1" entid="2054" fieldname="DeptName" fldid="11" columntypeid="1" class="form-ctr">','',79,3,-1,-1,0,'2054,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=11,[Report_EntId]=2054,[EntId]=2054,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='DeptName',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
</div>
</li><li areaid="79" class="li-area" scroll="no" style="width: 305px; height: 38px; position: static;"><label class="area-title pad7" fldid="11" istitle="1">所在部门</label>
<div class="field-content pad4">
	<span isfield="1" entid="2054" fieldname="DeptName" fldid="11" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=79,[TableIndex]=3,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2054,' where  [FldUId]='08635bd7-2fcd-114c-a375-b19f96ec2598' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='f8c5c505-dcd0-54d5-ede7-ec97eb0b6ec8'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'f8c5c505-dcd0-54d5-ede7-ec97eb0b6ec8',2054,2054,'00000000-0000-0000-0000-000000000000',26,'Telephone',7,1,'varchar',2,1,0,'','','','</span>
</div>
</li>
			</ul>
		</div>
		<div class="div_tabs">
			<ul class="tab_ul" groupid="2" isgroup="1" islonly="1" istab="1" style="width: 614px;" isrple="1">
				<li areaid="68" class="ui-droppable  li-tab de-selected" istab="1" scroll="no" style="height: 29px; width: 70px; position: static;" tabid="1"><a class="tab_a" href="javascript:void(0);" tabid="1">联系方式</a></li>
				<li areaid="69" class="ui-droppable  li-tab" istab="1" scroll="no" style="height: 29px; width: 70px; position: static; z-index: 3; display: none;" tabid="2"><a class="tab_a" href="javascript:void(0);" tabid="2">其他信息</a></li>
			</ul>
			<div class="tabs-content" style="display: block;" tabid="1">
				<ul class="ul-mform" groupid="3" isgroup="1" style="width: 614px;" isrple="1">
					
					<li areaid="71" class="li-area" fldid="-1" scroll="no" style="width: 305px; height: 38px; position: static;"><label class="area-title pad7" fldid="5" istitle="1">电话</label>
<div class="field-content pad7">
	<span isfield="1" entid="2054" fieldname="Telephone" fldid="5" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'2054,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=5,[Report_EntId]=2054,[EntId]=2054,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=26,[FieldName]='Telephone',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
</div>
</li>
			</ul>
		</div>
		<div class="div_tabs">
			<ul class="tab_ul" groupid="2" isgroup="1" islonly="1" istab="1" style="width: 614px;" isrple="1">
				<li areaid="68" class="ui-droppable  li-tab de-selected" istab="1" scroll="no" style="height: 29px; width: 70px; position: static;" tabid="1"><a class="tab_a" href="javascript:void(0);" tabid="1">联系方式</a></li>
				<li areaid="69" class="ui-droppable  li-tab" istab="1" scroll="no" style="height: 29px; width: 70px; position: static; z-index: 3; display: none;" tabid="2"><a class="tab_a" href="javascript:void(0);" tabid="2">其他信息</a></li>
			</ul>
			<div class="tabs-content" style="display: block;" tabid="1">
				<ul class="ul-mform" groupid="3" isgroup="1" style="width: 614px;" isrple="1">
					
					<li areaid="71" class="li-area" fldid="-1" scroll="no" style="width: 305px; height: 38px; position: static;"><label class="area-title pad7" fldid="5" istitle="1">电话</label>
<div class="field-content pad7">
	<span isfield="1" entid="2054" fieldname="Telephone" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2054,' where  [FldUId]='f8c5c505-dcd0-54d5-ede7-ec97eb0b6ec8' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='797f5cb9-a086-84c9-2d2b-7cdeaeb70867'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'797f5cb9-a086-84c9-2d2b-7cdeaeb70867',2054,2054,'00000000-0000-0000-0000-000000000000',29,'Phone',8,1,'varchar',2,1,0,'','','','</span>
</div>
</li><li areaid="75" class="li-area" fldid="-1" scroll="no" style="width: 305px; height: 38px; position: static;"><label class="area-title pad7" fldid="6" istitle="1">手机</label>
<div class="field-content pad7">
	<span isfield="1" entid="2054" fieldname="Phone" fldid="6" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'2054,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=6,[Report_EntId]=2054,[EntId]=2054,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=29,[FieldName]='Phone',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
</div>
</li><li areaid="75" class="li-area" fldid="-1" scroll="no" style="width: 305px; height: 38px; position: static;"><label class="area-title pad7" fldid="6" istitle="1">手机</label>
<div class="field-content pad7">
	<span isfield="1" entid="2054" fieldname="Phone" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2054,' where  [FldUId]='797f5cb9-a086-84c9-2d2b-7cdeaeb70867' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='73d65fd4-a267-6d60-3a60-f4e50f4a0690'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'73d65fd4-a267-6d60-3a60-f4e50f4a0690',2054,2054,'00000000-0000-0000-0000-000000000000',30,'Birthday',9,4,'datetime',3,1,0,'','','','</span>

</div>
</li><li areaid="77" class="li-area" fldid="-1" scroll="no" style="width: 305px; height: 38px; position: static;"><label class="area-title pad7" fldid="7" istitle="1">生日</label>
<div class="field-content pad7">
	<span isfield="1" entid="2054" fieldname="Birthday" fldid="7" columntypeid="4" class="form-ctr">','',-1,-1,-1,-1,0,'2054,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=7,[Report_EntId]=2054,[EntId]=2054,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=30,[FieldName]='Birthday',[FieldNO]=9,[ColumnTypeId]=4,[FieldDataType]='datetime',[FieldDataTypeId]=3,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>

</div>
</li><li areaid="77" class="li-area" fldid="-1" scroll="no" style="width: 305px; height: 38px; position: static;"><label class="area-title pad7" fldid="7" istitle="1">生日</label>
<div class="field-content pad7">
	<span isfield="1" entid="2054" fieldname="Birthday" fldid="7" columntypeid="4" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2054,' where  [FldUId]='73d65fd4-a267-6d60-3a60-f4e50f4a0690' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='f80fb8f0-26e5-3dce-f74e-0731ad8a659a'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(29,'f80fb8f0-26e5-3dce-f74e-0731ad8a659a',2054,2054,'00000000-0000-0000-0000-000000000000',34,'Http',10,5,'varchar',2,1,0,'','','','</span>
</div>
</li><li areaid="76" class="li-area" fldid="-1" scroll="no" style="width: 305px; height: 38px; position: static;"><label class="area-title pad7" fldid="8" istitle="1">个人主页</label>
<div class="field-content pad7">
	<span isfield="1" entid="2054" fieldname="Http" fldid="8" columntypeid="5" class="form-ctr"><a  target=''_blank''  href=''','',-1,-1,-1,-1,0,'2054,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=29,[Report_EntId]=2054,[EntId]=2054,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=34,[FieldName]='Http',[FieldNO]=10,[ColumnTypeId]=5,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
</div>
</li><li areaid="76" class="li-area" fldid="-1" scroll="no" style="width: 305px; height: 38px; position: static;"><label class="area-title pad7" fldid="8" istitle="1">个人主页</label>
<div class="field-content pad7">
	<span isfield="1" entid="2054" fieldname="Http" fldid="8" columntypeid="5" class="form-ctr"><a  target=''_blank''  href=''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2054,' where  [FldUId]='f80fb8f0-26e5-3dce-f74e-0731ad8a659a' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='5efc4a1a-3c5b-e8c5-6231-c0ceb54efea7'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'5efc4a1a-3c5b-e8c5-6231-c0ceb54efea7',2054,2054,'00000000-0000-0000-0000-000000000000',34,'Http',11,5,'varchar',2,1,0,'','','',''' >','</a>',-1,-1,-1,-1,0,'2054,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=8,[Report_EntId]=2054,[EntId]=2054,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=34,[FieldName]='Http',[FieldNO]=11,[ColumnTypeId]=5,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''' >',[LastHtml]='</a>',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2054,' where  [FldUId]='5efc4a1a-3c5b-e8c5-6231-c0ceb54efea7' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='0f95ff12-e82b-dda7-bc2d-8c077e951eaa'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(18,'0f95ff12-e82b-dda7-bc2d-8c077e951eaa',2054,2054,'00000000-0000-0000-0000-000000000000',1,'UserId',12,1,'int',1,1,0,'','','','</span>

</div>
</li><li areaid="84" class="li-area" fldid="-1" scroll="no" style="width: 612px; height: 65px; position: static;"><label class="area-title pad7" fldid="17" istitle="1" style="width:85px;line-height:40px;">与他互动</label>
<div class="field-content pad7"><a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:Dcx.TalkToUser(','',84,3,-1,-1,0,'2054,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=18,[Report_EntId]=2054,[EntId]=2054,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=1,[FieldName]='UserId',[FieldNO]=12,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>

</div>
</li><li areaid="84" class="li-area" fldid="-1" scroll="no" style="width: 612px; height: 65px; position: static;"><label class="area-title pad7" fldid="17" istitle="1" style="width:85px;line-height:40px;">与他互动</label>
<div class="field-content pad7"><a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:Dcx.TalkToUser(',[LastHtml]='',[RowIndex]=84,[TableIndex]=3,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2054,' where  [FldUId]='0f95ff12-e82b-dda7-bc2d-8c077e951eaa' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='236afd68-bb39-8c6f-eef9-61e9af3f33cb'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(19,'236afd68-bb39-8c6f-eef9-61e9af3f33cb',2054,2054,'00000000-0000-0000-0000-000000000000',3,'UserName',13,1,'varchar',2,1,0,'','','',',''','',84,3,-1,-1,0,'2054,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=19,[Report_EntId]=2054,[EntId]=2054,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='UserName',[FieldNO]=13,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=',''',[LastHtml]='',[RowIndex]=84,[TableIndex]=3,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2054,' where  [FldUId]='236afd68-bb39-8c6f-eef9-61e9af3f33cb' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='a0df02b8-9bf8-7393-fe48-10ea780e836b'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(20,'a0df02b8-9bf8-7393-fe48-10ea780e836b',2054,2054,'00000000-0000-0000-0000-000000000000',1,'UserId',14,1,'int',1,1,0,'','','',''',true);"><span class="op_bt_i">和他聊天</span> </a>   <a class="f_hot_op_bt f_hot_op_bt2 " href="javascript:void(0);" onclick="javascript:Dcx.AddToMyFriend(','',84,3,-1,-1,0,'2054,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=20,[Report_EntId]=2054,[EntId]=2054,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=1,[FieldName]='UserId',[FieldNO]=14,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',true);"><span class="op_bt_i">和他聊天</span> </a>   <a class="f_hot_op_bt f_hot_op_bt2 " href="javascript:void(0);" onclick="javascript:Dcx.AddToMyFriend(',[LastHtml]='',[RowIndex]=84,[TableIndex]=3,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2054,' where  [FldUId]='a0df02b8-9bf8-7393-fe48-10ea780e836b' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='c0cd7732-bc82-10d2-6711-fa6093bb6723'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(21,'c0cd7732-bc82-10d2-6711-fa6093bb6723',2054,2054,'00000000-0000-0000-0000-000000000000',3,'UserName',15,1,'varchar',2,1,0,'','','',',''','',84,3,-1,-1,0,'2054,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=21,[Report_EntId]=2054,[EntId]=2054,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='UserName',[FieldNO]=15,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=',''',[LastHtml]='',[RowIndex]=84,[TableIndex]=3,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2054,' where  [FldUId]='c0cd7732-bc82-10d2-6711-fa6093bb6723' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='23b3dd84-7bc0-80eb-f61c-8092c4685fe2'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(22,'23b3dd84-7bc0-80eb-f61c-8092c4685fe2',2054,2054,'00000000-0000-0000-0000-000000000000',1,'UserId',16,1,'int',1,1,0,'','','',''',true);"><span class="op_bt_i">加为好友</span> </a>    <a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:Dcx.SendLetterToShe(','',84,3,-1,-1,0,'2054,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=22,[Report_EntId]=2054,[EntId]=2054,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=1,[FieldName]='UserId',[FieldNO]=16,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',true);"><span class="op_bt_i">加为好友</span> </a>    <a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:Dcx.SendLetterToShe(',[LastHtml]='',[RowIndex]=84,[TableIndex]=3,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2054,' where  [FldUId]='23b3dd84-7bc0-80eb-f61c-8092c4685fe2' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='46f2ec48-209d-1689-982e-ce07b9a6fdd4'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(23,'46f2ec48-209d-1689-982e-ce07b9a6fdd4',2054,2054,'00000000-0000-0000-0000-000000000000',3,'UserName',17,1,'varchar',2,1,0,'','','',',''','',84,3,-1,-1,0,'2054,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=23,[Report_EntId]=2054,[EntId]=2054,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='UserName',[FieldNO]=17,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=',''',[LastHtml]='',[RowIndex]=84,[TableIndex]=3,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2054,' where  [FldUId]='46f2ec48-209d-1689-982e-ce07b9a6fdd4' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='13dfe2fb-9c45-89ad-77e8-e9039897e46d'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(24,'13dfe2fb-9c45-89ad-77e8-e9039897e46d',2054,2054,'00000000-0000-0000-0000-000000000000',1,'UserId',18,1,'int',1,1,0,'','','',''',true);"><span class="op_bt_i">发私信</span> </a> 
   <a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:Dcx.SendWMail(','',84,3,-1,-1,0,'2054,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=24,[Report_EntId]=2054,[EntId]=2054,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=1,[FieldName]='UserId',[FieldNO]=18,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',true);"><span class="op_bt_i">发私信</span> </a> 
   <a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:Dcx.SendWMail(',[LastHtml]='',[RowIndex]=84,[TableIndex]=3,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2054,' where  [FldUId]='13dfe2fb-9c45-89ad-77e8-e9039897e46d' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='d9a0d869-c556-33f3-98a7-39d90f40858c'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(25,'d9a0d869-c556-33f3-98a7-39d90f40858c',2054,2054,'00000000-0000-0000-0000-000000000000',3,'UserName',19,1,'varchar',2,1,0,'','','',',''',''',true);"><span class="op_bt_i">发微邮</span> </a> 
</div></li>
				</ul>
			</div>
			<div class="tabs-content" style="display: none;" tabid="2">
				<ul class="ul-mform" groupid="4" isgroup="1" style="" isrple="1">
					<li areaid="78" class="li-area" scroll="no" style="width: 395px; height: 38px; position: static;">
						<label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
					<li areaid="73" class="li-area" scroll="no" style="width: 395px; height: 38px; position: static;">
						<label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li><li areaid="83" class="li-area" scroll="no" style="width: 395px; height: 38px; position: static;">
						<label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li><li areaid="82" class="li-area" scroll="no" style="width: 395px; height: 38px; position: static;">
						<label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li><li areaid="81" class="li-area" scroll="no" style="width: 395px; height: 38px; position: static;">
						<label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li><li areaid="80" class="li-area" scroll="no" style="width: 395px; height: 38px; position: static;">
						<label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
				</ul>
			</div>
		</div>
	</div>
</div>  
<br>',84,3,-1,-1,0,'2054,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=25,[Report_EntId]=2054,[EntId]=2054,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='UserName',[FieldNO]=19,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=',''',[LastHtml]=''',true);"><span class="op_bt_i">发微邮</span> </a> 
</div></li>
				</ul>
			</div>
			<div class="tabs-content" style="display: none;" tabid="2">
				<ul class="ul-mform" groupid="4" isgroup="1" style="" isrple="1">
					<li areaid="78" class="li-area" scroll="no" style="width: 395px; height: 38px; position: static;">
						<label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
					<li areaid="73" class="li-area" scroll="no" style="width: 395px; height: 38px; position: static;">
						<label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li><li areaid="83" class="li-area" scroll="no" style="width: 395px; height: 38px; position: static;">
						<label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li><li areaid="82" class="li-area" scroll="no" style="width: 395px; height: 38px; position: static;">
						<label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li><li areaid="81" class="li-area" scroll="no" style="width: 395px; height: 38px; position: static;">
						<label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li><li areaid="80" class="li-area" scroll="no" style="width: 395px; height: 38px; position: static;">
						<label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
				</ul>
			</div>
		</div>
	</div>
</div>  
<br>',[RowIndex]=84,[TableIndex]=3,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2054,' where  [FldUId]='d9a0d869-c556-33f3-98a7-39d90f40858c' 
      end



Delete from [Dcx_ListReport_Run]  where [EntId]=2054

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=2054  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('a2ac3eb2-f396-7308-0da9-9d5ce35ffdb6','用户管理',2054,1,'','<script type="text/javascript" src="/Js/System/Manage/ManageUser.js"></script>','<$2054$>select *  from (select row_number() over( order by [UserId])as dcx_rowid,[UserName],[RealName],[Email],[CanLogin],[UserId] from Dcx_User  where [AccountId]={$AccountId} and {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$2054$><$2054:Count$>select count([UserId]) from Dcx_User where[AccountId]={$AccountId} and  {$SearchArea}</$2054:Count$>',1,1,10,'DcxRun.ListR_2054= {"MenuId":3274,"MEntId":2054,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"用户管理","EntMsg":{"E2054":{"EntId":2054,"EntName":"用户管理","KeyFieldValue":"","DBTableName":"","KeyField":"UserId","KeydtId":2,"JoinKeyField":"UserId","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','try{
   runObj.FielDeal={"MaxDealId":10,"Ent":[{"EntId":2054,"Fld":[{"FldId":135,"Deal":[{"cdn":[{"fid":135,"b":"''","l":"''==''True''"}],"typeId":7,"dlV":[{"fid":-1,"b":"<a class=\"f_hot_op_bt f_hot_op_bt3\" href=\"javascript:void(0);\" isnotlogin=\"1\" onclick=\"javascript:SetCanLogin(this,false);\" style=\"padding-bottom: 6px; padding-left: 10px; padding-right: 10px; height: 14px; padding-top: 6px\"><span class=\"op_bt_i\" style=\"line-height: 15px\">停用</span> </a>\r\n <a class=\"f_hot_op_bt f_hot_op_bt2\"   iscanlogin=\"1\"  href=\"javascript:void(0);\" onclick=\"javascript:SetCanLogin(this,true);\" style=\"height: 14px;padding: 6px 10px;display:none;\"><span class=\"op_bt_i\" style=\"line-height: 15px;\">启用</span> </a>","l":""}]},{"cdn":[{"fid":135,"b":"''","l":"''!=''True''"}],"typeId":7,"dlV":[{"fid":-1,"b":"<a class=\"f_hot_op_bt f_hot_op_bt2\" href=\"javascript:void(0);\" iscanlogin=\"1\" onclick=\"javascript:SetCanLogin(this,true);\" style=\"padding-bottom: 6px; padding-left: 10px; padding-right: 10px; height: 14px; padding-top: 6px\"><span class=\"op_bt_i\" style=\"line-height: 15px\">启用</span> </a> <a class=\"f_hot_op_bt f_hot_op_bt3\"  isnotlogin=\"1\"  href=\"javascript:void(0);\" onclick=\"javascript:SetCanLogin(this,false);\" style=\"height: 14px;padding: 6px 10px;display:none;\"><span class=\"op_bt_i\" style=\"line-height: 15px;\">停用</span> </a>","l":""}]}]}],"Deal":[]}]};
 DcxReport.DealField(2054,''ListR_'',true);}
catch(err){}','','2054*UserId*2*UserId*2*Dcx_User*用户管理',3,'admin','2012-12-6 4:23:57',3,'','2013-11-24 3:44:57',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='a2ac3eb2-f396-7308-0da9-9d5ce35ffdb6',[ReportName]='用户管理',[ModuleId]=1,[StaticHtml]='',[DIYJsCss]='<script type="text/javascript" src="/Js/System/Manage/ManageUser.js"></script>',[LoadingSql]='<$2054$>select *  from (select row_number() over( order by [UserId])as dcx_rowid,[UserName],[RealName],[Email],[CanLogin],[UserId] from Dcx_User  where [AccountId]={$AccountId} and {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$2054$><$2054:Count$>select count([UserId]) from Dcx_User where[AccountId]={$AccountId} and  {$SearchArea}</$2054:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=10,[AutoPublicJs]='DcxRun.ListR_2054= {"MenuId":3274,"MEntId":2054,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"用户管理","EntMsg":{"E2054":{"EntId":2054,"EntName":"用户管理","KeyFieldValue":"","DBTableName":"","KeyField":"UserId","KeydtId":2,"JoinKeyField":"UserId","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='try{
   runObj.FielDeal={"MaxDealId":10,"Ent":[{"EntId":2054,"Fld":[{"FldId":135,"Deal":[{"cdn":[{"fid":135,"b":"''","l":"''==''True''"}],"typeId":7,"dlV":[{"fid":-1,"b":"<a class=\"f_hot_op_bt f_hot_op_bt3\" href=\"javascript:void(0);\" isnotlogin=\"1\" onclick=\"javascript:SetCanLogin(this,false);\" style=\"padding-bottom: 6px; padding-left: 10px; padding-right: 10px; height: 14px; padding-top: 6px\"><span class=\"op_bt_i\" style=\"line-height: 15px\">停用</span> </a>\r\n <a class=\"f_hot_op_bt f_hot_op_bt2\"   iscanlogin=\"1\"  href=\"javascript:void(0);\" onclick=\"javascript:SetCanLogin(this,true);\" style=\"height: 14px;padding: 6px 10px;display:none;\"><span class=\"op_bt_i\" style=\"line-height: 15px;\">启用</span> </a>","l":""}]},{"cdn":[{"fid":135,"b":"''","l":"''!=''True''"}],"typeId":7,"dlV":[{"fid":-1,"b":"<a class=\"f_hot_op_bt f_hot_op_bt2\" href=\"javascript:void(0);\" iscanlogin=\"1\" onclick=\"javascript:SetCanLogin(this,true);\" style=\"padding-bottom: 6px; padding-left: 10px; padding-right: 10px; height: 14px; padding-top: 6px\"><span class=\"op_bt_i\" style=\"line-height: 15px\">启用</span> </a> <a class=\"f_hot_op_bt f_hot_op_bt3\"  isnotlogin=\"1\"  href=\"javascript:void(0);\" onclick=\"javascript:SetCanLogin(this,false);\" style=\"height: 14px;padding: 6px 10px;display:none;\"><span class=\"op_bt_i\" style=\"line-height: 15px;\">停用</span> </a>","l":""}]}]}],"Deal":[]}]};
 DcxReport.DealField(2054,''ListR_'',true);}
catch(err){}',[AutoOtherJS]='',[OtherMsg]='2054*UserId*2*UserId*2*Dcx_User*用户管理',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-6 4:23:57',[EditorId]=3,[Editor]='',[EditTime]='2013-11-24 3:44:57',[AccountId]=1 where  [EntId]=2054 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='3ff26fd0-0356-8a52-4ec7-97bfd8ce474e'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(172,'3ff26fd0-0356-8a52-4ec7-97bfd8ce474e',2054,2054,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<div class="listreport">
<div class="toolbar">
<ul style="WIDTH: 638px" class="tool-ul" entid="2054" istoolbar="1" groupid="2" isgroup="1" ctrlprex="ListR_" isrple="1">
<li style="width: 94px; height: 29px; position: static;" class="tool-li" areaid="27"><a id="ListR_2054_btn_buildNew" class="list-bt-add" title="添   加" onclick="javascript:ShowInsertUserDialog(2054,''ListR_'');" href="javascript:void(0);">添加用户</a></li>
<li style="position: static; width: 64px; height: 29px;" class="tool-li" areaid="54"><a id="ListR_2054_btn_buildNew" class="lform-bt-other" title="启用" onclick="javascript:SetCanLogin2(this,true);" href="javascript:void(0);">启用</a></li>
<li style="width: 64px; height: 29px; position: static;" class="tool-li" areaid="55"><a id="ListR_2054_btn_buildNew" class="lform-bt-delete" title="停用" onclick="javascript:SetCanLogin2(this,false);" href="javascript:void(0);">停用</a></li>
<li style="width: 64px; height: 29px; display: none; position: static;" class="tool-li" areaid="29"><a id="ListR_2054_ExportToExcelbut" class="list-bt-other" title="导   出" onclick="javascript:DcxCom.ExportExcel(2054,''ListR_'');" href="javascript:void(0);">导 出</a></li>
<li style="width: 70px; height: 30px; position: static;" class="tool-li" areaid="30"><a id="ListR_2054_refreshbut" class="list-bt-other" title="刷   新" onclick="javascript:DcxCom.ReLoad(2054,''ListR_'');" href="javascript:void(0);">刷 新</a></li><!--分页栏-->
<li style="position: static; width: 189px; height: 20px;" id="li2_ListR_2054" class="pages" areaid="31"><a id="ListR_2054_PrevPage" class="list-pages list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(2054,''ListR_'',''p'');" href="javascript:void(0);" isfirstpage="1">上一页</a> <span class="ddl_pageindex list-pagesdown"><select id="ddl_ListR_2054_PageIndex" onchange="javascript:DcxSch.GetHtml(2054,''ListR_'',''a'',this);" isddlpage="1"></select> </span><a id="ListR_2054_NextPage" class="list-pages list-nextpage" title="下一页" onclick="javascript:DcxSch.GetHtml(2054,''ListR_'',''n'');" href="javascript:void(0);" isnextpage="1">下一页</a> <span class="list-data-amount">共</span>&nbsp; <span id="ListR_2054_RecCount_lbl" class="list-data-amount" isrecortcount="1">0</span> <span class="list-data-amount">条记录</span></li></ul></div><!-- 列表主体-->
<div class="list-area dcx-scroll">
<div class="list-head">
<ul style="width: 641px;" class="list-head-ul" entid="2054" groupid="3" isgroup="1" ctrlprex="ListR_" isrple="1">
<li style="float: left; height: 30px; clear: none; position: static;" class="list-head-select" areaid="32"><input id="ckb_CheckAllListR_2054" class="chPut ifselect" onclick="javascript:DcxCom.CheckedAll(this,2054,''ListR_'');" value="on" type="checkbox" rel="chkall"></li>
<li style="width: 170px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="33">
<div class="list-li-field"><label istitle="1">用户名</label></div></li>
<li style="position: static; width: 140px; float: left; height: 30px; clear: none;" class="list-head-li" areaid="34">
<div class="list-li-field"><label istitle="1">姓名</label></div></li>
<li style="width: 140px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="35">
<div class="list-li-field"><label istitle="1">Email</label></div></li>
<li style="position: static; width: 125px; float: left; height: 30px; clear: right;" class="list-head-li" areaid="52">
<div class="list-li-field"><label istitle="1">操作</label></div></li></ul></div>
<div class="list-body">','',-1,4,-1,-1,1,'2054,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=172,[Report_EntId]=2054,[EntId]=2054,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="listreport">
<div class="toolbar">
<ul style="WIDTH: 638px" class="tool-ul" entid="2054" istoolbar="1" groupid="2" isgroup="1" ctrlprex="ListR_" isrple="1">
<li style="width: 94px; height: 29px; position: static;" class="tool-li" areaid="27"><a id="ListR_2054_btn_buildNew" class="list-bt-add" title="添   加" onclick="javascript:ShowInsertUserDialog(2054,''ListR_'');" href="javascript:void(0);">添加用户</a></li>
<li style="position: static; width: 64px; height: 29px;" class="tool-li" areaid="54"><a id="ListR_2054_btn_buildNew" class="lform-bt-other" title="启用" onclick="javascript:SetCanLogin2(this,true);" href="javascript:void(0);">启用</a></li>
<li style="width: 64px; height: 29px; position: static;" class="tool-li" areaid="55"><a id="ListR_2054_btn_buildNew" class="lform-bt-delete" title="停用" onclick="javascript:SetCanLogin2(this,false);" href="javascript:void(0);">停用</a></li>
<li style="width: 64px; height: 29px; display: none; position: static;" class="tool-li" areaid="29"><a id="ListR_2054_ExportToExcelbut" class="list-bt-other" title="导   出" onclick="javascript:DcxCom.ExportExcel(2054,''ListR_'');" href="javascript:void(0);">导 出</a></li>
<li style="width: 70px; height: 30px; position: static;" class="tool-li" areaid="30"><a id="ListR_2054_refreshbut" class="list-bt-other" title="刷   新" onclick="javascript:DcxCom.ReLoad(2054,''ListR_'');" href="javascript:void(0);">刷 新</a></li><!--分页栏-->
<li style="position: static; width: 189px; height: 20px;" id="li2_ListR_2054" class="pages" areaid="31"><a id="ListR_2054_PrevPage" class="list-pages list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(2054,''ListR_'',''p'');" href="javascript:void(0);" isfirstpage="1">上一页</a> <span class="ddl_pageindex list-pagesdown"><select id="ddl_ListR_2054_PageIndex" onchange="javascript:DcxSch.GetHtml(2054,''ListR_'',''a'',this);" isddlpage="1"></select> </span><a id="ListR_2054_NextPage" class="list-pages list-nextpage" title="下一页" onclick="javascript:DcxSch.GetHtml(2054,''ListR_'',''n'');" href="javascript:void(0);" isnextpage="1">下一页</a> <span class="list-data-amount">共</span>&nbsp; <span id="ListR_2054_RecCount_lbl" class="list-data-amount" isrecortcount="1">0</span> <span class="list-data-amount">条记录</span></li></ul></div><!-- 列表主体-->
<div class="list-area dcx-scroll">
<div class="list-head">
<ul style="width: 641px;" class="list-head-ul" entid="2054" groupid="3" isgroup="1" ctrlprex="ListR_" isrple="1">
<li style="float: left; height: 30px; clear: none; position: static;" class="list-head-select" areaid="32"><input id="ckb_CheckAllListR_2054" class="chPut ifselect" onclick="javascript:DcxCom.CheckedAll(this,2054,''ListR_'');" value="on" type="checkbox" rel="chkall"></li>
<li style="width: 170px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="33">
<div class="list-li-field"><label istitle="1">用户名</label></div></li>
<li style="position: static; width: 140px; float: left; height: 30px; clear: none;" class="list-head-li" areaid="34">
<div class="list-li-field"><label istitle="1">姓名</label></div></li>
<li style="width: 140px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="35">
<div class="list-li-field"><label istitle="1">Email</label></div></li>
<li style="position: static; width: 125px; float: left; height: 30px; clear: right;" class="list-head-li" areaid="52">
<div class="list-li-field"><label istitle="1">操作</label></div></li></ul></div>
<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2054,' where  [FldUId]='3ff26fd0-0356-8a52-4ec7-97bfd8ce474e' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='098412b4-f932-cadf-78b0-f481e58e0ad8'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'098412b4-f932-cadf-78b0-f481e58e0ad8',2054,2054,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',2,1,'varchar',2,21,0,'','','','style="width: 641px;" class="list-body-ul" groupid="4" isgroup="1" isrple="1">
<li style="width: 32px; float: left; height: 40px; clear: none; position: static;" class="list-body-select" areaid="41">
<div style="PADDING-TOP: 11px" class="list-li-field"><input class="ckb_del" value="on" type="checkbox" entid="2054" keyvalue="','',-1,4,-1,-1,1,'2054,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=2,[Report_EntId]=2054,[EntId]=2054,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='style="width: 641px;" class="list-body-ul" groupid="4" isgroup="1" isrple="1">
<li style="width: 32px; float: left; height: 40px; clear: none; position: static;" class="list-body-select" areaid="41">
<div style="PADDING-TOP: 11px" class="list-li-field"><input class="ckb_del" value="on" type="checkbox" entid="2054" keyvalue="',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2054,' where  [FldUId]='098412b4-f932-cadf-78b0-f481e58e0ad8' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='3e579959-2591-af8c-894c-b8e749e6647d'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'3e579959-2591-af8c-894c-b8e749e6647d',2054,2054,'00000000-0000-0000-0000-000000000000',3,'UserName',3,1,'varchar',2,1,0,'','','','" issyscheck="1" ctrlprex="ListR_"></div></li>
<li style="position: static; width: 170px; float: left; height: 40px; clear: none;" class="list-body-li" areaid="42">
<div style="PADDING-TOP: 4px" class="list-li-field"><span columntypeid="1" fieldname="UserName" entid="2054" fldid="6" isfield="1" class="form-ctr">','',-1,4,-1,-1,1,'2054,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=6,[Report_EntId]=2054,[EntId]=2054,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='UserName',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='" issyscheck="1" ctrlprex="ListR_"></div></li>
<li style="position: static; width: 170px; float: left; height: 40px; clear: none;" class="list-body-li" areaid="42">
<div style="PADDING-TOP: 4px" class="list-li-field"><span columntypeid="1" fieldname="UserName" entid="2054" fldid="6" isfield="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2054,' where  [FldUId]='3e579959-2591-af8c-894c-b8e749e6647d' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='ceb082e3-5ea8-3675-2fbd-8523f049eb7e'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'ceb082e3-5ea8-3675-2fbd-8523f049eb7e',2054,2054,'00000000-0000-0000-0000-000000000000',5,'RealName',4,1,'varchar',2,1,0,'','','','</span> </div></li>
<li style="width: 140px; float: left; height: 40px; clear: none; position: static;" class="list-body-li" areaid="43">
<div style="PADDING-TOP: 4px" class="list-li-field"><span columntypeid="1" fieldname="RealName" entid="2054" fldid="7" isfield="1" class="form-ctr">','',-1,4,-1,-1,1,'2054,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=7,[Report_EntId]=2054,[EntId]=2054,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=5,[FieldName]='RealName',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> </div></li>
<li style="width: 140px; float: left; height: 40px; clear: none; position: static;" class="list-body-li" areaid="43">
<div style="PADDING-TOP: 4px" class="list-li-field"><span columntypeid="1" fieldname="RealName" entid="2054" fldid="7" isfield="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2054,' where  [FldUId]='ceb082e3-5ea8-3675-2fbd-8523f049eb7e' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='0f2447de-85ac-714b-7c02-94378f836525'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'0f2447de-85ac-714b-7c02-94378f836525',2054,2054,'00000000-0000-0000-0000-000000000000',7,'Email',5,1,'varchar',2,1,0,'','','','</span> </div></li>
<li style="position: static; width: 140px; float: left; height: 40px; clear: none;" class="list-body-li" areaid="44"><div class="list-li-field" style="PADDING-TOP: 4px">
	<span isfield="1" entid="2054" fieldname="Email" fldid="8" columntypeid="1" class="form-ctr">','',-1,4,-1,-1,1,'2054,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=8,[Report_EntId]=2054,[EntId]=2054,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=7,[FieldName]='Email',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> </div></li>
<li style="position: static; width: 140px; float: left; height: 40px; clear: none;" class="list-body-li" areaid="44"><div class="list-li-field" style="PADDING-TOP: 4px">
	<span isfield="1" entid="2054" fieldname="Email" fldid="8" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2054,' where  [FldUId]='0f2447de-85ac-714b-7c02-94378f836525' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='39eb1bae-bd3f-cd9c-47a9-f3b2c10d8097'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(104,'39eb1bae-bd3f-cd9c-47a9-f3b2c10d8097',2054,2054,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',6,1,'varchar',2,21,0,'','','','</span>
</div>
</li>
<li style="position: static; width: 125px; float: left; height: 40px; clear: right;" class="list-body-li" areaid="50"><div class="list-li-field" style="PADDING-TOP: 4px">
	<a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:ShowEditUserDialog(this,''','',50,4,-1,-1,1,'2054,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=104,[Report_EntId]=2054,[EntId]=2054,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
</div>
</li>
<li style="position: static; width: 125px; float: left; height: 40px; clear: right;" class="list-body-li" areaid="50"><div class="list-li-field" style="PADDING-TOP: 4px">
	<a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:ShowEditUserDialog(this,''',[LastHtml]='',[RowIndex]=50,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2054,' where  [FldUId]='39eb1bae-bd3f-cd9c-47a9-f3b2c10d8097' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='6371c0c4-2164-5142-cf79-70a941826673'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(135,'6371c0c4-2164-5142-cf79-70a941826673',2054,2054,'00000000-0000-0000-0000-000000000000',17,'CanLogin',7,1,'bit',4,1,0,'','','',''');" style="PADDING-BOTTOM: 6px; PADDING-LEFT: 10px; PADDING-RIGHT: 10px; HEIGHT: 14px; PADDING-TOP: 6px"><span class="op_bt_i" style="LINE-HEIGHT: 15px">编辑</span> </a><span isfield="1" entid="2054" fieldname="CanLogin" fldid="135" columntypeid="1" class="form-ctr" style="display: none;">','',-1,4,-1,-1,1,'2054,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=135,[Report_EntId]=2054,[EntId]=2054,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=17,[FieldName]='CanLogin',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='bit',[FieldDataTypeId]=4,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''');" style="PADDING-BOTTOM: 6px; PADDING-LEFT: 10px; PADDING-RIGHT: 10px; HEIGHT: 14px; PADDING-TOP: 6px"><span class="op_bt_i" style="LINE-HEIGHT: 15px">编辑</span> </a><span isfield="1" entid="2054" fieldname="CanLogin" fldid="135" columntypeid="1" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2054,' where  [FldUId]='6371c0c4-2164-5142-cf79-70a941826673' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='ccde7427-8586-08f2-d0ca-4157b980976d'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(173,'ccde7427-8586-08f2-d0ca-4157b980976d',2054,2054,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',8,-1,'varchar',2,13,0,'','','','</span>
</div>
</li></ul>','</div></div></div><br>',-1,4,-1,-1,1,'2054,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=173,[Report_EntId]=2054,[EntId]=2054,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=8,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
</div>
</li></ul>',[LastHtml]='</div></div></div><br>',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2054,' where  [FldUId]='ccde7427-8586-08f2-d0ca-4157b980976d' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=1200

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=1200  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(1200,null,'Dcx_User','Dcx_User',1,0,0,0,0,0,29,1,3,'admin','2013-12-15 17:32:24',3,'admin','2013-12-15 17:32:24',null,null,27,418,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='Dcx_User',[DBTableByName]='Dcx_User',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=29,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:24',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:24',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=27,[SDbTableId]=418,[IsChange]=null,[IsSystem]=null where  [DBTableId]=1200 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=50  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17995,50,29,1200,'int',1,1,1,'Dcx_User','TopMenuId','TopMenuId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='TopMenuId',[FieldByname]='TopMenuId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=50 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=49  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17996,49,29,1200,'varchar',2,1,1,'Dcx_User','InviteCode','InviteCode','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='InviteCode',[FieldByname]='InviteCode',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=49 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=48  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17997,48,29,1200,'int',1,1,1,'Dcx_User','DiskSize','DiskSize','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='DiskSize',[FieldByname]='DiskSize',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=48 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=47  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17998,47,29,1200,'varchar',2,1,1,'Dcx_User','Remark','Remark','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Remark',[FieldByname]='Remark',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=47 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=46  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17999,46,29,1200,'bit',4,1,1,'Dcx_User','AcceptStrangerIM','AcceptStrangerIM','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='AcceptStrangerIM',[FieldByname]='AcceptStrangerIM',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=46 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=45  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18000,45,29,1200,'int',1,1,1,'Dcx_User','StyleId','StyleId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='StyleId',[FieldByname]='StyleId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=45 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=44  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18001,44,29,1200,'bit',4,1,1,'Dcx_User','SelftSearch','SelftSearch','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='SelftSearch',[FieldByname]='SelftSearch',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=44 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=43  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18002,43,29,1200,'bit',4,1,1,'Dcx_User','SelftNavMenu','SelftNavMenu','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='SelftNavMenu',[FieldByname]='SelftNavMenu',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=43 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=42  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18003,42,29,1200,'bit',4,1,1,'Dcx_User','SelftHomePage','SelftHomePage','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='SelftHomePage',[FieldByname]='SelftHomePage',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=42 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=41  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18004,41,29,1200,'datetime',3,1,1,'Dcx_User','EditTime','EditTime','getdate()',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='EditTime',[FieldByname]='EditTime',[DefaultValue]='getdate()',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=41 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=40  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18005,40,29,1200,'varchar',2,1,1,'Dcx_User','Editor','Editor','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Editor',[FieldByname]='Editor',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=40 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=39  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18006,39,29,1200,'int',1,1,1,'Dcx_User','EditorId','EditorId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='EditorId',[FieldByname]='EditorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=39 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=38  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18007,38,29,1200,'datetime',3,1,1,'Dcx_User','CreateTime','CreateTime','getdate()',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='CreateTime',[FieldByname]='CreateTime',[DefaultValue]='getdate()',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=38 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=37  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18008,37,29,1200,'varchar',2,1,1,'Dcx_User','Creator','Creator','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Creator',[FieldByname]='Creator',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=37 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=36  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18009,36,29,1200,'int',1,1,1,'Dcx_User','CreatorId','CreatorId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='CreatorId',[FieldByname]='CreatorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=36 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=35  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18010,35,29,1200,'varchar',2,1,1,'Dcx_User','IconPath','IconPath','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='IconPath',[FieldByname]='IconPath',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=35 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=34  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18011,34,29,1200,'varchar',2,1,1,'Dcx_User','Http','Http','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Http',[FieldByname]='Http',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=34 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=33  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18012,33,29,1200,'int',1,1,1,'Dcx_User','Caste','Caste','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Caste',[FieldByname]='Caste',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=33 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=32  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18013,32,29,1200,'bit',4,1,1,'Dcx_User','IsNeedKey','IsNeedKey','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='IsNeedKey',[FieldByname]='IsNeedKey',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=32 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=31  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18014,31,29,1200,'int',1,1,1,'Dcx_User','Style','Style','1',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Style',[FieldByname]='Style',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=31 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=30  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18015,30,29,1200,'datetime',3,1,1,'Dcx_User','Birthday','Birthday','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Birthday',[FieldByname]='Birthday',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=30 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=29  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18016,29,29,1200,'varchar',2,1,1,'Dcx_User','Phone','Phone','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Phone',[FieldByname]='Phone',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=29 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=28  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18017,28,29,1200,'datetime',3,1,1,'Dcx_User','RegistedDate','RegistedDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='RegistedDate',[FieldByname]='RegistedDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=28 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=27  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18018,27,29,1200,'varchar',2,1,1,'Dcx_User','Status','Status','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Status',[FieldByname]='Status',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=27 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18019,26,29,1200,'varchar',2,1,1,'Dcx_User','Telephone','Telephone','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Telephone',[FieldByname]='Telephone',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=26 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18020,25,29,1200,'varchar',2,1,1,'Dcx_User','Sex','Sex','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Sex',[FieldByname]='Sex',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18021,24,29,1200,'int',1,1,1,'Dcx_User','UserOrder','UserOrder','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='UserOrder',[FieldByname]='UserOrder',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18022,23,29,1200,'datetime',3,1,1,'Dcx_User','LoginDate','LoginDate','0',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='LoginDate',[FieldByname]='LoginDate',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18023,22,29,1200,'varchar',2,1,1,'Dcx_User','PWD','PWD','',0,0,0,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='PWD',[FieldByname]='PWD',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18024,21,29,1200,'bit',4,1,1,'Dcx_User','Online','Online','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Online',[FieldByname]='Online',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18025,20,29,1200,'int',1,1,1,'Dcx_User','VisitTime','VisitTime','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='VisitTime',[FieldByname]='VisitTime',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18026,19,29,1200,'bit',4,1,1,'Dcx_User','RestrictIp','RestrictIp','0',0,0,0,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='RestrictIp',[FieldByname]='RestrictIp',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18027,18,29,1200,'varchar',2,1,1,'Dcx_User','IP','IP','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='IP',[FieldByname]='IP',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18028,17,29,1200,'bit',4,1,1,'Dcx_User','CanLogin','CanLogin','1',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='CanLogin',[FieldByname]='CanLogin',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18029,16,29,1200,'bit',4,1,1,'Dcx_User','SuperAdmin','SuperAdmin','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='SuperAdmin',[FieldByname]='SuperAdmin',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18030,15,29,1200,'int',1,1,1,'Dcx_User','PositionId','PositionId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='PositionId',[FieldByname]='PositionId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18031,14,29,1200,'int',1,1,1,'Dcx_User','DeptId','DeptId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='DeptId',[FieldByname]='DeptId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18032,13,29,1200,'int',1,1,1,'Dcx_User','EmployeeId','EmployeeId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='EmployeeId',[FieldByname]='EmployeeId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18033,12,29,1200,'int',1,1,1,'Dcx_User','CurSystemId','CurSystemId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='CurSystemId',[FieldByname]='CurSystemId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18034,11,29,1200,'bit',4,1,1,'Dcx_User','IsAccountCreator','IsAccountCreator','0',0,0,0,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='IsAccountCreator',[FieldByname]='IsAccountCreator',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18035,10,29,1200,'int',1,1,1,'Dcx_User','AccountId','AccountId','1',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='AccountId',[FieldByname]='AccountId',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18036,9,29,1200,'int',1,1,1,'Dcx_User','GroupId','GroupId','0',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='GroupId',[FieldByname]='GroupId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18037,8,29,1200,'varchar',2,1,1,'Dcx_User','Address','Address','',0,0,1,150,150,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Address',[FieldByname]='Address',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=150,[Precision]=150,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18038,7,29,1200,'varchar',2,1,1,'Dcx_User','Email','Email','',0,0,0,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Email',[FieldByname]='Email',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18039,6,29,1200,'varchar',2,1,1,'Dcx_User','DcxUserName','DcxUserName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='DcxUserName',[FieldByname]='DcxUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18040,5,29,1200,'varchar',2,1,1,'Dcx_User','RealName','RealName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='RealName',[FieldByname]='RealName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18041,4,29,1200,'varchar',2,1,1,'Dcx_User','UpperName','UpperName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='UpperName',[FieldByname]='UpperName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18042,3,29,1200,'varchar',2,1,1,'Dcx_User','UserName','UserName','',0,0,0,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='UserName',[FieldByname]='UserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18043,2,29,1200,'uniqueidentifier',24,1,1,'Dcx_User','UserGuId','UserGuId','newid()',0,0,1,16,16,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='uniqueidentifier',[FieldDataTypeId]=24,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='UserGuId',[FieldByname]='UserGuId',[DefaultValue]='newid()',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=16,[Precision]=16,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18044,1,29,1200,'int',1,1,1,'Dcx_User','UserId','UserId','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='UserId',[FieldByname]='UserId',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=1 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 



Delete from [Dcx_EntityPrivilege]  where [EntId]=2280

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2280  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11151,-1,2280,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2280  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2280

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2280  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20499,29,3274,2280,86,2,9,2,6,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3274,[TemplateId]=86,[ModuleId]=9,[GroupId]=2,[AreaId]=6,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2280  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2280  and  [ModuleTypeId]=17  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20500,29,3274,2280,86,17,15,2,7,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3274,[TemplateId]=86,[ModuleId]=15,[GroupId]=2,[AreaId]=7,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2280  and  [ModuleTypeId]=17 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_ListForm_Run]  where [EntId]=2280

--Dcx_ListForm_Run
      if (select count(1) from [Dcx_ListForm_Run] where  [EntId]=2280  )<1 
      begin 
           Insert into [Dcx_ListForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[OtherMsg],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[AccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime])values('191f8d20-86e9-c407-af1d-c26fec12c985','批量操作',2280,0,'','',1,'<script type="text/javascript" src="/js/module/Report/ReportRun.js"></script>
<script src="/Js/Control/LTreeRList/LTreeRList.js"></script>','','DcxRun.ListF_2280= {"MenuId":3274,"MEntId":2280,"EntName":"批量添加","CtrlPrex":"ListF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2280":{"EntId":2280,"KeyFieldValue":"","DBTableName":"","KeyField":"UserId","KeydtId":2,"JoinKeyField":"UserId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=true;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}


if(runObj.NoInit)
{
   entMsg.E2280.FormData=null;
   mEntMsg.RowCount=0;mEntMsg.RecortCount=0;entMsg.E2280.RowCount=0;

}

 DcxForm.InitSheetForm(2280,''ListF_'',entMsg.E2280.FormData,entMsg.E2280.$listContainer);

 DcxForm.DealPage(2280,''ListF_'');

 DcxForm.SetPower(2280,''ListF_'');


}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":19,"Ent":[{"EntId":2280,"Fld":[{"FldId":1,"Vld":[]},{"FldId":2,"Vld":[{"id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,20}$","err":"限制0-20个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"id":12,"vlId":5,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"此值已存在,请重新输入","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":3,"Vld":[{"id":4,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"id":15,"vlId":5,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"此值已存在,请重新输入","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":4,"Vld":[{"id":6,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,20}$","err":"限制0-20个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"id":14,"vlId":5,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"此值已存在,请重新输入","ok":"","warn":"","ovt":1,"jsFun":""},{"id":16,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":7,"Vld":[{"id":7,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"id":17,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":8,"Vld":[{"id":8,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":9,"Vld":[{"id":9,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"id":10,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,100}$","err":"限制0-100个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":10,"Vld":[{"id":11,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":11,"Vld":[]},{"FldId":110,"Vld":[{"id":18,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":111,"Vld":[]}]}]};
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.ListF_2280.EntMsg.E2280.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_User","EntId":2280,"KeyField":"UserId","MKeyField":"UserId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"UserName":{"DtId":2,"DB":1,"CId":1,"FL":20},"Email":{"DtId":2,"DB":1,"CId":1,"FL":50},"RealName":{"DtId":2,"DB":1,"CId":1,"FL":20},"DeptId":{"DtId":1,"DB":1,"CId":40,"FL":4},"Sex":{"DtId":2,"DB":1,"CId":34,"FL":50},"PWD":{"DtId":2,"DB":1,"CId":17,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.ListF_2280.EntMsg.E2280.GetDataRowModel=function()
{
    return {"UserName":"s","Email":"","RealName":"","DeptId":-1,"Sex":"","PWD":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"UserId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/



 function GetLinkCtrl_ListF_2280(obj,FieldName,EntId)
{

}
/****************上：AJAX回调函数******************/


DcxRun.ListF_2280.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitLf(2280,''ListF_'',buildNew,closeDlg);

}','<$2280$>select *  from (select row_number() over( order by [UserId])as dcx_rowid,[UserName],[RealName],[Email],[DeptId],[Sex],[PWD],[UserId] from Dcx_User  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$2280$><$2280:Count$>select count([UserId]) from Dcx_User where {$SearchArea}</$2280:Count$>','2280*UserId*2*UserId*2*Dcx_User*批量添加',3,'','','',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',1,3,'admin','2013-7-10 10:02:21',3,'admin','2013-10-2 18:14:10')
      end
      else 
      begin 
           update [Dcx_ListForm_Run] set [FormId]='191f8d20-86e9-c407-af1d-c26fec12c985',[FormName]='批量操作',[ModuleId]=0,[StaticHtml]='',[DropDownHtml]='',[NoInit]=1,[DIYJsCss]='<script type="text/javascript" src="/js/module/Report/ReportRun.js"></script>
<script src="/Js/Control/LTreeRList/LTreeRList.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.ListF_2280= {"MenuId":3274,"MEntId":2280,"EntName":"批量添加","CtrlPrex":"ListF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2280":{"EntId":2280,"KeyFieldValue":"","DBTableName":"","KeyField":"UserId","KeydtId":2,"JoinKeyField":"UserId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=true;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}


if(runObj.NoInit)
{
   entMsg.E2280.FormData=null;
   mEntMsg.RowCount=0;mEntMsg.RecortCount=0;entMsg.E2280.RowCount=0;

}

 DcxForm.InitSheetForm(2280,''ListF_'',entMsg.E2280.FormData,entMsg.E2280.$listContainer);

 DcxForm.DealPage(2280,''ListF_'');

 DcxForm.SetPower(2280,''ListF_'');


}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":19,"Ent":[{"EntId":2280,"Fld":[{"FldId":1,"Vld":[]},{"FldId":2,"Vld":[{"id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,20}$","err":"限制0-20个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"id":12,"vlId":5,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"此值已存在,请重新输入","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":3,"Vld":[{"id":4,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"id":15,"vlId":5,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"此值已存在,请重新输入","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":4,"Vld":[{"id":6,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,20}$","err":"限制0-20个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"id":14,"vlId":5,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"此值已存在,请重新输入","ok":"","warn":"","ovt":1,"jsFun":""},{"id":16,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":7,"Vld":[{"id":7,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"id":17,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":8,"Vld":[{"id":8,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":9,"Vld":[{"id":9,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"id":10,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,100}$","err":"限制0-100个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":10,"Vld":[{"id":11,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":11,"Vld":[]},{"FldId":110,"Vld":[{"id":18,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":111,"Vld":[]}]}]};
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.ListF_2280.EntMsg.E2280.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_User","EntId":2280,"KeyField":"UserId","MKeyField":"UserId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"UserName":{"DtId":2,"DB":1,"CId":1,"FL":20},"Email":{"DtId":2,"DB":1,"CId":1,"FL":50},"RealName":{"DtId":2,"DB":1,"CId":1,"FL":20},"DeptId":{"DtId":1,"DB":1,"CId":40,"FL":4},"Sex":{"DtId":2,"DB":1,"CId":34,"FL":50},"PWD":{"DtId":2,"DB":1,"CId":17,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.ListF_2280.EntMsg.E2280.GetDataRowModel=function()
{
    return {"UserName":"s","Email":"","RealName":"","DeptId":-1,"Sex":"","PWD":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"UserId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/



 function GetLinkCtrl_ListF_2280(obj,FieldName,EntId)
{

}
/****************上：AJAX回调函数******************/


DcxRun.ListF_2280.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitLf(2280,''ListF_'',buildNew,closeDlg);

}',[LoadingSql]='<$2280$>select *  from (select row_number() over( order by [UserId])as dcx_rowid,[UserName],[RealName],[Email],[DeptId],[Sex],[PWD],[UserId] from Dcx_User  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$2280$><$2280:Count$>select count([UserId]) from Dcx_User where {$SearchArea}</$2280:Count$>',[OtherMsg]='2280*UserId*2*UserId*2*Dcx_User*批量添加',[PageSize]=3,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[AccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-7-10 10:02:21',[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-2 18:14:10' where  [EntId]=2280 
      end




--Dcx_ListFormField_Run
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='b2cd16e5-0866-90e2-9910-e1ee6742f016'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(202,'b2cd16e5-0866-90e2-9910-e1ee6742f016',2280,2280,'00000000-0000-0000-0000-000000000000',1,'MEntBegin',-1,2,-1,'',5,-1,1,0,-1,12,-1,-1,0,0,'','','','','<div class="listform dcx-scroll" id="reportPreview">
	<div class="title-div">
		<ul class="ul-title" groupid="1" isgroup="1" style="width: 796px;" isrple="1">
			<li areaid="92" class="li-area-title" scroll="no" style="width: 786px; height: 36px; position: static;">
				<div class="form-title2" id="div_head1">
					<span class="title-name" id="h2_title">批量操作</span></div>
			</li>
		</ul>
	</div>
	<div class="frame-div">
		<div class="toolbar-opt clearfix">
			<ul class="tool-ul item-ul1  clearfix" groupid="3" isgroup="1" style="width: 776px;" isrple="1">
				<li class="list-allselect" scroll="no" style="position: static;">
					<input class="list-ifselect" id="ckb_CheckAllListF_2280" onclick="javascript:DcxCom.CheckedAll(this,2280,''ListF_'');" rel="chkall" type="checkbox"> <label for="ckb_CheckAllListF_2280"> 全选</label></li>
				<li areaid="93" class="list-tit" scroll="no" style="width: 62px; height: 30px; position: static;">
					<a class="lform-bt-save" href="javascript:void(0);" id="ListF_2280_btn_buildNew" onclick="javascript:DcxRun.ListF_2280.SubmitForm();" title="保存">保 存</a></li>
				<li areaid="94" class="list-tit" scroll="no" style="width: 62px; height: 30px; position: static;">
					<a class="lform-bt-add" href="javascript:void(0);" onclick="javascript:DcxForm.AddRow(this,1,2280,''ListF_'');" id="A1" title="添加1行">添 加</a></li>
				<li areaid="95" class="list-tit" scroll="no" style="width: 80px; height: 30px; position: static;">
					<a class="lform-bt-other" href="javascript:void(0);" onclick="javascript:DcxForm.AddRow(this,5,2280,''ListF_'');" id="A2" title="添加5行">添加5行</a></li>
				<li areaid="96" class="list-tit" scroll="no" style="width: 79px; height: 30px; display: none; position: static;">
					<a class="lform-bt-other" href="javascript:void(0);" id="A3" onclick="javascript:DcxForm.AddRow(this,10,2280,''ListF_'');" title="添加10行">添加10行</a></li>
				<li areaid="97" class="list-tit" scroll="no" style="width: 64px; height: 30px; position: static;"><a class="lform-bt-delete" href="javascript:void(0);" onclick="javascript:DcxForm.DeleteRow(this,2280,''ListF_'');" id="ListF_2280_deletebut" title="删   除">删 除</a></li>
				<li areaid="98" class="list-tit" scroll="no" style="width: 78px; height: 30px; position: static; display: none;">
					<a class="lform-bt-other" href="javascript:void(0);" onclick="javascript:DcxForm.DeleteAllRow(this,2280,''ListF_'');" id="A4" title="删除全部">删除全部</a></li>
				<li areaid="99" class="list-tit" scroll="no" style="width: 78px; height: 30px; display: none; position: static;"><a class="lform-bt-other" href="javascript:void(0);" id="A5" onclick="javascript:DcxForm.DeleteUnlawRow(this,2279,''AjaxF_'');" title="删除非法">删除非法</a></li>
				<!--分页栏-->
				<li areaid="100" class="pages" id="li2_ListF_2280" scroll="no" style="width: 156px; height: 23px; position: static;"><a class="list-pages list-prepage firstpage_un" href="javascript:void(0);" id="ListF_2280_PrevPage" onclick="javascript:DcxSch.GetHtml(2280,''ListF_'',''p'');" title="上一页">&nbsp;</a> <span class="ddl_pageindex list-pagesdown"> <select id="ddl_ListF_2280_PageIndex" onchange="javascript:DcxSch.GetHtml(2280,''ListF_'',''a'',this);"> </select> </span><a class="list-pages list-nextpage" href="javascript:void(0);" id="ListF_2280_NextPage" onclick="javascript:DcxSch.GetHtml(2280,''ListF_'',''n'');" title="下一页">&nbsp;</a> <span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListF_2280_RecCount_lbl" isrecortcount="1"> 0</span> <span class="list-data-amount">条记录</span></li>
			</ul>
		</div>
		<div class="listarea dcx-scroll">
			<div class="lf-head">
				<ul class="ul-list-title clearfix" groupid="4" isgroup="1" style="width: 796px;" isrple="1">
					<li areaid="101" class="li-head-item" scroll="no" style="width: 40px; height: 28px; clear: none; float: left; position: static;"></li><li areaid="102" class="li-head-item" scroll="no" style="width: 120px; height: 28px; clear: none; float: left; position: static;"><label class="head-label pad7" istitle="1">用户名</label></li>
					<li areaid="103" class="li-head-item" scroll="no" style="width: 100px; height: 28px; clear: none; float: left; position: static;">
						<label class="head-label pad7" istitle="1">姓名</label></li>
					<li areaid="104" class="li-head-item" scroll="no" style="width: 130px; height: 28px; clear: none; float: left; position: static;">
						<label class="head-label pad7" istitle="1">Email</label></li>
					<li areaid="105" class="li-head-item" scroll="no" style="width: 130px; height: 28px; clear: none; float: left; position: static;"><label class="head-label pad7" istitle="1">所在部门</label></li><li areaid="116" class="li-head-item" scroll="no" style="width: 110px; height: 28px; clear: none; float: left; position: static;">
						<label class="head-label pad7" istitle="1">角色</label></li>
					<li areaid="106" class="li-head-item" scroll="no" style="width: 70px; height: 28px; clear: none; float: left; position: static;"><label class="head-label pad7" istitle="1">性别</label></li>
					<li areaid="107" class="li-head-item" scroll="no" style="width: 80px; height: 28px; clear: right; float: left; position: static;"><label class="head-label pad7" istitle="1">密码</label></li>
				</ul>
			</div>
			<div class="lf-body">','','','','','','',5,-1,-1,-1,1,'2280,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=202,[Form_EntId]=2280,[EntId]=2280,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[FieldName]='MEntBegin',[FieldDataTypeId]=-1,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=-1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=-1,[FieldTypeId]=12,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="listform dcx-scroll" id="reportPreview">
	<div class="title-div">
		<ul class="ul-title" groupid="1" isgroup="1" style="width: 796px;" isrple="1">
			<li areaid="92" class="li-area-title" scroll="no" style="width: 786px; height: 36px; position: static;">
				<div class="form-title2" id="div_head1">
					<span class="title-name" id="h2_title">批量操作</span></div>
			</li>
		</ul>
	</div>
	<div class="frame-div">
		<div class="toolbar-opt clearfix">
			<ul class="tool-ul item-ul1  clearfix" groupid="3" isgroup="1" style="width: 776px;" isrple="1">
				<li class="list-allselect" scroll="no" style="position: static;">
					<input class="list-ifselect" id="ckb_CheckAllListF_2280" onclick="javascript:DcxCom.CheckedAll(this,2280,''ListF_'');" rel="chkall" type="checkbox"> <label for="ckb_CheckAllListF_2280"> 全选</label></li>
				<li areaid="93" class="list-tit" scroll="no" style="width: 62px; height: 30px; position: static;">
					<a class="lform-bt-save" href="javascript:void(0);" id="ListF_2280_btn_buildNew" onclick="javascript:DcxRun.ListF_2280.SubmitForm();" title="保存">保 存</a></li>
				<li areaid="94" class="list-tit" scroll="no" style="width: 62px; height: 30px; position: static;">
					<a class="lform-bt-add" href="javascript:void(0);" onclick="javascript:DcxForm.AddRow(this,1,2280,''ListF_'');" id="A1" title="添加1行">添 加</a></li>
				<li areaid="95" class="list-tit" scroll="no" style="width: 80px; height: 30px; position: static;">
					<a class="lform-bt-other" href="javascript:void(0);" onclick="javascript:DcxForm.AddRow(this,5,2280,''ListF_'');" id="A2" title="添加5行">添加5行</a></li>
				<li areaid="96" class="list-tit" scroll="no" style="width: 79px; height: 30px; display: none; position: static;">
					<a class="lform-bt-other" href="javascript:void(0);" id="A3" onclick="javascript:DcxForm.AddRow(this,10,2280,''ListF_'');" title="添加10行">添加10行</a></li>
				<li areaid="97" class="list-tit" scroll="no" style="width: 64px; height: 30px; position: static;"><a class="lform-bt-delete" href="javascript:void(0);" onclick="javascript:DcxForm.DeleteRow(this,2280,''ListF_'');" id="ListF_2280_deletebut" title="删   除">删 除</a></li>
				<li areaid="98" class="list-tit" scroll="no" style="width: 78px; height: 30px; position: static; display: none;">
					<a class="lform-bt-other" href="javascript:void(0);" onclick="javascript:DcxForm.DeleteAllRow(this,2280,''ListF_'');" id="A4" title="删除全部">删除全部</a></li>
				<li areaid="99" class="list-tit" scroll="no" style="width: 78px; height: 30px; display: none; position: static;"><a class="lform-bt-other" href="javascript:void(0);" id="A5" onclick="javascript:DcxForm.DeleteUnlawRow(this,2279,''AjaxF_'');" title="删除非法">删除非法</a></li>
				<!--分页栏-->
				<li areaid="100" class="pages" id="li2_ListF_2280" scroll="no" style="width: 156px; height: 23px; position: static;"><a class="list-pages list-prepage firstpage_un" href="javascript:void(0);" id="ListF_2280_PrevPage" onclick="javascript:DcxSch.GetHtml(2280,''ListF_'',''p'');" title="上一页">&nbsp;</a> <span class="ddl_pageindex list-pagesdown"> <select id="ddl_ListF_2280_PageIndex" onchange="javascript:DcxSch.GetHtml(2280,''ListF_'',''a'',this);"> </select> </span><a class="list-pages list-nextpage" href="javascript:void(0);" id="ListF_2280_NextPage" onclick="javascript:DcxSch.GetHtml(2280,''ListF_'',''n'');" title="下一页">&nbsp;</a> <span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListF_2280_RecCount_lbl" isrecortcount="1"> 0</span> <span class="list-data-amount">条记录</span></li>
			</ul>
		</div>
		<div class="listarea dcx-scroll">
			<div class="lf-head">
				<ul class="ul-list-title clearfix" groupid="4" isgroup="1" style="width: 796px;" isrple="1">
					<li areaid="101" class="li-head-item" scroll="no" style="width: 40px; height: 28px; clear: none; float: left; position: static;"></li><li areaid="102" class="li-head-item" scroll="no" style="width: 120px; height: 28px; clear: none; float: left; position: static;"><label class="head-label pad7" istitle="1">用户名</label></li>
					<li areaid="103" class="li-head-item" scroll="no" style="width: 100px; height: 28px; clear: none; float: left; position: static;">
						<label class="head-label pad7" istitle="1">姓名</label></li>
					<li areaid="104" class="li-head-item" scroll="no" style="width: 130px; height: 28px; clear: none; float: left; position: static;">
						<label class="head-label pad7" istitle="1">Email</label></li>
					<li areaid="105" class="li-head-item" scroll="no" style="width: 130px; height: 28px; clear: none; float: left; position: static;"><label class="head-label pad7" istitle="1">所在部门</label></li><li areaid="116" class="li-head-item" scroll="no" style="width: 110px; height: 28px; clear: none; float: left; position: static;">
						<label class="head-label pad7" istitle="1">角色</label></li>
					<li areaid="106" class="li-head-item" scroll="no" style="width: 70px; height: 28px; clear: none; float: left; position: static;"><label class="head-label pad7" istitle="1">性别</label></li>
					<li areaid="107" class="li-head-item" scroll="no" style="width: 80px; height: 28px; clear: right; float: left; position: static;"><label class="head-label pad7" istitle="1">密码</label></li>
				</ul>
			</div>
			<div class="lf-body">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='',[CtrlbackHtml]='',[CtrlLastHtml]='',[TableIndex]=5,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2280,' where  [FldUId]='b2cd16e5-0866-90e2-9910-e1ee6742f016' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='1f9f529b-2465-6764-8f59-78dca57f8428'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'1f9f529b-2465-6764-8f59-78dca57f8428',2280,2280,'00000000-0000-0000-0000-000000000000',2,'KeyFieldValue',2,2,-1,'',5,1,1,0,1,21,-1,-1,0,0,'','','','','class="ul-listfield  clearfix" groupid="5" isgroup="1" style="width: 796px;" isrple="1">
					<li areaid="108" class="li-listfield" scroll="no" style="width: 40px; height: 40px; clear: none; float: left; position: static;"><div class="list-field" style="padding-top:10px;padding-left:10px;">
	<input class="ckb_del" ctrlprex="ListF_" entid="2280" issyscheck="1" keyvalue="','','','','','','',5,-1,-1,-1,1,'2280,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=1,[Form_EntId]=2280,[EntId]=2280,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[FieldName]='KeyFieldValue',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=21,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='class="ul-listfield  clearfix" groupid="5" isgroup="1" style="width: 796px;" isrple="1">
					<li areaid="108" class="li-listfield" scroll="no" style="width: 40px; height: 40px; clear: none; float: left; position: static;"><div class="list-field" style="padding-top:10px;padding-left:10px;">
	<input class="ckb_del" ctrlprex="ListF_" entid="2280" issyscheck="1" keyvalue="',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='',[CtrlbackHtml]='',[CtrlLastHtml]='',[TableIndex]=5,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2280,' where  [FldUId]='1f9f529b-2465-6764-8f59-78dca57f8428' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='26db0c13-77fa-9544-e889-9c8db059e500'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'26db0c13-77fa-9544-e889-9c8db059e500',2280,2280,'00000000-0000-0000-0000-000000000000',3,'UserName',2,2,3,'s',5,1,1,0,1,1,-1,-1,1,0,'','','','','" type="checkbox"></div>
</li><li areaid="109" class="li-listfield" scroll="no" style="width: 120px; height: 40px; clear: none; float: left; position: static;"><div class="list-field" style="padding-top:5px;">
	<span class="form-ctr" isfcontain="1">','','','<input  id="d2280_UserName%trindex%" CtrlPrex="ListF_"','type="text" class="lt-txt"  style="width:110px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2280,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2280,''ListF_'',2280,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2280,''ListF_'',2280,true);" EntId="2280" IsField=1 DBField=1 IsPost=1 FieldName="UserName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    value="','" />','',5,-1,-1,-1,1,'2280,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=2,[Form_EntId]=2280,[EntId]=2280,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[FieldName]='UserName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=3,[DefaultValue]='s',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='" type="checkbox"></div>
</li><li areaid="109" class="li-listfield" scroll="no" style="width: 120px; height: 40px; clear: none; float: left; position: static;"><div class="list-field" style="padding-top:5px;">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<input  id="d2280_UserName%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='type="text" class="lt-txt"  style="width:110px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2280,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2280,''ListF_'',2280,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2280,''ListF_'',2280,true);" EntId="2280" IsField=1 DBField=1 IsPost=1 FieldName="UserName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    value="',[CtrlbackHtml]='" />',[CtrlLastHtml]='',[TableIndex]=5,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2280,' where  [FldUId]='26db0c13-77fa-9544-e889-9c8db059e500' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='d2150e21-1b7b-1f7c-a734-e46cf5b913a5'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'d2150e21-1b7b-1f7c-a734-e46cf5b913a5',2280,2280,'00000000-0000-0000-0000-000000000000',4,'RealName',2,2,5,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>

	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div></li>
					<li areaid="111" class="li-listfield" scroll="no" style="width: 100px; height: 40px; clear: none; float: left; position: static;"><div class="list-field" style="padding-top:5px;">
	<span class="form-ctr" isfcontain="1">','','','<input  id="d2280_RealName%trindex%" CtrlPrex="ListF_"','type="text" class="lt-txt"  style="width:90px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2280,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2280,''ListF_'',2280,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2280,''ListF_'',2280,true);" EntId="2280" IsField=1 DBField=1 IsPost=1 FieldName="RealName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="4" vlk=0    value="','" />','',5,-1,-1,-1,1,'2280,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=4,[Form_EntId]=2280,[EntId]=2280,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=4,[FieldName]='RealName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=5,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div></li>
					<li areaid="111" class="li-listfield" scroll="no" style="width: 100px; height: 40px; clear: none; float: left; position: static;"><div class="list-field" style="padding-top:5px;">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<input  id="d2280_RealName%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='type="text" class="lt-txt"  style="width:90px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2280,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2280,''ListF_'',2280,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2280,''ListF_'',2280,true);" EntId="2280" IsField=1 DBField=1 IsPost=1 FieldName="RealName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="4" vlk=0    value="',[CtrlbackHtml]='" />',[CtrlLastHtml]='',[TableIndex]=5,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2280,' where  [FldUId]='d2150e21-1b7b-1f7c-a734-e46cf5b913a5' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='83bcb092-b0d6-00a9-20fb-e6c109cac65b'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'83bcb092-b0d6-00a9-20fb-e6c109cac65b',2280,2280,'00000000-0000-0000-0000-000000000000',5,'Email',2,2,7,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
<div iserr="1" class="form-vld"></div></div></li><li areaid="110" class="li-listfield" scroll="no" style="width: 130px; height: 40px; clear: none; float: left; position: static;"><div class="list-field" style="padding-top:5px;">
	<span class="form-ctr" isfcontain="1">','','','<input  id="d2280_Email%trindex%" CtrlPrex="ListF_"','type="text" class="lt-txt"  style="width:120px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2280,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2280,''ListF_'',2280,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2280,''ListF_'',2280,true);" EntId="2280" IsField=1 DBField=1 IsPost=1 FieldName="Email" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="3" vlk=0    value="','" />','',5,-1,-1,-1,1,'2280,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=3,[Form_EntId]=2280,[EntId]=2280,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=5,[FieldName]='Email',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=7,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
<div iserr="1" class="form-vld"></div></div></li><li areaid="110" class="li-listfield" scroll="no" style="width: 130px; height: 40px; clear: none; float: left; position: static;"><div class="list-field" style="padding-top:5px;">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<input  id="d2280_Email%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='type="text" class="lt-txt"  style="width:120px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2280,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2280,''ListF_'',2280,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2280,''ListF_'',2280,true);" EntId="2280" IsField=1 DBField=1 IsPost=1 FieldName="Email" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="3" vlk=0    value="',[CtrlbackHtml]='" />',[CtrlLastHtml]='',[TableIndex]=5,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2280,' where  [FldUId]='83bcb092-b0d6-00a9-20fb-e6c109cac65b' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='ba1026e0-6e29-2317-0723-4f5decca6239'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'ba1026e0-6e29-2317-0723-4f5decca6239',2280,2280,'00000000-0000-0000-0000-000000000000',6,'DeptId',1,1,14,'',5,2,1,0,40,1,-1,22,1,0,'','','','','</span>
<div iserr="1" class="form-vld"></div>
</div></li>
					
					<li areaid="112" class="li-listfield" scroll="no" style="width: 130px; height: 40px; clear: none; float: left; position: static;"><div class="list-field" style="padding-top:5px;">
	<span class="form-ctr" isfcontain="1">','','','<div id="d2280_DeptId%trindex%" CtrlPrex="ListF_"','class="lt-ddl" style="width:100px;" IsForField=1 EntId="2280" FId="7" Vtp="5" RId="2" Isc="1" CId="40" FieldName="DeptId" ><input  id="d2280_DeptId%trindex%_Text" type="text" class="lt-ddl-txt" readonly="readOnly"  CId="40" FId="7" Vtp="5"  RId="2" Isc="1"  style="width:100px;" onclick ="javascript:DcxTree.ShowDialogLf(this,22,2280,''DeptId'',false);" onchange ="javascript:if(!DcxVld.Validate(this,2280,''ListF_'',2280,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2280,''ListF_'',2280,true);" onkeyup ="javascript:DcxTree.ShowDialogLf(this,22,2280,''DeptId'',true);" onmouseover ="javascript:DcxForm.ListTxtMouseOver(this,2280,''DeptId'');" value="','" /><span class="lt-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2280_DeptId%trindex%_hid" CtrlPrex="ListF_" type="hidden"  EntId="2280" IsField=1 DBField=1 IsPost=1 FieldName="DeptId" dType="1" Vtp="5" RDT="1" Isc="1" RId="2" CId="40" FId="7" vlk=0   TId=22  value="','"/>',5,-1,-1,-1,1,'2280,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=7,[Form_EntId]=2280,[EntId]=2280,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=6,[FieldName]='DeptId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=14,[DefaultValue]='',[ValueType]=5,[RunValueType]=2,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=40,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=22,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
<div iserr="1" class="form-vld"></div>
</div></li>
					
					<li areaid="112" class="li-listfield" scroll="no" style="width: 130px; height: 40px; clear: none; float: left; position: static;"><div class="list-field" style="padding-top:5px;">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<div id="d2280_DeptId%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='class="lt-ddl" style="width:100px;" IsForField=1 EntId="2280" FId="7" Vtp="5" RId="2" Isc="1" CId="40" FieldName="DeptId" ><input  id="d2280_DeptId%trindex%_Text" type="text" class="lt-ddl-txt" readonly="readOnly"  CId="40" FId="7" Vtp="5"  RId="2" Isc="1"  style="width:100px;" onclick ="javascript:DcxTree.ShowDialogLf(this,22,2280,''DeptId'',false);" onchange ="javascript:if(!DcxVld.Validate(this,2280,''ListF_'',2280,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2280,''ListF_'',2280,true);" onkeyup ="javascript:DcxTree.ShowDialogLf(this,22,2280,''DeptId'',true);" onmouseover ="javascript:DcxForm.ListTxtMouseOver(this,2280,''DeptId'');" value="',[CtrlbackHtml]='" /><span class="lt-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2280_DeptId%trindex%_hid" CtrlPrex="ListF_" type="hidden"  EntId="2280" IsField=1 DBField=1 IsPost=1 FieldName="DeptId" dType="1" Vtp="5" RDT="1" Isc="1" RId="2" CId="40" FId="7" vlk=0   TId=22  value="',[CtrlLastHtml]='"/>',[TableIndex]=5,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2280,' where  [FldUId]='ba1026e0-6e29-2317-0723-4f5decca6239' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='bc80b9d9-193e-e47a-eaf9-6186492a5220'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(111,'bc80b9d9-193e-e47a-eaf9-6186492a5220',2280,2280,'00000000-0000-0000-0000-000000000000',7,'RoleId',2,2,-1,'Public/1',1,2,1,0,40,3,-1,60,0,0,'','','','','</span>

<div iserr="1" class="form-vld"></div>
</div></li><li areaid="115" class="li-listfield" scroll="no" style="width: 110px; height: 40px; clear: none; float: left; position: static;"><div class="list-field" style="padding-top:5px;">
	<span class="form-ctr" isfcontain="1">','','','<div id="d2280_RoleId%trindex%" CtrlPrex="ListF_"','class="lt-ddl" style="width:80px;" IsForField=1 EntId="2280" FId="111" Vtp="1" RId="2" Isc="1" CId="40" FieldName="RoleId" ><input  id="d2280_RoleId%trindex%_Text" type="text" class="lt-ddl-txt" readonly="readOnly"  CId="40" FId="111" Vtp="1"  RId="2" Isc="1"  style="width:80px;" onclick ="javascript:DcxTree.ShowDialogLf(this,60,2280,''RoleId'',false);" onkeyup ="javascript:DcxTree.ShowDialogLf(this,60,2280,''RoleId'',true);" onmouseover ="javascript:DcxForm.ListTxtMouseOver(this,2280,''RoleId'');" value="','" /><span class="lt-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2280_RoleId%trindex%_hid" CtrlPrex="ListF_" type="hidden"  EntId="2280" IsField=1 DBField=0 IsPost=0 FieldName="RoleId" dType="2" Vtp="1" RDT="2" Isc="1" RId="2" CId="40" FId="111" vlk=0   TId=60  value="','"/>',5,115,-1,-1,1,'2280,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=111,[Form_EntId]=2280,[EntId]=2280,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=7,[FieldName]='RoleId',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='Public/1',[ValueType]=1,[RunValueType]=2,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=40,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=60,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

<div iserr="1" class="form-vld"></div>
</div></li><li areaid="115" class="li-listfield" scroll="no" style="width: 110px; height: 40px; clear: none; float: left; position: static;"><div class="list-field" style="padding-top:5px;">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<div id="d2280_RoleId%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='class="lt-ddl" style="width:80px;" IsForField=1 EntId="2280" FId="111" Vtp="1" RId="2" Isc="1" CId="40" FieldName="RoleId" ><input  id="d2280_RoleId%trindex%_Text" type="text" class="lt-ddl-txt" readonly="readOnly"  CId="40" FId="111" Vtp="1"  RId="2" Isc="1"  style="width:80px;" onclick ="javascript:DcxTree.ShowDialogLf(this,60,2280,''RoleId'',false);" onkeyup ="javascript:DcxTree.ShowDialogLf(this,60,2280,''RoleId'',true);" onmouseover ="javascript:DcxForm.ListTxtMouseOver(this,2280,''RoleId'');" value="',[CtrlbackHtml]='" /><span class="lt-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2280_RoleId%trindex%_hid" CtrlPrex="ListF_" type="hidden"  EntId="2280" IsField=1 DBField=0 IsPost=0 FieldName="RoleId" dType="2" Vtp="1" RDT="2" Isc="1" RId="2" CId="40" FId="111" vlk=0   TId=60  value="',[CtrlLastHtml]='"/>',[TableIndex]=5,[RowIndex]=115,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2280,' where  [FldUId]='bc80b9d9-193e-e47a-eaf9-6186492a5220' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='68043d39-36a1-94f1-46cc-7ab3fcbf379c'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'68043d39-36a1-94f1-46cc-7ab3fcbf379c',2280,2280,'00000000-0000-0000-0000-000000000000',8,'Sex',2,2,25,'男|男',1,2,1,0,34,1,2,-1,1,0,'','','','','</span>

	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li>
					<li areaid="113" class="li-listfield" scroll="no" style="width: 70px; height: 40px; clear: none; float: left; position: static;"><div class="list-field" style="padding-top:5px;"><span class="form-ctr" isfcontain="1">','','<!--dds_2280_Sex_begin-->
<div style="display: none;" id="dds_d2280_Sex" class="selector-ddl">
<div id="dds_d2280_Sex_title" class="sel_title">请选择</div>
<div id="dds_d2280_Sex_content" class="sel_list"><ul id="dds_d2280_Sex_ul">
<li onclick="javascript:DDS_GetValue_LF(this,0);" id="dds_d2280_Sex_li0" class="sel_li">
<a class="op_a" id="d2280_Sexa" href="javascript:void(0);"><span id="d2280_Sexs" IsT=1>男</span><em id="d2280_Sexe" IsV=1>男</em></a>
</li>
<li onclick="javascript:DDS_GetValue_LF(this,1);" id="dds_d2280_Sex_li1" class="sel_li">
<a class="op_a" id="d2280_Sexa" href="javascript:void(0);"><span id="d2280_Sexs" IsT=1>女</span><em id="d2280_Sexe" IsV=1>女</em></a>
</li>
</ul>
<ul id="dds_d2280_Sex_search_ul"></ul>
</div>
<iframe style="z-index: -1; border-bottom: 0px; position: absolute; filter: alpha(opacity = 0);
border-left: 0px; width: 106px; background: #fff; overflow: hidden; border-top: 0px;
top: -8px; border-right: 0px; left: -8px; opacity: 0" id="mgiframe" marginheight="0"
frameborder="0" marginwidth="0" src=""></iframe>
</div>

<!--dds_2280_Sex_end-->','<div id="d2280_Sex%trindex%" CtrlPrex="ListF_"','class="lt-ddl" style="" IsForField=1 EntId="2280" FId="8" Vtp="1" RId="2" Isc="1" CId="34" FieldName="Sex" ><input  id="d2280_Sex%trindex%_Text" type="text" class="lt-ddl-txt"  readonly="readOnly"  CId="34" FId="8" Vtp="1"  RId="2" Isc="1"  style="width:40px;" onclick ="javascript:DcxDdl.ShowDialogLf(this,2280,''Sex'',false);" onchange ="javascript:if(!DcxVld.Validate(this,2280,''ListF_'',2280,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2280,''ListF_'',2280,true);" onkeyup ="javascript:DcxDdl.ShowDialogLf(this,2280,''Sex'',true);" onmouseover ="javascript:DcxForm.ListTxtMouseOver(this,2280,''Sex'');" value="','" /> <span class="lt-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div><input type="hidden"  id="d2280_Sex%trindex%" CtrlPrex="ListF_" value="','"  EntId="2280" IsField=1 DBField=1 IsPost=1 FieldName="Sex" dType="2" Vtp="1" RDT="2" Isc="1" RId="2" CId="34" FId="8" vlk=0    />',5,-1,-1,-1,1,'2280,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=8,[Form_EntId]=2280,[EntId]=2280,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=8,[FieldName]='Sex',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=25,[DefaultValue]='男|男',[ValueType]=1,[RunValueType]=2,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=34,[FieldTypeId]=1,[RepeatColumns]=2,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li>
					<li areaid="113" class="li-listfield" scroll="no" style="width: 70px; height: 40px; clear: none; float: left; position: static;"><div class="list-field" style="padding-top:5px;"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='<!--dds_2280_Sex_begin-->
<div style="display: none;" id="dds_d2280_Sex" class="selector-ddl">
<div id="dds_d2280_Sex_title" class="sel_title">请选择</div>
<div id="dds_d2280_Sex_content" class="sel_list"><ul id="dds_d2280_Sex_ul">
<li onclick="javascript:DDS_GetValue_LF(this,0);" id="dds_d2280_Sex_li0" class="sel_li">
<a class="op_a" id="d2280_Sexa" href="javascript:void(0);"><span id="d2280_Sexs" IsT=1>男</span><em id="d2280_Sexe" IsV=1>男</em></a>
</li>
<li onclick="javascript:DDS_GetValue_LF(this,1);" id="dds_d2280_Sex_li1" class="sel_li">
<a class="op_a" id="d2280_Sexa" href="javascript:void(0);"><span id="d2280_Sexs" IsT=1>女</span><em id="d2280_Sexe" IsV=1>女</em></a>
</li>
</ul>
<ul id="dds_d2280_Sex_search_ul"></ul>
</div>
<iframe style="z-index: -1; border-bottom: 0px; position: absolute; filter: alpha(opacity = 0);
border-left: 0px; width: 106px; background: #fff; overflow: hidden; border-top: 0px;
top: -8px; border-right: 0px; left: -8px; opacity: 0" id="mgiframe" marginheight="0"
frameborder="0" marginwidth="0" src=""></iframe>
</div>

<!--dds_2280_Sex_end-->',[CtrlBeforeHtml]='<div id="d2280_Sex%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='class="lt-ddl" style="" IsForField=1 EntId="2280" FId="8" Vtp="1" RId="2" Isc="1" CId="34" FieldName="Sex" ><input  id="d2280_Sex%trindex%_Text" type="text" class="lt-ddl-txt"  readonly="readOnly"  CId="34" FId="8" Vtp="1"  RId="2" Isc="1"  style="width:40px;" onclick ="javascript:DcxDdl.ShowDialogLf(this,2280,''Sex'',false);" onchange ="javascript:if(!DcxVld.Validate(this,2280,''ListF_'',2280,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2280,''ListF_'',2280,true);" onkeyup ="javascript:DcxDdl.ShowDialogLf(this,2280,''Sex'',true);" onmouseover ="javascript:DcxForm.ListTxtMouseOver(this,2280,''Sex'');" value="',[CtrlbackHtml]='" /> <span class="lt-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div><input type="hidden"  id="d2280_Sex%trindex%" CtrlPrex="ListF_" value="',[CtrlLastHtml]='"  EntId="2280" IsField=1 DBField=1 IsPost=1 FieldName="Sex" dType="2" Vtp="1" RDT="2" Isc="1" RId="2" CId="34" FId="8" vlk=0    />',[TableIndex]=5,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2280,' where  [FldUId]='68043d39-36a1-94f1-46cc-7ab3fcbf379c' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='7f1252b8-3150-203e-41b7-ac0a5293dafd'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'7f1252b8-3150-203e-41b7-ac0a5293dafd',2280,2280,'00000000-0000-0000-0000-000000000000',9,'PWD',2,2,22,'',5,1,1,0,17,1,-1,-1,1,1,'','','','','</span>
</div>
					</li>
					<li areaid="114" class="li-listfield" scroll="no" style="width: 80px; height: 40px; clear: right; float: left; position: static;"><div class="list-field" style="padding-top:5px;">
	<span class="form-ctr" isfcontain="1">','','','<input  id="d2280_PWD%trindex%" CtrlPrex="ListF_"','type="password" class="lt-txt"  style="width:60px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2280,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2280,''ListF_'',2280,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2280,''ListF_'',2280,true);" EntId="2280" IsField=1 DBField=1 IsPost=1 FieldName="PWD" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="17" FId="9" vlk=1   value="','" />','',5,-1,-1,-1,1,'2280,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=9,[Form_EntId]=2280,[EntId]=2280,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=9,[FieldName]='PWD',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=22,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=17,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=1,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
					</li>
					<li areaid="114" class="li-listfield" scroll="no" style="width: 80px; height: 40px; clear: right; float: left; position: static;"><div class="list-field" style="padding-top:5px;">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<input  id="d2280_PWD%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='type="password" class="lt-txt"  style="width:60px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2280,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2280,''ListF_'',2280,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2280,''ListF_'',2280,true);" EntId="2280" IsField=1 DBField=1 IsPost=1 FieldName="PWD" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="17" FId="9" vlk=1   value="',[CtrlbackHtml]='" />',[CtrlLastHtml]='',[TableIndex]=5,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2280,' where  [FldUId]='7f1252b8-3150-203e-41b7-ac0a5293dafd' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='6f22c88a-1284-a267-1071-e8f9a01b7d21'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(203,'6f22c88a-1284-a267-1071-e8f9a01b7d21',2280,2280,'00000000-0000-0000-0000-000000000000',10,'MEntEnd',-1,2,-1,'',5,-1,1,0,-1,13,-1,-1,0,0,'','','','','</span>
</div>
</li>
				</ul>','</div>
		</div>
	</div>
</div>
<br>','','','','','',5,-1,-1,-1,1,'2280,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=203,[Form_EntId]=2280,[EntId]=2280,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=10,[FieldName]='MEntEnd',[FieldDataTypeId]=-1,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=-1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=-1,[FieldTypeId]=13,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
				</ul>',[LastHtml]='</div>
		</div>
	</div>
</div>
<br>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='',[CtrlbackHtml]='',[CtrlLastHtml]='',[TableIndex]=5,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2280,' where  [FldUId]='6f22c88a-1284-a267-1071-e8f9a01b7d21' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=1200

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=1200  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(1200,null,'Dcx_User','Dcx_User',1,0,0,0,0,0,29,1,3,'admin','2013-12-15 17:32:24',3,'admin','2013-12-15 17:32:24',null,null,27,418,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='Dcx_User',[DBTableByName]='Dcx_User',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=29,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:24',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:24',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=27,[SDbTableId]=418,[IsChange]=null,[IsSystem]=null where  [DBTableId]=1200 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=50  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17995,50,29,1200,'int',1,1,1,'Dcx_User','TopMenuId','TopMenuId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='TopMenuId',[FieldByname]='TopMenuId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=50 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=49  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17996,49,29,1200,'varchar',2,1,1,'Dcx_User','InviteCode','InviteCode','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='InviteCode',[FieldByname]='InviteCode',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=49 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=48  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17997,48,29,1200,'int',1,1,1,'Dcx_User','DiskSize','DiskSize','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='DiskSize',[FieldByname]='DiskSize',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=48 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=47  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17998,47,29,1200,'varchar',2,1,1,'Dcx_User','Remark','Remark','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Remark',[FieldByname]='Remark',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=47 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=46  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17999,46,29,1200,'bit',4,1,1,'Dcx_User','AcceptStrangerIM','AcceptStrangerIM','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='AcceptStrangerIM',[FieldByname]='AcceptStrangerIM',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=46 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=45  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18000,45,29,1200,'int',1,1,1,'Dcx_User','StyleId','StyleId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='StyleId',[FieldByname]='StyleId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=45 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=44  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18001,44,29,1200,'bit',4,1,1,'Dcx_User','SelftSearch','SelftSearch','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='SelftSearch',[FieldByname]='SelftSearch',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=44 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=43  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18002,43,29,1200,'bit',4,1,1,'Dcx_User','SelftNavMenu','SelftNavMenu','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='SelftNavMenu',[FieldByname]='SelftNavMenu',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=43 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=42  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18003,42,29,1200,'bit',4,1,1,'Dcx_User','SelftHomePage','SelftHomePage','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='SelftHomePage',[FieldByname]='SelftHomePage',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=42 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=41  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18004,41,29,1200,'datetime',3,1,1,'Dcx_User','EditTime','EditTime','getdate()',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='EditTime',[FieldByname]='EditTime',[DefaultValue]='getdate()',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=41 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=40  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18005,40,29,1200,'varchar',2,1,1,'Dcx_User','Editor','Editor','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Editor',[FieldByname]='Editor',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=40 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=39  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18006,39,29,1200,'int',1,1,1,'Dcx_User','EditorId','EditorId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='EditorId',[FieldByname]='EditorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=39 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=38  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18007,38,29,1200,'datetime',3,1,1,'Dcx_User','CreateTime','CreateTime','getdate()',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='CreateTime',[FieldByname]='CreateTime',[DefaultValue]='getdate()',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=38 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=37  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18008,37,29,1200,'varchar',2,1,1,'Dcx_User','Creator','Creator','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Creator',[FieldByname]='Creator',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=37 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=36  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18009,36,29,1200,'int',1,1,1,'Dcx_User','CreatorId','CreatorId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='CreatorId',[FieldByname]='CreatorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=36 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=35  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18010,35,29,1200,'varchar',2,1,1,'Dcx_User','IconPath','IconPath','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='IconPath',[FieldByname]='IconPath',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=35 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=34  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18011,34,29,1200,'varchar',2,1,1,'Dcx_User','Http','Http','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Http',[FieldByname]='Http',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=34 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=33  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18012,33,29,1200,'int',1,1,1,'Dcx_User','Caste','Caste','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Caste',[FieldByname]='Caste',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=33 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=32  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18013,32,29,1200,'bit',4,1,1,'Dcx_User','IsNeedKey','IsNeedKey','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='IsNeedKey',[FieldByname]='IsNeedKey',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=32 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=31  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18014,31,29,1200,'int',1,1,1,'Dcx_User','Style','Style','1',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Style',[FieldByname]='Style',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=31 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=30  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18015,30,29,1200,'datetime',3,1,1,'Dcx_User','Birthday','Birthday','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Birthday',[FieldByname]='Birthday',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=30 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=29  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18016,29,29,1200,'varchar',2,1,1,'Dcx_User','Phone','Phone','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Phone',[FieldByname]='Phone',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=29 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=28  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18017,28,29,1200,'datetime',3,1,1,'Dcx_User','RegistedDate','RegistedDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='RegistedDate',[FieldByname]='RegistedDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=28 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=27  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18018,27,29,1200,'varchar',2,1,1,'Dcx_User','Status','Status','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Status',[FieldByname]='Status',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=27 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18019,26,29,1200,'varchar',2,1,1,'Dcx_User','Telephone','Telephone','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Telephone',[FieldByname]='Telephone',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=26 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18020,25,29,1200,'varchar',2,1,1,'Dcx_User','Sex','Sex','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Sex',[FieldByname]='Sex',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18021,24,29,1200,'int',1,1,1,'Dcx_User','UserOrder','UserOrder','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='UserOrder',[FieldByname]='UserOrder',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18022,23,29,1200,'datetime',3,1,1,'Dcx_User','LoginDate','LoginDate','0',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='LoginDate',[FieldByname]='LoginDate',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18023,22,29,1200,'varchar',2,1,1,'Dcx_User','PWD','PWD','',0,0,0,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='PWD',[FieldByname]='PWD',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18024,21,29,1200,'bit',4,1,1,'Dcx_User','Online','Online','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Online',[FieldByname]='Online',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18025,20,29,1200,'int',1,1,1,'Dcx_User','VisitTime','VisitTime','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='VisitTime',[FieldByname]='VisitTime',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18026,19,29,1200,'bit',4,1,1,'Dcx_User','RestrictIp','RestrictIp','0',0,0,0,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='RestrictIp',[FieldByname]='RestrictIp',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18027,18,29,1200,'varchar',2,1,1,'Dcx_User','IP','IP','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='IP',[FieldByname]='IP',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18028,17,29,1200,'bit',4,1,1,'Dcx_User','CanLogin','CanLogin','1',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='CanLogin',[FieldByname]='CanLogin',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18029,16,29,1200,'bit',4,1,1,'Dcx_User','SuperAdmin','SuperAdmin','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='SuperAdmin',[FieldByname]='SuperAdmin',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18030,15,29,1200,'int',1,1,1,'Dcx_User','PositionId','PositionId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='PositionId',[FieldByname]='PositionId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18031,14,29,1200,'int',1,1,1,'Dcx_User','DeptId','DeptId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='DeptId',[FieldByname]='DeptId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18032,13,29,1200,'int',1,1,1,'Dcx_User','EmployeeId','EmployeeId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='EmployeeId',[FieldByname]='EmployeeId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18033,12,29,1200,'int',1,1,1,'Dcx_User','CurSystemId','CurSystemId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='CurSystemId',[FieldByname]='CurSystemId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18034,11,29,1200,'bit',4,1,1,'Dcx_User','IsAccountCreator','IsAccountCreator','0',0,0,0,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='IsAccountCreator',[FieldByname]='IsAccountCreator',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18035,10,29,1200,'int',1,1,1,'Dcx_User','AccountId','AccountId','1',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='AccountId',[FieldByname]='AccountId',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18036,9,29,1200,'int',1,1,1,'Dcx_User','GroupId','GroupId','0',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='GroupId',[FieldByname]='GroupId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18037,8,29,1200,'varchar',2,1,1,'Dcx_User','Address','Address','',0,0,1,150,150,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Address',[FieldByname]='Address',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=150,[Precision]=150,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18038,7,29,1200,'varchar',2,1,1,'Dcx_User','Email','Email','',0,0,0,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Email',[FieldByname]='Email',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18039,6,29,1200,'varchar',2,1,1,'Dcx_User','DcxUserName','DcxUserName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='DcxUserName',[FieldByname]='DcxUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18040,5,29,1200,'varchar',2,1,1,'Dcx_User','RealName','RealName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='RealName',[FieldByname]='RealName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18041,4,29,1200,'varchar',2,1,1,'Dcx_User','UpperName','UpperName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='UpperName',[FieldByname]='UpperName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18042,3,29,1200,'varchar',2,1,1,'Dcx_User','UserName','UserName','',0,0,0,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='UserName',[FieldByname]='UserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18043,2,29,1200,'uniqueidentifier',24,1,1,'Dcx_User','UserGuId','UserGuId','newid()',0,0,1,16,16,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='uniqueidentifier',[FieldDataTypeId]=24,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='UserGuId',[FieldByname]='UserGuId',[DefaultValue]='newid()',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=16,[Precision]=16,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18044,1,29,1200,'int',1,1,1,'Dcx_User','UserId','UserId','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='UserId',[FieldByname]='UserId',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=1 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 



Delete from [Dcx_EntityPrivilege]  where [EntId]=2292

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2292  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11156,-1,2292,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2292  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2292

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2292  and  [ModuleTypeId]=17  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20502,29,3274,2292,86,17,15,2,7,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3274,[TemplateId]=86,[ModuleId]=15,[GroupId]=2,[AreaId]=7,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2292  and  [ModuleTypeId]=17 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_ListForm_Run]  where [EntId]=2292

--Dcx_ListForm_Run
      if (select count(1) from [Dcx_ListForm_Run] where  [EntId]=2292  )<1 
      begin 
           Insert into [Dcx_ListForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[OtherMsg],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[AccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime])values('c23edca7-e586-57eb-23d1-7e0493a91bf5','邀请同事',2292,0,'','',1,'<script type="text/javascript" src="/js/module/Report/ReportRun.js"></script>','<script type="text/javascript" src="/js/System/InviteUser.js"></script>','DcxRun.ListF_2292= {"MenuId":3274,"MEntId":2292,"EntName":"邀请同事","CtrlPrex":"ListF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2292":{"EntId":2292,"KeyFieldValue":"","DBTableName":"","KeyField":"UserId","KeydtId":2,"JoinKeyField":"UserId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=true;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}


if(runObj.NoInit)
{
   entMsg.E2292.FormData=null;
   mEntMsg.RowCount=0;mEntMsg.RecortCount=0;entMsg.E2292.RowCount=0;

}

 DcxForm.InitSheetForm(2292,''ListF_'',entMsg.E2292.FormData,entMsg.E2292.$listContainer);

 DcxForm.DealPage(2292,''ListF_'');

 DcxForm.SetPower(2292,''ListF_'');


}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":14,"Ent":[{"EntId":2292,"Fld":[{"FldId":1,"Vld":[]},{"FldId":2,"Vld":[{"Id":2,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{2,50}$","err":"限制2-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":8,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"请输入姓名","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":10,"vlId":5,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"此姓名已存在，请重新输入。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":3,"Vld":[{"Id":3,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":4,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{6,50}$","err":"限制6-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":12,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^\\w+((-\\w+)|(\\.\\w+))*\\@[A-Za-z0-9]+((\\.|-)[A-Za-z0-9]+)*\\.[A-Za-z0-9]+$","err":"格式要求为电子邮箱格式，例如xx@163.com","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":14,"vlId":5,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"此Email已存在，请重新输入。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":29,"Vld":[{"Id":5,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":6,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]}]}]};
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.ListF_2292.EntMsg.E2292.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_User","EntId":2292,"KeyField":"UserId","MKeyField":"UserId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"RealName":{"DtId":2,"DB":1,"CId":1,"FL":50},"Email":{"DtId":2,"DB":1,"CId":1,"FL":50}},"Data":{"Row":[]}};
}
DcxRun.ListF_2292.EntMsg.E2292.GetDataRowModel=function()
{
    return {"RealName":"","Email":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"UserId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/



 function GetLinkCtrl_ListF_2292(obj,FieldName,EntId)
{

}
/****************上：AJAX回调函数******************/


DcxRun.ListF_2292.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitLf(2292,''ListF_'',buildNew,closeDlg);

}','<$2292$>select *  from (select row_number() over( order by [UserId])as dcx_rowid,[RealName],[Email],[UserId] from Dcx_User  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$2292$><$2292:Count$>select count([UserId]) from Dcx_User where {$SearchArea}</$2292:Count$>','2292*UserId*2*UserId*2*Dcx_User*邀请同事',10,'','','',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',1,3,'admin','2013-8-22 16:12:14',3,'admin','2013-11-4 4:17:45')
      end
      else 
      begin 
           update [Dcx_ListForm_Run] set [FormId]='c23edca7-e586-57eb-23d1-7e0493a91bf5',[FormName]='邀请同事',[ModuleId]=0,[StaticHtml]='',[DropDownHtml]='',[NoInit]=1,[DIYJsCss]='<script type="text/javascript" src="/js/module/Report/ReportRun.js"></script>',[DIYJsCss2]='<script type="text/javascript" src="/js/System/InviteUser.js"></script>',[AutoPublicJs]='DcxRun.ListF_2292= {"MenuId":3274,"MEntId":2292,"EntName":"邀请同事","CtrlPrex":"ListF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2292":{"EntId":2292,"KeyFieldValue":"","DBTableName":"","KeyField":"UserId","KeydtId":2,"JoinKeyField":"UserId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=true;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}


if(runObj.NoInit)
{
   entMsg.E2292.FormData=null;
   mEntMsg.RowCount=0;mEntMsg.RecortCount=0;entMsg.E2292.RowCount=0;

}

 DcxForm.InitSheetForm(2292,''ListF_'',entMsg.E2292.FormData,entMsg.E2292.$listContainer);

 DcxForm.DealPage(2292,''ListF_'');

 DcxForm.SetPower(2292,''ListF_'');


}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":14,"Ent":[{"EntId":2292,"Fld":[{"FldId":1,"Vld":[]},{"FldId":2,"Vld":[{"Id":2,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{2,50}$","err":"限制2-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":8,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"请输入姓名","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":10,"vlId":5,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"此姓名已存在，请重新输入。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":3,"Vld":[{"Id":3,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":4,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{6,50}$","err":"限制6-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":12,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^\\w+((-\\w+)|(\\.\\w+))*\\@[A-Za-z0-9]+((\\.|-)[A-Za-z0-9]+)*\\.[A-Za-z0-9]+$","err":"格式要求为电子邮箱格式，例如xx@163.com","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":14,"vlId":5,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"此Email已存在，请重新输入。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":29,"Vld":[{"Id":5,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":6,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]}]}]};
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.ListF_2292.EntMsg.E2292.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_User","EntId":2292,"KeyField":"UserId","MKeyField":"UserId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"RealName":{"DtId":2,"DB":1,"CId":1,"FL":50},"Email":{"DtId":2,"DB":1,"CId":1,"FL":50}},"Data":{"Row":[]}};
}
DcxRun.ListF_2292.EntMsg.E2292.GetDataRowModel=function()
{
    return {"RealName":"","Email":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"UserId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/



 function GetLinkCtrl_ListF_2292(obj,FieldName,EntId)
{

}
/****************上：AJAX回调函数******************/


DcxRun.ListF_2292.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitLf(2292,''ListF_'',buildNew,closeDlg);

}',[LoadingSql]='<$2292$>select *  from (select row_number() over( order by [UserId])as dcx_rowid,[RealName],[Email],[UserId] from Dcx_User  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$2292$><$2292:Count$>select count([UserId]) from Dcx_User where {$SearchArea}</$2292:Count$>',[OtherMsg]='2292*UserId*2*UserId*2*Dcx_User*邀请同事',[PageSize]=10,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[AccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-8-22 16:12:14',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-4 4:17:45' where  [EntId]=2292 
      end




--Dcx_ListFormField_Run
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='67ef05dd-7d0a-0071-92d8-35d45a470279'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(98,'67ef05dd-7d0a-0071-92d8-35d45a470279',2292,2292,'00000000-0000-0000-0000-000000000000',1,'MEntBegin',-1,2,-1,'',5,-1,1,0,-1,12,-1,-1,0,0,'','','','','<div class="listform dcx-scroll" id="reportPreview">
	<div class="title-div">
		<ul class="ul-title" groupid="1" isgroup="1" style="
    border-width: 0px;
" isrple="1">
			<li areaid="92" class="li-area-title" scroll="no" style="width: 503px; height: 55px; position: static;"><div class="form-title2" id="div_head1">
	<table>
		<tbody>
			<tr>
				<td>
					<span class="title-name" id="h2_title" style="font-size:19px;">邀请同事加入系统</span></td>
				<td>
					<a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" id="btn_updateUserMsg" style="margin-left:210px;"><span class="op_bt_i">开始邀请</span></a></td>
			</tr>
		</tbody>
	</table>
</div>
</li>
		</ul>
	</div>
	<div class="frame-div">
		<div class="toolbar-opt  clearfix">
			<ul class="tool-ul item-ul1" groupid="3" isgroup="1" isrple="1">
				<li class="list-allselect" scroll="no" style="width: 50px; height: 16px; display: none; position: static;"><input class="list-ifselect" id="ckb_CheckAllListF_2292" onclick="javascript:DcxCom.CheckedAll(this,2292,''ListF_'');" rel="chkall" type="checkbox"> <label for="ckb_CheckAllListF_2292"> 全选</label></li>
				<li areaid="93" class="list-tit" scroll="no" style="width: 66px; height: 30px; display: none; position: static;"><a class="lform-bt-save" href="javascript:void(0);" id="ListF_2292_btn_buildNew" onclick="javascript:DcxRun.ListF_2292.SubmitForm();" title="保存">保 存</a></li>
				
				<li areaid="95" class="list-tit" scroll="no" style="width: 82px; height: 30px; display: none; position: static;"><a class="lform-bt-other" href="javascript:void(0);" id="A2" onclick="javascript:DcxForm.AddRow(this,5,2292,''ListF_'');" style="width:50px;" title="添加">添 加</a></li>
				
				
				<li areaid="98" class="list-tit" scroll="no" style="width: 86px; height: 30px; display: none; position: static;"><a class="lform-bt-other" href="javascript:void(0);" id="A4" onclick="javascript:DcxForm.DeleteAllRow(this,2292,''ListF_'');" title="删除全部">删除全部</a></li>
				
				<!--分页栏-->
				<li areaid="100" class="pages" id="li2_ListF_2292" scroll="no" style="width: 161px; height: 24px; display: none; position: static;">
					<a class="list-pages list-prepage firstpage_un" href="javascript:void(0);" id="ListF_2292_PrevPage" onclick="javascript:DcxSch.GetHtml(2292,''ListF_'',''p'');" title="上一页">&nbsp;</a> <span class="ddl_pageindex list-pagesdown"> <select id="ddl_ListF_2292_PageIndex" onchange="javascript:DcxSch.GetHtml(2292,''ListF_'',''a'',this);"> </select> </span><a class="list-pages list-nextpage nextpage_un" href="javascript:void(0);" id="ListF_2292_NextPage" onclick="javascript:DcxSch.GetHtml(2292,''ListF_'',''n'');" title="下一页">&nbsp;</a> <span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListF_2292_RecCount_lbl" isrecortcount="1"> 0</span> <span class="list-data-amount">条记录</span></li>
			</ul>
		</div>
		<div class="listarea dcx-scroll">
			<div class="lf-head">
				<ul class="ul-list-title clearfix" groupid="4" isgroup="1" style="width: 496px; background-color: rgb(255, 255, 255); border-color: rgb(255, 255, 255) rgb(255, 255, 255) rgb(229, 229, 229); border-bottom-style: solid; border-bottom-width: 2px;" isrple="1">
					
					<li areaid="102" class="li-head-item" scroll="no" style="width: 160px; height: 28px; clear: none; float: left; position: static; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; background-color: rgb(255, 255, 255) !important;"><label class="head-label pad7" istitle="1" style="backgroup-color:#fff;">姓名</label></li>
					<li areaid="103" class="li-head-item" scroll="no" style="width: 250px; height: 28px; clear: none; float: left; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; background-color: rgb(255, 255, 255) !important; position: static;"><label class="head-label pad7" istitle="1">Email</label></li><li areaid="118" class="li-head-item" scroll="no" style="width: 80px; height: 28px; clear: right; float: left; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; background-color: rgb(255, 255, 255) !important; position: static;"><label class="head-label pad7" istitle="1">操作</label></li>
					
					
					
					
				</ul>
			</div>
			<div class="lf-body">','','','','','','',5,-1,-1,-1,1,'2292,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=98,[Form_EntId]=2292,[EntId]=2292,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[FieldName]='MEntBegin',[FieldDataTypeId]=-1,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=-1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=-1,[FieldTypeId]=12,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="listform dcx-scroll" id="reportPreview">
	<div class="title-div">
		<ul class="ul-title" groupid="1" isgroup="1" style="
    border-width: 0px;
" isrple="1">
			<li areaid="92" class="li-area-title" scroll="no" style="width: 503px; height: 55px; position: static;"><div class="form-title2" id="div_head1">
	<table>
		<tbody>
			<tr>
				<td>
					<span class="title-name" id="h2_title" style="font-size:19px;">邀请同事加入系统</span></td>
				<td>
					<a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" id="btn_updateUserMsg" style="margin-left:210px;"><span class="op_bt_i">开始邀请</span></a></td>
			</tr>
		</tbody>
	</table>
</div>
</li>
		</ul>
	</div>
	<div class="frame-div">
		<div class="toolbar-opt  clearfix">
			<ul class="tool-ul item-ul1" groupid="3" isgroup="1" isrple="1">
				<li class="list-allselect" scroll="no" style="width: 50px; height: 16px; display: none; position: static;"><input class="list-ifselect" id="ckb_CheckAllListF_2292" onclick="javascript:DcxCom.CheckedAll(this,2292,''ListF_'');" rel="chkall" type="checkbox"> <label for="ckb_CheckAllListF_2292"> 全选</label></li>
				<li areaid="93" class="list-tit" scroll="no" style="width: 66px; height: 30px; display: none; position: static;"><a class="lform-bt-save" href="javascript:void(0);" id="ListF_2292_btn_buildNew" onclick="javascript:DcxRun.ListF_2292.SubmitForm();" title="保存">保 存</a></li>
				
				<li areaid="95" class="list-tit" scroll="no" style="width: 82px; height: 30px; display: none; position: static;"><a class="lform-bt-other" href="javascript:void(0);" id="A2" onclick="javascript:DcxForm.AddRow(this,5,2292,''ListF_'');" style="width:50px;" title="添加">添 加</a></li>
				
				
				<li areaid="98" class="list-tit" scroll="no" style="width: 86px; height: 30px; display: none; position: static;"><a class="lform-bt-other" href="javascript:void(0);" id="A4" onclick="javascript:DcxForm.DeleteAllRow(this,2292,''ListF_'');" title="删除全部">删除全部</a></li>
				
				<!--分页栏-->
				<li areaid="100" class="pages" id="li2_ListF_2292" scroll="no" style="width: 161px; height: 24px; display: none; position: static;">
					<a class="list-pages list-prepage firstpage_un" href="javascript:void(0);" id="ListF_2292_PrevPage" onclick="javascript:DcxSch.GetHtml(2292,''ListF_'',''p'');" title="上一页">&nbsp;</a> <span class="ddl_pageindex list-pagesdown"> <select id="ddl_ListF_2292_PageIndex" onchange="javascript:DcxSch.GetHtml(2292,''ListF_'',''a'',this);"> </select> </span><a class="list-pages list-nextpage nextpage_un" href="javascript:void(0);" id="ListF_2292_NextPage" onclick="javascript:DcxSch.GetHtml(2292,''ListF_'',''n'');" title="下一页">&nbsp;</a> <span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListF_2292_RecCount_lbl" isrecortcount="1"> 0</span> <span class="list-data-amount">条记录</span></li>
			</ul>
		</div>
		<div class="listarea dcx-scroll">
			<div class="lf-head">
				<ul class="ul-list-title clearfix" groupid="4" isgroup="1" style="width: 496px; background-color: rgb(255, 255, 255); border-color: rgb(255, 255, 255) rgb(255, 255, 255) rgb(229, 229, 229); border-bottom-style: solid; border-bottom-width: 2px;" isrple="1">
					
					<li areaid="102" class="li-head-item" scroll="no" style="width: 160px; height: 28px; clear: none; float: left; position: static; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; background-color: rgb(255, 255, 255) !important;"><label class="head-label pad7" istitle="1" style="backgroup-color:#fff;">姓名</label></li>
					<li areaid="103" class="li-head-item" scroll="no" style="width: 250px; height: 28px; clear: none; float: left; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; background-color: rgb(255, 255, 255) !important; position: static;"><label class="head-label pad7" istitle="1">Email</label></li><li areaid="118" class="li-head-item" scroll="no" style="width: 80px; height: 28px; clear: right; float: left; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; background-color: rgb(255, 255, 255) !important; position: static;"><label class="head-label pad7" istitle="1">操作</label></li>
					
					
					
					
				</ul>
			</div>
			<div class="lf-body">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='',[CtrlbackHtml]='',[CtrlLastHtml]='',[TableIndex]=5,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2292,' where  [FldUId]='67ef05dd-7d0a-0071-92d8-35d45a470279' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='ecf5b088-75a0-3067-7a10-8f68538adb73'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'ecf5b088-75a0-3067-7a10-8f68538adb73',2292,2292,'00000000-0000-0000-0000-000000000000',2,'RealName',2,2,5,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','class="ul-listfield" groupid="5" isgroup="1" style="width: 496px;" isrple="1">
					
					<li areaid="109" class="li-listfield" scroll="no" style="width: 160px; height: 41px; clear: none; float: left; position: static;"><div class="list-field" style="padding-top:4px;">
	<span class="form-ctr" isfcontain="1">','','','<input  id="d2292_RealName%trindex%" CtrlPrex="ListF_"','type="text" class="lt-txt"  style="width:150px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2292,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2292,''ListF_'',2292,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2292,''ListF_'',2292,true);" EntId="2292" IsField=1 DBField=1 IsPost=1 FieldName="RealName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    value="','" />','',5,-1,-1,-1,1,'2292,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=2,[Form_EntId]=2292,[EntId]=2292,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[FieldName]='RealName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=5,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='class="ul-listfield" groupid="5" isgroup="1" style="width: 496px;" isrple="1">
					
					<li areaid="109" class="li-listfield" scroll="no" style="width: 160px; height: 41px; clear: none; float: left; position: static;"><div class="list-field" style="padding-top:4px;">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<input  id="d2292_RealName%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='type="text" class="lt-txt"  style="width:150px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2292,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2292,''ListF_'',2292,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2292,''ListF_'',2292,true);" EntId="2292" IsField=1 DBField=1 IsPost=1 FieldName="RealName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    value="',[CtrlbackHtml]='" />',[CtrlLastHtml]='',[TableIndex]=5,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2292,' where  [FldUId]='ecf5b088-75a0-3067-7a10-8f68538adb73' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='1b7dd5a5-6f70-277d-ae99-4bdc9589433c'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'1b7dd5a5-6f70-277d-ae99-4bdc9589433c',2292,2292,'00000000-0000-0000-0000-000000000000',3,'Email',2,2,7,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
</div>
</li>
					<li areaid="110" class="li-listfield" scroll="no" style="width: 250px; height: 41px; clear: none; float: left; position: static;"><div class="list-field" style="padding-top:4px;">
	<span class="form-ctr" isfcontain="1">','','','<input  id="d2292_Email%trindex%" CtrlPrex="ListF_"','type="text" class="lt-txt"  style="width:240px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2292,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2292,''ListF_'',2292,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2292,''ListF_'',2292,true);" EntId="2292" IsField=1 DBField=1 IsPost=1 FieldName="Email" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="3" vlk=0    value="','" />','',5,-1,-1,-1,1,'2292,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=3,[Form_EntId]=2292,[EntId]=2292,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[FieldName]='Email',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=7,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
					<li areaid="110" class="li-listfield" scroll="no" style="width: 250px; height: 41px; clear: none; float: left; position: static;"><div class="list-field" style="padding-top:4px;">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<input  id="d2292_Email%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='type="text" class="lt-txt"  style="width:240px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2292,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2292,''ListF_'',2292,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2292,''ListF_'',2292,true);" EntId="2292" IsField=1 DBField=1 IsPost=1 FieldName="Email" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="3" vlk=0    value="',[CtrlbackHtml]='" />',[CtrlLastHtml]='',[TableIndex]=5,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2292,' where  [FldUId]='1b7dd5a5-6f70-277d-ae99-4bdc9589433c' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='e593a92a-25b3-f94f-1bb2-4bd3ae753a7f'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(99,'e593a92a-25b3-f94f-1bb2-4bd3ae753a7f',2292,2292,'00000000-0000-0000-0000-000000000000',4,'MEntEnd',-1,2,-1,'',5,-1,1,0,-1,13,-1,-1,0,0,'','','','','</span>

	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li><li areaid="117" class="li-listfield" scroll="no" style="width: 80px; height: 41px; clear: right; float: left; position: static;"><div class="list-field" style="padding-top:8px;margin-left:15px;">
	<a class="lform-bt-delete" href="javascript:void(0);" id="ListF_2292_deletebut" onclick="javascript:DcxForm.DeleteInRow(this,2292,''ListF_'');" title="删   除">删 除</a></div></li>
					
					
					
					
				</ul>','</div>
		</div>
	</div>
</div>
<br><div isbottomhtml="1"><a class="lform-bt-other" href="javascript:void(0);" id="A2" onclick="javascript:DcxForm.AddRow(this,5,2292,''ListF_'');" style="margin-left:200px;width:50px;" title="添加">+新行</a>
<br><br><br></div>','','','','','',5,-1,-1,-1,1,'2292,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=99,[Form_EntId]=2292,[EntId]=2292,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=4,[FieldName]='MEntEnd',[FieldDataTypeId]=-1,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=-1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=-1,[FieldTypeId]=13,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li><li areaid="117" class="li-listfield" scroll="no" style="width: 80px; height: 41px; clear: right; float: left; position: static;"><div class="list-field" style="padding-top:8px;margin-left:15px;">
	<a class="lform-bt-delete" href="javascript:void(0);" id="ListF_2292_deletebut" onclick="javascript:DcxForm.DeleteInRow(this,2292,''ListF_'');" title="删   除">删 除</a></div></li>
					
					
					
					
				</ul>',[LastHtml]='</div>
		</div>
	</div>
</div>
<br><div isbottomhtml="1"><a class="lform-bt-other" href="javascript:void(0);" id="A2" onclick="javascript:DcxForm.AddRow(this,5,2292,''ListF_'');" style="margin-left:200px;width:50px;" title="添加">+新行</a>
<br><br><br></div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='',[CtrlbackHtml]='',[CtrlLastHtml]='',[TableIndex]=5,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2292,' where  [FldUId]='e593a92a-25b3-f94f-1bb2-4bd3ae753a7f' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=1200

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=1200  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(1200,null,'Dcx_User','Dcx_User',1,0,0,0,0,0,29,1,3,'admin','2013-12-15 17:32:24',3,'admin','2013-12-15 17:32:24',null,null,27,418,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='Dcx_User',[DBTableByName]='Dcx_User',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=29,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:24',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:24',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=27,[SDbTableId]=418,[IsChange]=null,[IsSystem]=null where  [DBTableId]=1200 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=50  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17995,50,29,1200,'int',1,1,1,'Dcx_User','TopMenuId','TopMenuId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='TopMenuId',[FieldByname]='TopMenuId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=50 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=49  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17996,49,29,1200,'varchar',2,1,1,'Dcx_User','InviteCode','InviteCode','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='InviteCode',[FieldByname]='InviteCode',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=49 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=48  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17997,48,29,1200,'int',1,1,1,'Dcx_User','DiskSize','DiskSize','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='DiskSize',[FieldByname]='DiskSize',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=48 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=47  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17998,47,29,1200,'varchar',2,1,1,'Dcx_User','Remark','Remark','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Remark',[FieldByname]='Remark',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=47 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=46  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17999,46,29,1200,'bit',4,1,1,'Dcx_User','AcceptStrangerIM','AcceptStrangerIM','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='AcceptStrangerIM',[FieldByname]='AcceptStrangerIM',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=46 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=45  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18000,45,29,1200,'int',1,1,1,'Dcx_User','StyleId','StyleId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='StyleId',[FieldByname]='StyleId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=45 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=44  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18001,44,29,1200,'bit',4,1,1,'Dcx_User','SelftSearch','SelftSearch','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='SelftSearch',[FieldByname]='SelftSearch',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=44 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=43  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18002,43,29,1200,'bit',4,1,1,'Dcx_User','SelftNavMenu','SelftNavMenu','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='SelftNavMenu',[FieldByname]='SelftNavMenu',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=43 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=42  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18003,42,29,1200,'bit',4,1,1,'Dcx_User','SelftHomePage','SelftHomePage','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='SelftHomePage',[FieldByname]='SelftHomePage',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=42 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=41  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18004,41,29,1200,'datetime',3,1,1,'Dcx_User','EditTime','EditTime','getdate()',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='EditTime',[FieldByname]='EditTime',[DefaultValue]='getdate()',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=41 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=40  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18005,40,29,1200,'varchar',2,1,1,'Dcx_User','Editor','Editor','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Editor',[FieldByname]='Editor',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=40 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=39  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18006,39,29,1200,'int',1,1,1,'Dcx_User','EditorId','EditorId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='EditorId',[FieldByname]='EditorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=39 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=38  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18007,38,29,1200,'datetime',3,1,1,'Dcx_User','CreateTime','CreateTime','getdate()',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='CreateTime',[FieldByname]='CreateTime',[DefaultValue]='getdate()',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=38 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=37  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18008,37,29,1200,'varchar',2,1,1,'Dcx_User','Creator','Creator','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Creator',[FieldByname]='Creator',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=37 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=36  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18009,36,29,1200,'int',1,1,1,'Dcx_User','CreatorId','CreatorId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='CreatorId',[FieldByname]='CreatorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=36 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=35  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18010,35,29,1200,'varchar',2,1,1,'Dcx_User','IconPath','IconPath','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='IconPath',[FieldByname]='IconPath',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=35 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=34  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18011,34,29,1200,'varchar',2,1,1,'Dcx_User','Http','Http','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Http',[FieldByname]='Http',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=34 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=33  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18012,33,29,1200,'int',1,1,1,'Dcx_User','Caste','Caste','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Caste',[FieldByname]='Caste',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=33 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=32  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18013,32,29,1200,'bit',4,1,1,'Dcx_User','IsNeedKey','IsNeedKey','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='IsNeedKey',[FieldByname]='IsNeedKey',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=32 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=31  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18014,31,29,1200,'int',1,1,1,'Dcx_User','Style','Style','1',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Style',[FieldByname]='Style',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=31 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=30  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18015,30,29,1200,'datetime',3,1,1,'Dcx_User','Birthday','Birthday','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Birthday',[FieldByname]='Birthday',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=30 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=29  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18016,29,29,1200,'varchar',2,1,1,'Dcx_User','Phone','Phone','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Phone',[FieldByname]='Phone',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=29 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=28  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18017,28,29,1200,'datetime',3,1,1,'Dcx_User','RegistedDate','RegistedDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='RegistedDate',[FieldByname]='RegistedDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=28 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=27  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18018,27,29,1200,'varchar',2,1,1,'Dcx_User','Status','Status','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Status',[FieldByname]='Status',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=27 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18019,26,29,1200,'varchar',2,1,1,'Dcx_User','Telephone','Telephone','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Telephone',[FieldByname]='Telephone',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=26 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18020,25,29,1200,'varchar',2,1,1,'Dcx_User','Sex','Sex','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Sex',[FieldByname]='Sex',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18021,24,29,1200,'int',1,1,1,'Dcx_User','UserOrder','UserOrder','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='UserOrder',[FieldByname]='UserOrder',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18022,23,29,1200,'datetime',3,1,1,'Dcx_User','LoginDate','LoginDate','0',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='LoginDate',[FieldByname]='LoginDate',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18023,22,29,1200,'varchar',2,1,1,'Dcx_User','PWD','PWD','',0,0,0,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='PWD',[FieldByname]='PWD',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18024,21,29,1200,'bit',4,1,1,'Dcx_User','Online','Online','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Online',[FieldByname]='Online',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18025,20,29,1200,'int',1,1,1,'Dcx_User','VisitTime','VisitTime','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='VisitTime',[FieldByname]='VisitTime',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18026,19,29,1200,'bit',4,1,1,'Dcx_User','RestrictIp','RestrictIp','0',0,0,0,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='RestrictIp',[FieldByname]='RestrictIp',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18027,18,29,1200,'varchar',2,1,1,'Dcx_User','IP','IP','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='IP',[FieldByname]='IP',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18028,17,29,1200,'bit',4,1,1,'Dcx_User','CanLogin','CanLogin','1',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='CanLogin',[FieldByname]='CanLogin',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18029,16,29,1200,'bit',4,1,1,'Dcx_User','SuperAdmin','SuperAdmin','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='SuperAdmin',[FieldByname]='SuperAdmin',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18030,15,29,1200,'int',1,1,1,'Dcx_User','PositionId','PositionId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='PositionId',[FieldByname]='PositionId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18031,14,29,1200,'int',1,1,1,'Dcx_User','DeptId','DeptId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='DeptId',[FieldByname]='DeptId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18032,13,29,1200,'int',1,1,1,'Dcx_User','EmployeeId','EmployeeId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='EmployeeId',[FieldByname]='EmployeeId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18033,12,29,1200,'int',1,1,1,'Dcx_User','CurSystemId','CurSystemId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='CurSystemId',[FieldByname]='CurSystemId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18034,11,29,1200,'bit',4,1,1,'Dcx_User','IsAccountCreator','IsAccountCreator','0',0,0,0,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='IsAccountCreator',[FieldByname]='IsAccountCreator',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18035,10,29,1200,'int',1,1,1,'Dcx_User','AccountId','AccountId','1',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='AccountId',[FieldByname]='AccountId',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18036,9,29,1200,'int',1,1,1,'Dcx_User','GroupId','GroupId','0',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='GroupId',[FieldByname]='GroupId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18037,8,29,1200,'varchar',2,1,1,'Dcx_User','Address','Address','',0,0,1,150,150,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Address',[FieldByname]='Address',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=150,[Precision]=150,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18038,7,29,1200,'varchar',2,1,1,'Dcx_User','Email','Email','',0,0,0,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Email',[FieldByname]='Email',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18039,6,29,1200,'varchar',2,1,1,'Dcx_User','DcxUserName','DcxUserName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='DcxUserName',[FieldByname]='DcxUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18040,5,29,1200,'varchar',2,1,1,'Dcx_User','RealName','RealName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='RealName',[FieldByname]='RealName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18041,4,29,1200,'varchar',2,1,1,'Dcx_User','UpperName','UpperName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='UpperName',[FieldByname]='UpperName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18042,3,29,1200,'varchar',2,1,1,'Dcx_User','UserName','UserName','',0,0,0,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='UserName',[FieldByname]='UserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18043,2,29,1200,'uniqueidentifier',24,1,1,'Dcx_User','UserGuId','UserGuId','newid()',0,0,1,16,16,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='uniqueidentifier',[FieldDataTypeId]=24,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='UserGuId',[FieldByname]='UserGuId',[DefaultValue]='newid()',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=16,[Precision]=16,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18044,1,29,1200,'int',1,1,1,'Dcx_User','UserId','UserId','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='UserId',[FieldByname]='UserId',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=1 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=3275  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(3275,'8f26d1c4-50c4-44d9-b0bb-35f0b588b139','部门管理',3273,'/System/DeptMng.aspx?MenuId=3275&navindex=1',15,'/images/default.gif','/images/default.gif',3,'rightFrame',0,0,'',29,-1,29,1,1,1,null,'',0,0,'',null,3,'admin','2013-10-9 4:20:00',1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='8f26d1c4-50c4-44d9-b0bb-35f0b588b139',[MenuName]='部门管理',[ParentId]=3273,[ProPath]='/System/DeptMng.aspx?MenuId=3275&navindex=1',[TemplateId]=15,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=3,[Target]='rightFrame',[IsOpen]=0,[IsHidden]=0,[Remark]='',[SSystemId]=29,[SMenuId]=-1,[SystemId]=29,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=0,[Creator]='',[CreateTime]=null,[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-9 4:20:00',[AccountId]=1 where  [MenuId]=3275 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3275  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(1038,3275,'部门管理','Public',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='部门管理',[RoleName]='Public',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3275  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3275  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(970,3275,'部门管理','系统管理员',3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='部门管理',[RoleName]='系统管理员',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3275  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2009  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2009,3275,'部门管理',1,116,0,'Dcx_Dept',0,0,1,29,2009,null,null,29,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3275,[EntName]='部门管理',[MEnt]=1,[DBTableId]=116,[DBConnectId]=0,[DBTableName]='Dcx_Dept',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2009,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2009 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=2009

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2009  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11048,3275,2009,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=3275,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2009  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2009

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2009  and  [ModuleTypeId]=5  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20438,29,3275,2009,64,5,25,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3275,[TemplateId]=64,[ModuleId]=25,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2009  and  [ModuleTypeId]=5 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2009  and  [ModuleTypeId]=18  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20439,29,3275,2009,64,18,44,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3275,[TemplateId]=64,[ModuleId]=44,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2009  and  [ModuleTypeId]=18 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_DefaultForm_Run]  where [EntId]=2009

--Dcx_DefaultForm_Run
      if (select count(1) from [Dcx_DefaultForm_Run] where  [EntId]=2009  )<1 
      begin 
           Insert into [Dcx_DefaultForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[OtherMsg],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('98df4a1c-7bde-5bf4-5425-b749cc386280','部门管理',2009,-1,'','',0,'','','DcxRun.DefaultF_2009= {"MenuId":3275,"MEntId":2009,"EntName":"部门管理","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2009":{"EntId":2009,"KeyFieldValue":"","DBTableName":"","KeyField":"DeptId","KeydtId":2,"JoinKeyField":"DeptId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":17,"Ent":[{"EntId":2009,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":2,"Vld":[{"Id":3,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":4,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":3,"Vld":[{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":4,"Vld":[{"Id":6,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":5,"Vld":[{"Id":7,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":8,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":6,"Vld":[{"Id":9,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":7,"Vld":[{"Id":10,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":8,"Vld":[{"Id":11,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":9,"Vld":[{"Id":12,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":13,"Vld":[]},{"FldId":14,"Vld":[{"Id":16,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":17,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]}]}]};
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2009.EntMsg.E2009.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_Dept","EntId":2009,"KeyField":"DeptId","MKeyField":"DeptId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"DeptCode":{"DtId":2,"DB":1,"CId":1,"FL":50},"DeptName":{"DtId":2,"DB":1,"CId":1,"FL":50},"CompanyId":{"DtId":1,"DB":1,"CId":1,"FL":4},"DeptOrder":{"DtId":1,"DB":1,"CId":1,"FL":4},"ParentId":{"DtId":1,"DB":1,"CId":1,"FL":4},"Telephone":{"DtId":2,"DB":1,"CId":1,"FL":50},"PostalCode":{"DtId":2,"DB":1,"CId":1,"FL":50},"Address":{"DtId":2,"DB":1,"CId":1,"FL":50},"Email":{"DtId":2,"DB":1,"CId":1,"FL":50},"Remark":{"DtId":2,"DB":1,"CId":2,"FL":0},"AccountId":{"DtId":1,"DB":1,"CId":1,"FL":4}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2009.EntMsg.E2009.GetDataRowModel=function()
{
    return {"DeptCode":"","DeptName":"","CompanyId":0,"DeptOrder":0,"ParentId":0,"Telephone":"","PostalCode":"","Address":"","Email":"","Remark":"","AccountId":-1,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"DeptId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2009.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2009,''DefaultF_'',buildNew,closeDlg);

}','<$2009$>select [DeptCode],[DeptName],[CompanyId],[DeptOrder],[ParentId],[Telephone],[PostalCode],[Address],[Email],[Remark],[AccountId],[DeptId] from Dcx_Dept where [DeptId]=''{$keyfieldvalue}''</$2009$>',10,'2009*DeptId*2*DeptId*2*Dcx_Dept*部门管理','','','',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-10-2 1:51:03',3,'admin','2013-11-29 2:39:19',1)
      end
      else 
      begin 
           update [Dcx_DefaultForm_Run] set [FormId]='98df4a1c-7bde-5bf4-5425-b749cc386280',[FormName]='部门管理',[ModuleId]=-1,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.DefaultF_2009= {"MenuId":3275,"MEntId":2009,"EntName":"部门管理","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2009":{"EntId":2009,"KeyFieldValue":"","DBTableName":"","KeyField":"DeptId","KeydtId":2,"JoinKeyField":"DeptId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":17,"Ent":[{"EntId":2009,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":2,"Vld":[{"Id":3,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":4,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":3,"Vld":[{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":4,"Vld":[{"Id":6,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":5,"Vld":[{"Id":7,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":8,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":6,"Vld":[{"Id":9,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":7,"Vld":[{"Id":10,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":8,"Vld":[{"Id":11,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":9,"Vld":[{"Id":12,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":13,"Vld":[]},{"FldId":14,"Vld":[{"Id":16,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":17,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]}]}]};
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2009.EntMsg.E2009.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_Dept","EntId":2009,"KeyField":"DeptId","MKeyField":"DeptId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"DeptCode":{"DtId":2,"DB":1,"CId":1,"FL":50},"DeptName":{"DtId":2,"DB":1,"CId":1,"FL":50},"CompanyId":{"DtId":1,"DB":1,"CId":1,"FL":4},"DeptOrder":{"DtId":1,"DB":1,"CId":1,"FL":4},"ParentId":{"DtId":1,"DB":1,"CId":1,"FL":4},"Telephone":{"DtId":2,"DB":1,"CId":1,"FL":50},"PostalCode":{"DtId":2,"DB":1,"CId":1,"FL":50},"Address":{"DtId":2,"DB":1,"CId":1,"FL":50},"Email":{"DtId":2,"DB":1,"CId":1,"FL":50},"Remark":{"DtId":2,"DB":1,"CId":2,"FL":0},"AccountId":{"DtId":1,"DB":1,"CId":1,"FL":4}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2009.EntMsg.E2009.GetDataRowModel=function()
{
    return {"DeptCode":"","DeptName":"","CompanyId":0,"DeptOrder":0,"ParentId":0,"Telephone":"","PostalCode":"","Address":"","Email":"","Remark":"","AccountId":-1,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"DeptId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2009.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2009,''DefaultF_'',buildNew,closeDlg);

}',[LoadingSql]='<$2009$>select [DeptCode],[DeptName],[CompanyId],[DeptOrder],[ParentId],[Telephone],[PostalCode],[Address],[Email],[Remark],[AccountId],[DeptId] from Dcx_Dept where [DeptId]=''{$keyfieldvalue}''</$2009$>',[PageSize]=10,[OtherMsg]='2009*DeptId*2*DeptId*2*Dcx_Dept*部门管理',[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-10-2 1:51:03',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-29 2:39:19',[AccountId]=1 where  [EntId]=2009 
      end




--Dcx_DefaultFormField_Run
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='94ef7926-96a2-49f0-368f-461e11fb2771'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'94ef7926-96a2-49f0-368f-461e11fb2771',2009,2009,'00000000-0000-0000-0000-000000000000',1,'DeptCode',2,2,2,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','<div class="ajaxfrom defaultform">
	<div class="div_top">
		<ul class="ul-group" entid="2009" groupid="1" isgroup="1" ctrlprex="DefaultF_" isrple="1">
			<li areaid="9" class="li-area" scroll="no" style="width: 716px; height: 55px; position: static;"><div class="form-title2" id="div_head1" style="width: 500px; ">
	<div style="width:70px;float:left;clear:none;">
		<h2 id="h2_title">
			</h2>
	</div>
	<div style="width:435px;float:right;clear:none;position:relative;top:-10px;">
		<a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();" style="float:right;"><span class="op_bt_i">关&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;闭</span></a> <a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.DefaultF_2009.SubmitForm(false,2009,''DefaultF_'');" style="float:right;"><span class="op_bt_i">保&nbsp;&nbsp;&nbsp;&nbsp;存</span></a> <a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(2009,''DefaultF_'');" style="float:right;"><span class="op_bt_i">新&nbsp;&nbsp;&nbsp;&nbsp;建</span></a></div>
</div>
</li>
			<li areaid="10" class="li-area" scroll="no" style="width: 516px; height: 45px; position: static;"><label class="area-title pad7" fldid="1" istitle="1">部门编号</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2009_DeptCode"   type="text" class="form-txt"  style="width:320px;" onblur ="javascript:if(!DcxVld.Validate(this,2009,''DefaultF_'',2009,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2009,''DefaultF_'',2009);" EntId="2009" IsField=1 DBField=1 IsPost=1 FieldName="DeptCode" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2009,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=1,[Form_EntId]=2009,[EntId]=2009,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[FieldName]='DeptCode',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=2,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="ajaxfrom defaultform">
	<div class="div_top">
		<ul class="ul-group" entid="2009" groupid="1" isgroup="1" ctrlprex="DefaultF_" isrple="1">
			<li areaid="9" class="li-area" scroll="no" style="width: 716px; height: 55px; position: static;"><div class="form-title2" id="div_head1" style="width: 500px; ">
	<div style="width:70px;float:left;clear:none;">
		<h2 id="h2_title">
			</h2>
	</div>
	<div style="width:435px;float:right;clear:none;position:relative;top:-10px;">
		<a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();" style="float:right;"><span class="op_bt_i">关&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;闭</span></a> <a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.DefaultF_2009.SubmitForm(false,2009,''DefaultF_'');" style="float:right;"><span class="op_bt_i">保&nbsp;&nbsp;&nbsp;&nbsp;存</span></a> <a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(2009,''DefaultF_'');" style="float:right;"><span class="op_bt_i">新&nbsp;&nbsp;&nbsp;&nbsp;建</span></a></div>
</div>
</li>
			<li areaid="10" class="li-area" scroll="no" style="width: 516px; height: 45px; position: static;"><label class="area-title pad7" fldid="1" istitle="1">部门编号</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2009_DeptCode"   type="text" class="form-txt"  style="width:320px;" onblur ="javascript:if(!DcxVld.Validate(this,2009,''DefaultF_'',2009,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2009,''DefaultF_'',2009);" EntId="2009" IsField=1 DBField=1 IsPost=1 FieldName="DeptCode" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2009,' where  [FldUId]='94ef7926-96a2-49f0-368f-461e11fb2771' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='e07defc5-a204-d74d-26d0-8f029625d514'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'e07defc5-a204-d74d-26d0-8f029625d514',2009,2009,'00000000-0000-0000-0000-000000000000',2,'DeptName',2,2,3,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
</div>
</li>
			<li areaid="11" class="li-area" scroll="no" style="width: 516px; height: 45px; position: static;"><label class="area-title pad7" fldid="2" istitle="1">部门名称</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2009_DeptName"   type="text" class="form-txt"  style="width:320px;" onblur ="javascript:if(!DcxVld.Validate(this,2009,''DefaultF_'',2009,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2009,''DefaultF_'',2009);" EntId="2009" IsField=1 DBField=1 IsPost=1 FieldName="DeptName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2009,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=2,[Form_EntId]=2009,[EntId]=2009,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[FieldName]='DeptName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=3,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
			<li areaid="11" class="li-area" scroll="no" style="width: 516px; height: 45px; position: static;"><label class="area-title pad7" fldid="2" istitle="1">部门名称</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2009_DeptName"   type="text" class="form-txt"  style="width:320px;" onblur ="javascript:if(!DcxVld.Validate(this,2009,''DefaultF_'',2009,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2009,''DefaultF_'',2009);" EntId="2009" IsField=1 DBField=1 IsPost=1 FieldName="DeptName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2009,' where  [FldUId]='e07defc5-a204-d74d-26d0-8f029625d514' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='475bb240-cc4e-ee80-ec65-e23e9745da03'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'475bb240-cc4e-ee80-ec65-e23e9745da03',2009,2009,'00000000-0000-0000-0000-000000000000',3,'CompanyId',1,1,4,'0',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
</div>
</li><li areaid="16" class="li-area" scroll="no" style="width: 516px; height: 45px; position: static;"><label class="area-title pad7" fldid="3" istitle="1">所属公司</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2009_CompanyId"   type="text" class="form-txt"  style="width:320px;" onblur ="javascript:if(!DcxVld.Validate(this,2009,''DefaultF_'',2009,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2009,''DefaultF_'',2009);" EntId="2009" IsField=1 DBField=1 IsPost=1 FieldName="CompanyId" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="3" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2009,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=3,[Form_EntId]=2009,[EntId]=2009,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[FieldName]='CompanyId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=4,[DefaultValue]='0',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li areaid="16" class="li-area" scroll="no" style="width: 516px; height: 45px; position: static;"><label class="area-title pad7" fldid="3" istitle="1">所属公司</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2009_CompanyId"   type="text" class="form-txt"  style="width:320px;" onblur ="javascript:if(!DcxVld.Validate(this,2009,''DefaultF_'',2009,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2009,''DefaultF_'',2009);" EntId="2009" IsField=1 DBField=1 IsPost=1 FieldName="CompanyId" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="3" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2009,' where  [FldUId]='475bb240-cc4e-ee80-ec65-e23e9745da03' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='2b69cbd3-c4ae-6aa0-6440-a02709e351ec'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'2b69cbd3-c4ae-6aa0-6440-a02709e351ec',2009,2009,'00000000-0000-0000-0000-000000000000',4,'DeptOrder',1,1,5,'0',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>

</div>
</li><li areaid="15" class="li-area" scroll="no" style="width: 516px; height: 45px; position: static;"><label class="area-title pad7" fldid="4" istitle="1">排序号</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2009_DeptOrder"   type="text" class="form-txt"  style="width:320px;" onblur ="javascript:if(!DcxVld.Validate(this,2009,''DefaultF_'',2009,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2009,''DefaultF_'',2009);" EntId="2009" IsField=1 DBField=1 IsPost=1 FieldName="DeptOrder" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="4" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2009,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=4,[Form_EntId]=2009,[EntId]=2009,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=4,[FieldName]='DeptOrder',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=5,[DefaultValue]='0',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

</div>
</li><li areaid="15" class="li-area" scroll="no" style="width: 516px; height: 45px; position: static;"><label class="area-title pad7" fldid="4" istitle="1">排序号</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2009_DeptOrder"   type="text" class="form-txt"  style="width:320px;" onblur ="javascript:if(!DcxVld.Validate(this,2009,''DefaultF_'',2009,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2009,''DefaultF_'',2009);" EntId="2009" IsField=1 DBField=1 IsPost=1 FieldName="DeptOrder" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="4" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2009,' where  [FldUId]='2b69cbd3-c4ae-6aa0-6440-a02709e351ec' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='23b29219-c297-1cf8-c2b3-dcc6312dba03'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'23b29219-c297-1cf8-c2b3-dcc6312dba03',2009,2009,'00000000-0000-0000-0000-000000000000',5,'ParentId',1,1,6,'0',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
</div>
</li><li areaid="14" class="li-area" scroll="no" style="width: 516px; height: 45px; position: static;"><label class="area-title pad7" fldid="5" istitle="1">上级部门</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2009_ParentId"   type="text" class="form-txt"  style="width:320px;" onblur ="javascript:if(!DcxVld.Validate(this,2009,''DefaultF_'',2009,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2009,''DefaultF_'',2009);" EntId="2009" IsField=1 DBField=1 IsPost=1 FieldName="ParentId" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="5" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2009,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=5,[Form_EntId]=2009,[EntId]=2009,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=5,[FieldName]='ParentId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=6,[DefaultValue]='0',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li areaid="14" class="li-area" scroll="no" style="width: 516px; height: 45px; position: static;"><label class="area-title pad7" fldid="5" istitle="1">上级部门</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2009_ParentId"   type="text" class="form-txt"  style="width:320px;" onblur ="javascript:if(!DcxVld.Validate(this,2009,''DefaultF_'',2009,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2009,''DefaultF_'',2009);" EntId="2009" IsField=1 DBField=1 IsPost=1 FieldName="ParentId" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="5" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2009,' where  [FldUId]='23b29219-c297-1cf8-c2b3-dcc6312dba03' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='40c75ca4-4486-12a2-3a5b-e1c2baa158ab'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'40c75ca4-4486-12a2-3a5b-e1c2baa158ab',2009,2009,'00000000-0000-0000-0000-000000000000',6,'Telephone',2,2,7,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
</div>
</li><li areaid="13" class="li-area" scroll="no" style="width: 516px; height: 45px; position: static;"><label class="area-title pad7" fldid="6" istitle="1">电话号码</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2009_Telephone"   type="text" class="form-txt"  style="width:320px;" onblur ="javascript:if(!DcxVld.Validate(this,2009,''DefaultF_'',2009,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2009,''DefaultF_'',2009);" EntId="2009" IsField=1 DBField=1 IsPost=1 FieldName="Telephone" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="6" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2009,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=6,[Form_EntId]=2009,[EntId]=2009,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=6,[FieldName]='Telephone',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=7,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li areaid="13" class="li-area" scroll="no" style="width: 516px; height: 45px; position: static;"><label class="area-title pad7" fldid="6" istitle="1">电话号码</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2009_Telephone"   type="text" class="form-txt"  style="width:320px;" onblur ="javascript:if(!DcxVld.Validate(this,2009,''DefaultF_'',2009,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2009,''DefaultF_'',2009);" EntId="2009" IsField=1 DBField=1 IsPost=1 FieldName="Telephone" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="6" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2009,' where  [FldUId]='40c75ca4-4486-12a2-3a5b-e1c2baa158ab' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='8189cecc-b2d2-f4f1-896b-17c5956f4e16'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'8189cecc-b2d2-f4f1-896b-17c5956f4e16',2009,2009,'00000000-0000-0000-0000-000000000000',7,'PostalCode',2,2,8,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
</div>
</li><li areaid="12" class="li-area" scroll="no" style="width: 516px; height: 45px; position: static;"><label class="area-title pad7" fldid="7" istitle="1">邮政编号</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2009_PostalCode"   type="text" class="form-txt"  style="width:320px;" onblur ="javascript:if(!DcxVld.Validate(this,2009,''DefaultF_'',2009,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2009,''DefaultF_'',2009);" EntId="2009" IsField=1 DBField=1 IsPost=1 FieldName="PostalCode" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="7" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2009,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=7,[Form_EntId]=2009,[EntId]=2009,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=7,[FieldName]='PostalCode',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=8,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li areaid="12" class="li-area" scroll="no" style="width: 516px; height: 45px; position: static;"><label class="area-title pad7" fldid="7" istitle="1">邮政编号</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2009_PostalCode"   type="text" class="form-txt"  style="width:320px;" onblur ="javascript:if(!DcxVld.Validate(this,2009,''DefaultF_'',2009,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2009,''DefaultF_'',2009);" EntId="2009" IsField=1 DBField=1 IsPost=1 FieldName="PostalCode" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="7" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2009,' where  [FldUId]='8189cecc-b2d2-f4f1-896b-17c5956f4e16' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='abd00177-65c6-04e6-8c00-daed6365d32e'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'abd00177-65c6-04e6-8c00-daed6365d32e',2009,2009,'00000000-0000-0000-0000-000000000000',8,'Address',2,2,9,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
</div>
</li><li areaid="21" class="li-area" scroll="no" style="width: 516px; height: 45px; position: static;"><label class="area-title pad7" fldid="8" istitle="1">地址</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2009_Address"   type="text" class="form-txt"  style="width:320px;" onblur ="javascript:if(!DcxVld.Validate(this,2009,''DefaultF_'',2009,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2009,''DefaultF_'',2009);" EntId="2009" IsField=1 DBField=1 IsPost=1 FieldName="Address" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="8" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2009,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=8,[Form_EntId]=2009,[EntId]=2009,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=8,[FieldName]='Address',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=9,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li areaid="21" class="li-area" scroll="no" style="width: 516px; height: 45px; position: static;"><label class="area-title pad7" fldid="8" istitle="1">地址</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2009_Address"   type="text" class="form-txt"  style="width:320px;" onblur ="javascript:if(!DcxVld.Validate(this,2009,''DefaultF_'',2009,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2009,''DefaultF_'',2009);" EntId="2009" IsField=1 DBField=1 IsPost=1 FieldName="Address" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="8" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2009,' where  [FldUId]='abd00177-65c6-04e6-8c00-daed6365d32e' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='85eced0a-a2eb-9e76-7222-7564f936bc86'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'85eced0a-a2eb-9e76-7222-7564f936bc86',2009,2009,'00000000-0000-0000-0000-000000000000',9,'Email',2,2,10,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
</div>
</li><li areaid="20" class="li-area" scroll="no" style="width: 516px; height: 45px; position: static;"><label class="area-title pad7" fldid="9" istitle="1">Email</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2009_Email"   type="text" class="form-txt"  style="width:320px;" onblur ="javascript:if(!DcxVld.Validate(this,2009,''DefaultF_'',2009,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2009,''DefaultF_'',2009);" EntId="2009" IsField=1 DBField=1 IsPost=1 FieldName="Email" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="9" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2009,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=9,[Form_EntId]=2009,[EntId]=2009,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=9,[FieldName]='Email',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=10,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li areaid="20" class="li-area" scroll="no" style="width: 516px; height: 45px; position: static;"><label class="area-title pad7" fldid="9" istitle="1">Email</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2009_Email"   type="text" class="form-txt"  style="width:320px;" onblur ="javascript:if(!DcxVld.Validate(this,2009,''DefaultF_'',2009,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2009,''DefaultF_'',2009);" EntId="2009" IsField=1 DBField=1 IsPost=1 FieldName="Email" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="9" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2009,' where  [FldUId]='85eced0a-a2eb-9e76-7222-7564f936bc86' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='7662c317-9be3-e648-bcc6-2591d1729239'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(13,'7662c317-9be3-e648-bcc6-2591d1729239',2009,2009,'00000000-0000-0000-0000-000000000000',10,'Remark',2,2,14,'',5,1,1,0,2,1,-1,-1,1,0,'','','','','</span>
</div>
</li><li areaid="23" class="li-area" scroll="no" style="width: 516px; height: 81px; position: static;"><label class="area-title pad7" fldid="13" istitle="1">备注</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<textarea  id="d2009_Remark" class="form-txts"  style="width:320px;height:50px;" EntId="2009" IsField=1 DBField=1 IsPost=1 FieldName="Remark" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="13" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'2009,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=13,[Form_EntId]=2009,[EntId]=2009,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=10,[FieldName]='Remark',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=14,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li areaid="23" class="li-area" scroll="no" style="width: 516px; height: 81px; position: static;"><label class="area-title pad7" fldid="13" istitle="1">备注</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d2009_Remark" class="form-txts"  style="width:320px;height:50px;" EntId="2009" IsField=1 DBField=1 IsPost=1 FieldName="Remark" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="13" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2009,' where  [FldUId]='7662c317-9be3-e648-bcc6-2591d1729239' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='0ac4df6a-682e-27e2-353f-c905f4c4aa54'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(14,'0ac4df6a-682e-27e2-353f-c905f4c4aa54',2009,2009,'00000000-0000-0000-0000-000000000000',11,'AccountId',1,1,15,'{$AccountId}',0,1,1,0,1,1,-1,-1,1,0,'','','','{$AccountId},','</span>
</div>
</li><li areaid="22" class="li-area" scroll="no" style="width: 716px; height: 45px; position: static;"><label class="area-title pad7" fldid="14" istitle="1">AccountId</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','</span>
</div>
</li><li areaid="24" class="li-area" scroll="no" style="width: 716px; height: 45px; display: none; position: static;"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad7">
	请编辑..</div>
</li>
		</ul>
	</div>
</div>
<br>','','','<input  id="d2009_AccountId"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2009,''DefaultF_'',2009,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2009,''DefaultF_'',2009);" EntId="2009" IsField=1 DBField=1 IsPost=1 FieldName="AccountId" dType="1" Vtp="0" RDT="1" Isc="1" RId="1" CId="1" FId="14" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2009,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=14,[Form_EntId]=2009,[EntId]=2009,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=11,[FieldName]='AccountId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=15,[DefaultValue]='{$AccountId}',[ValueType]=0,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$AccountId},',[BeforeHtml]='</span>
</div>
</li><li areaid="22" class="li-area" scroll="no" style="width: 716px; height: 45px; position: static;"><label class="area-title pad7" fldid="14" istitle="1">AccountId</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
</div>
</li><li areaid="24" class="li-area" scroll="no" style="width: 716px; height: 45px; display: none; position: static;"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad7">
	请编辑..</div>
</li>
		</ul>
	</div>
</div>
<br>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2009_AccountId"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2009,''DefaultF_'',2009,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2009,''DefaultF_'',2009);" EntId="2009" IsField=1 DBField=1 IsPost=1 FieldName="AccountId" dType="1" Vtp="0" RDT="1" Isc="1" RId="1" CId="1" FId="14" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2009,' where  [FldUId]='0ac4df6a-682e-27e2-353f-c905f4c4aa54' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=116

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=116  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(116,null,'Dcx_Dept','Dcx_Dept',1,0,0,0,0,0,29,1,3,'admin','2013-12-15 17:32:12',3,'admin','2013-12-15 17:32:12',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='Dcx_Dept',[DBTableByName]='Dcx_Dept',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=29,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:12',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:12',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=116 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=116  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16414,1,29,116,'int',1,1,1,'Dcx_Dept','DeptId','DeptId','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Dept',[FieldName]='DeptId',[FieldByname]='DeptId',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=116  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=116  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16415,2,29,116,'varchar',2,1,1,'Dcx_Dept','DeptCode','DeptCode','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Dept',[FieldName]='DeptCode',[FieldByname]='DeptCode',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=116  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=116  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16416,3,29,116,'varchar',2,1,1,'Dcx_Dept','DeptName','DeptName','',0,0,0,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Dept',[FieldName]='DeptName',[FieldByname]='DeptName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=116  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=116  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16417,4,29,116,'int',1,1,1,'Dcx_Dept','CompanyId','CompanyId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Dept',[FieldName]='CompanyId',[FieldByname]='CompanyId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=116  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=116  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16418,5,29,116,'int',1,1,1,'Dcx_Dept','DeptOrder','DeptOrder','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Dept',[FieldName]='DeptOrder',[FieldByname]='DeptOrder',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=116  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=116  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16419,6,29,116,'int',1,1,1,'Dcx_Dept','ParentId','ParentId','0',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Dept',[FieldName]='ParentId',[FieldByname]='ParentId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=116  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=116  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16420,7,29,116,'varchar',2,1,1,'Dcx_Dept','Telephone','Telephone','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Dept',[FieldName]='Telephone',[FieldByname]='Telephone',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=116  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=116  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16421,8,29,116,'varchar',2,1,1,'Dcx_Dept','PostalCode','PostalCode','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Dept',[FieldName]='PostalCode',[FieldByname]='PostalCode',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=116  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=116  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16422,9,29,116,'varchar',2,1,1,'Dcx_Dept','Address','Address','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Dept',[FieldName]='Address',[FieldByname]='Address',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=116  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=116  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16423,10,29,116,'varchar',2,1,1,'Dcx_Dept','Email','Email','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Dept',[FieldName]='Email',[FieldByname]='Email',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=116  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=116  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16424,11,29,116,'varchar',2,1,1,'Dcx_Dept','URL','URL','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Dept',[FieldName]='URL',[FieldByname]='URL',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=116  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=116  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16425,12,29,116,'varchar',2,1,1,'Dcx_Dept','Accounts','Accounts','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Dept',[FieldName]='Accounts',[FieldByname]='Accounts',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=116  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=116  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16426,13,29,116,'varchar',2,1,1,'Dcx_Dept','Principal','Principal','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Dept',[FieldName]='Principal',[FieldByname]='Principal',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=116  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=116  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16427,14,29,116,'varchar',2,1,1,'Dcx_Dept','Remark','Remark','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Dept',[FieldName]='Remark',[FieldByname]='Remark',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=116  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=116  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16428,15,29,116,'int',1,1,1,'Dcx_Dept','AccountId','AccountId','1',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Dept',[FieldName]='AccountId',[FieldByname]='AccountId',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=116  and  [FieldId]=15 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=3276  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(3276,'6bed0813-5e21-49c1-9524-dcb8bc66b1db','角色管理（旧）',3273,'/Template/default/Form/AllForm_Tree_Tag.aspx',15,'/images/default.gif','/images/default.gif',4,'rightFrame',0,1,'',29,-1,29,3,1,1,'2013-7-10 1:29:56','',0,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='6bed0813-5e21-49c1-9524-dcb8bc66b1db',[MenuName]='角色管理（旧）',[ParentId]=3273,[ProPath]='/Template/default/Form/AllForm_Tree_Tag.aspx',[TemplateId]=15,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=4,[Target]='rightFrame',[IsOpen]=0,[IsHidden]=1,[Remark]='',[SSystemId]=29,[SMenuId]=-1,[SystemId]=29,[EntityCount]=3,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]='2013-7-10 1:29:56',[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=3276 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3276  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(1039,3276,'角色管理（旧）','Public',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='角色管理（旧）',[RoleName]='Public',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3276  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3276  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(971,3276,'角色管理','系统管理员',3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='角色管理',[RoleName]='系统管理员',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3276  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2004  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2004,3276,'角色管理',1,310,0,'Dcx_Role',0,0,1,29,2004,null,null,29,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3276,[EntName]='角色管理',[MEnt]=1,[DBTableId]=310,[DBConnectId]=0,[DBTableName]='Dcx_Role',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2004,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2004 
      end
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2027  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2027,3276,'角色成员',1,310,0,'Dcx_Role',0,0,1,29,2027,null,null,29,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3276,[EntName]='角色成员',[MEnt]=1,[DBTableId]=310,[DBConnectId]=0,[DBTableName]='Dcx_Role',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2027,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2027 
      end
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2028  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2028,3276,'角色成员从表',0,427,0,'Dcx_UserInRole',2027,0,1,29,2028,null,null,29,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3276,[EntName]='角色成员从表',[MEnt]=0,[DBTableId]=427,[DBConnectId]=0,[DBTableName]='Dcx_UserInRole',[ParentId]=2027,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2028,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2028 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=2004

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2004  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11047,3276,2004,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=3276,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2004  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2004

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2004  and  [ModuleTypeId]=5  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20436,29,3276,2004,64,5,25,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3276,[TemplateId]=64,[ModuleId]=25,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2004  and  [ModuleTypeId]=5 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2004  and  [ModuleTypeId]=18  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20437,29,3276,2004,64,18,44,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3276,[TemplateId]=64,[ModuleId]=44,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2004  and  [ModuleTypeId]=18 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_DefaultForm_Run]  where [EntId]=2004

--Dcx_DefaultForm_Run
      if (select count(1) from [Dcx_DefaultForm_Run] where  [EntId]=2004  )<1 
      begin 
           Insert into [Dcx_DefaultForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[OtherMsg],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('bf998681-d2b4-aacb-6573-92c12fab9a0c','角色管理',2004,-1,'','',0,'','','DcxRun.DefaultF_2004= {"MenuId":3276,"MEntId":2004,"EntName":"角色管理","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2004":{"EntId":2004,"KeyFieldValue":"","DBTableName":"","KeyField":"RoleId","KeydtId":2,"JoinKeyField":"RoleId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":10,"Ent":[{"EntId":2004,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1},{"Id":10,"vlId":5,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"此角色名称已存在！","ok":"","warn":"","ovt":1}]},{"FldId":2,"Vld":[{"Id":4,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":3,"Vld":[{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":4,"Vld":[{"Id":6,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,40}$","err":"限制0-40个字符。","ok":"","warn":"","ovt":1}]},{"FldId":5,"Vld":[{"Id":7,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"(d{2}|d{4})(?:-)?([0]{1}d{1}|[1]{1}[0-2]{1})(?:-)?([0-2]{1}d{1}|[3]{1}[0-1]{1})(?:s)?([0-1]{1}d{1}|[2]{1}[0-3]{1})(?::)?([0-5]{1}d{1})(?::)?([0-5]{1}d{1})","err":"格式要求为日期格式：格式要求为日期时间格式：yyyy-mm-dd  hh:mm:ss","ok":"","warn":"","ovt":1}]},{"FldId":6,"Vld":[{"Id":8,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,20}$","err":"限制0-20个字符。","ok":"","warn":"","ovt":1}]}]}]};
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2004.EntMsg.E2004.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_Role","EntId":2004,"KeyField":"RoleId","MKeyField":"RoleId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"RoleName":{"DtId":2,"DB":1,"CId":1,"FL":50},"ParentId":{"DtId":1,"DB":1,"CId":1,"FL":4},"RoleOrder":{"DtId":1,"DB":1,"CId":1,"FL":4},"Creator":{"DtId":2,"DB":1,"CId":1,"FL":40},"CreateTime":{"DtId":3,"DB":1,"CId":1,"FL":8},"Remark":{"DtId":2,"DB":1,"CId":2,"FL":20}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2004.EntMsg.E2004.GetDataRowModel=function()
{
    return {"RoleName":"","ParentId":0,"RoleOrder":-1,"Creator":"","CreateTime":new Date(),"Remark":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"RoleId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2004.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2004,''DefaultF_'',buildNew,closeDlg);

}','<$2004$>select [RoleName],[ParentId],[RoleOrder],[Creator],[CreateTime],[Remark],[RoleId] from Dcx_Role where [RoleId]=''{$keyfieldvalue}''</$2004$>',10,'2004*RoleId*2*RoleId*2*Dcx_Role*角色管理','','','',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-10-1 23:27:08',3,'admin','2013-10-2 18:34:07',1)
      end
      else 
      begin 
           update [Dcx_DefaultForm_Run] set [FormId]='bf998681-d2b4-aacb-6573-92c12fab9a0c',[FormName]='角色管理',[ModuleId]=-1,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.DefaultF_2004= {"MenuId":3276,"MEntId":2004,"EntName":"角色管理","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2004":{"EntId":2004,"KeyFieldValue":"","DBTableName":"","KeyField":"RoleId","KeydtId":2,"JoinKeyField":"RoleId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":10,"Ent":[{"EntId":2004,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1},{"Id":10,"vlId":5,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"此角色名称已存在！","ok":"","warn":"","ovt":1}]},{"FldId":2,"Vld":[{"Id":4,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":3,"Vld":[{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":4,"Vld":[{"Id":6,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,40}$","err":"限制0-40个字符。","ok":"","warn":"","ovt":1}]},{"FldId":5,"Vld":[{"Id":7,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"(d{2}|d{4})(?:-)?([0]{1}d{1}|[1]{1}[0-2]{1})(?:-)?([0-2]{1}d{1}|[3]{1}[0-1]{1})(?:s)?([0-1]{1}d{1}|[2]{1}[0-3]{1})(?::)?([0-5]{1}d{1})(?::)?([0-5]{1}d{1})","err":"格式要求为日期格式：格式要求为日期时间格式：yyyy-mm-dd  hh:mm:ss","ok":"","warn":"","ovt":1}]},{"FldId":6,"Vld":[{"Id":8,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,20}$","err":"限制0-20个字符。","ok":"","warn":"","ovt":1}]}]}]};
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2004.EntMsg.E2004.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_Role","EntId":2004,"KeyField":"RoleId","MKeyField":"RoleId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"RoleName":{"DtId":2,"DB":1,"CId":1,"FL":50},"ParentId":{"DtId":1,"DB":1,"CId":1,"FL":4},"RoleOrder":{"DtId":1,"DB":1,"CId":1,"FL":4},"Creator":{"DtId":2,"DB":1,"CId":1,"FL":40},"CreateTime":{"DtId":3,"DB":1,"CId":1,"FL":8},"Remark":{"DtId":2,"DB":1,"CId":2,"FL":20}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2004.EntMsg.E2004.GetDataRowModel=function()
{
    return {"RoleName":"","ParentId":0,"RoleOrder":-1,"Creator":"","CreateTime":new Date(),"Remark":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"RoleId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2004.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2004,''DefaultF_'',buildNew,closeDlg);

}',[LoadingSql]='<$2004$>select [RoleName],[ParentId],[RoleOrder],[Creator],[CreateTime],[Remark],[RoleId] from Dcx_Role where [RoleId]=''{$keyfieldvalue}''</$2004$>',[PageSize]=10,[OtherMsg]='2004*RoleId*2*RoleId*2*Dcx_Role*角色管理',[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-10-1 23:27:08',[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-2 18:34:07',[AccountId]=1 where  [EntId]=2004 
      end




--Dcx_DefaultFormField_Run
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='9f3c4b76-0895-07e7-832b-93bdc2ce3790'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'9f3c4b76-0895-07e7-832b-93bdc2ce3790',2004,2004,'00000000-0000-0000-0000-000000000000',1,'RoleName',2,2,2,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','<div class="ajaxfrom defaultform">
	<div class="div_top">
		<ul class="ul-group" groupid="1" isgroup="1" isrple="1">
			<li areaid="9" class="li-area" scroll="no" style="width: 516px; height: 55px; position: static;"><div class="form-title2" id="div_head1" style="width: 500px;postion:relative;top:-20px; ">
	<div style="width:70px;float:left;clear:none;">
		<h2 id="h2_title">
			</h2>
	</div>
	<div style="width:435px;float:right;clear:none;position:relative;top:-10px;">
		<a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();" style="float:right;"><span class="op_bt_i">关&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;闭</span></a> <a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.DefaultF_2004.SubmitForm(false,2004,''DefaultF_'');" style="float:right;"><span class="op_bt_i">保&nbsp;&nbsp;&nbsp;&nbsp;存</span></a> <a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(2004,''DefaultF_'');" style="float:right;"><span class="op_bt_i">新&nbsp;&nbsp;&nbsp;&nbsp;建</span></a></div>
</div>
</li>
			<li areaid="10" class="li-area" scroll="no" style="width: 516px; height: 45px; position: static;"><label class="area-title pad7" fldid="1" istitle="1">角色名称</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2004_RoleName"   type="text" class="form-txt"  style="width:320px;" onblur ="javascript:if(!DcxVld.Validate(this,2004,''DefaultF_'',2004,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2004,''DefaultF_'',2004);" EntId="2004" IsField=1 DBField=1 IsPost=1 FieldName="RoleName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2004,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=1,[Form_EntId]=2004,[EntId]=2004,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[FieldName]='RoleName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=2,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="ajaxfrom defaultform">
	<div class="div_top">
		<ul class="ul-group" groupid="1" isgroup="1" isrple="1">
			<li areaid="9" class="li-area" scroll="no" style="width: 516px; height: 55px; position: static;"><div class="form-title2" id="div_head1" style="width: 500px;postion:relative;top:-20px; ">
	<div style="width:70px;float:left;clear:none;">
		<h2 id="h2_title">
			</h2>
	</div>
	<div style="width:435px;float:right;clear:none;position:relative;top:-10px;">
		<a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();" style="float:right;"><span class="op_bt_i">关&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;闭</span></a> <a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.DefaultF_2004.SubmitForm(false,2004,''DefaultF_'');" style="float:right;"><span class="op_bt_i">保&nbsp;&nbsp;&nbsp;&nbsp;存</span></a> <a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(2004,''DefaultF_'');" style="float:right;"><span class="op_bt_i">新&nbsp;&nbsp;&nbsp;&nbsp;建</span></a></div>
</div>
</li>
			<li areaid="10" class="li-area" scroll="no" style="width: 516px; height: 45px; position: static;"><label class="area-title pad7" fldid="1" istitle="1">角色名称</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2004_RoleName"   type="text" class="form-txt"  style="width:320px;" onblur ="javascript:if(!DcxVld.Validate(this,2004,''DefaultF_'',2004,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2004,''DefaultF_'',2004);" EntId="2004" IsField=1 DBField=1 IsPost=1 FieldName="RoleName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2004,' where  [FldUId]='9f3c4b76-0895-07e7-832b-93bdc2ce3790' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='a51fa767-c517-007a-e1f7-ad48acd951de'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'a51fa767-c517-007a-e1f7-ad48acd951de',2004,2004,'00000000-0000-0000-0000-000000000000',2,'ParentId',1,1,4,'0',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li>
			<li areaid="11" class="li-area" scroll="no" style="width: 516px; height: 45px; position: static;"><label class="area-title pad7" fldid="2" istitle="1">上级角色</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2004_ParentId"   type="text" class="form-txt"  style="width:320px;" onblur ="javascript:if(!DcxVld.Validate(this,2004,''DefaultF_'',2004,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2004,''DefaultF_'',2004);" EntId="2004" IsField=1 DBField=1 IsPost=1 FieldName="ParentId" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="2" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2004,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=2,[Form_EntId]=2004,[EntId]=2004,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[FieldName]='ParentId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=4,[DefaultValue]='0',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li>
			<li areaid="11" class="li-area" scroll="no" style="width: 516px; height: 45px; position: static;"><label class="area-title pad7" fldid="2" istitle="1">上级角色</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2004_ParentId"   type="text" class="form-txt"  style="width:320px;" onblur ="javascript:if(!DcxVld.Validate(this,2004,''DefaultF_'',2004,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2004,''DefaultF_'',2004);" EntId="2004" IsField=1 DBField=1 IsPost=1 FieldName="ParentId" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="2" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2004,' where  [FldUId]='a51fa767-c517-007a-e1f7-ad48acd951de' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='2e1971a0-5e2d-0fe8-6754-612289eff21e'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'2e1971a0-5e2d-0fe8-6754-612289eff21e',2004,2004,'00000000-0000-0000-0000-000000000000',3,'RoleOrder',1,1,5,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>

</div>
</li><li areaid="13" class="li-area" scroll="no" style="width: 516px; height: 45px; position: static;"><label class="area-title pad7" fldid="3" istitle="1">排序号</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2004_RoleOrder"   type="text" class="form-txt"  style="width:320px;" onblur ="javascript:if(!DcxVld.Validate(this,2004,''DefaultF_'',2004,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2004,''DefaultF_'',2004);" EntId="2004" IsField=1 DBField=1 IsPost=1 FieldName="RoleOrder" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="3" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2004,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=3,[Form_EntId]=2004,[EntId]=2004,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[FieldName]='RoleOrder',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=5,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

</div>
</li><li areaid="13" class="li-area" scroll="no" style="width: 516px; height: 45px; position: static;"><label class="area-title pad7" fldid="3" istitle="1">排序号</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2004_RoleOrder"   type="text" class="form-txt"  style="width:320px;" onblur ="javascript:if(!DcxVld.Validate(this,2004,''DefaultF_'',2004,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2004,''DefaultF_'',2004);" EntId="2004" IsField=1 DBField=1 IsPost=1 FieldName="RoleOrder" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="3" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2004,' where  [FldUId]='2e1971a0-5e2d-0fe8-6754-612289eff21e' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='7c01b823-34de-aff3-ec5f-a79cf942d585'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'7c01b823-34de-aff3-ec5f-a79cf942d585',2004,2004,'00000000-0000-0000-0000-000000000000',4,'Creator',2,2,9,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
</div>
</li><li areaid="12" class="li-area" scroll="no" style="width: 516px; height: 45px; position: static;"><label class="area-title pad7" fldid="4" istitle="1">创建者</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2004_Creator"   type="text" class="form-txt"  style="width:320px;" onblur ="javascript:if(!DcxVld.Validate(this,2004,''DefaultF_'',2004,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2004,''DefaultF_'',2004);" EntId="2004" IsField=1 DBField=1 IsPost=1 FieldName="Creator" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="4" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2004,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=4,[Form_EntId]=2004,[EntId]=2004,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=4,[FieldName]='Creator',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=9,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li areaid="12" class="li-area" scroll="no" style="width: 516px; height: 45px; position: static;"><label class="area-title pad7" fldid="4" istitle="1">创建者</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2004_Creator"   type="text" class="form-txt"  style="width:320px;" onblur ="javascript:if(!DcxVld.Validate(this,2004,''DefaultF_'',2004,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2004,''DefaultF_'',2004);" EntId="2004" IsField=1 DBField=1 IsPost=1 FieldName="Creator" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="4" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2004,' where  [FldUId]='7c01b823-34de-aff3-ec5f-a79cf942d585' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='d2fbc245-51fe-0e56-714c-5abbb263bdd6'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'d2fbc245-51fe-0e56-714c-5abbb263bdd6',2004,2004,'00000000-0000-0000-0000-000000000000',5,'CreateTime',3,3,10,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
</div>
</li><li areaid="16" class="li-area" scroll="no" style="width: 516px; height: 45px; position: static;"><label class="area-title pad7" fldid="5" istitle="1">创建时间</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2004_CreateTime"   type="text" class="form-txt"  style="width:320px;" onblur ="javascript:if(!DcxVld.Validate(this,2004,''DefaultF_'',2004,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2004,''DefaultF_'',2004);" EntId="2004" IsField=1 DBField=1 IsPost=1 FieldName="CreateTime" dType="3" Vtp="5" RDT="3" Isc="1" RId="1" CId="1" FId="5" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2004,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=5,[Form_EntId]=2004,[EntId]=2004,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=5,[FieldName]='CreateTime',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=10,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li areaid="16" class="li-area" scroll="no" style="width: 516px; height: 45px; position: static;"><label class="area-title pad7" fldid="5" istitle="1">创建时间</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2004_CreateTime"   type="text" class="form-txt"  style="width:320px;" onblur ="javascript:if(!DcxVld.Validate(this,2004,''DefaultF_'',2004,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2004,''DefaultF_'',2004);" EntId="2004" IsField=1 DBField=1 IsPost=1 FieldName="CreateTime" dType="3" Vtp="5" RDT="3" Isc="1" RId="1" CId="1" FId="5" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2004,' where  [FldUId]='d2fbc245-51fe-0e56-714c-5abbb263bdd6' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='23b01f8e-d202-936e-fbba-7899f1a107e1'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'23b01f8e-d202-936e-fbba-7899f1a107e1',2004,2004,'00000000-0000-0000-0000-000000000000',6,'Remark',2,2,11,'',5,1,1,0,2,1,-1,-1,1,0,'','','','','</span>
</div>
</li><li areaid="15" class="li-area" scroll="no" style="width: 516px; height: 81px; position: static;"><label class="area-title pad7" fldid="6" istitle="1">备注</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','</span>
</div>
</li><li areaid="14" class="li-area" scroll="no" style="width: 516px; height: 45px; display: none; position: static;"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad7">
	请编辑..</div>
</li>
		</ul>
	</div>
</div>
<br>','','','<textarea  id="d2004_Remark" class="form-txts"  style="width:320px;height:50px;" onblur ="javascript:if(!DcxVld.Validate(this,2004,''DefaultF_'',2004,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2004,''DefaultF_'',2004);" EntId="2004" IsField=1 DBField=1 IsPost=1 FieldName="Remark" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="6" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'2004,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=6,[Form_EntId]=2004,[EntId]=2004,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=6,[FieldName]='Remark',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=11,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li areaid="15" class="li-area" scroll="no" style="width: 516px; height: 81px; position: static;"><label class="area-title pad7" fldid="6" istitle="1">备注</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
</div>
</li><li areaid="14" class="li-area" scroll="no" style="width: 516px; height: 45px; display: none; position: static;"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad7">
	请编辑..</div>
</li>
		</ul>
	</div>
</div>
<br>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d2004_Remark" class="form-txts"  style="width:320px;height:50px;" onblur ="javascript:if(!DcxVld.Validate(this,2004,''DefaultF_'',2004,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2004,''DefaultF_'',2004);" EntId="2004" IsField=1 DBField=1 IsPost=1 FieldName="Remark" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="6" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2004,' where  [FldUId]='23b01f8e-d202-936e-fbba-7899f1a107e1' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=310

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=310  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(310,null,'Dcx_Role','Dcx_Role',1,0,0,0,0,0,29,1,3,'admin','2013-12-15 17:32:20',3,'admin','2013-12-15 17:32:20',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='Dcx_Role',[DBTableByName]='Dcx_Role',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=29,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:20',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:20',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=310 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=310  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17514,1,29,310,'int',1,1,1,'Dcx_Role','RoleId','RoleId','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Role',[FieldName]='RoleId',[FieldByname]='RoleId',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=310  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=310  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17515,2,29,310,'varchar',2,1,1,'Dcx_Role','RoleName','RoleName','',0,0,0,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Role',[FieldName]='RoleName',[FieldByname]='RoleName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=310  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=310  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17516,3,29,310,'tinyint',23,1,1,'Dcx_Role','SystemRoleType','SystemRoleType','0',0,0,0,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Role',[FieldName]='SystemRoleType',[FieldByname]='SystemRoleType',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=310  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=310  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17517,4,29,310,'int',1,1,1,'Dcx_Role','ParentId','ParentId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Role',[FieldName]='ParentId',[FieldByname]='ParentId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=310  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=310  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17518,5,29,310,'int',1,1,1,'Dcx_Role','RoleOrder','RoleOrder','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Role',[FieldName]='RoleOrder',[FieldByname]='RoleOrder',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=310  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=310  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17519,6,29,310,'bit',4,1,1,'Dcx_Role','IsDisplay','IsDisplay','1',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Role',[FieldName]='IsDisplay',[FieldByname]='IsDisplay',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=310  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=310  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17520,7,29,310,'int',1,1,1,'Dcx_Role','RoleTypeId','RoleTypeId','1',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Role',[FieldName]='RoleTypeId',[FieldByname]='RoleTypeId',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=310  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=310  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17521,8,29,310,'int',1,1,1,'Dcx_Role','CreatorId','CreatorId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Role',[FieldName]='CreatorId',[FieldByname]='CreatorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=310  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=310  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17522,9,29,310,'varchar',2,1,1,'Dcx_Role','Creator','Creator','',0,0,1,40,40,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Role',[FieldName]='Creator',[FieldByname]='Creator',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=40,[Precision]=40,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=310  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=310  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17523,10,29,310,'datetime',3,1,1,'Dcx_Role','CreateTime','CreateTime','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Role',[FieldName]='CreateTime',[FieldByname]='CreateTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=310  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=310  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17524,11,29,310,'varchar',2,1,1,'Dcx_Role','Remark','Remark','',0,0,1,20,20,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Role',[FieldName]='Remark',[FieldByname]='Remark',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=20,[Precision]=20,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=310  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=310  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17525,12,29,310,'int',1,1,1,'Dcx_Role','EditorId','EditorId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Role',[FieldName]='EditorId',[FieldByname]='EditorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=310  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=310  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17526,13,29,310,'datetime',3,1,1,'Dcx_Role','EditTime','EditTime','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Role',[FieldName]='EditTime',[FieldByname]='EditTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=310  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=310  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17527,14,29,310,'int',1,1,1,'Dcx_Role','AccountId','AccountId','1',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Role',[FieldName]='AccountId',[FieldByname]='AccountId',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=310  and  [FieldId]=14 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 



Delete from [Dcx_EntityPrivilege]  where [EntId]=2027

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2027  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11063,3276,2027,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=3276,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2027  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2027

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2027  and  [ModuleTypeId]=5  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20460,29,3276,2027,64,5,25,3,6,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3276,[TemplateId]=64,[ModuleId]=25,[GroupId]=3,[AreaId]=6,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2027  and  [ModuleTypeId]=5 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2027  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20461,29,3276,2027,64,3,68,3,7,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3276,[TemplateId]=64,[ModuleId]=68,[GroupId]=3,[AreaId]=7,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2027  and  [ModuleTypeId]=3 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_AjaxForm_Run]  where [EntId]=2027

--Dcx_AjaxForm_Run
      if (select count(1) from [Dcx_AjaxForm_Run] where  [EntId]=2027  )<1 
      begin 
           Insert into [Dcx_AjaxForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('fde57c77-fb5b-070c-1019-c310562d89af','角色成员',2027,14,'','',0,'<script src="/Js/Control/LTreeRList/LTreeRList.js"></script>','','DcxRun.AjaxF_2027= {"MenuId":3276,"MEntId":2027,"EntName":"角色成员","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2027":{"EntId":2027,"KeyFieldValue":"","DBTableName":"","KeyField":"RoleId","KeydtId":2,"JoinKeyField":"RoleId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""},"E2028":{"EntId":2028,"KeyFieldValue":"","DBTableName":"","KeyField":"UserRoleId","KeydtId":2,"JoinKeyField":"RoleId","JKeydtId":2,"IsMEnt":false,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}


if(runObj.NoInit)
{
   entMsg.E2028.FormData=null;
   mEntMsg.RowCount=0;mEntMsg.RecortCount=0;entMsg.E2028.RowCount=0;

}

 DcxForm.InitSheetForm(2028,''AjaxF_'',entMsg.E2028.FormData,entMsg.E2028.$listContainer);


}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":6,"Ent":[{"EntId":2027,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]}]},{"EntId":2028,"Fld":[{"FldId":4,"Vld":[{"Id":4,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":5,"Vld":[{"Id":6,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,20}$","err":"限制0-20个字符。","ok":"","warn":"","ovt":1}]},{"FldId":6,"Vld":[]}]}]};
 }
 catch(err){}

try{
   runObj.Selector=[{"f1":"UserName,UserId,","f2":"UserName,UserId,","e1":2025,"e2":2028,"l":"0","t":"0","w":"800","h":"560","sc":"0","u":"/Template/default/ListReport/ListReport_Tree_Tags.aspx","m":3295}];
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_2027.EntMsg.E2027.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_Role","EntId":2027,"KeyField":"RoleId","MKeyField":"RoleId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":1},"FieldDefine":{"RoleName":{"DtId":2,"DB":1,"CId":1,"FL":50}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_2027.EntMsg.E2027.GetDataRowModel=function()
{
    return {"RoleName":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"RoleId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
DcxRun.AjaxF_2027.EntMsg.E2028.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_UserInRole","EntId":2028,"KeyField":"UserRoleId","MKeyField":"UserRoleId","MKeyValue":-1,"DataTypeId":2,"JoinKeyField":"RoleId","JKeydtId":2,"OpType":1,"IsMEnt":false,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null},"FieldDefine":{"UserId":{"DtId":1,"DB":1,"CId":40,"FL":4},"UserName":{"DtId":2,"DB":1,"CId":1,"FL":20},"IsMainRole":{"DtId":4,"DB":1,"CId":13,"FL":1}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_2027.EntMsg.E2028.GetDataRowModel=function()
{
    return {"UserId":-1,"UserName":"","IsMainRole":false,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"UserRoleId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_AjaxF_2028_34(obj,curFieldName){
 var EntId=2028;
 var FldId=5;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''UserName'';
 var $formContainer=DcxForm.GetRow(obj,2028,''AjaxF_'');
 var $ddlContainer=null;
var strCode="{@UserId&}" ;
var v_f1=null;
if(''UserId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,2028,''AjaxF_'',''UserId'',40,$formContainer,true,true);
if(Dcx.IsNull(v_f1))
   v_f1=0;
strCode=strCode.replaceAll("{@UserId&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var rowindex=$formContainer.attr("rowix");
var Cur_ctrlId="d2028_UserNamefrom_tr"+rowindex;
var $AcceptObj=$formContainer.find("#"+Cur_ctrlId);
$AcceptObj.val(myVal);
$AcceptObj.change();
}



 function GetLinkCtrl_AjaxF_2028(obj,FieldName,EntId)
{

}
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_2027.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2027,''AjaxF_'',buildNew,closeDlg);

}','<$2027$>select [RoleName],[RoleId] from Dcx_Role where [RoleId]=''{$keyfieldvalue}''</$2027$><$2028$>select [UserId],[UserName],[IsMainRole],[UserRoleId],[RoleId] from Dcx_UserInRole where [RoleId]=''{$mkeyValue}''</$2028$>',10,'','','','2027*RoleId*2*RoleId*2*Dcx_Role*角色成员,2028*UserRoleId*2*RoleId*2*Dcx_UserInRole*角色成员从表',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-10-10 2:36:56',3,'admin','2013-10-2 18:25:24',1)
      end
      else 
      begin 
           update [Dcx_AjaxForm_Run] set [FormId]='fde57c77-fb5b-070c-1019-c310562d89af',[FormName]='角色成员',[ModuleId]=14,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script src="/Js/Control/LTreeRList/LTreeRList.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.AjaxF_2027= {"MenuId":3276,"MEntId":2027,"EntName":"角色成员","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2027":{"EntId":2027,"KeyFieldValue":"","DBTableName":"","KeyField":"RoleId","KeydtId":2,"JoinKeyField":"RoleId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""},"E2028":{"EntId":2028,"KeyFieldValue":"","DBTableName":"","KeyField":"UserRoleId","KeydtId":2,"JoinKeyField":"RoleId","JKeydtId":2,"IsMEnt":false,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}


if(runObj.NoInit)
{
   entMsg.E2028.FormData=null;
   mEntMsg.RowCount=0;mEntMsg.RecortCount=0;entMsg.E2028.RowCount=0;

}

 DcxForm.InitSheetForm(2028,''AjaxF_'',entMsg.E2028.FormData,entMsg.E2028.$listContainer);


}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":6,"Ent":[{"EntId":2027,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]}]},{"EntId":2028,"Fld":[{"FldId":4,"Vld":[{"Id":4,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":5,"Vld":[{"Id":6,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,20}$","err":"限制0-20个字符。","ok":"","warn":"","ovt":1}]},{"FldId":6,"Vld":[]}]}]};
 }
 catch(err){}

try{
   runObj.Selector=[{"f1":"UserName,UserId,","f2":"UserName,UserId,","e1":2025,"e2":2028,"l":"0","t":"0","w":"800","h":"560","sc":"0","u":"/Template/default/ListReport/ListReport_Tree_Tags.aspx","m":3295}];
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_2027.EntMsg.E2027.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_Role","EntId":2027,"KeyField":"RoleId","MKeyField":"RoleId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":1},"FieldDefine":{"RoleName":{"DtId":2,"DB":1,"CId":1,"FL":50}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_2027.EntMsg.E2027.GetDataRowModel=function()
{
    return {"RoleName":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"RoleId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
DcxRun.AjaxF_2027.EntMsg.E2028.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_UserInRole","EntId":2028,"KeyField":"UserRoleId","MKeyField":"UserRoleId","MKeyValue":-1,"DataTypeId":2,"JoinKeyField":"RoleId","JKeydtId":2,"OpType":1,"IsMEnt":false,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null},"FieldDefine":{"UserId":{"DtId":1,"DB":1,"CId":40,"FL":4},"UserName":{"DtId":2,"DB":1,"CId":1,"FL":20},"IsMainRole":{"DtId":4,"DB":1,"CId":13,"FL":1}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_2027.EntMsg.E2028.GetDataRowModel=function()
{
    return {"UserId":-1,"UserName":"","IsMainRole":false,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"UserRoleId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_AjaxF_2028_34(obj,curFieldName){
 var EntId=2028;
 var FldId=5;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''UserName'';
 var $formContainer=DcxForm.GetRow(obj,2028,''AjaxF_'');
 var $ddlContainer=null;
var strCode="{@UserId&}" ;
var v_f1=null;
if(''UserId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,2028,''AjaxF_'',''UserId'',40,$formContainer,true,true);
if(Dcx.IsNull(v_f1))
   v_f1=0;
strCode=strCode.replaceAll("{@UserId&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var rowindex=$formContainer.attr("rowix");
var Cur_ctrlId="d2028_UserNamefrom_tr"+rowindex;
var $AcceptObj=$formContainer.find("#"+Cur_ctrlId);
$AcceptObj.val(myVal);
$AcceptObj.change();
}



 function GetLinkCtrl_AjaxF_2028(obj,FieldName,EntId)
{

}
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_2027.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2027,''AjaxF_'',buildNew,closeDlg);

}',[LoadingSql]='<$2027$>select [RoleName],[RoleId] from Dcx_Role where [RoleId]=''{$keyfieldvalue}''</$2027$><$2028$>select [UserId],[UserName],[IsMainRole],[UserRoleId],[RoleId] from Dcx_UserInRole where [RoleId]=''{$mkeyValue}''</$2028$>',[PageSize]=10,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='2027*RoleId*2*RoleId*2*Dcx_Role*角色成员,2028*UserRoleId*2*RoleId*2*Dcx_UserInRole*角色成员从表',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-10-10 2:36:56',[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-2 18:25:24',[AccountId]=1 where  [EntId]=2027 
      end




--Dcx_AjaxFormField_Run
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='f32047ff-e0b8-4c45-0dfa-8177e08a9ab4'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'f32047ff-e0b8-4c45-0dfa-8177e08a9ab4',2027,2027,'00000000-0000-0000-0000-000000000000','RoleName',2,2,2,'',5,1,1,0,1,1,-1,1,-1,1,0,'','','','','<div class="ajaxform">
<div class="div_top">
<ul isgroup="1" groupid="1" class="ul-group w960" style="width: 702px; " isrple="1">
<li areaid="12" class="li-area w480 h32" style="width: 700px; height: 45px; position: static;" scroll="no"><div class="field-content pad7" style="FLOAT: right">
	<a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();" style="float:right;"><span class="op_bt_i">关&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;闭</span></a> <a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.AjaxF_2027.SubmitForm(false);" style="float:right;"><span class="op_bt_i">保&nbsp;&nbsp;&nbsp;&nbsp;存</span></a> </div>
</li><li areaid="6" class="li-area w480 h32" style="width: 700px; height: 38px; position: static;" scroll="no"><label class="area-title pad7" fldid="1" istitle="1">角色</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2027_RoleName"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2027,''AjaxF_'',2027,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2027,''AjaxF_'',2027);" EntId="2027" IsField=1 DBField=1 IsPost=1 FieldName="RoleName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2027,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=1,[Form_EntId]=2027,[EntId]=2027,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='RoleName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=2,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="ajaxform">
<div class="div_top">
<ul isgroup="1" groupid="1" class="ul-group w960" style="width: 702px; " isrple="1">
<li areaid="12" class="li-area w480 h32" style="width: 700px; height: 45px; position: static;" scroll="no"><div class="field-content pad7" style="FLOAT: right">
	<a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();" style="float:right;"><span class="op_bt_i">关&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;闭</span></a> <a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.AjaxF_2027.SubmitForm(false);" style="float:right;"><span class="op_bt_i">保&nbsp;&nbsp;&nbsp;&nbsp;存</span></a> </div>
</li><li areaid="6" class="li-area w480 h32" style="width: 700px; height: 38px; position: static;" scroll="no"><label class="area-title pad7" fldid="1" istitle="1">角色</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2027_RoleName"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2027,''AjaxF_'',2027,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2027,''AjaxF_'',2027);" EntId="2027" IsField=1 DBField=1 IsPost=1 FieldName="RoleName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2027,' where  [FldUId]='f32047ff-e0b8-4c45-0dfa-8177e08a9ab4' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='470d930e-b136-cea3-aacd-527afa2f8b35'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(35,'470d930e-b136-cea3-aacd-527afa2f8b35',2027,2028,'00000000-0000-0000-0000-000000000000','CEntBegin',-1,2,-1,'',5,-1,1,0,-1,10,-1,2,-1,0,0,'','','','','</span>




</div>
</li><li entname="角色成员从表" class="li-area w958" areaid="14" style="height: auto; width: 700px; position: static;" scroll="no"><label class="group-title pad7" istitle="1">角色成员从表 </label>
<div class="field-content pad7" entid="2028" ischildentity="1">
	<!-- 开始 --><!-- 功能键栏 -->
	<div class="ajaxform toolbar-opt">
		<!--功能键栏-->
		<ul class="itemUl1 repUl1" groupid="5" isgroup="1" istoolbar="1" isrple="1">
			<li areaid="15" class="putCont" scroll="no" style="width: 60px; position: static;">
				<input class="chPut" id="ckb_CheckAllAjaxF_2028" onclick="javascript:DcxCom.CheckedAll(this,2028,''AjaxF_'');" rel="chkall" type="checkbox"> <label for="ckb_CheckAllAjaxF_2028">全选</label></li>
			<li areaid="16" class="listTit" scroll="no" style="width: 70px; height: 30px; position: static;">
				<a class="playAll" href="javascript:void(0);" id="AjaxF_2028_btn_buildNew" onclick="javascript:DcxForm.AddRow(this,1,2028,''AjaxF_'');" title="添   加">添 加</a></li>
			<li areaid="17" class="listTit" scroll="no" style="width: 70px; height: 30px; position: static;">
				<a class="lMdBtn" href="javascript:void(0);" id="AjaxF_2028_btn_buildNew" onclick="javascript:DcxForm.AddRow(this,5,2028,''AjaxF_'');" title="添加5行">添加5行</a></li>
			<li areaid="18" class="listTit" scroll="no" style="width: 70px; height: 30px; position: static;">
				<a class="lMdBtn" href="javascript:void(0);" id="AjaxF_2028_btn_buildNew" onclick="javascript:DcxForm.AddRow(this,10,2028,''AjaxF_'');" title="添加10行">添加10行</a></li>
			<li areaid="19" class="listTit" scroll="no" style="width: 70px; height: 30px; position: static;"><a class="playAll" href="javascript:void(0);" id="AjaxF_2028_deletebut" onclick="javascript:DcxForm.DeleteRow(this,2028,''AjaxF_'');" title="删   除">删 除</a></li>
			<li areaid="20" class="listTit" scroll="no" style="width: 70px; height: 30px; position: static;"><a class="lMdBtn" href="javascript:void(0);" id="AjaxF_2028_deletebut" onclick="javascript:DcxForm.DeleteAllRow(this,2028,''AjaxF_'');" title="删除全部">删除全部</a></li>
			<li areaid="29" class="listTit" isselector="1" scroll="no" style="width: 70px; height: 30px; position: static;"><a class="lMdBtn" href="javascript:void(0);" onclick="javascript:ShowSelector(2028,''AjaxF_'');" title="批量选择">批量选择</a></li>
		</ul>
	</div>
	<div class="ajaxform listarea">
		<div class="lf-head">
			<ul class="ul-listtitle" groupid="6" isgroup="1" islisthead="1" islonly="1" style="width: 560px; " isrple="1">
				<li areaid="22" class="li-head-item" scroll="no" style="width: 278px; height: 30px; clear: none; float: left; position: static;">
					<label class="head-label" istitle="1">用户名 </label></li>
				<li areaid="24" class="li-head-item" scroll="no" style="width: 278px; height: 30px; clear: right; float: left; position: static;">
					<label class="head-label" istitle="1">是否核心成员 </label></li>
			</ul>
		</div>
		<div class="lf-body">','','','','','','',7,-1,-1,-1,1,'2028,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=35,[Form_EntId]=2027,[EntId]=2028,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='CEntBegin',[FieldDataTypeId]=-1,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=-1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=-1,[FieldTypeId]=10,[RepeatColumns]=-1,[FieldNO]=2,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>




</div>
</li><li entname="角色成员从表" class="li-area w958" areaid="14" style="height: auto; width: 700px; position: static;" scroll="no"><label class="group-title pad7" istitle="1">角色成员从表 </label>
<div class="field-content pad7" entid="2028" ischildentity="1">
	<!-- 开始 --><!-- 功能键栏 -->
	<div class="ajaxform toolbar-opt">
		<!--功能键栏-->
		<ul class="itemUl1 repUl1" groupid="5" isgroup="1" istoolbar="1" isrple="1">
			<li areaid="15" class="putCont" scroll="no" style="width: 60px; position: static;">
				<input class="chPut" id="ckb_CheckAllAjaxF_2028" onclick="javascript:DcxCom.CheckedAll(this,2028,''AjaxF_'');" rel="chkall" type="checkbox"> <label for="ckb_CheckAllAjaxF_2028">全选</label></li>
			<li areaid="16" class="listTit" scroll="no" style="width: 70px; height: 30px; position: static;">
				<a class="playAll" href="javascript:void(0);" id="AjaxF_2028_btn_buildNew" onclick="javascript:DcxForm.AddRow(this,1,2028,''AjaxF_'');" title="添   加">添 加</a></li>
			<li areaid="17" class="listTit" scroll="no" style="width: 70px; height: 30px; position: static;">
				<a class="lMdBtn" href="javascript:void(0);" id="AjaxF_2028_btn_buildNew" onclick="javascript:DcxForm.AddRow(this,5,2028,''AjaxF_'');" title="添加5行">添加5行</a></li>
			<li areaid="18" class="listTit" scroll="no" style="width: 70px; height: 30px; position: static;">
				<a class="lMdBtn" href="javascript:void(0);" id="AjaxF_2028_btn_buildNew" onclick="javascript:DcxForm.AddRow(this,10,2028,''AjaxF_'');" title="添加10行">添加10行</a></li>
			<li areaid="19" class="listTit" scroll="no" style="width: 70px; height: 30px; position: static;"><a class="playAll" href="javascript:void(0);" id="AjaxF_2028_deletebut" onclick="javascript:DcxForm.DeleteRow(this,2028,''AjaxF_'');" title="删   除">删 除</a></li>
			<li areaid="20" class="listTit" scroll="no" style="width: 70px; height: 30px; position: static;"><a class="lMdBtn" href="javascript:void(0);" id="AjaxF_2028_deletebut" onclick="javascript:DcxForm.DeleteAllRow(this,2028,''AjaxF_'');" title="删除全部">删除全部</a></li>
			<li areaid="29" class="listTit" isselector="1" scroll="no" style="width: 70px; height: 30px; position: static;"><a class="lMdBtn" href="javascript:void(0);" onclick="javascript:ShowSelector(2028,''AjaxF_'');" title="批量选择">批量选择</a></li>
		</ul>
	</div>
	<div class="ajaxform listarea">
		<div class="lf-head">
			<ul class="ul-listtitle" groupid="6" isgroup="1" islisthead="1" islonly="1" style="width: 560px; " isrple="1">
				<li areaid="22" class="li-head-item" scroll="no" style="width: 278px; height: 30px; clear: none; float: left; position: static;">
					<label class="head-label" istitle="1">用户名 </label></li>
				<li areaid="24" class="li-head-item" scroll="no" style="width: 278px; height: 30px; clear: right; float: left; position: static;">
					<label class="head-label" istitle="1">是否核心成员 </label></li>
			</ul>
		</div>
		<div class="lf-body">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='',[CtrlbackHtml]='',[CtrlLastHtml]='',[TableIndex]=7,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2028,' where  [FldUId]='470d930e-b136-cea3-aacd-527afa2f8b35' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='4a0eeafa-cb66-4e67-2ce6-77f10400bd78'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'4a0eeafa-cb66-4e67-2ce6-77f10400bd78',2027,2028,'00000000-0000-0000-0000-000000000000','UserId',1,1,2,'',5,2,1,0,40,1,-1,3,5,1,0,'','','','','class="ul-listfield" groupid="7" isgroup="1" islonly="1" style="width: 560px; " isrple="1">
				<li areaid="23" class="li-listfield" scroll="no" style="width: 278px; height: 30px; clear: none; float: left; position: static;">
					<div class="list-field">
						<span class="form-ctr" isfcontain="1">','','','<div id="d2028_UserId%trindex%" CtrlPrex="AjaxF_"','class="lt-ddl" style="width:250px;" CBack=1  IsForField=1 EntId="2028" FId="4" Vtp="5" RId="2" Isc="1" CId="40" FieldName="UserId" ><input  id="d2028_UserId%trindex%_Text" type="text" class="lt-ddl-txt" readonly="readOnly"  CId="40" FId="4" Vtp="5"  RId="2" Isc="1"  style="width:250px;" onclick ="javascript:DcxTree.ShowDialogLf(this,5,2028,''UserId'',false);" onchange ="javascript:GetLinkCtrlData_AjaxF_2028_34(this,''UserId'');if(!DcxVld.Validate(this,2028,''AjaxF_'',2027,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2028,''AjaxF_'',2027,true);" onkeyup ="javascript:DcxTree.ShowDialogLf(this,5,2028,''UserId'',true);" onmouseover ="javascript:DcxForm.ListTxtMouseOver(this,2028,''UserId'');" value="','" /><span class="lt-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2028_UserId%trindex%_hid" CtrlPrex="AjaxF_" type="hidden"  CBack=1  EntId="2028" IsField=1 DBField=1 IsPost=1 FieldName="UserId" dType="1" Vtp="5" RDT="1" Isc="1" RId="2" CId="40" FId="4" vlk=0   TId=5  TFN="UserName"  value="','"/>',7,-1,-1,-1,1,'2028,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4,[Form_EntId]=2027,[EntId]=2028,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='UserId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=2,[DefaultValue]='',[ValueType]=5,[RunValueType]=2,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=40,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=3,[TreeId]=5,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='class="ul-listfield" groupid="7" isgroup="1" islonly="1" style="width: 560px; " isrple="1">
				<li areaid="23" class="li-listfield" scroll="no" style="width: 278px; height: 30px; clear: none; float: left; position: static;">
					<div class="list-field">
						<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<div id="d2028_UserId%trindex%" CtrlPrex="AjaxF_"',[CtrlfrontHtml]='class="lt-ddl" style="width:250px;" CBack=1  IsForField=1 EntId="2028" FId="4" Vtp="5" RId="2" Isc="1" CId="40" FieldName="UserId" ><input  id="d2028_UserId%trindex%_Text" type="text" class="lt-ddl-txt" readonly="readOnly"  CId="40" FId="4" Vtp="5"  RId="2" Isc="1"  style="width:250px;" onclick ="javascript:DcxTree.ShowDialogLf(this,5,2028,''UserId'',false);" onchange ="javascript:GetLinkCtrlData_AjaxF_2028_34(this,''UserId'');if(!DcxVld.Validate(this,2028,''AjaxF_'',2027,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2028,''AjaxF_'',2027,true);" onkeyup ="javascript:DcxTree.ShowDialogLf(this,5,2028,''UserId'',true);" onmouseover ="javascript:DcxForm.ListTxtMouseOver(this,2028,''UserId'');" value="',[CtrlbackHtml]='" /><span class="lt-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2028_UserId%trindex%_hid" CtrlPrex="AjaxF_" type="hidden"  CBack=1  EntId="2028" IsField=1 DBField=1 IsPost=1 FieldName="UserId" dType="1" Vtp="5" RDT="1" Isc="1" RId="2" CId="40" FId="4" vlk=0   TId=5  TFN="UserName"  value="',[CtrlLastHtml]='"/>',[TableIndex]=7,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2028,' where  [FldUId]='4a0eeafa-cb66-4e67-2ce6-77f10400bd78' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='04d34666-9450-437f-5c3f-518a99f4b034'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'04d34666-9450-437f-5c3f-518a99f4b034',2027,2028,'00000000-0000-0000-0000-000000000000','UserName',2,2,5,'',3,1,1,0,1,1,-1,4,-1,1,0,'','','','','</span>

 <span class="form-ctr" isfcontain="1">','','','<input  id="d2028_UserName%trindex%" CtrlPrex="AjaxF_"','type="text" class="lt-txt hide"  style="width:250px;display:none;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2028,''AjaxF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2028,''AjaxF_'',2027,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2028,''AjaxF_'',2027,true);" EntId="2028" IsField=1 DBField=1 IsPost=1 FieldName="UserName" dType="2" Vtp="3" RDT="2" Isc="1" RId="1" CId="1" FId="5" vlk=0    value="','" />','',7,-1,-1,-1,1,'2028,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=5,[Form_EntId]=2027,[EntId]=2028,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='UserName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=5,[DefaultValue]='',[ValueType]=3,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=4,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

 <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<input  id="d2028_UserName%trindex%" CtrlPrex="AjaxF_"',[CtrlfrontHtml]='type="text" class="lt-txt hide"  style="width:250px;display:none;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2028,''AjaxF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2028,''AjaxF_'',2027,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2028,''AjaxF_'',2027,true);" EntId="2028" IsField=1 DBField=1 IsPost=1 FieldName="UserName" dType="2" Vtp="3" RDT="2" Isc="1" RId="1" CId="1" FId="5" vlk=0    value="',[CtrlbackHtml]='" />',[CtrlLastHtml]='',[TableIndex]=7,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2028,' where  [FldUId]='04d34666-9450-437f-5c3f-518a99f4b034' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='daa38414-3708-4ee1-9cb0-47c55546b766'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'daa38414-3708-4ee1-9cb0-47c55546b766',2027,2028,'00000000-0000-0000-0000-000000000000','IsMainRole',4,4,4,'',1,6,1,0,13,1,-1,5,-1,1,0,'','','','','</span>

</div>
				</li>
				<li areaid="25" class="li-listfield" scroll="no" style="width: 278px; height: 30px; clear: right; float: left; position: static;">
					<div class="list-field">
						<span class="form-ctr" isfcontain="1">','','','<div class="form-radio" ><span class="form-radio-item" ><input class="radio" id="d2028_IsMainRole%trindex%" CtrlPrex="AjaxF_"','type="checkbox" yesv=''true'' nov=''false''  onclick ="javascript:DcxForm.ClickCkbLf(this,2028,''AjaxF_'');" EntId="2028" IsField=1 DBField=1 IsPost=1 FieldName="IsMainRole" dType="4" Vtp="1" RDT="4" Isc="1" RId="6" CId="13" FId="6" vlk=0    />','<label for="d2028_IsMainRole%trindex%">核心成员</label></span></div>','',7,-1,-1,-1,1,'2028,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=6,[Form_EntId]=2027,[EntId]=2028,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='IsMainRole',[FieldDataTypeId]=4,[RunDataTypeId]=4,[DBFieldId]=4,[DefaultValue]='',[ValueType]=1,[RunValueType]=6,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=13,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=5,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

</div>
				</li>
				<li areaid="25" class="li-listfield" scroll="no" style="width: 278px; height: 30px; clear: right; float: left; position: static;">
					<div class="list-field">
						<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<div class="form-radio" ><span class="form-radio-item" ><input class="radio" id="d2028_IsMainRole%trindex%" CtrlPrex="AjaxF_"',[CtrlfrontHtml]='type="checkbox" yesv=''true'' nov=''false''  onclick ="javascript:DcxForm.ClickCkbLf(this,2028,''AjaxF_'');" EntId="2028" IsField=1 DBField=1 IsPost=1 FieldName="IsMainRole" dType="4" Vtp="1" RDT="4" Isc="1" RId="6" CId="13" FId="6" vlk=0    />',[CtrlbackHtml]='<label for="d2028_IsMainRole%trindex%">核心成员</label></span></div>',[CtrlLastHtml]='',[TableIndex]=7,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2028,' where  [FldUId]='daa38414-3708-4ee1-9cb0-47c55546b766' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='61b57ecb-fda2-b94c-288b-238146312356'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(36,'61b57ecb-fda2-b94c-288b-238146312356',2027,2028,'00000000-0000-0000-0000-000000000000','CEntEnd',-1,2,-1,'',5,-1,1,0,-1,11,-1,6,-1,0,0,'','','','','</span>

</div>
				</li>
			</ul>','</div>
	</div>
	<!-- 结束 --></div>
</li>
</ul>
</div> 
<div class="div_tabs">
<div class="tabs-content" tabid="1" style="display: none; ">
<ul isgroup="1" groupid="3" class="ul-group" style="width: 960px;" isrple="1">
<li areaid="9" style="width: 478px; height: 32px; position: static;" class="li-area" scroll="no"><label class="area-title" fldid="-1" istitle="1" style="padding:7px 5px 7px 7px;">请编辑.. </label>
<div class="field-content" style="padding:7px 5px 7px 7px;">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="">

</div>
</div> 
</div>','','','','','',7,-1,-1,-1,1,'2028,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=36,[Form_EntId]=2027,[EntId]=2028,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='CEntEnd',[FieldDataTypeId]=-1,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=-1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=-1,[FieldTypeId]=11,[RepeatColumns]=-1,[FieldNO]=6,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

</div>
				</li>
			</ul>',[LastHtml]='</div>
	</div>
	<!-- 结束 --></div>
</li>
</ul>
</div> 
<div class="div_tabs">
<div class="tabs-content" tabid="1" style="display: none; ">
<ul isgroup="1" groupid="3" class="ul-group" style="width: 960px;" isrple="1">
<li areaid="9" style="width: 478px; height: 32px; position: static;" class="li-area" scroll="no"><label class="area-title" fldid="-1" istitle="1" style="padding:7px 5px 7px 7px;">请编辑.. </label>
<div class="field-content" style="padding:7px 5px 7px 7px;">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="">

</div>
</div> 
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='',[CtrlbackHtml]='',[CtrlLastHtml]='',[TableIndex]=7,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2028,' where  [FldUId]='61b57ecb-fda2-b94c-288b-238146312356' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=310

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=310  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(310,null,'Dcx_Role','Dcx_Role',1,0,0,0,0,0,29,1,3,'admin','2013-12-15 17:32:20',3,'admin','2013-12-15 17:32:20',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='Dcx_Role',[DBTableByName]='Dcx_Role',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=29,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:20',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:20',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=310 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=310  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17514,1,29,310,'int',1,1,1,'Dcx_Role','RoleId','RoleId','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Role',[FieldName]='RoleId',[FieldByname]='RoleId',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=310  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=310  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17515,2,29,310,'varchar',2,1,1,'Dcx_Role','RoleName','RoleName','',0,0,0,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Role',[FieldName]='RoleName',[FieldByname]='RoleName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=310  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=310  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17516,3,29,310,'tinyint',23,1,1,'Dcx_Role','SystemRoleType','SystemRoleType','0',0,0,0,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Role',[FieldName]='SystemRoleType',[FieldByname]='SystemRoleType',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=310  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=310  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17517,4,29,310,'int',1,1,1,'Dcx_Role','ParentId','ParentId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Role',[FieldName]='ParentId',[FieldByname]='ParentId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=310  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=310  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17518,5,29,310,'int',1,1,1,'Dcx_Role','RoleOrder','RoleOrder','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Role',[FieldName]='RoleOrder',[FieldByname]='RoleOrder',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=310  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=310  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17519,6,29,310,'bit',4,1,1,'Dcx_Role','IsDisplay','IsDisplay','1',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Role',[FieldName]='IsDisplay',[FieldByname]='IsDisplay',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=310  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=310  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17520,7,29,310,'int',1,1,1,'Dcx_Role','RoleTypeId','RoleTypeId','1',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Role',[FieldName]='RoleTypeId',[FieldByname]='RoleTypeId',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=310  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=310  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17521,8,29,310,'int',1,1,1,'Dcx_Role','CreatorId','CreatorId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Role',[FieldName]='CreatorId',[FieldByname]='CreatorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=310  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=310  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17522,9,29,310,'varchar',2,1,1,'Dcx_Role','Creator','Creator','',0,0,1,40,40,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Role',[FieldName]='Creator',[FieldByname]='Creator',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=40,[Precision]=40,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=310  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=310  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17523,10,29,310,'datetime',3,1,1,'Dcx_Role','CreateTime','CreateTime','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Role',[FieldName]='CreateTime',[FieldByname]='CreateTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=310  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=310  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17524,11,29,310,'varchar',2,1,1,'Dcx_Role','Remark','Remark','',0,0,1,20,20,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Role',[FieldName]='Remark',[FieldByname]='Remark',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=20,[Precision]=20,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=310  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=310  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17525,12,29,310,'int',1,1,1,'Dcx_Role','EditorId','EditorId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Role',[FieldName]='EditorId',[FieldByname]='EditorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=310  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=310  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17526,13,29,310,'datetime',3,1,1,'Dcx_Role','EditTime','EditTime','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Role',[FieldName]='EditTime',[FieldByname]='EditTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=310  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=310  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17527,14,29,310,'int',1,1,1,'Dcx_Role','AccountId','AccountId','1',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Role',[FieldName]='AccountId',[FieldByname]='AccountId',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=310  and  [FieldId]=14 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 



Delete from [Dcx_EntityPrivilege]  where [EntId]=2028

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2028  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11064,3276,2028,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=3276,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2028  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=3277  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(3277,'a6a36eb1-10bc-4794-96d5-c0c3bee924b3','职位管理',3273,'/Template/default/form/ListForm/ListForm_Selector.aspx',48,'/images/default.gif','/images/default.gif',10,'rightFrame',0,0,'',29,-1,29,1,1,1,null,'',0,0,'',null,3,'admin','2013-10-9 4:20:36',1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='a6a36eb1-10bc-4794-96d5-c0c3bee924b3',[MenuName]='职位管理',[ParentId]=3273,[ProPath]='/Template/default/form/ListForm/ListForm_Selector.aspx',[TemplateId]=48,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=10,[Target]='rightFrame',[IsOpen]=0,[IsHidden]=0,[Remark]='',[SSystemId]=29,[SMenuId]=-1,[SystemId]=29,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=0,[Creator]='',[CreateTime]=null,[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-9 4:20:36',[AccountId]=1 where  [MenuId]=3277 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3277  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(1040,3277,'职位管理','Public',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='职位管理',[RoleName]='Public',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3277  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3277  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(972,3277,'职位管理','系统管理员',3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='职位管理',[RoleName]='系统管理员',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3277  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2011  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2011,3277,'职位管理',1,289,0,'Dcx_Position',0,0,1,29,2011,null,null,29,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3277,[EntName]='职位管理',[MEnt]=1,[DBTableId]=289,[DBConnectId]=0,[DBTableName]='Dcx_Position',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2011,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2011 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=2011

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2011  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11050,3277,2011,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=3277,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2011  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2011

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2011  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20442,29,3277,2011,60,2,9,2,5,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3277,[TemplateId]=60,[ModuleId]=9,[GroupId]=2,[AreaId]=5,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2011  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2011  and  [ModuleTypeId]=17  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20443,29,3277,2011,60,17,15,2,6,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3277,[TemplateId]=60,[ModuleId]=15,[GroupId]=2,[AreaId]=6,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2011  and  [ModuleTypeId]=17 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_ListForm_Run]  where [EntId]=2011

--Dcx_ListForm_Run
      if (select count(1) from [Dcx_ListForm_Run] where  [EntId]=2011  )<1 
      begin 
           Insert into [Dcx_ListForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[OtherMsg],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[AccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime])values('80730b29-1cc0-f255-3050-44f7701071ea','职位管理',2011,-1,'','',0,'<script type="text/javascript" src="/js/module/Report/ReportRun.js"></script>','','DcxRun.ListF_2011= {"MenuId":3277,"MEntId":2011,"EntName":"职位管理","CtrlPrex":"ListF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2011":{"EntId":2011,"KeyFieldValue":"","DBTableName":"","KeyField":"PositionId","KeydtId":2,"JoinKeyField":"PositionId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}


if(runObj.NoInit)
{
   entMsg.E2011.FormData=null;
   mEntMsg.RowCount=0;mEntMsg.RecortCount=0;entMsg.E2011.RowCount=0;

}

 DcxForm.InitSheetForm(2011,''ListF_'',entMsg.E2011.FormData,entMsg.E2011.$listContainer);

 DcxForm.DealPage(2011,''ListF_'');

 DcxForm.SetPower(2011,''ListF_'');


}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":11,"Ent":[{"EntId":2011,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,20}$","err":"限制0-20个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":10,"vlId":5,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"此值已存在,请重新输入","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":2,"Vld":[{"Id":4,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,100}$","err":"限制0-100个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":11,"vlId":5,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"此值已存在,请重新输入","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":3,"Vld":[{"Id":6,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":4,"Vld":[{"Id":7,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":5,"Vld":[]}]}]};
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.ListF_2011.EntMsg.E2011.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_Position","EntId":2011,"KeyField":"PositionId","MKeyField":"PositionId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"PositionCode":{"DtId":2,"DB":1,"CId":1,"FL":20},"PositionName":{"DtId":2,"DB":1,"CId":1,"FL":100},"ParentId":{"DtId":1,"DB":1,"CId":34,"FL":4},"OrderNO":{"DtId":1,"DB":1,"CId":1,"FL":4},"Remark":{"DtId":2,"DB":1,"CId":1,"FL":-1}},"Data":{"Row":[]}};
}
DcxRun.ListF_2011.EntMsg.E2011.GetDataRowModel=function()
{
    return {"PositionCode":"","PositionName":"","ParentId":-1,"OrderNO":-1,"Remark":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"PositionId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/



 function GetLinkCtrl_ListF_2011(obj,FieldName,EntId)
{

}
/****************上：AJAX回调函数******************/


DcxRun.ListF_2011.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitLf(2011,''ListF_'',buildNew,closeDlg);

}','<$2011$>select *  from (select row_number() over( order by [PositionId])as dcx_rowid,[OrderNO],[PositionCode],[PositionName],[ParentId],[Remark],[PositionId] from Dcx_Position  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$2011$><$2011:Count$>select count([PositionId]) from Dcx_Position where {$SearchArea}</$2011:Count$>','2011*PositionId*2*PositionId*2*Dcx_Position*职位管理',10,'','','',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',1,3,'admin','2012-12-6 19:48:51',3,'admin','2013-10-2 18:14:14')
      end
      else 
      begin 
           update [Dcx_ListForm_Run] set [FormId]='80730b29-1cc0-f255-3050-44f7701071ea',[FormName]='职位管理',[ModuleId]=-1,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script type="text/javascript" src="/js/module/Report/ReportRun.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.ListF_2011= {"MenuId":3277,"MEntId":2011,"EntName":"职位管理","CtrlPrex":"ListF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2011":{"EntId":2011,"KeyFieldValue":"","DBTableName":"","KeyField":"PositionId","KeydtId":2,"JoinKeyField":"PositionId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}


if(runObj.NoInit)
{
   entMsg.E2011.FormData=null;
   mEntMsg.RowCount=0;mEntMsg.RecortCount=0;entMsg.E2011.RowCount=0;

}

 DcxForm.InitSheetForm(2011,''ListF_'',entMsg.E2011.FormData,entMsg.E2011.$listContainer);

 DcxForm.DealPage(2011,''ListF_'');

 DcxForm.SetPower(2011,''ListF_'');


}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":11,"Ent":[{"EntId":2011,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,20}$","err":"限制0-20个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":10,"vlId":5,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"此值已存在,请重新输入","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":2,"Vld":[{"Id":4,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,100}$","err":"限制0-100个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":11,"vlId":5,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"此值已存在,请重新输入","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":3,"Vld":[{"Id":6,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":4,"Vld":[{"Id":7,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":5,"Vld":[]}]}]};
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.ListF_2011.EntMsg.E2011.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_Position","EntId":2011,"KeyField":"PositionId","MKeyField":"PositionId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"PositionCode":{"DtId":2,"DB":1,"CId":1,"FL":20},"PositionName":{"DtId":2,"DB":1,"CId":1,"FL":100},"ParentId":{"DtId":1,"DB":1,"CId":34,"FL":4},"OrderNO":{"DtId":1,"DB":1,"CId":1,"FL":4},"Remark":{"DtId":2,"DB":1,"CId":1,"FL":-1}},"Data":{"Row":[]}};
}
DcxRun.ListF_2011.EntMsg.E2011.GetDataRowModel=function()
{
    return {"PositionCode":"","PositionName":"","ParentId":-1,"OrderNO":-1,"Remark":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"PositionId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/



 function GetLinkCtrl_ListF_2011(obj,FieldName,EntId)
{

}
/****************上：AJAX回调函数******************/


DcxRun.ListF_2011.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitLf(2011,''ListF_'',buildNew,closeDlg);

}',[LoadingSql]='<$2011$>select *  from (select row_number() over( order by [PositionId])as dcx_rowid,[OrderNO],[PositionCode],[PositionName],[ParentId],[Remark],[PositionId] from Dcx_Position  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$2011$><$2011:Count$>select count([PositionId]) from Dcx_Position where {$SearchArea}</$2011:Count$>',[OtherMsg]='2011*PositionId*2*PositionId*2*Dcx_Position*职位管理',[PageSize]=10,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[AccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-6 19:48:51',[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-2 18:14:14' where  [EntId]=2011 
      end




--Dcx_ListFormField_Run
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='de3c5e08-cb53-224c-3fd3-2ec0088ed6b4'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(66,'de3c5e08-cb53-224c-3fd3-2ec0088ed6b4',2011,2011,'00000000-0000-0000-0000-000000000000',1,'MEntBegin',-1,2,-1,'',5,-1,1,0,-1,12,-1,-1,0,0,'','','','','<!-- 开始 -->
<!-- 功能键栏 -->
<div class="listform toolbar-opt">
<!--功能键栏-->
<ul islonly="1" class="itemUl1 repUl1" isgroup="1" groupid="1" style="width: 860px;" isrple="1"> <li class="putCont" scroll="no" style="position: static;">
 <input class="chPut" id="ckb_CheckAllListF_2011" onclick="javascript:DcxCom.CheckedAll(this,2011,''ListF_'');" type="checkbox" rel="chkall">
<label for="ckb_CheckAllListF_2011">全选</label></li>
<li areaid="15" class="listTit" style="position: static;" scroll="no"><a id="ListF_2011_btn_buildNew" class="playAll" title="保   存" href="javascript:void(0);" onclick="javascript:DcxRun.ListF_2011.SubmitForm();">保   存</a></li>
<li areaid="16" class="listTit" style="position: static;" scroll="no"><a id="ListF_2011_btn_buildNew" class="lMdBtn" title="添加1行" href="javascript:void(0);" onclick="javascript:DcxForm.AddRow(this,1,2011,''ListF_'');">添   加</a></li>
<li areaid="17" class="listTit" style="position: static;" scroll="no"><a id="ListF_2011_btn_buildNew" class="lMdBtn" title="添加5行" href="javascript:void(0);" onclick="javascript:DcxForm.AddRow(this,5,2011,''ListF_'');">添加5行</a></li>
<li areaid="18" class="listTit" style="position: static;" scroll="no"><a id="ListF_2011_deletebut" class="playAll" title="删   除" href="javascript:void(0);" onclick="javascript:DcxForm.DeleteRow(this,2011,''ListF_'');">删   除</a></li>
<li areaid="19" class="listTit" style="position: static;" scroll="no"><a id="ListF_2011_deletebut" class="lMdBtn" title="删除全部" href="javascript:void(0);" onclick="javascript:DcxForm.DeleteAllRow(this,2011,''ListF_'');">删除全部</a></li>

<li areaid="21" class="listTit" style="position: static;" scroll="no"><a id="ListF_2011_refreshbut" class="lMdBtn" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(2011,''ListF_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="22" class="listTit_page" style="width: 280px; height: 30px; position: static;" id="li2_ListF_2011" scroll="no"><a class="btn_page firstpage" href="javascript:void(0);" id="ListF_2011_FirstPage" isfirstpage="1" onclick="javascript:DcxSch.GetHtml(2011,''ListF_'',''h'');" title="首页">首页</a> <a class="btn_page prvpage" href="javascript:void(0);" id="ListF_2011_PrevPage" isprevpage="1" onclick="javascript:DcxSch.GetHtml(2011,''ListF_'',''p'');" title="上一页">上一页</a> <span class="ddl_pageindex"> <select id="ddl_ListF_2011_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(2011,''ListF_'',''a'',this);"> </select> </span> <a class="btn_page nextpage" href="javascript:void(0);" id="ListF_2011_NextPage" isnextpage="1" onclick="javascript:DcxSch.GetHtml(2011,''ListF_'',''n'');" title="下一页">下一页</a> <a class="btn_page lastpage" href="javascript:void(0);" id="ListF_2011_LastPage" islastpage="1" onclick="javascript:DcxSch.GetHtml(2011,''ListF_'',''t'');" title="最后一页">最后一页</a> <span class="page">第</span> <span class="page_data" id="ListF_2011_CurrentPage_lbl" iscurpage="1">0</span> <span class="page">页,共</span>&nbsp; <span class="page_data" id="ListF_2011_PageCount_lbl" ispagecount="1">0</span> <span class="page">页 </span> <span class="page_data" id="ListF_2011_RecCount_lbl" isrecortcount="1">0</span> <span class="page">条记录</span> </li>
</ul>
</div>
<div class="listform listarea">
<div class="lf-head">
<ul isgroup="1" islisthead="1" islonly="1" groupid="2" class="ul-listtitle" style="width: 860px;" isrple="1">
<li areaid="23" class="li-head-item" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><label class="head-label" istitle="1">序号 </label></li><li areaid="24" class="li-head-item" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><label class="head-label" istitle="1">编号 </label></li><li areaid="30" class="li-head-item" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no">
<label class="head-label" istitle="1">职位名称</label></li><li areaid="29" class="li-head-item" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><label class="head-label" istitle="1">上级职位</label></li><li areaid="33" class="li-head-item" style="width: 170px; height: 30px; clear: right; float: left; position: static;" scroll="no">
<label class="head-label" istitle="1">备注 </label></li>    </ul>
</div>
<div class="lf-body">','','','','','','',3,-1,-1,-1,1,'2011,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=66,[Form_EntId]=2011,[EntId]=2011,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[FieldName]='MEntBegin',[FieldDataTypeId]=-1,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=-1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=-1,[FieldTypeId]=12,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<!-- 开始 -->
<!-- 功能键栏 -->
<div class="listform toolbar-opt">
<!--功能键栏-->
<ul islonly="1" class="itemUl1 repUl1" isgroup="1" groupid="1" style="width: 860px;" isrple="1"> <li class="putCont" scroll="no" style="position: static;">
 <input class="chPut" id="ckb_CheckAllListF_2011" onclick="javascript:DcxCom.CheckedAll(this,2011,''ListF_'');" type="checkbox" rel="chkall">
<label for="ckb_CheckAllListF_2011">全选</label></li>
<li areaid="15" class="listTit" style="position: static;" scroll="no"><a id="ListF_2011_btn_buildNew" class="playAll" title="保   存" href="javascript:void(0);" onclick="javascript:DcxRun.ListF_2011.SubmitForm();">保   存</a></li>
<li areaid="16" class="listTit" style="position: static;" scroll="no"><a id="ListF_2011_btn_buildNew" class="lMdBtn" title="添加1行" href="javascript:void(0);" onclick="javascript:DcxForm.AddRow(this,1,2011,''ListF_'');">添   加</a></li>
<li areaid="17" class="listTit" style="position: static;" scroll="no"><a id="ListF_2011_btn_buildNew" class="lMdBtn" title="添加5行" href="javascript:void(0);" onclick="javascript:DcxForm.AddRow(this,5,2011,''ListF_'');">添加5行</a></li>
<li areaid="18" class="listTit" style="position: static;" scroll="no"><a id="ListF_2011_deletebut" class="playAll" title="删   除" href="javascript:void(0);" onclick="javascript:DcxForm.DeleteRow(this,2011,''ListF_'');">删   除</a></li>
<li areaid="19" class="listTit" style="position: static;" scroll="no"><a id="ListF_2011_deletebut" class="lMdBtn" title="删除全部" href="javascript:void(0);" onclick="javascript:DcxForm.DeleteAllRow(this,2011,''ListF_'');">删除全部</a></li>

<li areaid="21" class="listTit" style="position: static;" scroll="no"><a id="ListF_2011_refreshbut" class="lMdBtn" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(2011,''ListF_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="22" class="listTit_page" style="width: 280px; height: 30px; position: static;" id="li2_ListF_2011" scroll="no"><a class="btn_page firstpage" href="javascript:void(0);" id="ListF_2011_FirstPage" isfirstpage="1" onclick="javascript:DcxSch.GetHtml(2011,''ListF_'',''h'');" title="首页">首页</a> <a class="btn_page prvpage" href="javascript:void(0);" id="ListF_2011_PrevPage" isprevpage="1" onclick="javascript:DcxSch.GetHtml(2011,''ListF_'',''p'');" title="上一页">上一页</a> <span class="ddl_pageindex"> <select id="ddl_ListF_2011_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(2011,''ListF_'',''a'',this);"> </select> </span> <a class="btn_page nextpage" href="javascript:void(0);" id="ListF_2011_NextPage" isnextpage="1" onclick="javascript:DcxSch.GetHtml(2011,''ListF_'',''n'');" title="下一页">下一页</a> <a class="btn_page lastpage" href="javascript:void(0);" id="ListF_2011_LastPage" islastpage="1" onclick="javascript:DcxSch.GetHtml(2011,''ListF_'',''t'');" title="最后一页">最后一页</a> <span class="page">第</span> <span class="page_data" id="ListF_2011_CurrentPage_lbl" iscurpage="1">0</span> <span class="page">页,共</span>&nbsp; <span class="page_data" id="ListF_2011_PageCount_lbl" ispagecount="1">0</span> <span class="page">页 </span> <span class="page_data" id="ListF_2011_RecCount_lbl" isrecortcount="1">0</span> <span class="page">条记录</span> </li>
</ul>
</div>
<div class="listform listarea">
<div class="lf-head">
<ul isgroup="1" islisthead="1" islonly="1" groupid="2" class="ul-listtitle" style="width: 860px;" isrple="1">
<li areaid="23" class="li-head-item" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><label class="head-label" istitle="1">序号 </label></li><li areaid="24" class="li-head-item" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><label class="head-label" istitle="1">编号 </label></li><li areaid="30" class="li-head-item" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no">
<label class="head-label" istitle="1">职位名称</label></li><li areaid="29" class="li-head-item" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><label class="head-label" istitle="1">上级职位</label></li><li areaid="33" class="li-head-item" style="width: 170px; height: 30px; clear: right; float: left; position: static;" scroll="no">
<label class="head-label" istitle="1">备注 </label></li>    </ul>
</div>
<div class="lf-body">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='',[CtrlbackHtml]='',[CtrlLastHtml]='',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2011,' where  [FldUId]='de3c5e08-cb53-224c-3fd3-2ec0088ed6b4' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='08638ebc-0923-593b-eee7-a80828bb3355'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'08638ebc-0923-593b-eee7-a80828bb3355',2011,2011,'00000000-0000-0000-0000-000000000000',2,'OrderNO',1,1,5,'@index',5,1,1,0,1,1,-1,-1,1,0,'','','','','isgroup="1" groupid="3" class="ul-listfield" style="width: 860px;" isrple="1">
<li areaid="27" class="li-listfield" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><div class="list-field">
	<span class="form-ctr" isfcontain="1">','','','<input  id="d2011_OrderNO%trindex%" CtrlPrex="ListF_"','type="text" class="lt-txt"  style="width:150px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2011,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2011,''ListF_'',2011,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2011,''ListF_'',2011,true);" EntId="2011" IsField=1 DBField=1 IsPost=1 FieldName="OrderNO" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="4" vlk=0    value="','" />','',3,-1,-1,-1,1,'2011,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=4,[Form_EntId]=2011,[EntId]=2011,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[FieldName]='OrderNO',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=5,[DefaultValue]='@index',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='isgroup="1" groupid="3" class="ul-listfield" style="width: 860px;" isrple="1">
<li areaid="27" class="li-listfield" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><div class="list-field">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<input  id="d2011_OrderNO%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='type="text" class="lt-txt"  style="width:150px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2011,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2011,''ListF_'',2011,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2011,''ListF_'',2011,true);" EntId="2011" IsField=1 DBField=1 IsPost=1 FieldName="OrderNO" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="4" vlk=0    value="',[CtrlbackHtml]='" />',[CtrlLastHtml]='',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2011,' where  [FldUId]='08638ebc-0923-593b-eee7-a80828bb3355' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='b9615972-640b-5133-5a29-773599b494e9'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'b9615972-640b-5133-5a29-773599b494e9',2011,2011,'00000000-0000-0000-0000-000000000000',3,'PositionCode',2,2,2,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span><div isrmk="1" style="clear: none; padding-left: 4px;" class="form-rmk"></div><div iserr="1" class="form-vld"></div>

</div>
</li><li areaid="25" class="li-listfield" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><div class="list-field">
	<span class="form-ctr" isfcontain="1">','','','<input  id="d2011_PositionCode%trindex%" CtrlPrex="ListF_"','type="text" class="lt-txt"  style="width:150px;" AutoAddDigit=1 Digit="2" onchange ="javascript:DcxForm.ListTxtChange(this,2011,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2011,''ListF_'',2011,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2011,''ListF_'',2011,true);" EntId="2011" IsField=1 DBField=1 IsPost=1 FieldName="PositionCode" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    value="','" />','',3,-1,-1,-1,1,'2011,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=1,[Form_EntId]=2011,[EntId]=2011,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[FieldName]='PositionCode',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=2,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span><div isrmk="1" style="clear: none; padding-left: 4px;" class="form-rmk"></div><div iserr="1" class="form-vld"></div>

</div>
</li><li areaid="25" class="li-listfield" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><div class="list-field">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<input  id="d2011_PositionCode%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='type="text" class="lt-txt"  style="width:150px;" AutoAddDigit=1 Digit="2" onchange ="javascript:DcxForm.ListTxtChange(this,2011,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2011,''ListF_'',2011,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2011,''ListF_'',2011,true);" EntId="2011" IsField=1 DBField=1 IsPost=1 FieldName="PositionCode" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    value="',[CtrlbackHtml]='" />',[CtrlLastHtml]='',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2011,' where  [FldUId]='b9615972-640b-5133-5a29-773599b494e9' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='03b3a697-1630-ecd2-69a1-91874a9f0072'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'03b3a697-1630-ecd2-69a1-91874a9f0072',2011,2011,'00000000-0000-0000-0000-000000000000',4,'PositionName',2,2,3,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span><div iserr="1" class="form-vld"></div>

</div>
</li><li areaid="26" class="li-listfield" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><div class="list-field">
	<span class="form-ctr" isfcontain="1">','','','<input  id="d2011_PositionName%trindex%" CtrlPrex="ListF_"','type="text" class="lt-txt"  style="width:150px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2011,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2011,''ListF_'',2011,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2011,''ListF_'',2011,true);" EntId="2011" IsField=1 DBField=1 IsPost=1 FieldName="PositionName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    value="','" />','',3,-1,-1,-1,1,'2011,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=2,[Form_EntId]=2011,[EntId]=2011,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=4,[FieldName]='PositionName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=3,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span><div iserr="1" class="form-vld"></div>

</div>
</li><li areaid="26" class="li-listfield" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><div class="list-field">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<input  id="d2011_PositionName%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='type="text" class="lt-txt"  style="width:150px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2011,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2011,''ListF_'',2011,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2011,''ListF_'',2011,true);" EntId="2011" IsField=1 DBField=1 IsPost=1 FieldName="PositionName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    value="',[CtrlbackHtml]='" />',[CtrlLastHtml]='',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2011,' where  [FldUId]='03b3a697-1630-ecd2-69a1-91874a9f0072' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='72ef83d6-dc4a-1b6f-2a47-8806fbc8390b'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'72ef83d6-dc4a-1b6f-2a47-8806fbc8390b',2011,2011,'00000000-0000-0000-0000-000000000000',5,'ParentId',1,1,4,'SELECT [PositionName] ,[PositionId]  FROM [Dcx_Position] where ParentId<1',2,2,1,0,34,1,-1,-1,1,0,'','','','','</span><div iserr="1" class="form-vld"></div>
</div>
</li><li areaid="28" class="li-listfield" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><div class="list-field" style="padding-top:2px;padding-left:4px;">
	<span class="form-ctr" isfcontain="1">','','','<div id="d2011_ParentId%trindex%" CtrlPrex="ListF_"','class="lt-ddl" style="" IsForField=1 EntId="2011" FId="3" Vtp="2" RId="2" Isc="1" CId="34" FieldName="ParentId" ><input  id="d2011_ParentId%trindex%_Text" type="text" class="lt-ddl-txt"  readonly="readOnly"  CId="34" FId="3" Vtp="2"  RId="2" Isc="1"  style="width:150px;" onclick ="javascript:DcxDdl.ShowDialogLf(this,2011,''ParentId'',false);" onchange ="javascript:if(!DcxVld.Validate(this,2011,''ListF_'',2011,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2011,''ListF_'',2011,true);" onkeyup ="javascript:DcxDdl.ShowDialogLf(this,2011,''ParentId'',true);" onmouseover ="javascript:DcxForm.ListTxtMouseOver(this,2011,''ParentId'');" value="','" /> <span class="lt-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div><input type="hidden"  id="d2011_ParentId%trindex%" CtrlPrex="ListF_" value="','"  EntId="2011" IsField=1 DBField=1 IsPost=1 FieldName="ParentId" dType="1" Vtp="2" RDT="1" Isc="1" RId="2" CId="34" FId="3" vlk=0    />',3,-1,-1,-1,1,'2011,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=3,[Form_EntId]=2011,[EntId]=2011,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=5,[FieldName]='ParentId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=4,[DefaultValue]='SELECT [PositionName] ,[PositionId]  FROM [Dcx_Position] where ParentId<1',[ValueType]=2,[RunValueType]=2,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=34,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span><div iserr="1" class="form-vld"></div>
</div>
</li><li areaid="28" class="li-listfield" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><div class="list-field" style="padding-top:2px;padding-left:4px;">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<div id="d2011_ParentId%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='class="lt-ddl" style="" IsForField=1 EntId="2011" FId="3" Vtp="2" RId="2" Isc="1" CId="34" FieldName="ParentId" ><input  id="d2011_ParentId%trindex%_Text" type="text" class="lt-ddl-txt"  readonly="readOnly"  CId="34" FId="3" Vtp="2"  RId="2" Isc="1"  style="width:150px;" onclick ="javascript:DcxDdl.ShowDialogLf(this,2011,''ParentId'',false);" onchange ="javascript:if(!DcxVld.Validate(this,2011,''ListF_'',2011,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2011,''ListF_'',2011,true);" onkeyup ="javascript:DcxDdl.ShowDialogLf(this,2011,''ParentId'',true);" onmouseover ="javascript:DcxForm.ListTxtMouseOver(this,2011,''ParentId'');" value="',[CtrlbackHtml]='" /> <span class="lt-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div><input type="hidden"  id="d2011_ParentId%trindex%" CtrlPrex="ListF_" value="',[CtrlLastHtml]='"  EntId="2011" IsField=1 DBField=1 IsPost=1 FieldName="ParentId" dType="1" Vtp="2" RDT="1" Isc="1" RId="2" CId="34" FId="3" vlk=0    />',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2011,' where  [FldUId]='72ef83d6-dc4a-1b6f-2a47-8806fbc8390b' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='a682b9be-9dbc-c5e5-384f-9ffa2a343d15'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'a682b9be-9dbc-c5e5-384f-9ffa2a343d15',2011,2011,'00000000-0000-0000-0000-000000000000',6,'Remark',2,2,6,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>

</div>
</li><li areaid="32" class="li-listfield" style="width: 170px; height: 30px; clear: right; float: left; position: static;" scroll="no"><div class="list-field">
	<span class="form-ctr" isfcontain="1">','','','<input  id="d2011_Remark%trindex%" CtrlPrex="ListF_"','type="text" class="lt-txt"  style="width:150px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2011,''ListF_'');" EntId="2011" IsField=1 DBField=1 IsPost=1 FieldName="Remark" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="5" vlk=0    value="','" />','',3,-1,-1,-1,1,'2011,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=5,[Form_EntId]=2011,[EntId]=2011,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=6,[FieldName]='Remark',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=6,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

</div>
</li><li areaid="32" class="li-listfield" style="width: 170px; height: 30px; clear: right; float: left; position: static;" scroll="no"><div class="list-field">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<input  id="d2011_Remark%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='type="text" class="lt-txt"  style="width:150px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2011,''ListF_'');" EntId="2011" IsField=1 DBField=1 IsPost=1 FieldName="Remark" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="5" vlk=0    value="',[CtrlbackHtml]='" />',[CtrlLastHtml]='',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2011,' where  [FldUId]='a682b9be-9dbc-c5e5-384f-9ffa2a343d15' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='8899cf55-a052-2b35-f768-77644b6c7b0f'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(67,'8899cf55-a052-2b35-f768-77644b6c7b0f',2011,2011,'00000000-0000-0000-0000-000000000000',7,'MEntEnd',-1,2,-1,'',5,-1,1,0,-1,13,-1,-1,0,0,'','','','','</span>
</div>
</li>    </ul>','</div>
</div>
<!-- 结束 -->','','','','','',3,-1,-1,-1,1,'2011,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=67,[Form_EntId]=2011,[EntId]=2011,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=7,[FieldName]='MEntEnd',[FieldDataTypeId]=-1,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=-1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=-1,[FieldTypeId]=13,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>    </ul>',[LastHtml]='</div>
</div>
<!-- 结束 -->',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='',[CtrlbackHtml]='',[CtrlLastHtml]='',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2011,' where  [FldUId]='8899cf55-a052-2b35-f768-77644b6c7b0f' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=289

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=289  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(289,null,'Dcx_Position','Dcx_Position',1,0,0,0,0,0,29,1,3,'admin','2013-12-15 17:32:19',3,'admin','2013-12-15 17:32:19',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='Dcx_Position',[DBTableByName]='Dcx_Position',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=29,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:19',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:19',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=289 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=289  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17478,1,29,289,'int',1,1,1,'Dcx_Position','PositionId','PositionId','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Position',[FieldName]='PositionId',[FieldByname]='PositionId',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=289  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=289  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17479,2,29,289,'varchar',2,1,1,'Dcx_Position','PositionCode','PositionCode','',0,0,0,20,20,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Position',[FieldName]='PositionCode',[FieldByname]='PositionCode',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=20,[Precision]=20,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=289  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=289  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17480,3,29,289,'varchar',2,1,1,'Dcx_Position','PositionName','PositionName','',0,0,0,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Position',[FieldName]='PositionName',[FieldByname]='PositionName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=289  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=289  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17481,4,29,289,'int',1,1,1,'Dcx_Position','ParentId','ParentId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Position',[FieldName]='ParentId',[FieldByname]='ParentId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=289  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=289  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17482,5,29,289,'int',1,1,1,'Dcx_Position','OrderNO','OrderNO','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Position',[FieldName]='OrderNO',[FieldByname]='OrderNO',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=289  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=289  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17483,6,29,289,'varchar',2,1,1,'Dcx_Position','Remark','Remark','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Position',[FieldName]='Remark',[FieldByname]='Remark',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=289  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=289  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17484,7,29,289,'int',1,1,1,'Dcx_Position','AccountId','AccountId','1',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Position',[FieldName]='AccountId',[FieldByname]='AccountId',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=289  and  [FieldId]=7 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=3278  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(3278,'638c40d3-3a0a-4d0f-b1cf-202a89389728','系统管理',3290,'',-1,'/images/default.gif','/images/default.gif',-1,'rightFrame',0,0,'',29,-1,29,0,0,1,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='638c40d3-3a0a-4d0f-b1cf-202a89389728',[MenuName]='系统管理',[ParentId]=3290,[ProPath]='',[TemplateId]=-1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=-1,[Target]='rightFrame',[IsOpen]=0,[IsHidden]=0,[Remark]='',[SSystemId]=29,[SMenuId]=-1,[SystemId]=29,[EntityCount]=0,[VersionId]=0,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=3278 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3278  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(1041,3278,'系统管理','Public',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='系统管理',[RoleName]='Public',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3278  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3278  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(973,3278,'系统管理','系统管理员',3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='系统管理',[RoleName]='系统管理员',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3278  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=3279  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(3279,'4cee0e43-4c67-44e6-8c5f-95708f84b84e','基础资料',3290,'',-1,'/images/default.gif','/images/default.gif',0,'rightFrame',0,0,'',29,-1,29,0,0,1,null,'',0,0,'',null,3,'admin','2013-9-3 6:59:07',1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='4cee0e43-4c67-44e6-8c5f-95708f84b84e',[MenuName]='基础资料',[ParentId]=3290,[ProPath]='',[TemplateId]=-1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=0,[Target]='rightFrame',[IsOpen]=0,[IsHidden]=0,[Remark]='',[SSystemId]=29,[SMenuId]=-1,[SystemId]=29,[EntityCount]=0,[VersionId]=0,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=0,[Creator]='',[CreateTime]=null,[EditorId]=3,[Editor]='admin',[EditTime]='2013-9-3 6:59:07',[AccountId]=1 where  [MenuId]=3279 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3279  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(1042,3279,'基础资料','Public',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='基础资料',[RoleName]='Public',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3279  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3279  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(974,3279,'基础资料','系统管理员',3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='基础资料',[RoleName]='系统管理员',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3279  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=3283  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(3283,'95fb0871-19fc-44cc-a0d3-69701d72fa5d','员工管理',3273,'/System/ListReport_Tree001.aspx?menuid=3283&navindex=3',1,'/images/default.gif','/images/default.gif',1,'rightFrame',0,0,'',29,-1,29,1,1,1,'2013-7-10 1:32:55','',0,0,'',null,3,'admin','2013-10-9 4:19:52',1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='95fb0871-19fc-44cc-a0d3-69701d72fa5d',[MenuName]='员工管理',[ParentId]=3273,[ProPath]='/System/ListReport_Tree001.aspx?menuid=3283&navindex=3',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=1,[Target]='rightFrame',[IsOpen]=0,[IsHidden]=0,[Remark]='',[SSystemId]=29,[SMenuId]=-1,[SystemId]=29,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]='2013-7-10 1:32:55',[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=0,[Creator]='',[CreateTime]=null,[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-9 4:19:52',[AccountId]=1 where  [MenuId]=3283 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3283  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(1043,3283,'员工管理','Public',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='员工管理',[RoleName]='Public',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3283  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3283  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(1012,3283,null,'系统管理员',3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]='系统管理员',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3283  and  [RoleId]=3 
      end
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3283  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(1014,3283,'员工管理','系统管理员',3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='员工管理',[RoleName]='系统管理员',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3283  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2037  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2037,3283,'员工管理',1,129,0,'Dcx_Employee',0,0,1,29,2037,null,null,29,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3283,[EntName]='员工管理',[MEnt]=1,[DBTableId]=129,[DBConnectId]=0,[DBTableName]='Dcx_Employee',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2037,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2037 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=2037

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2037  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11072,3283,2037,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=3283,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2037  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2037

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2037  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20466,29,3283,2037,73,2,9,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3283,[TemplateId]=73,[ModuleId]=9,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2037  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2037  and  [ModuleTypeId]=5  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20467,29,3283,2037,73,5,25,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3283,[TemplateId]=73,[ModuleId]=25,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2037  and  [ModuleTypeId]=5 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2037  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20468,29,3283,2037,73,1,1,1,3,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3283,[TemplateId]=73,[ModuleId]=1,[GroupId]=1,[AreaId]=3,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2037  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2037  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20469,29,3283,2037,73,3,68,1,4,2,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3283,[TemplateId]=73,[ModuleId]=68,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2037  and  [ModuleTypeId]=3 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2037  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20470,29,3283,2037,73,16,31,1,5,2,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3283,[TemplateId]=73,[ModuleId]=31,[GroupId]=1,[AreaId]=5,[ShowMode]=2,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2037  and  [ModuleTypeId]=16 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_AjaxForm_Run]  where [EntId]=2037

--Dcx_AjaxForm_Run
      if (select count(1) from [Dcx_AjaxForm_Run] where  [EntId]=2037  )<1 
      begin 
           Insert into [Dcx_AjaxForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('f84593f8-68aa-28ea-602b-40ba56b1335b','员工管理',2037,14,'','',0,'','','DcxRun.AjaxF_2037= {"MenuId":3283,"MEntId":2037,"EntName":"员工管理","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2037":{"EntId":2037,"KeyFieldValue":"","DBTableName":"","KeyField":"EmployeeId","KeydtId":2,"JoinKeyField":"EmployeeId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":51,"Ent":[{"EntId":2037,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":2,"Vld":[{"Id":4,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":3,"Vld":[{"Id":6,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":5,"Vld":[{"Id":8,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":6,"Vld":[{"Id":9,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":7,"Vld":[{"Id":10,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":8,"Vld":[{"Id":11,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":9,"Vld":[{"Id":12,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-)) (20|21|22|23|[0-1]?\\d):[0-5]?\\d:[0-5]?\\d|((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))","err":"格式要求为日期时间格式：yyyy-mm-dd  hh:mm:ss","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":10,"Vld":[]},{"FldId":11,"Vld":[{"Id":14,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":14,"Vld":[{"Id":17,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-)) (20|21|22|23|[0-1]?\\d):[0-5]?\\d:[0-5]?\\d|((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))","err":"格式要求为日期时间格式：yyyy-mm-dd  hh:mm:ss","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":15,"Vld":[{"Id":18,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":16,"Vld":[{"Id":19,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,200}$","err":"限制0-200个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":17,"Vld":[{"Id":20,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":18,"Vld":[{"Id":21,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":19,"Vld":[{"Id":22,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":20,"Vld":[{"Id":23,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,200}$","err":"限制0-200个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":21,"Vld":[{"Id":24,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":22,"Vld":[]},{"FldId":23,"Vld":[{"Id":25,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^(?:[1-9][0-9]{0,2}(,[0-9]{3})*|0).[0-9]{1,4}$","err":"格式要求为货币格式，例如1,100.12","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":24,"Vld":[]},{"FldId":25,"Vld":[{"Id":26,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^(?:[1-9][0-9]{0,2}(,[0-9]{3})*|0).[0-9]{1,4}$","err":"格式要求为货币格式，例如1,100.12","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":26,"Vld":[]},{"FldId":27,"Vld":[{"Id":27,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^(?:[1-9][0-9]{0,2}(,[0-9]{3})*|0).[0-9]{1,4}$","err":"格式要求为货币格式，例如1,100.12","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":28,"Vld":[{"Id":28,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^(?:[1-9][0-9]{0,2}(,[0-9]{3})*|0).[0-9]{1,4}$","err":"格式要求为货币格式，例如1,100.12","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":29,"Vld":[{"Id":29,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^(?:[1-9][0-9]{0,2}(,[0-9]{3})*|0).[0-9]{1,4}$","err":"格式要求为货币格式，例如1,100.12","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":30,"Vld":[{"Id":30,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^(?:[1-9][0-9]{0,2}(,[0-9]{3})*|0).[0-9]{1,4}$","err":"格式要求为货币格式，例如1,100.12","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":31,"Vld":[{"Id":31,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^(?:[1-9][0-9]{0,2}(,[0-9]{3})*|0).[0-9]{1,4}$","err":"格式要求为货币格式，例如1,100.12","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":32,"Vld":[{"Id":32,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":33,"Vld":[{"Id":33,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^(?:[1-9][0-9]{0,2}(,[0-9]{3})*|0).[0-9]{1,4}$","err":"格式要求为货币格式，例如1,100.12","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":34,"Vld":[]},{"FldId":35,"Vld":[]},{"FldId":36,"Vld":[{"Id":34,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^(?:[1-9][0-9]{0,2}(,[0-9]{3})*|0).[0-9]{1,4}$","err":"格式要求为货币格式，例如1,100.12","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":37,"Vld":[{"Id":35,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^(?:[1-9][0-9]{0,2}(,[0-9]{3})*|0).[0-9]{1,4}$","err":"格式要求为货币格式，例如1,100.12","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":38,"Vld":[{"Id":36,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":39,"Vld":[{"Id":37,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^(?:[1-9][0-9]{0,2}(,[0-9]{3})*|0).[0-9]{1,4}$","err":"格式要求为货币格式，例如1,100.12","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":40,"Vld":[{"Id":38,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":41,"Vld":[{"Id":39,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-)) (20|21|22|23|[0-1]?\\d):[0-5]?\\d:[0-5]?\\d|((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))","err":"格式要求为日期时间格式：yyyy-mm-dd  hh:mm:ss","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":42,"Vld":[]},{"FldId":43,"Vld":[]},{"FldId":44,"Vld":[]},{"FldId":45,"Vld":[{"Id":40,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":46,"Vld":[{"Id":41,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":47,"Vld":[{"Id":42,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":48,"Vld":[{"Id":43,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":49,"Vld":[{"Id":44,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":50,"Vld":[{"Id":45,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":51,"Vld":[{"Id":46,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,200}$","err":"限制0-200个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":52,"Vld":[{"Id":47,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":53,"Vld":[{"Id":48,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":54,"Vld":[{"Id":49,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-)) (20|21|22|23|[0-1]?\\d):[0-5]?\\d:[0-5]?\\d|((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))","err":"格式要求为日期时间格式：yyyy-mm-dd  hh:mm:ss","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":55,"Vld":[{"Id":50,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":51,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]}]}]};
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_2037.EntMsg.E2037.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_Employee","EntId":2037,"KeyField":"EmployeeId","MKeyField":"EmployeeId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"EmployeeCode":{"DtId":2,"DB":1,"CId":1,"FL":50},"Name":{"DtId":2,"DB":1,"CId":1,"FL":50},"Sex":{"DtId":2,"DB":1,"CId":7,"FL":50},"Marriage":{"DtId":2,"DB":1,"CId":13,"FL":50},"Email":{"DtId":2,"DB":1,"CId":1,"FL":50},"Nation":{"DtId":2,"DB":1,"CId":1,"FL":50},"NativePlace":{"DtId":2,"DB":1,"CId":1,"FL":50},"Birthday":{"DtId":3,"DB":1,"CId":5,"FL":8},"Telephone":{"DtId":2,"DB":1,"CId":1,"FL":50},"Contract":{"DtId":2,"DB":1,"CId":1,"FL":50},"QQ":{"DtId":2,"DB":1,"CId":1,"FL":50},"Education":{"DtId":2,"DB":1,"CId":3,"FL":50},"College":{"DtId":2,"DB":1,"CId":1,"FL":200},"WageLevel":{"DtId":2,"DB":1,"CId":1,"FL":50},"ComputerAllowance":{"DtId":4,"DB":1,"CId":7,"FL":1},"ComputerAllowanceAmount":{"DtId":5,"DB":1,"CId":1,"FL":8},"CameraAllowance":{"DtId":4,"DB":1,"CId":7,"FL":1},"CameraAllowanceAmount":{"DtId":5,"DB":1,"CId":1,"FL":8},"SocialInsurance":{"DtId":4,"DB":1,"CId":7,"FL":1},"SocialInsuranceAmount":{"DtId":5,"DB":1,"CId":1,"FL":8},"BaseWage":{"DtId":5,"DB":1,"CId":1,"FL":8},"MeritWage":{"DtId":5,"DB":1,"CId":1,"FL":8},"ProbationWage":{"DtId":5,"DB":1,"CId":1,"FL":8},"ProbationMeritWage":{"DtId":5,"DB":1,"CId":1,"FL":8},"BankAccount":{"DtId":2,"DB":1,"CId":1,"FL":50},"CompanyReserveAmount":{"DtId":5,"DB":1,"CId":1,"FL":8},"CompanyReserve":{"DtId":4,"DB":1,"CId":7,"FL":1},"PersonalCapitalReserve":{"DtId":4,"DB":1,"CId":7,"FL":1},"PersonalCapitalReserveAmount":{"DtId":5,"DB":1,"CId":1,"FL":8},"AresAllowance":{"DtId":5,"DB":1,"CId":1,"FL":8},"PlaceOfSocialInsurance":{"DtId":2,"DB":1,"CId":1,"FL":50},"SocialInsuranceAmountByCompany":{"DtId":5,"DB":1,"CId":1,"FL":8},"InsurancePeriod":{"DtId":1,"DB":1,"CId":1,"FL":4},"InsuranceDeadline":{"DtId":3,"DB":1,"CId":1,"FL":8},"DeptId":{"DtId":2,"DB":1,"CId":35,"FL":50},"PositionId":{"DtId":2,"DB":1,"CId":1,"FL":50},"State":{"DtId":2,"DB":1,"CId":1,"FL":50},"UserId":{"DtId":1,"DB":1,"CId":1,"FL":4},"Membership":{"DtId":2,"DB":1,"CId":1,"FL":50},"Address":{"DtId":14,"DB":1,"CId":1,"FL":200},"MarketingGrade":{"DtId":1,"DB":1,"CId":1,"FL":4},"manageGrade":{"DtId":1,"DB":1,"CId":1,"FL":4},"GraduationDate":{"DtId":3,"DB":1,"CId":5,"FL":8},"AccountId":{"DtId":1,"DB":1,"CId":1,"FL":4}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_2037.EntMsg.E2037.GetDataRowModel=function()
{
    return {"EmployeeCode":"","Name":"","Sex":"","Marriage":"","Email":"","Nation":"","NativePlace":"","Birthday":new Date(),"Telephone":"","Contract":"","QQ":"","Education":"","College":"","WageLevel":"","ComputerAllowance":false,"ComputerAllowanceAmount":"0","CameraAllowance":false,"CameraAllowanceAmount":"0","SocialInsurance":false,"SocialInsuranceAmount":"0","BaseWage":"0","MeritWage":"0","ProbationWage":"0","ProbationMeritWage":"0","BankAccount":"","CompanyReserveAmount":"0","CompanyReserve":false,"PersonalCapitalReserve":false,"PersonalCapitalReserveAmount":"0","AresAllowance":"0","PlaceOfSocialInsurance":"","SocialInsuranceAmountByCompany":"0","InsurancePeriod":0,"InsuranceDeadline":new Date(),"DeptId":"","PositionId":"","State":"","UserId":-1,"Membership":"","Address":"","MarketingGrade":0,"manageGrade":0,"GraduationDate":new Date(),"AccountId":-1,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"EmployeeId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_2037.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2037,''AjaxF_'',buildNew,closeDlg);

}','<$2037$>select [EmployeeCode],[Name],[Sex],[Birthday],[Marriage],[Email],[Nation],[NativePlace],[DeptId],[PositionId],[State],[UserId],[Membership],[AccountId],[Telephone],[Contract],[QQ],[Address],[Education],[College],[WageLevel],[MarketingGrade],[manageGrade],[GraduationDate],[ComputerAllowance],[ComputerAllowanceAmount],[CameraAllowance],[CameraAllowanceAmount],[SocialInsurance],[SocialInsuranceAmount],[BaseWage],[MeritWage],[ProbationWage],[ProbationMeritWage],[BankAccount],[CompanyReserve],[CompanyReserveAmount],[PersonalCapitalReserve],[PersonalCapitalReserveAmount],[AresAllowance],[PlaceOfSocialInsurance],[SocialInsuranceAmountByCompany],[InsurancePeriod],[InsuranceDeadline],[EmployeeId] from Dcx_Employee where [EmployeeId]=''{$keyfieldvalue}''</$2037$>',10,'','','','2037*EmployeeId*2*EmployeeId*2*Dcx_Employee*员工管理',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-11-10 17:11:54',3,'admin','2013-11-29 4:04:15',1)
      end
      else 
      begin 
           update [Dcx_AjaxForm_Run] set [FormId]='f84593f8-68aa-28ea-602b-40ba56b1335b',[FormName]='员工管理',[ModuleId]=14,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.AjaxF_2037= {"MenuId":3283,"MEntId":2037,"EntName":"员工管理","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2037":{"EntId":2037,"KeyFieldValue":"","DBTableName":"","KeyField":"EmployeeId","KeydtId":2,"JoinKeyField":"EmployeeId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":51,"Ent":[{"EntId":2037,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":2,"Vld":[{"Id":4,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":3,"Vld":[{"Id":6,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":5,"Vld":[{"Id":8,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":6,"Vld":[{"Id":9,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":7,"Vld":[{"Id":10,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":8,"Vld":[{"Id":11,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":9,"Vld":[{"Id":12,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-)) (20|21|22|23|[0-1]?\\d):[0-5]?\\d:[0-5]?\\d|((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))","err":"格式要求为日期时间格式：yyyy-mm-dd  hh:mm:ss","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":10,"Vld":[]},{"FldId":11,"Vld":[{"Id":14,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":14,"Vld":[{"Id":17,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-)) (20|21|22|23|[0-1]?\\d):[0-5]?\\d:[0-5]?\\d|((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))","err":"格式要求为日期时间格式：yyyy-mm-dd  hh:mm:ss","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":15,"Vld":[{"Id":18,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":16,"Vld":[{"Id":19,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,200}$","err":"限制0-200个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":17,"Vld":[{"Id":20,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":18,"Vld":[{"Id":21,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":19,"Vld":[{"Id":22,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":20,"Vld":[{"Id":23,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,200}$","err":"限制0-200个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":21,"Vld":[{"Id":24,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":22,"Vld":[]},{"FldId":23,"Vld":[{"Id":25,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^(?:[1-9][0-9]{0,2}(,[0-9]{3})*|0).[0-9]{1,4}$","err":"格式要求为货币格式，例如1,100.12","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":24,"Vld":[]},{"FldId":25,"Vld":[{"Id":26,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^(?:[1-9][0-9]{0,2}(,[0-9]{3})*|0).[0-9]{1,4}$","err":"格式要求为货币格式，例如1,100.12","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":26,"Vld":[]},{"FldId":27,"Vld":[{"Id":27,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^(?:[1-9][0-9]{0,2}(,[0-9]{3})*|0).[0-9]{1,4}$","err":"格式要求为货币格式，例如1,100.12","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":28,"Vld":[{"Id":28,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^(?:[1-9][0-9]{0,2}(,[0-9]{3})*|0).[0-9]{1,4}$","err":"格式要求为货币格式，例如1,100.12","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":29,"Vld":[{"Id":29,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^(?:[1-9][0-9]{0,2}(,[0-9]{3})*|0).[0-9]{1,4}$","err":"格式要求为货币格式，例如1,100.12","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":30,"Vld":[{"Id":30,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^(?:[1-9][0-9]{0,2}(,[0-9]{3})*|0).[0-9]{1,4}$","err":"格式要求为货币格式，例如1,100.12","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":31,"Vld":[{"Id":31,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^(?:[1-9][0-9]{0,2}(,[0-9]{3})*|0).[0-9]{1,4}$","err":"格式要求为货币格式，例如1,100.12","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":32,"Vld":[{"Id":32,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":33,"Vld":[{"Id":33,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^(?:[1-9][0-9]{0,2}(,[0-9]{3})*|0).[0-9]{1,4}$","err":"格式要求为货币格式，例如1,100.12","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":34,"Vld":[]},{"FldId":35,"Vld":[]},{"FldId":36,"Vld":[{"Id":34,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^(?:[1-9][0-9]{0,2}(,[0-9]{3})*|0).[0-9]{1,4}$","err":"格式要求为货币格式，例如1,100.12","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":37,"Vld":[{"Id":35,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^(?:[1-9][0-9]{0,2}(,[0-9]{3})*|0).[0-9]{1,4}$","err":"格式要求为货币格式，例如1,100.12","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":38,"Vld":[{"Id":36,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":39,"Vld":[{"Id":37,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^(?:[1-9][0-9]{0,2}(,[0-9]{3})*|0).[0-9]{1,4}$","err":"格式要求为货币格式，例如1,100.12","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":40,"Vld":[{"Id":38,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":41,"Vld":[{"Id":39,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-)) (20|21|22|23|[0-1]?\\d):[0-5]?\\d:[0-5]?\\d|((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))","err":"格式要求为日期时间格式：yyyy-mm-dd  hh:mm:ss","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":42,"Vld":[]},{"FldId":43,"Vld":[]},{"FldId":44,"Vld":[]},{"FldId":45,"Vld":[{"Id":40,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":46,"Vld":[{"Id":41,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":47,"Vld":[{"Id":42,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":48,"Vld":[{"Id":43,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":49,"Vld":[{"Id":44,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":50,"Vld":[{"Id":45,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":51,"Vld":[{"Id":46,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,200}$","err":"限制0-200个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":52,"Vld":[{"Id":47,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":53,"Vld":[{"Id":48,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":54,"Vld":[{"Id":49,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-)) (20|21|22|23|[0-1]?\\d):[0-5]?\\d:[0-5]?\\d|((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))","err":"格式要求为日期时间格式：yyyy-mm-dd  hh:mm:ss","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":55,"Vld":[{"Id":50,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":51,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]}]}]};
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_2037.EntMsg.E2037.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_Employee","EntId":2037,"KeyField":"EmployeeId","MKeyField":"EmployeeId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"EmployeeCode":{"DtId":2,"DB":1,"CId":1,"FL":50},"Name":{"DtId":2,"DB":1,"CId":1,"FL":50},"Sex":{"DtId":2,"DB":1,"CId":7,"FL":50},"Marriage":{"DtId":2,"DB":1,"CId":13,"FL":50},"Email":{"DtId":2,"DB":1,"CId":1,"FL":50},"Nation":{"DtId":2,"DB":1,"CId":1,"FL":50},"NativePlace":{"DtId":2,"DB":1,"CId":1,"FL":50},"Birthday":{"DtId":3,"DB":1,"CId":5,"FL":8},"Telephone":{"DtId":2,"DB":1,"CId":1,"FL":50},"Contract":{"DtId":2,"DB":1,"CId":1,"FL":50},"QQ":{"DtId":2,"DB":1,"CId":1,"FL":50},"Education":{"DtId":2,"DB":1,"CId":3,"FL":50},"College":{"DtId":2,"DB":1,"CId":1,"FL":200},"WageLevel":{"DtId":2,"DB":1,"CId":1,"FL":50},"ComputerAllowance":{"DtId":4,"DB":1,"CId":7,"FL":1},"ComputerAllowanceAmount":{"DtId":5,"DB":1,"CId":1,"FL":8},"CameraAllowance":{"DtId":4,"DB":1,"CId":7,"FL":1},"CameraAllowanceAmount":{"DtId":5,"DB":1,"CId":1,"FL":8},"SocialInsurance":{"DtId":4,"DB":1,"CId":7,"FL":1},"SocialInsuranceAmount":{"DtId":5,"DB":1,"CId":1,"FL":8},"BaseWage":{"DtId":5,"DB":1,"CId":1,"FL":8},"MeritWage":{"DtId":5,"DB":1,"CId":1,"FL":8},"ProbationWage":{"DtId":5,"DB":1,"CId":1,"FL":8},"ProbationMeritWage":{"DtId":5,"DB":1,"CId":1,"FL":8},"BankAccount":{"DtId":2,"DB":1,"CId":1,"FL":50},"CompanyReserveAmount":{"DtId":5,"DB":1,"CId":1,"FL":8},"CompanyReserve":{"DtId":4,"DB":1,"CId":7,"FL":1},"PersonalCapitalReserve":{"DtId":4,"DB":1,"CId":7,"FL":1},"PersonalCapitalReserveAmount":{"DtId":5,"DB":1,"CId":1,"FL":8},"AresAllowance":{"DtId":5,"DB":1,"CId":1,"FL":8},"PlaceOfSocialInsurance":{"DtId":2,"DB":1,"CId":1,"FL":50},"SocialInsuranceAmountByCompany":{"DtId":5,"DB":1,"CId":1,"FL":8},"InsurancePeriod":{"DtId":1,"DB":1,"CId":1,"FL":4},"InsuranceDeadline":{"DtId":3,"DB":1,"CId":1,"FL":8},"DeptId":{"DtId":2,"DB":1,"CId":35,"FL":50},"PositionId":{"DtId":2,"DB":1,"CId":1,"FL":50},"State":{"DtId":2,"DB":1,"CId":1,"FL":50},"UserId":{"DtId":1,"DB":1,"CId":1,"FL":4},"Membership":{"DtId":2,"DB":1,"CId":1,"FL":50},"Address":{"DtId":14,"DB":1,"CId":1,"FL":200},"MarketingGrade":{"DtId":1,"DB":1,"CId":1,"FL":4},"manageGrade":{"DtId":1,"DB":1,"CId":1,"FL":4},"GraduationDate":{"DtId":3,"DB":1,"CId":5,"FL":8},"AccountId":{"DtId":1,"DB":1,"CId":1,"FL":4}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_2037.EntMsg.E2037.GetDataRowModel=function()
{
    return {"EmployeeCode":"","Name":"","Sex":"","Marriage":"","Email":"","Nation":"","NativePlace":"","Birthday":new Date(),"Telephone":"","Contract":"","QQ":"","Education":"","College":"","WageLevel":"","ComputerAllowance":false,"ComputerAllowanceAmount":"0","CameraAllowance":false,"CameraAllowanceAmount":"0","SocialInsurance":false,"SocialInsuranceAmount":"0","BaseWage":"0","MeritWage":"0","ProbationWage":"0","ProbationMeritWage":"0","BankAccount":"","CompanyReserveAmount":"0","CompanyReserve":false,"PersonalCapitalReserve":false,"PersonalCapitalReserveAmount":"0","AresAllowance":"0","PlaceOfSocialInsurance":"","SocialInsuranceAmountByCompany":"0","InsurancePeriod":0,"InsuranceDeadline":new Date(),"DeptId":"","PositionId":"","State":"","UserId":-1,"Membership":"","Address":"","MarketingGrade":0,"manageGrade":0,"GraduationDate":new Date(),"AccountId":-1,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"EmployeeId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_2037.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2037,''AjaxF_'',buildNew,closeDlg);

}',[LoadingSql]='<$2037$>select [EmployeeCode],[Name],[Sex],[Birthday],[Marriage],[Email],[Nation],[NativePlace],[DeptId],[PositionId],[State],[UserId],[Membership],[AccountId],[Telephone],[Contract],[QQ],[Address],[Education],[College],[WageLevel],[MarketingGrade],[manageGrade],[GraduationDate],[ComputerAllowance],[ComputerAllowanceAmount],[CameraAllowance],[CameraAllowanceAmount],[SocialInsurance],[SocialInsuranceAmount],[BaseWage],[MeritWage],[ProbationWage],[ProbationMeritWage],[BankAccount],[CompanyReserve],[CompanyReserveAmount],[PersonalCapitalReserve],[PersonalCapitalReserveAmount],[AresAllowance],[PlaceOfSocialInsurance],[SocialInsuranceAmountByCompany],[InsurancePeriod],[InsuranceDeadline],[EmployeeId] from Dcx_Employee where [EmployeeId]=''{$keyfieldvalue}''</$2037$>',[PageSize]=10,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='2037*EmployeeId*2*EmployeeId*2*Dcx_Employee*员工管理',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-11-10 17:11:54',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-29 4:04:15',[AccountId]=1 where  [EntId]=2037 
      end




--Dcx_AjaxFormField_Run
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='c2169cc6-f54d-0674-c4d5-d7aab3b2c584'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'c2169cc6-f54d-0674-c4d5-d7aab3b2c584',2037,2037,'00000000-0000-0000-0000-000000000000','EmployeeCode',2,2,2,'',5,1,1,0,1,1,-1,1,-1,1,0,'','','','','<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="2037" isgroup="1" groupid="5" ctrlprex="AjaxF_" isrple="1">
<li style="position: static;" class="li-area-title" scroll="no" areaid="20">
<div id="div_head1" class="form-title5"><span id="h2_title" class="title-name">员工管理</span></div></li>
<li style="width: 92px; height: 40px; position: static;" class="li-area1" scroll="no" areaid="21"><a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
<li style="width: 92px; height: 40px; position: static;" class="li-area1" scroll="no" areaid="22"><a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.AjaxF_2037.SubmitForm(false);"><span class="op_bt_i">保存</span> </a></li>
<li style="width: 92px; height: 40px; position: static;" class="li-area1" scroll="no" areaid="23"><a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(2037,''AjaxF_'');"><span class="op_bt_i">新建</span> </a></li></ul></div>
<div class="frame-div">
<ul class="ul-mform" entid="2037" isgroup="1" groupid="1" ctrlprex="AjaxF_" isrple="1">
<li style="position: static; width: 395px; height: 38px;" class="li-area" scroll="no" areaid="24"><label class="area-title pad7" fldid="1" istitle="1">员工编号</label> 
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">','','','','<input  id="d2037_EmployeeCode"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="EmployeeCode" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=1,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='EmployeeCode',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=2,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="2037" isgroup="1" groupid="5" ctrlprex="AjaxF_" isrple="1">
<li style="position: static;" class="li-area-title" scroll="no" areaid="20">
<div id="div_head1" class="form-title5"><span id="h2_title" class="title-name">员工管理</span></div></li>
<li style="width: 92px; height: 40px; position: static;" class="li-area1" scroll="no" areaid="21"><a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
<li style="width: 92px; height: 40px; position: static;" class="li-area1" scroll="no" areaid="22"><a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.AjaxF_2037.SubmitForm(false);"><span class="op_bt_i">保存</span> </a></li>
<li style="width: 92px; height: 40px; position: static;" class="li-area1" scroll="no" areaid="23"><a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(2037,''AjaxF_'');"><span class="op_bt_i">新建</span> </a></li></ul></div>
<div class="frame-div">
<ul class="ul-mform" entid="2037" isgroup="1" groupid="1" ctrlprex="AjaxF_" isrple="1">
<li style="position: static; width: 395px; height: 38px;" class="li-area" scroll="no" areaid="24"><label class="area-title pad7" fldid="1" istitle="1">员工编号</label> 
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2037_EmployeeCode"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="EmployeeCode" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='c2169cc6-f54d-0674-c4d5-d7aab3b2c584' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='29f92174-c0f7-0b9d-74d8-02efc1d8bf59'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'29f92174-c0f7-0b9d-74d8-02efc1d8bf59',2037,2037,'00000000-0000-0000-0000-000000000000','Name',2,2,3,'',5,1,1,0,1,1,-1,2,-1,1,0,'','','','','</span>

 </div></li>
<li style="position: static; width: 395px; height: 38px;" class="li-area" scroll="no" areaid="25"><label class="area-title pad7" fldid="2" istitle="1">姓名</label> 
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">','','','','<input  id="d2037_Name"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="Name" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='Name',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=3,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=2,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

 </div></li>
<li style="position: static; width: 395px; height: 38px;" class="li-area" scroll="no" areaid="25"><label class="area-title pad7" fldid="2" istitle="1">姓名</label> 
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2037_Name"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="Name" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='29f92174-c0f7-0b9d-74d8-02efc1d8bf59' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='25aa6eae-6db0-210b-a514-7e1b80d1da9a'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'25aa6eae-6db0-210b-a514-7e1b80d1da9a',2037,2037,'00000000-0000-0000-0000-000000000000','Sex',2,2,4,'男|男',1,7,1,0,7,1,-1,3,-1,1,0,'','','','','</span>
 </div></li></ul></div>
<div class="div_tabs">
<ul class="tab_ul" entid="2037" isgroup="1" groupid="2" istab="1" islonly="1" ctrlprex="AjaxF_" isrple="1">
<li style="width: 70px; height: 29px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no" areaid="26" istab="1" tabid="1"><a class="tab_a" href="javascript:void(0);" tabid="1">基本资料</a></li>
<li style="z-index: 6; position: static; width: 70px; height: 29px;" class="ui-droppable  li-tab" scroll="no" areaid="27" istab="1" tabid="2"><a class="tab_a" href="javascript:void(0);" tabid="2">联系方式</a></li>
<li style="z-index: 6; position: static; width: 70px; height: 29px;" class="ui-droppable  li-tab" scroll="no" areaid="35" istab="1" tabid="4"><a class="tab_a" href="javascript:void(0);" tabid="4" targetid="#2037_AjaxF_tabs_7">工资</a></li>
<li style="z-index: 6; position: static; width: 70px; height: 29px;" class="ui-droppable  li-tab" scroll="no" areaid="32" istab="1" tabid="3"><a class="tab_a" href="javascript:void(0);" tabid="3" targetid="#2037_AjaxF_tabs_6">学历</a></li></ul>
<div class="tabs-content" tabid="1" style="">
<ul class="ul-mform" entid="2037" isgroup="1" groupid="3" style="" ctrlprex="AjaxF_" isrple="1">

<li style="width: 395px; height: 38px; position: static;" class="li-area ui-sortable" fldid="-1" scroll="no" areaid="28" istitle="1" tabid="2" ul="" li="" label=""><label class="area-title pad7" fldid="3" istitle="1" style="border-top-width: 1px; ">性别</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<div id="d2037_Sex" class="form-radio" style="" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="Sex" dType="2" Vtp="1" RDT="2" Isc="1" RId="7" CId="7" FId="3" vlk=0    Type="1"  onclick ="javascript:DcxVld.Validate(this,2037,''AjaxF_'',2037);" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);"><span class="form-radio-item"  >
<input id="ddcx_2037_Sex_0"  name="ddcx_2037_Sex" checked ="checked" type="radio"  text="男"  value="男"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2037_Sex_0">男</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2037_Sex_1"  name="ddcx_2037_Sex"  type="radio"  text="女"  value="女"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2037_Sex_1">女</label></span>
<span class="clearfix"></span>','</div>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='Sex',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=4,[DefaultValue]='男|男',[ValueType]=1,[RunValueType]=7,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=7,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=3,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
 </div></li></ul></div>
<div class="div_tabs">
<ul class="tab_ul" entid="2037" isgroup="1" groupid="2" istab="1" islonly="1" ctrlprex="AjaxF_" isrple="1">
<li style="width: 70px; height: 29px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no" areaid="26" istab="1" tabid="1"><a class="tab_a" href="javascript:void(0);" tabid="1">基本资料</a></li>
<li style="z-index: 6; position: static; width: 70px; height: 29px;" class="ui-droppable  li-tab" scroll="no" areaid="27" istab="1" tabid="2"><a class="tab_a" href="javascript:void(0);" tabid="2">联系方式</a></li>
<li style="z-index: 6; position: static; width: 70px; height: 29px;" class="ui-droppable  li-tab" scroll="no" areaid="35" istab="1" tabid="4"><a class="tab_a" href="javascript:void(0);" tabid="4" targetid="#2037_AjaxF_tabs_7">工资</a></li>
<li style="z-index: 6; position: static; width: 70px; height: 29px;" class="ui-droppable  li-tab" scroll="no" areaid="32" istab="1" tabid="3"><a class="tab_a" href="javascript:void(0);" tabid="3" targetid="#2037_AjaxF_tabs_6">学历</a></li></ul>
<div class="tabs-content" tabid="1" style="">
<ul class="ul-mform" entid="2037" isgroup="1" groupid="3" style="" ctrlprex="AjaxF_" isrple="1">

<li style="width: 395px; height: 38px; position: static;" class="li-area ui-sortable" fldid="-1" scroll="no" areaid="28" istitle="1" tabid="2" ul="" li="" label=""><label class="area-title pad7" fldid="3" istitle="1" style="border-top-width: 1px; ">性别</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2037_Sex" class="form-radio" style="" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="Sex" dType="2" Vtp="1" RDT="2" Isc="1" RId="7" CId="7" FId="3" vlk=0    Type="1"  onclick ="javascript:DcxVld.Validate(this,2037,''AjaxF_'',2037);" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);"><span class="form-radio-item"  >
<input id="ddcx_2037_Sex_0"  name="ddcx_2037_Sex" checked ="checked" type="radio"  text="男"  value="男"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2037_Sex_0">男</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2037_Sex_1"  name="ddcx_2037_Sex"  type="radio"  text="女"  value="女"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2037_Sex_1">女</label></span>
<span class="clearfix"></span>',[CtrlbackHtml]='</div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='25aa6eae-6db0-210b-a514-7e1b80d1da9a' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='12d433fe-4284-454b-405d-ba2fa9d98bb1'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(14,'12d433fe-4284-454b-405d-ba2fa9d98bb1',2037,2037,'00000000-0000-0000-0000-000000000000','Birthday',3,3,5,'',5,1,1,0,5,1,-1,4,-1,1,0,'','','','','</span>
</div>
</li><li style="position: static; width: 395px; height: 38px;" class="li-area" scroll="no" areaid="45" columntype="" dbfieldid="5"><label class="area-title pad7" fldid="14" istitle="1" style="HEIGHT: 100%">出生日期</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<div class="form-ddl"><input  id="d2037_Birthday"   type="text" class="form-ddl-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);DcxDTime.ShowCalendar(this);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="Birthday" dType="3" Vtp="5" RDT="3" Isc="1" RId="1" CId="5" FId="14" vlk=0    value="','"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=14,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='Birthday',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=5,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=5,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=4,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li style="position: static; width: 395px; height: 38px;" class="li-area" scroll="no" areaid="45" columntype="" dbfieldid="5"><label class="area-title pad7" fldid="14" istitle="1" style="HEIGHT: 100%">出生日期</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-ddl"><input  id="d2037_Birthday"   type="text" class="form-ddl-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);DcxDTime.ShowCalendar(this);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="Birthday" dType="3" Vtp="5" RDT="3" Isc="1" RId="1" CId="5" FId="14" vlk=0    value="',[CtrlbackHtml]='"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='12d433fe-4284-454b-405d-ba2fa9d98bb1' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='19253d12-e173-a29c-c9d6-e8336313f9d1'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'19253d12-e173-a29c-c9d6-e8336313f9d1',2037,2037,'00000000-0000-0000-0000-000000000000','Marriage',2,2,9,'',1,6,1,0,13,1,-1,5,-1,1,0,'','','','','</span>
</div>
</li>
<li style="width: 395px; height: 38px; position: static;" class="li-area ui-sortable" fldid="-1" scroll="no" areaid="41" istitle="1" tabid="2" ul="" li="" label="" div=""><label class="area-title pad7" fldid="5" istitle="1">是否已婚</label> 
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">','','','','<div class="form-radio" ><span class="form-radio-item" ><input id="d2037_Marriage"  name="d2037_Marriage" type="checkbox" class="form-ckb" yesv=''已婚'' nov=''未婚''  EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="Marriage" dType="2" Vtp="1" RDT="2" Isc="1" RId="6" CId="13" FId="5" vlk=0    onclick ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037))return false;"','/><label for="d2037_Marriage">已婚</label></span></div>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=5,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='Marriage',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=9,[DefaultValue]='',[ValueType]=1,[RunValueType]=6,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=13,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=5,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li style="width: 395px; height: 38px; position: static;" class="li-area ui-sortable" fldid="-1" scroll="no" areaid="41" istitle="1" tabid="2" ul="" li="" label="" div=""><label class="area-title pad7" fldid="5" istitle="1">是否已婚</label> 
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-radio" ><span class="form-radio-item" ><input id="d2037_Marriage"  name="d2037_Marriage" type="checkbox" class="form-ckb" yesv=''已婚'' nov=''未婚''  EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="Marriage" dType="2" Vtp="1" RDT="2" Isc="1" RId="6" CId="13" FId="5" vlk=0    onclick ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037))return false;"',[CtrlbackHtml]='/><label for="d2037_Marriage">已婚</label></span></div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='19253d12-e173-a29c-c9d6-e8336313f9d1' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='75ec9d35-0ed6-1940-fc29-1fbccff3c679'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'75ec9d35-0ed6-1940-fc29-1fbccff3c679',2037,2037,'00000000-0000-0000-0000-000000000000','Email',2,2,18,'',5,1,1,0,1,1,-1,6,-1,1,0,'','','','','</span> </div></li>
<li style="width: 395px; height: 38px; position: static;" class="li-area ui-sortable" fldid="-1" scroll="no" areaid="40" istitle="1" tabid="2" ul="" li="" label="" div=""><label class="area-title pad7" fldid="6" istitle="1">电子邮件</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2037_Email"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="Email" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="6" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=6,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='Email',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=18,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=6,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="width: 395px; height: 38px; position: static;" class="li-area ui-sortable" fldid="-1" scroll="no" areaid="40" istitle="1" tabid="2" ul="" li="" label="" div=""><label class="area-title pad7" fldid="6" istitle="1">电子邮件</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2037_Email"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="Email" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="6" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='75ec9d35-0ed6-1940-fc29-1fbccff3c679' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='a5a7ce88-2057-307f-9679-a3758f6147bb'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'a5a7ce88-2057-307f-9679-a3758f6147bb',2037,2037,'00000000-0000-0000-0000-000000000000','Nation',2,2,7,'',5,1,1,0,1,1,-1,7,-1,1,0,'','','','','</span>
</div>
</li>
<li style="width: 395px; height: 38px; position: static;" class="li-area ui-sortable" fldid="-1" scroll="no" areaid="39" istitle="1" tabid="2" ul="" li="" label="" div=""><label class="area-title pad7" fldid="7" istitle="1">民族</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2037_Nation"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="Nation" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="7" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=7,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='Nation',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=7,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=7,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li style="width: 395px; height: 38px; position: static;" class="li-area ui-sortable" fldid="-1" scroll="no" areaid="39" istitle="1" tabid="2" ul="" li="" label="" div=""><label class="area-title pad7" fldid="7" istitle="1">民族</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2037_Nation"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="Nation" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="7" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='a5a7ce88-2057-307f-9679-a3758f6147bb' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='dfacc2c2-d6ad-bd2d-e4eb-2f7084fab734'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'dfacc2c2-d6ad-bd2d-e4eb-2f7084fab734',2037,2037,'00000000-0000-0000-0000-000000000000','NativePlace',2,2,8,'',5,1,1,0,1,1,-1,8,-1,1,0,'','','','','</span>


</div>
</li>
<li style="position: static; width: 395px; height: 38px;" class="li-area ui-sortable" fldid="-1" scroll="no" areaid="38" istitle="1" tabid="2" ul="" li="" label="" div=""><label class="area-title pad7" fldid="8" istitle="1">所在地</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2037_NativePlace"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="NativePlace" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="8" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=8,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='NativePlace',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=8,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=8,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>


</div>
</li>
<li style="position: static; width: 395px; height: 38px;" class="li-area ui-sortable" fldid="-1" scroll="no" areaid="38" istitle="1" tabid="2" ul="" li="" label="" div=""><label class="area-title pad7" fldid="8" istitle="1">所在地</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2037_NativePlace"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="NativePlace" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="8" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='dfacc2c2-d6ad-bd2d-e4eb-2f7084fab734' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='2bfa0a82-ce25-5a92-816c-3df702281e20'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(46,'2bfa0a82-ce25-5a92-816c-3df702281e20',2037,2037,'00000000-0000-0000-0000-000000000000','DeptId',2,2,14,'SELECT [DeptName]
      ,[DeptId]
  FROM [Dcx_Dept]',2,2,1,0,35,1,-1,9,-1,1,0,'','','','','</span>


	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li><li style="position: static; width: 395px; height: 38px;" class="li-area ui-sortable" fldid="-1" scroll="no" areaid="79" istitle="1" tabid="2" ul="" li="" label="" div=""><label class="area-title pad7" fldid="46" istitle="1">所属部门</label>
<div class="field-content pad4">
<span class="form-ctr" isfcontain="1">','','','','<div id="d2037_DeptId" class="form-ddl" style="-width:230px;" IsForField=1 EntId="2037" FId="46" Vtp="2" RId="2" Isc="1" CId="35" FieldName="DeptId" ><input  id="d2037_DeptId_Text" type="text" class="form-ddl-txt" readonly="readOnly"  CId="35" FId="46" Vtp="2"  RId="2" Isc="1"  style="width:200px;" onclick ="javascript:DcxDdl.ShowDialogAf(this,2037,''DeptId'',false);" onchange ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" onkeyup ="javascript:DcxDdl.ShowDialogAf(this,2037,''DeptId'',true);" value="','" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2037_DeptId_hid" type="hidden"  EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="DeptId" dType="2" Vtp="2" RDT="2" Isc="1" RId="2" CId="35" FId="46" vlk=0    value="','"/>',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=46,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='DeptId',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=14,[DefaultValue]='SELECT [DeptName]
      ,[DeptId]
  FROM [Dcx_Dept]',[ValueType]=2,[RunValueType]=2,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=35,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=9,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>


	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li><li style="position: static; width: 395px; height: 38px;" class="li-area ui-sortable" fldid="-1" scroll="no" areaid="79" istitle="1" tabid="2" ul="" li="" label="" div=""><label class="area-title pad7" fldid="46" istitle="1">所属部门</label>
<div class="field-content pad4">
<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2037_DeptId" class="form-ddl" style="-width:230px;" IsForField=1 EntId="2037" FId="46" Vtp="2" RId="2" Isc="1" CId="35" FieldName="DeptId" ><input  id="d2037_DeptId_Text" type="text" class="form-ddl-txt" readonly="readOnly"  CId="35" FId="46" Vtp="2"  RId="2" Isc="1"  style="width:200px;" onclick ="javascript:DcxDdl.ShowDialogAf(this,2037,''DeptId'',false);" onchange ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" onkeyup ="javascript:DcxDdl.ShowDialogAf(this,2037,''DeptId'',true);" value="',[CtrlbackHtml]='" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2037_DeptId_hid" type="hidden"  EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="DeptId" dType="2" Vtp="2" RDT="2" Isc="1" RId="2" CId="35" FId="46" vlk=0    value="',[CtrlLastHtml]='"/>',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='2bfa0a82-ce25-5a92-816c-3df702281e20' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='e21e2f48-3959-5339-7524-1227c09966a7'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(47,'e21e2f48-3959-5339-7524-1227c09966a7',2037,2037,'00000000-0000-0000-0000-000000000000','PositionId',2,2,15,'',5,1,1,0,1,1,-1,10,-1,1,0,'','','','','</span>


	<div class="form-vld" iserr="1">
		&nbsp;</div>

</div></li><li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="51"><label class="area-title pad7" istitle="1" fldid="47">职位</label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">','','','','<input  id="d2037_PositionId"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="PositionId" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="47" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=47,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='PositionId',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=15,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=10,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>


	<div class="form-vld" iserr="1">
		&nbsp;</div>

</div></li><li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="51"><label class="area-title pad7" istitle="1" fldid="47">职位</label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2037_PositionId"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="PositionId" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="47" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='e21e2f48-3959-5339-7524-1227c09966a7' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='bc8061a2-cf1a-8d2c-7198-9d0bd4a18647'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(48,'bc8061a2-cf1a-8d2c-7198-9d0bd4a18647',2037,2037,'00000000-0000-0000-0000-000000000000','State',2,2,17,'',5,1,1,0,1,1,-1,11,-1,1,0,'','','','','</span>
 </div></li><li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="83"><label class="area-title pad7" istitle="1" fldid="48">状态</label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">','','','','<input  id="d2037_State"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="State" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="48" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=48,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='State',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=17,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=11,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
 </div></li><li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="83"><label class="area-title pad7" istitle="1" fldid="48">状态</label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2037_State"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="State" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="48" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='bc8061a2-cf1a-8d2c-7198-9d0bd4a18647' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='ee27f9a3-6630-5b58-ab4d-b8f65e61d909'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(49,'ee27f9a3-6630-5b58-ab4d-b8f65e61d909',2037,2037,'00000000-0000-0000-0000-000000000000','UserId',1,1,13,'',5,1,1,0,1,1,-1,12,-1,1,0,'','','','','</span>
 </div></li><li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="82"><label class="area-title pad7" istitle="1" fldid="49">用户ID</label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">','','','','<input  id="d2037_UserId"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="UserId" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="49" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=49,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='UserId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=13,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=12,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
 </div></li><li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="82"><label class="area-title pad7" istitle="1" fldid="49">用户ID</label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2037_UserId"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="UserId" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="49" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='ee27f9a3-6630-5b58-ab4d-b8f65e61d909' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='b598aa39-727b-733e-7509-3aa3daf25235'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(50,'b598aa39-727b-733e-7509-3aa3daf25235',2037,2037,'00000000-0000-0000-0000-000000000000','Membership',2,2,10,'',5,1,1,0,1,1,-1,13,-1,1,0,'','','','','</span>
 </div></li><li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="81"><label class="area-title pad7" istitle="1" fldid="50">政治面貌</label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">','','','','<input  id="d2037_Membership"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="Membership" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="50" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=50,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='Membership',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=10,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=13,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
 </div></li><li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="81"><label class="area-title pad7" istitle="1" fldid="50">政治面貌</label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2037_Membership"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="Membership" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="50" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='b598aa39-727b-733e-7509-3aa3daf25235' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='4b59bf10-4c8f-238d-c0cb-5c749af6a302'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(55,'4b59bf10-4c8f-238d-c0cb-5c749af6a302',2037,2037,'00000000-0000-0000-0000-000000000000','AccountId',1,1,65,'{$AccountId}',0,1,1,0,1,1,-1,14,-1,1,0,'','','','{$AccountId},','</span>
 </div></li><li style="width: 395px; height: 38px; position: static; display: none;" class="li-area w380 h32" scroll="no" areaid="80"><label class="area-title pad7" istitle="1">请编辑.. </label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1">
	请编辑..</div>
</li><li style="width: 395px; height: 38px; position: static; display: none;" class="li-area w380 h32" scroll="no" areaid="85"><label class="area-title pad7" fldid="55" istitle="1">AccountId</label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2037_AccountId"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="AccountId" dType="1" Vtp="0" RDT="1" Isc="1" RId="1" CId="1" FId="55" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=55,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='AccountId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=65,[DefaultValue]='{$AccountId}',[ValueType]=0,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=14,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$AccountId},',[BeforeHtml]='</span>
 </div></li><li style="width: 395px; height: 38px; position: static; display: none;" class="li-area w380 h32" scroll="no" areaid="80"><label class="area-title pad7" istitle="1">请编辑.. </label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1">
	请编辑..</div>
</li><li style="width: 395px; height: 38px; position: static; display: none;" class="li-area w380 h32" scroll="no" areaid="85"><label class="area-title pad7" fldid="55" istitle="1">AccountId</label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2037_AccountId"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="AccountId" dType="1" Vtp="0" RDT="1" Isc="1" RId="1" CId="1" FId="55" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='4b59bf10-4c8f-238d-c0cb-5c749af6a302' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='b6169e5e-7f04-763b-7e04-3f934c642665'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(15,'b6169e5e-7f04-763b-7e04-3f934c642665',2037,2037,'00000000-0000-0000-0000-000000000000','Telephone',2,2,19,'',5,1,1,0,1,1,-1,15,-1,1,0,'','','','','</span>
</div>
</li><li style="width: 395px; height: 38px; position: static; display: none;" class="li-area w380 h32" scroll="no" areaid="92"><label class="area-title pad7" istitle="1">请编辑.. </label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1">
	请编辑..</div>
</li></ul></div>
<div style="display: none;" class="tabs-content" tabid="2">
<ul class="ul-mform" entid="2037" isgroup="1" groupid="4" style="" ctrlprex="AjaxF_" isrple="1">
<li style="width: 395px; height: 38px; position: static;" class="li-area ui-sortable" fldid="-1" scroll="no" areaid="43" istitle="1" tabid="2" ul="" li="" label="" div=""><label class="area-title pad7" fldid="15" istitle="1" style="">电话</label>
<div class="field-content pad4" style="">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2037_Telephone"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="Telephone" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="15" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=15,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='Telephone',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=19,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=15,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li style="width: 395px; height: 38px; position: static; display: none;" class="li-area w380 h32" scroll="no" areaid="92"><label class="area-title pad7" istitle="1">请编辑.. </label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1">
	请编辑..</div>
</li></ul></div>
<div style="display: none;" class="tabs-content" tabid="2">
<ul class="ul-mform" entid="2037" isgroup="1" groupid="4" style="" ctrlprex="AjaxF_" isrple="1">
<li style="width: 395px; height: 38px; position: static;" class="li-area ui-sortable" fldid="-1" scroll="no" areaid="43" istitle="1" tabid="2" ul="" li="" label="" div=""><label class="area-title pad7" fldid="15" istitle="1" style="">电话</label>
<div class="field-content pad4" style="">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2037_Telephone"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="Telephone" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="15" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='b6169e5e-7f04-763b-7e04-3f934c642665' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='3f7bb60c-1bf7-40b0-3281-a2b002c695a1'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(17,'3f7bb60c-1bf7-40b0-3281-a2b002c695a1',2037,2037,'00000000-0000-0000-0000-000000000000','Contract',2,2,42,'',5,1,1,0,1,1,-1,16,-1,1,0,'','','','','</span>
</div>
</li>
<li style="width: 395px; height: 38px; position: static;" class="li-area ui-sortable" fldid="-1" scroll="no" areaid="49" istitle="1" tabid="2" ul="" li="" label="" div=""><label class="area-title pad7" fldid="17" istitle="1" style="">联系方式</label>
<div class="field-content pad4" style="">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2037_Contract"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="Contract" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="17" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=17,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='Contract',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=42,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=16,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li style="width: 395px; height: 38px; position: static;" class="li-area ui-sortable" fldid="-1" scroll="no" areaid="49" istitle="1" tabid="2" ul="" li="" label="" div=""><label class="area-title pad7" fldid="17" istitle="1" style="">联系方式</label>
<div class="field-content pad4" style="">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2037_Contract"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="Contract" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="17" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='3f7bb60c-1bf7-40b0-3281-a2b002c695a1' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='2a051d42-8193-e8f2-904c-99c723d2dded'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(18,'2a051d42-8193-e8f2-904c-99c723d2dded',2037,2037,'00000000-0000-0000-0000-000000000000','QQ',2,2,57,'',5,1,1,0,1,1,-1,17,-1,1,0,'','','','','</span>

</div>
</li>
<li style="width: 395px; height: 38px; position: static;" class="li-area ui-sortable" fldid="-1" scroll="no" areaid="48" istitle="1" tabid="2" ul="" li="" label="" div=""><label style="border-top-width: 1px; " class="area-title pad7" fldid="18" istitle="1">QQ</label> 
<div class="field-content pad4" style=""><span class="form-ctr" isfcontain="1">','','','','<input  id="d2037_QQ"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="QQ" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="18" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=18,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='QQ',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=57,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=17,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

</div>
</li>
<li style="width: 395px; height: 38px; position: static;" class="li-area ui-sortable" fldid="-1" scroll="no" areaid="48" istitle="1" tabid="2" ul="" li="" label="" div=""><label style="border-top-width: 1px; " class="area-title pad7" fldid="18" istitle="1">QQ</label> 
<div class="field-content pad4" style=""><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2037_QQ"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="QQ" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="18" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='2a051d42-8193-e8f2-904c-99c723d2dded' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='4a14f47b-61d3-6ac0-b1b9-5be228d08dfe'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(51,'4a14f47b-61d3-6ac0-b1b9-5be228d08dfe',2037,2037,'00000000-0000-0000-0000-000000000000','Address',14,2,55,'',5,1,1,0,1,1,-1,18,-1,1,0,'','','','','</span>
 </div></li><li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="84"><label class="area-title pad7" fldid="51" istitle="1">地址</label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2037_Address"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="Address" dType="14" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="51" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=51,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='Address',[FieldDataTypeId]=14,[RunDataTypeId]=2,[DBFieldId]=55,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=18,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
 </div></li><li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="84"><label class="area-title pad7" fldid="51" istitle="1">地址</label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2037_Address"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="Address" dType="14" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="51" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='4a14f47b-61d3-6ac0-b1b9-5be228d08dfe' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='52620f90-f2b7-5c14-d2a9-10e3f527470a'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(19,'52620f90-f2b7-5c14-d2a9-10e3f527470a',2037,2037,'00000000-0000-0000-0000-000000000000','Education',2,2,46,'',1,1,1,0,3,1,-1,19,-1,1,0,'','','','','</span>
</div>
</li><li style="width: 395px; height: 38px; position: static; display: none;" class="li-area w380 h32" scroll="no" areaid="88"><label class="area-title pad7" istitle="1">请编辑.. </label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1">
	请编辑..</div>
</li><li style="width: 395px; height: 38px; position: static; display: none;" class="li-area w380 h32" scroll="no" areaid="87"><label class="area-title pad7" istitle="1">请编辑.. </label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1">
	请编辑..</div>
</li><li style="width: 395px; height: 38px; position: static; display: none;" class="li-area w380 h32" scroll="no" areaid="86"><label class="area-title pad7" istitle="1">请编辑.. </label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1">
	请编辑..</div>
</li></ul></div>
<div style="display: none;" id="2037_AjaxF_tabs_6" class="tabs-content" tabid="3">
<ul style="width: 794px;" class="ul-group ul-mform w760" entid="2037" isgroup="1" groupid="6" ctrlprex="AjaxF_" isrple="1">
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="33"><label class="area-title pad7" fldid="19" istitle="1">学历</label> 
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">','','','','<select id="d2037_Education" name="d2037_Education" class="form-select"  onchange ="javascript:DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="Education" dType="2" Vtp="1" RDT="2" Isc="1" RId="1" CId="3" FId="19" vlk=0    style="width:200px;">','<option  value="博士"  >博士</option>
<option  value="硕士"  >硕士</option>
<option  value="本科"  >本科</option>
<option  value="大专"  >大专</option>
<option  value="职高"  >职高</option>
<option  value="高中"  >高中</option>
<option  value="初中"  >初中</option>
<option  value="小学"  >小学</option>
</select>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=19,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='Education',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=46,[DefaultValue]='',[ValueType]=1,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=19,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li style="width: 395px; height: 38px; position: static; display: none;" class="li-area w380 h32" scroll="no" areaid="88"><label class="area-title pad7" istitle="1">请编辑.. </label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1">
	请编辑..</div>
</li><li style="width: 395px; height: 38px; position: static; display: none;" class="li-area w380 h32" scroll="no" areaid="87"><label class="area-title pad7" istitle="1">请编辑.. </label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1">
	请编辑..</div>
</li><li style="width: 395px; height: 38px; position: static; display: none;" class="li-area w380 h32" scroll="no" areaid="86"><label class="area-title pad7" istitle="1">请编辑.. </label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1">
	请编辑..</div>
</li></ul></div>
<div style="display: none;" id="2037_AjaxF_tabs_6" class="tabs-content" tabid="3">
<ul style="width: 794px;" class="ul-group ul-mform w760" entid="2037" isgroup="1" groupid="6" ctrlprex="AjaxF_" isrple="1">
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="33"><label class="area-title pad7" fldid="19" istitle="1">学历</label> 
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d2037_Education" name="d2037_Education" class="form-select"  onchange ="javascript:DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="Education" dType="2" Vtp="1" RDT="2" Isc="1" RId="1" CId="3" FId="19" vlk=0    style="width:200px;">',[CtrlbackHtml]='<option  value="博士"  >博士</option>
<option  value="硕士"  >硕士</option>
<option  value="本科"  >本科</option>
<option  value="大专"  >大专</option>
<option  value="职高"  >职高</option>
<option  value="高中"  >高中</option>
<option  value="初中"  >初中</option>
<option  value="小学"  >小学</option>
</select>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='52620f90-f2b7-5c14-d2a9-10e3f527470a' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='1c0bd475-e1ee-77d2-f11e-da3efba7f29a'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(20,'1c0bd475-e1ee-77d2-f11e-da3efba7f29a',2037,2037,'00000000-0000-0000-0000-000000000000','College',2,2,47,'',5,1,1,0,1,1,-1,20,-1,1,0,'','','','','</span> </div></li>
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="53"><label class="area-title pad7" fldid="20" istitle="1">毕业院校</label> 
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">','','','','<input  id="d2037_College"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="College" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="20" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=20,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='College',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=47,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=20,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="53"><label class="area-title pad7" fldid="20" istitle="1">毕业院校</label> 
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2037_College"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="College" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="20" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='1c0bd475-e1ee-77d2-f11e-da3efba7f29a' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='aa23d512-f9e5-78a4-f070-7a3d6904b6c1'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(21,'aa23d512-f9e5-78a4-f070-7a3d6904b6c1',2037,2037,'00000000-0000-0000-0000-000000000000','WageLevel',2,2,11,'',5,1,1,0,1,1,-1,21,-1,1,0,'','','','','</span> </div></li>
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="52"><label class="area-title pad7" fldid="21" istitle="1">岗位级别</label> 
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">','','','','<input  id="d2037_WageLevel"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="WageLevel" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="21" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=21,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='WageLevel',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=11,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=21,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="52"><label class="area-title pad7" fldid="21" istitle="1">岗位级别</label> 
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2037_WageLevel"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="WageLevel" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="21" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='aa23d512-f9e5-78a4-f070-7a3d6904b6c1' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='d2ee4292-edd7-1206-8b0f-1757499c3c2e'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(52,'d2ee4292-edd7-1206-8b0f-1757499c3c2e',2037,2037,'00000000-0000-0000-0000-000000000000','MarketingGrade',1,1,60,'0',5,1,1,0,1,1,-1,22,-1,1,0,'','','','','</span> </div></li><li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="34"><label class="area-title pad7" istitle="1" fldid="52">市场能力</label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">','','','','<input  id="d2037_MarketingGrade"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="MarketingGrade" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="52" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=52,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='MarketingGrade',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=60,[DefaultValue]='0',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=22,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li><li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="34"><label class="area-title pad7" istitle="1" fldid="52">市场能力</label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2037_MarketingGrade"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="MarketingGrade" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="52" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='d2ee4292-edd7-1206-8b0f-1757499c3c2e' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='debb3dba-a8d4-b4f0-74cb-bc1616ecc91d'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(53,'debb3dba-a8d4-b4f0-74cb-bc1616ecc91d',2037,2037,'00000000-0000-0000-0000-000000000000','manageGrade',1,1,62,'0',5,1,1,0,1,1,-1,23,-1,1,0,'','','','','</span>

 </div></li>

<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="50"><label class="area-title pad7" istitle="1" fldid="53">管理能力</label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">','','','','<input  id="d2037_manageGrade"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="manageGrade" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="53" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=53,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='manageGrade',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=62,[DefaultValue]='0',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=23,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

 </div></li>

<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="50"><label class="area-title pad7" istitle="1" fldid="53">管理能力</label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2037_manageGrade"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="manageGrade" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="53" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='debb3dba-a8d4-b4f0-74cb-bc1616ecc91d' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='08ef67e8-eaa5-79be-c8c1-23efe8ff4ba5'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(54,'08ef67e8-eaa5-79be-c8c1-23efe8ff4ba5',2037,2037,'00000000-0000-0000-0000-000000000000','GraduationDate',3,3,48,'',5,1,1,0,5,1,-1,24,-1,1,0,'','','','','</span>
 </div></li><li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="91"><label class="area-title pad7" istitle="1" fldid="54">毕业时间</label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">','','','','<div class="form-ddl"><input  id="d2037_GraduationDate"   type="text" class="form-ddl-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);DcxDTime.ShowCalendar(this);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="GraduationDate" dType="3" Vtp="5" RDT="3" Isc="1" RId="1" CId="5" FId="54" vlk=0    value="','"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=54,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='GraduationDate',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=48,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=5,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=24,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
 </div></li><li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="91"><label class="area-title pad7" istitle="1" fldid="54">毕业时间</label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-ddl"><input  id="d2037_GraduationDate"   type="text" class="form-ddl-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);DcxDTime.ShowCalendar(this);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="GraduationDate" dType="3" Vtp="5" RDT="3" Isc="1" RId="1" CId="5" FId="54" vlk=0    value="',[CtrlbackHtml]='"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='08ef67e8-eaa5-79be-c8c1-23efe8ff4ba5' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='404aef01-f2c6-b73a-3b00-ff57379acd59'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(22,'404aef01-f2c6-b73a-3b00-ff57379acd59',2037,2037,'00000000-0000-0000-0000-000000000000','ComputerAllowance',4,4,28,'',1,7,1,0,7,1,-1,25,-1,1,0,'','','','','</span>
 </div></li><li style="width: 395px; height: 38px; display: none; position: static;" class="li-area w380 h32" scroll="no" areaid="90"><label class="area-title pad7" istitle="1">请编辑.. </label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1">
	请编辑..</div>
</li>
<li style="width: 395px; height: 38px; display: none; position: static;" class="li-area w380 h32" scroll="no" areaid="89"><label class="area-title pad7" istitle="1">请编辑.. </label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1">
	请编辑..</div>
</li></ul></div>
<div style="display: none;" id="2037_AjaxF_tabs_7" class="tabs-content" tabid="4">
<ul style="width: 794px;" class="ul-group ul-mform w760" entid="2037" isgroup="1" groupid="7" ctrlprex="AjaxF_" isrple="1">
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="36"><label class="area-title pad7" fldid="22" istitle="1">电脑补贴</label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1">
	<span class="form-ctr" isfcontain="1">','','','','<div id="d2037_ComputerAllowance" class="form-radio" style="" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="ComputerAllowance" dType="4" Vtp="1" RDT="4" Isc="1" RId="7" CId="7" FId="22" vlk=0    Type="1" ><span class="form-radio-item"  >
<input id="ddcx_2037_ComputerAllowance_0"  name="ddcx_2037_ComputerAllowance"  type="radio"  text="是"  value="true"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2037_ComputerAllowance_0">是</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2037_ComputerAllowance_1"  name="ddcx_2037_ComputerAllowance"  type="radio"  text="否"  value="false"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2037_ComputerAllowance_1">否</label></span>
<span class="clearfix"></span>','</div>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=22,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='ComputerAllowance',[FieldDataTypeId]=4,[RunDataTypeId]=4,[DBFieldId]=28,[DefaultValue]='',[ValueType]=1,[RunValueType]=7,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=7,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=25,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
 </div></li><li style="width: 395px; height: 38px; display: none; position: static;" class="li-area w380 h32" scroll="no" areaid="90"><label class="area-title pad7" istitle="1">请编辑.. </label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1">
	请编辑..</div>
</li>
<li style="width: 395px; height: 38px; display: none; position: static;" class="li-area w380 h32" scroll="no" areaid="89"><label class="area-title pad7" istitle="1">请编辑.. </label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1">
	请编辑..</div>
</li></ul></div>
<div style="display: none;" id="2037_AjaxF_tabs_7" class="tabs-content" tabid="4">
<ul style="width: 794px;" class="ul-group ul-mform w760" entid="2037" isgroup="1" groupid="7" ctrlprex="AjaxF_" isrple="1">
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="36"><label class="area-title pad7" fldid="22" istitle="1">电脑补贴</label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2037_ComputerAllowance" class="form-radio" style="" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="ComputerAllowance" dType="4" Vtp="1" RDT="4" Isc="1" RId="7" CId="7" FId="22" vlk=0    Type="1" ><span class="form-radio-item"  >
<input id="ddcx_2037_ComputerAllowance_0"  name="ddcx_2037_ComputerAllowance"  type="radio"  text="是"  value="true"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2037_ComputerAllowance_0">是</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2037_ComputerAllowance_1"  name="ddcx_2037_ComputerAllowance"  type="radio"  text="否"  value="false"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2037_ComputerAllowance_1">否</label></span>
<span class="clearfix"></span>',[CtrlbackHtml]='</div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='404aef01-f2c6-b73a-3b00-ff57379acd59' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='789169ab-8246-2e73-7f37-b30bb1823de2'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(23,'789169ab-8246-2e73-7f37-b30bb1823de2',2037,2037,'00000000-0000-0000-0000-000000000000','ComputerAllowanceAmount',5,5,29,'0',5,1,1,0,1,1,-1,26,-1,1,0,'','','','','</span>
</div>
</li>
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="37"><label class="area-title pad7" fldid="23" istitle="1">电脑补贴金额</label> 
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">','','','','<input  id="d2037_ComputerAllowanceAmount"   type="text" class="form-txt"  style="width:200px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="ComputerAllowanceAmount" dType="5" Vtp="5" RDT="5" Isc="1" RId="1" CId="1" FId="23" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=23,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='ComputerAllowanceAmount',[FieldDataTypeId]=5,[RunDataTypeId]=5,[DBFieldId]=29,[DefaultValue]='0',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=26,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="37"><label class="area-title pad7" fldid="23" istitle="1">电脑补贴金额</label> 
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2037_ComputerAllowanceAmount"   type="text" class="form-txt"  style="width:200px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="ComputerAllowanceAmount" dType="5" Vtp="5" RDT="5" Isc="1" RId="1" CId="1" FId="23" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='789169ab-8246-2e73-7f37-b30bb1823de2' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='7bc9d03f-db6a-e5b5-a7ea-daa6d4d0e7cd'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(24,'7bc9d03f-db6a-e5b5-a7ea-daa6d4d0e7cd',2037,2037,'00000000-0000-0000-0000-000000000000','CameraAllowance',4,4,30,'',1,7,1,0,7,1,-1,27,-1,1,0,'','','','','</span> </div></li>
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="60"><label class="area-title pad7" fldid="24" istitle="1">相机补贴</label> 
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">','','','','<div id="d2037_CameraAllowance" class="form-radio" style="" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="CameraAllowance" dType="4" Vtp="1" RDT="4" Isc="1" RId="7" CId="7" FId="24" vlk=0    Type="1" ><span class="form-radio-item"  >
<input id="ddcx_2037_CameraAllowance_0"  name="ddcx_2037_CameraAllowance"  type="radio"  text="是"  value="true"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2037_CameraAllowance_0">是</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2037_CameraAllowance_1"  name="ddcx_2037_CameraAllowance"  type="radio"  text="否"  value="false"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2037_CameraAllowance_1">否</label></span>
<span class="clearfix"></span>','</div>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=24,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='CameraAllowance',[FieldDataTypeId]=4,[RunDataTypeId]=4,[DBFieldId]=30,[DefaultValue]='',[ValueType]=1,[RunValueType]=7,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=7,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=27,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="60"><label class="area-title pad7" fldid="24" istitle="1">相机补贴</label> 
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2037_CameraAllowance" class="form-radio" style="" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="CameraAllowance" dType="4" Vtp="1" RDT="4" Isc="1" RId="7" CId="7" FId="24" vlk=0    Type="1" ><span class="form-radio-item"  >
<input id="ddcx_2037_CameraAllowance_0"  name="ddcx_2037_CameraAllowance"  type="radio"  text="是"  value="true"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2037_CameraAllowance_0">是</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2037_CameraAllowance_1"  name="ddcx_2037_CameraAllowance"  type="radio"  text="否"  value="false"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2037_CameraAllowance_1">否</label></span>
<span class="clearfix"></span>',[CtrlbackHtml]='</div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='7bc9d03f-db6a-e5b5-a7ea-daa6d4d0e7cd' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='54c52700-2c30-0737-f752-5cdddf1b664c'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(25,'54c52700-2c30-0737-f752-5cdddf1b664c',2037,2037,'00000000-0000-0000-0000-000000000000','CameraAllowanceAmount',5,5,31,'0',5,1,1,0,1,1,-1,28,-1,1,0,'','','','','</span> </div></li>
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="59"><label class="area-title pad7" fldid="25" istitle="1">相机补贴金额</label> 
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">','','','','<input  id="d2037_CameraAllowanceAmount"   type="text" class="form-txt"  style="width:200px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="CameraAllowanceAmount" dType="5" Vtp="5" RDT="5" Isc="1" RId="1" CId="1" FId="25" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=25,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='CameraAllowanceAmount',[FieldDataTypeId]=5,[RunDataTypeId]=5,[DBFieldId]=31,[DefaultValue]='0',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=28,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="59"><label class="area-title pad7" fldid="25" istitle="1">相机补贴金额</label> 
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2037_CameraAllowanceAmount"   type="text" class="form-txt"  style="width:200px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="CameraAllowanceAmount" dType="5" Vtp="5" RDT="5" Isc="1" RId="1" CId="1" FId="25" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='54c52700-2c30-0737-f752-5cdddf1b664c' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='b36d3be5-e9e3-8b7f-ed5b-284ee25c3ae3'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(26,'b36d3be5-e9e3-8b7f-ed5b-284ee25c3ae3',2037,2037,'00000000-0000-0000-0000-000000000000','SocialInsurance',4,4,32,'',1,7,1,0,7,1,-1,29,-1,1,0,'','','','','</span> </div></li>
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="58"><label class="area-title pad7" fldid="26" istitle="1">社会保险</label> 
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">','','','','<div id="d2037_SocialInsurance" class="form-radio" style="" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="SocialInsurance" dType="4" Vtp="1" RDT="4" Isc="1" RId="7" CId="7" FId="26" vlk=0    Type="1" ><span class="form-radio-item"  >
<input id="ddcx_2037_SocialInsurance_0"  name="ddcx_2037_SocialInsurance"  type="radio"  text="是"  value="true"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2037_SocialInsurance_0">是</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2037_SocialInsurance_1"  name="ddcx_2037_SocialInsurance"  type="radio"  text="否"  value="false"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2037_SocialInsurance_1">否</label></span>
<span class="clearfix"></span>','</div>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=26,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='SocialInsurance',[FieldDataTypeId]=4,[RunDataTypeId]=4,[DBFieldId]=32,[DefaultValue]='',[ValueType]=1,[RunValueType]=7,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=7,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=29,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="58"><label class="area-title pad7" fldid="26" istitle="1">社会保险</label> 
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2037_SocialInsurance" class="form-radio" style="" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="SocialInsurance" dType="4" Vtp="1" RDT="4" Isc="1" RId="7" CId="7" FId="26" vlk=0    Type="1" ><span class="form-radio-item"  >
<input id="ddcx_2037_SocialInsurance_0"  name="ddcx_2037_SocialInsurance"  type="radio"  text="是"  value="true"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2037_SocialInsurance_0">是</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2037_SocialInsurance_1"  name="ddcx_2037_SocialInsurance"  type="radio"  text="否"  value="false"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2037_SocialInsurance_1">否</label></span>
<span class="clearfix"></span>',[CtrlbackHtml]='</div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='b36d3be5-e9e3-8b7f-ed5b-284ee25c3ae3' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='ebf38bb1-381b-fe34-9070-cd077a2cc567'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(27,'ebf38bb1-381b-fe34-9070-cd077a2cc567',2037,2037,'00000000-0000-0000-0000-000000000000','SocialInsuranceAmount',5,5,33,'0',5,1,1,0,1,1,-1,30,-1,1,0,'','','','','</span> </div></li>
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="57"><label class="area-title pad7" fldid="27" istitle="1">社会保险金额</label> 
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">','','','','<input  id="d2037_SocialInsuranceAmount"   type="text" class="form-txt"  style="width:200px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="SocialInsuranceAmount" dType="5" Vtp="5" RDT="5" Isc="1" RId="1" CId="1" FId="27" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=27,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='SocialInsuranceAmount',[FieldDataTypeId]=5,[RunDataTypeId]=5,[DBFieldId]=33,[DefaultValue]='0',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=30,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="57"><label class="area-title pad7" fldid="27" istitle="1">社会保险金额</label> 
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2037_SocialInsuranceAmount"   type="text" class="form-txt"  style="width:200px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="SocialInsuranceAmount" dType="5" Vtp="5" RDT="5" Isc="1" RId="1" CId="1" FId="27" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='ebf38bb1-381b-fe34-9070-cd077a2cc567' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='10f86b7f-b8da-d733-a5f7-f03cadeff38b'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(28,'10f86b7f-b8da-d733-a5f7-f03cadeff38b',2037,2037,'00000000-0000-0000-0000-000000000000','BaseWage',5,5,24,'0',5,1,1,0,1,1,-1,31,-1,1,0,'','','','','</span> </div></li>
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="56"><label class="area-title pad7" fldid="28" istitle="1">基本工资</label> 
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">','','','','<input  id="d2037_BaseWage"   type="text" class="form-txt"  style="width:200px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="BaseWage" dType="5" Vtp="5" RDT="5" Isc="1" RId="1" CId="1" FId="28" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=28,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='BaseWage',[FieldDataTypeId]=5,[RunDataTypeId]=5,[DBFieldId]=24,[DefaultValue]='0',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=31,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="56"><label class="area-title pad7" fldid="28" istitle="1">基本工资</label> 
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2037_BaseWage"   type="text" class="form-txt"  style="width:200px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="BaseWage" dType="5" Vtp="5" RDT="5" Isc="1" RId="1" CId="1" FId="28" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='10f86b7f-b8da-d733-a5f7-f03cadeff38b' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='67bb71fd-747e-d1d7-e35a-bf7b8205a9d6'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(29,'67bb71fd-747e-d1d7-e35a-bf7b8205a9d6',2037,2037,'00000000-0000-0000-0000-000000000000','MeritWage',5,5,25,'0',5,1,1,0,1,1,-1,32,-1,1,0,'','','','','</span> </div></li>
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="55"><label class="area-title pad7" fldid="29" istitle="1">月考核工资</label> 
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">','','','','<input  id="d2037_MeritWage"   type="text" class="form-txt"  style="width:200px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="MeritWage" dType="5" Vtp="5" RDT="5" Isc="1" RId="1" CId="1" FId="29" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=29,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='MeritWage',[FieldDataTypeId]=5,[RunDataTypeId]=5,[DBFieldId]=25,[DefaultValue]='0',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=32,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="55"><label class="area-title pad7" fldid="29" istitle="1">月考核工资</label> 
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2037_MeritWage"   type="text" class="form-txt"  style="width:200px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="MeritWage" dType="5" Vtp="5" RDT="5" Isc="1" RId="1" CId="1" FId="29" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='67bb71fd-747e-d1d7-e35a-bf7b8205a9d6' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='bc3e522b-3f7c-770c-4141-1312cd1a0e7a'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(30,'bc3e522b-3f7c-770c-4141-1312cd1a0e7a',2037,2037,'00000000-0000-0000-0000-000000000000','ProbationWage',5,5,26,'0',5,1,1,0,1,1,-1,33,-1,1,0,'','','','','</span> </div></li>
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="54"><label class="area-title pad7" fldid="30" istitle="1">试用期工资</label> 
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">','','','','<input  id="d2037_ProbationWage"   type="text" class="form-txt"  style="width:200px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="ProbationWage" dType="5" Vtp="5" RDT="5" Isc="1" RId="1" CId="1" FId="30" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=30,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='ProbationWage',[FieldDataTypeId]=5,[RunDataTypeId]=5,[DBFieldId]=26,[DefaultValue]='0',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=33,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="54"><label class="area-title pad7" fldid="30" istitle="1">试用期工资</label> 
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2037_ProbationWage"   type="text" class="form-txt"  style="width:200px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="ProbationWage" dType="5" Vtp="5" RDT="5" Isc="1" RId="1" CId="1" FId="30" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='bc3e522b-3f7c-770c-4141-1312cd1a0e7a' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='fb72a5d2-d8af-70f3-6933-99719b3dfcd6'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(31,'fb72a5d2-d8af-70f3-6933-99719b3dfcd6',2037,2037,'00000000-0000-0000-0000-000000000000','ProbationMeritWage',5,5,27,'0',5,1,1,0,1,1,-1,34,-1,1,0,'','','','','</span> </div></li>
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="65"><label class="area-title pad7" fldid="31" istitle="1">试用期月考核工资</label> 
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">','','','','<input  id="d2037_ProbationMeritWage"   type="text" class="form-txt"  style="width:200px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="ProbationMeritWage" dType="5" Vtp="5" RDT="5" Isc="1" RId="1" CId="1" FId="31" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=31,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='ProbationMeritWage',[FieldDataTypeId]=5,[RunDataTypeId]=5,[DBFieldId]=27,[DefaultValue]='0',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=34,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="65"><label class="area-title pad7" fldid="31" istitle="1">试用期月考核工资</label> 
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2037_ProbationMeritWage"   type="text" class="form-txt"  style="width:200px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="ProbationMeritWage" dType="5" Vtp="5" RDT="5" Isc="1" RId="1" CId="1" FId="31" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='fb72a5d2-d8af-70f3-6933-99719b3dfcd6' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='644b3afc-0039-f50d-263b-d64cc700fac8'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(32,'644b3afc-0039-f50d-263b-d64cc700fac8',2037,2037,'00000000-0000-0000-0000-000000000000','BankAccount',2,2,41,'',5,1,1,0,1,1,-1,35,-1,1,0,'','','','','</span> </div></li>
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="64"><label class="area-title pad7" fldid="32" istitle="1">银行账号</label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2037_BankAccount"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="BankAccount" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="32" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=32,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='BankAccount',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=41,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=35,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="64"><label class="area-title pad7" fldid="32" istitle="1">银行账号</label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2037_BankAccount"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="BankAccount" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="32" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='644b3afc-0039-f50d-263b-d64cc700fac8' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='e46b9381-58b8-6b2b-8ae4-8c1ea509d859'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(34,'e46b9381-58b8-6b2b-8ae4-8c1ea509d859',2037,2037,'00000000-0000-0000-0000-000000000000','CompanyReserve',4,4,36,'',1,7,1,0,7,1,-1,36,-1,1,0,'','','','','</span>
</div>
</li>
<li style="width: 395px; height: 38px; display: none; position: static;" class="li-area w380 h32" scroll="no" areaid="63"><label class="area-title pad7" istitle="1">请编辑.. </label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1">
	请编辑..</div>
</li>
<li style="position: static; width: 395px; height: 38px;" class="li-area w380 h32" scroll="no" areaid="69"><label class="area-title pad7" fldid="34" istitle="1">公司公积金</label> 
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">','','','','<div id="d2037_CompanyReserve" class="form-radio" style="" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="CompanyReserve" dType="4" Vtp="1" RDT="4" Isc="1" RId="7" CId="7" FId="34" vlk=0    Type="1" ><span class="form-radio-item"  >
<input id="ddcx_2037_CompanyReserve_0"  name="ddcx_2037_CompanyReserve"  type="radio"  text="是"  value="true"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2037_CompanyReserve_0">是</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2037_CompanyReserve_1"  name="ddcx_2037_CompanyReserve"  type="radio"  text="否"  value="false"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2037_CompanyReserve_1">否</label></span>
<span class="clearfix"></span>','</div>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=34,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='CompanyReserve',[FieldDataTypeId]=4,[RunDataTypeId]=4,[DBFieldId]=36,[DefaultValue]='',[ValueType]=1,[RunValueType]=7,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=7,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=36,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li style="width: 395px; height: 38px; display: none; position: static;" class="li-area w380 h32" scroll="no" areaid="63"><label class="area-title pad7" istitle="1">请编辑.. </label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1">
	请编辑..</div>
</li>
<li style="position: static; width: 395px; height: 38px;" class="li-area w380 h32" scroll="no" areaid="69"><label class="area-title pad7" fldid="34" istitle="1">公司公积金</label> 
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2037_CompanyReserve" class="form-radio" style="" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="CompanyReserve" dType="4" Vtp="1" RDT="4" Isc="1" RId="7" CId="7" FId="34" vlk=0    Type="1" ><span class="form-radio-item"  >
<input id="ddcx_2037_CompanyReserve_0"  name="ddcx_2037_CompanyReserve"  type="radio"  text="是"  value="true"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2037_CompanyReserve_0">是</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2037_CompanyReserve_1"  name="ddcx_2037_CompanyReserve"  type="radio"  text="否"  value="false"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2037_CompanyReserve_1">否</label></span>
<span class="clearfix"></span>',[CtrlbackHtml]='</div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='e46b9381-58b8-6b2b-8ae4-8c1ea509d859' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='1a919a10-33c8-d6ac-123b-39d6eff246fb'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(33,'1a919a10-33c8-d6ac-123b-39d6eff246fb',2037,2037,'00000000-0000-0000-0000-000000000000','CompanyReserveAmount',5,5,37,'0',5,1,1,0,1,1,-1,37,-1,1,0,'','','','','</span> </div></li>
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="62"><label class="area-title pad7" fldid="33" istitle="1">公司公积金金额</label> 
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">','','','','<input  id="d2037_CompanyReserveAmount"   type="text" class="form-txt"  style="width:200px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="CompanyReserveAmount" dType="5" Vtp="5" RDT="5" Isc="1" RId="1" CId="1" FId="33" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=33,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='CompanyReserveAmount',[FieldDataTypeId]=5,[RunDataTypeId]=5,[DBFieldId]=37,[DefaultValue]='0',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=37,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="62"><label class="area-title pad7" fldid="33" istitle="1">公司公积金金额</label> 
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2037_CompanyReserveAmount"   type="text" class="form-txt"  style="width:200px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="CompanyReserveAmount" dType="5" Vtp="5" RDT="5" Isc="1" RId="1" CId="1" FId="33" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='1a919a10-33c8-d6ac-123b-39d6eff246fb' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='a3f491a3-2980-e532-a84d-f81b3bb7d063'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(35,'a3f491a3-2980-e532-a84d-f81b3bb7d063',2037,2037,'00000000-0000-0000-0000-000000000000','PersonalCapitalReserve',4,4,34,'',1,7,1,0,7,1,-1,38,-1,1,0,'','','','','</span> </div></li>
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="68"><label class="area-title pad7" fldid="35" istitle="1">个人公积金</label> 
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">','','','','<div id="d2037_PersonalCapitalReserve" class="form-radio" style="" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="PersonalCapitalReserve" dType="4" Vtp="1" RDT="4" Isc="1" RId="7" CId="7" FId="35" vlk=0    Type="1" ><span class="form-radio-item"  >
<input id="ddcx_2037_PersonalCapitalReserve_0"  name="ddcx_2037_PersonalCapitalReserve"  type="radio"  text="是"  value="true"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2037_PersonalCapitalReserve_0">是</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2037_PersonalCapitalReserve_1"  name="ddcx_2037_PersonalCapitalReserve"  type="radio"  text="否"  value="false"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2037_PersonalCapitalReserve_1">否</label></span>
<span class="clearfix"></span>','</div>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=35,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='PersonalCapitalReserve',[FieldDataTypeId]=4,[RunDataTypeId]=4,[DBFieldId]=34,[DefaultValue]='',[ValueType]=1,[RunValueType]=7,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=7,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=38,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="68"><label class="area-title pad7" fldid="35" istitle="1">个人公积金</label> 
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2037_PersonalCapitalReserve" class="form-radio" style="" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="PersonalCapitalReserve" dType="4" Vtp="1" RDT="4" Isc="1" RId="7" CId="7" FId="35" vlk=0    Type="1" ><span class="form-radio-item"  >
<input id="ddcx_2037_PersonalCapitalReserve_0"  name="ddcx_2037_PersonalCapitalReserve"  type="radio"  text="是"  value="true"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2037_PersonalCapitalReserve_0">是</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2037_PersonalCapitalReserve_1"  name="ddcx_2037_PersonalCapitalReserve"  type="radio"  text="否"  value="false"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2037_PersonalCapitalReserve_1">否</label></span>
<span class="clearfix"></span>',[CtrlbackHtml]='</div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='a3f491a3-2980-e532-a84d-f81b3bb7d063' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='9dfb7e66-5668-1f6c-f406-a4c0ac80fbad'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(36,'9dfb7e66-5668-1f6c-f406-a4c0ac80fbad',2037,2037,'00000000-0000-0000-0000-000000000000','PersonalCapitalReserveAmount',5,5,35,'0',5,1,1,0,1,1,-1,39,-1,1,0,'','','','','</span> </div></li>
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="67"><label class="area-title pad7" fldid="36" istitle="1">个人公积金金额</label> 
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">','','','','<input  id="d2037_PersonalCapitalReserveAmount"   type="text" class="form-txt"  style="width:200px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="PersonalCapitalReserveAmount" dType="5" Vtp="5" RDT="5" Isc="1" RId="1" CId="1" FId="36" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=36,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='PersonalCapitalReserveAmount',[FieldDataTypeId]=5,[RunDataTypeId]=5,[DBFieldId]=35,[DefaultValue]='0',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=39,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="67"><label class="area-title pad7" fldid="36" istitle="1">个人公积金金额</label> 
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2037_PersonalCapitalReserveAmount"   type="text" class="form-txt"  style="width:200px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="PersonalCapitalReserveAmount" dType="5" Vtp="5" RDT="5" Isc="1" RId="1" CId="1" FId="36" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='9dfb7e66-5668-1f6c-f406-a4c0ac80fbad' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='5641ec0a-8dd9-a460-b9cb-ae4fd29987e2'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(37,'5641ec0a-8dd9-a460-b9cb-ae4fd29987e2',2037,2037,'00000000-0000-0000-0000-000000000000','AresAllowance',5,5,39,'0',5,1,1,0,1,1,-1,40,-1,1,0,'','','','','</span> </div></li>
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="66"><label class="area-title pad7" fldid="37" istitle="1">地区差补贴</label> 
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">','','','','<input  id="d2037_AresAllowance"   type="text" class="form-txt"  style="width:200px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="AresAllowance" dType="5" Vtp="5" RDT="5" Isc="1" RId="1" CId="1" FId="37" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=37,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='AresAllowance',[FieldDataTypeId]=5,[RunDataTypeId]=5,[DBFieldId]=39,[DefaultValue]='0',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=40,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="66"><label class="area-title pad7" fldid="37" istitle="1">地区差补贴</label> 
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2037_AresAllowance"   type="text" class="form-txt"  style="width:200px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="AresAllowance" dType="5" Vtp="5" RDT="5" Isc="1" RId="1" CId="1" FId="37" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='5641ec0a-8dd9-a460-b9cb-ae4fd29987e2' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='acf5be69-6641-4fa6-1469-bb7623b7128d'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(38,'acf5be69-6641-4fa6-1469-bb7623b7128d',2037,2037,'00000000-0000-0000-0000-000000000000','PlaceOfSocialInsurance',2,2,40,'',5,1,1,0,1,1,-1,41,-1,1,0,'','','','','</span> </div></li>
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="61"><label class="area-title pad7" fldid="38" istitle="1">社保购买所在地</label> 
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">','','','','<input  id="d2037_PlaceOfSocialInsurance"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="PlaceOfSocialInsurance" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="38" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=38,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='PlaceOfSocialInsurance',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=40,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=41,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="61"><label class="area-title pad7" fldid="38" istitle="1">社保购买所在地</label> 
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2037_PlaceOfSocialInsurance"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="PlaceOfSocialInsurance" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="38" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='acf5be69-6641-4fa6-1469-bb7623b7128d' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='058245ed-0d2f-e5c8-1a04-852678fe23b2'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(39,'058245ed-0d2f-e5c8-1a04-852678fe23b2',2037,2037,'00000000-0000-0000-0000-000000000000','SocialInsuranceAmountByCompany',5,5,38,'',5,1,1,0,1,1,-1,42,-1,1,0,'','','','','</span> </div></li>
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="74"><label class="area-title pad7" fldid="39" istitle="1">社会保险金额</label> 
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">','','','','<input  id="d2037_SocialInsuranceAmountByCompany"   type="text" class="form-txt"  style="width:200px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="SocialInsuranceAmountByCompany" dType="5" Vtp="5" RDT="5" Isc="1" RId="1" CId="1" FId="39" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=39,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='SocialInsuranceAmountByCompany',[FieldDataTypeId]=5,[RunDataTypeId]=5,[DBFieldId]=38,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=42,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="74"><label class="area-title pad7" fldid="39" istitle="1">社会保险金额</label> 
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2037_SocialInsuranceAmountByCompany"   type="text" class="form-txt"  style="width:200px;ime-mode:disabled;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false; DcxMoney.Blur(this);" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037); DcxMoney.Focus(this);" onkeyup ="javascript:DcxMoney.Keyup(this);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="SocialInsuranceAmountByCompany" dType="5" Vtp="5" RDT="5" Isc="1" RId="1" CId="1" FId="39" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='058245ed-0d2f-e5c8-1a04-852678fe23b2' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='6c3d56e4-f4bc-6155-b427-6789f69bb8c3'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(40,'6c3d56e4-f4bc-6155-b427-6789f69bb8c3',2037,2037,'00000000-0000-0000-0000-000000000000','InsurancePeriod',1,1,53,'0',5,1,1,0,1,1,-1,43,-1,1,0,'','','','','</span> </div></li>
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="73"><label class="area-title pad7" fldid="40" istitle="1">保险期限</label> 
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">','','','','<input  id="d2037_InsurancePeriod"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="InsurancePeriod" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="40" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=40,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='InsurancePeriod',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=53,[DefaultValue]='0',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=43,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="73"><label class="area-title pad7" fldid="40" istitle="1">保险期限</label> 
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2037_InsurancePeriod"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="InsurancePeriod" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="40" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='6c3d56e4-f4bc-6155-b427-6789f69bb8c3' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='57113798-097f-64b8-3015-62bf0d16072f'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(41,'57113798-097f-64b8-3015-62bf0d16072f',2037,2037,'00000000-0000-0000-0000-000000000000','InsuranceDeadline',3,3,54,'',5,1,1,0,1,1,-1,44,-1,1,0,'','','','','</span> </div></li>
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="72"><label class="area-title pad7" fldid="41" istitle="1">保险截止日期</label> 
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">','</span> </div></li>
<li style="width: 395px; height: 38px; display: none; position: static;" class="li-area w380 h32" scroll="no" areaid="70"><label class="area-title pad7" istitle="1">请编辑.. </label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1">
	请编辑..</div>
</li>
<li style="width: 395px; height: 38px; display: none; position: static;" class="li-area w380 h32" scroll="no" areaid="78"><label class="area-title pad7" istitle="1">请编辑.. </label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1">
	请编辑..</div>
</li>
<li style="width: 395px; height: 38px; display: none; position: static;" class="li-area w380 h32" scroll="no" areaid="77"><label class="area-title pad7" istitle="1">请编辑.. </label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1">
	请编辑..</div>
</li>
<li style="width: 395px; height: 38px; display: none; position: static;" class="li-area w380 h32" scroll="no" areaid="76"><label class="area-title pad7" istitle="1">请编辑.. </label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1">
	请编辑..</div>
</li>
<li style="width: 395px; height: 38px; display: none; position: static;" class="li-area w380 h32" scroll="no" areaid="75"><label class="area-title pad7" istitle="1">请编辑.. </label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1">
	请编辑..</div>
</li></ul></div></div></div></div><br>','','','<input  id="d2037_InsuranceDeadline"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="InsuranceDeadline" dType="3" Vtp="5" RDT="3" Isc="1" RId="1" CId="1" FId="41" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=41,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='InsuranceDeadline',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=54,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=44,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="width: 395px; height: 38px; position: static;" class="li-area w380 h32" scroll="no" areaid="72"><label class="area-title pad7" fldid="41" istitle="1">保险截止日期</label> 
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1"><span class="form-ctr" isfcontain="1">',[LastHtml]='</span> </div></li>
<li style="width: 395px; height: 38px; display: none; position: static;" class="li-area w380 h32" scroll="no" areaid="70"><label class="area-title pad7" istitle="1">请编辑.. </label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1">
	请编辑..</div>
</li>
<li style="width: 395px; height: 38px; display: none; position: static;" class="li-area w380 h32" scroll="no" areaid="78"><label class="area-title pad7" istitle="1">请编辑.. </label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1">
	请编辑..</div>
</li>
<li style="width: 395px; height: 38px; display: none; position: static;" class="li-area w380 h32" scroll="no" areaid="77"><label class="area-title pad7" istitle="1">请编辑.. </label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1">
	请编辑..</div>
</li>
<li style="width: 395px; height: 38px; display: none; position: static;" class="li-area w380 h32" scroll="no" areaid="76"><label class="area-title pad7" istitle="1">请编辑.. </label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1">
	请编辑..</div>
</li>
<li style="width: 395px; height: 38px; display: none; position: static;" class="li-area w380 h32" scroll="no" areaid="75"><label class="area-title pad7" istitle="1">请编辑.. </label>
<div class="field-content pad4" columntypeid="1" fieldname="" fldid="-1" issample="1">
	请编辑..</div>
</li></ul></div></div></div></div><br>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2037_InsuranceDeadline"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2037,''AjaxF_'',2037,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2037,''AjaxF_'',2037);" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="InsuranceDeadline" dType="3" Vtp="5" RDT="3" Isc="1" RId="1" CId="1" FId="41" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='57113798-097f-64b8-3015-62bf0d16072f' 
      end



Delete from [Dcx_SearchForm_Run]  where [EntId]=2037

--Dcx_SearchForm_Run
      if (select count(1) from [Dcx_SearchForm_Run] where  [EntId]=2037  )<1 
      begin 
           Insert into [Dcx_SearchForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('59837b90-7d03-514e-5998-09494de4bdb1','员工管理',2037,9,'','',0,'','','DcxRun.SearchF_2037= {"MenuId":3283,"MEntId":2037,"EntName":"员工管理","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2037":{"EntId":2037,"KeyFieldValue":"","DBTableName":"","KeyField":"EmployeeId","KeydtId":2,"JoinKeyField":"EmployeeId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_2037.EntMsg.E2037.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_Employee","EntId":2037,"KeyField":"EmployeeId","MKeyField":"EmployeeId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"Name":{"DtId":2,"DB":1,"CId":1,"FL":50},"Sex":{"DtId":2,"DB":1,"CId":7,"FL":50}},"Data":{"Row":[]}};
}
DcxRun.SearchF_2037.EntMsg.E2037.GetDataRowModel=function()
{
    return {"Name":"","Sex":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"EmployeeId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_2037.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2037,''SearchF_'',buildNew,closeDlg);

}','',10,'','','','2037*EmployeeId*2*EmployeeId*2*Dcx_Employee*员工管理',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-11-9 3:25:16',3,'admin','2013-8-22 5:58:38',1)
      end
      else 
      begin 
           update [Dcx_SearchForm_Run] set [FormId]='59837b90-7d03-514e-5998-09494de4bdb1',[FormName]='员工管理',[ModuleId]=9,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.SearchF_2037= {"MenuId":3283,"MEntId":2037,"EntName":"员工管理","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2037":{"EntId":2037,"KeyFieldValue":"","DBTableName":"","KeyField":"EmployeeId","KeydtId":2,"JoinKeyField":"EmployeeId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_2037.EntMsg.E2037.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_Employee","EntId":2037,"KeyField":"EmployeeId","MKeyField":"EmployeeId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"Name":{"DtId":2,"DB":1,"CId":1,"FL":50},"Sex":{"DtId":2,"DB":1,"CId":7,"FL":50}},"Data":{"Row":[]}};
}
DcxRun.SearchF_2037.EntMsg.E2037.GetDataRowModel=function()
{
    return {"Name":"","Sex":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"EmployeeId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_2037.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2037,''SearchF_'',buildNew,closeDlg);

}',[LoadingSql]='',[PageSize]=10,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='2037*EmployeeId*2*EmployeeId*2*Dcx_Employee*员工管理',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-11-9 3:25:16',[EditorId]=3,[Editor]='admin',[EditTime]='2013-8-22 5:58:38',[AccountId]=1 where  [EntId]=2037 
      end




--Dcx_SearchFormField_Run
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='0fdea653-001f-445e-4e98-c8d6286841e4'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'0fdea653-001f-445e-4e98-c8d6286841e4',2037,2037,'00000000-0000-0000-0000-000000000000',1,'Like','Name',2,2,3,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','<div class="searchform">
	<ul class="search-block" groupid="1" isgroup="1" isrple="1">
		<li areaid="5" class="search-li" scroll="no" style="width: 230px; height: 32px; position: static;"><label class="search-title pad7" fldid="1" istitle="1">姓名</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2037_Name"   type="text" class="form-txt"  style="width:150px;" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="Name" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=1,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[CompareOperatorType]='Like',[FieldName]='Name',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=3,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="searchform">
	<ul class="search-block" groupid="1" isgroup="1" isrple="1">
		<li areaid="5" class="search-li" scroll="no" style="width: 230px; height: 32px; position: static;"><label class="search-title pad7" fldid="1" istitle="1">姓名</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2037_Name"   type="text" class="form-txt"  style="width:150px;" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="Name" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='0fdea653-001f-445e-4e98-c8d6286841e4' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='a56eb137-3ed6-a80c-9213-76ec011715bc'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'a56eb137-3ed6-a80c-9213-76ec011715bc',2037,2037,'00000000-0000-0000-0000-000000000000',2,'=','Sex',2,2,4,'全部|',1,7,1,0,7,1,-1,-1,1,0,'','','','','</span>
</div>
</li>
		<li areaid="6" class="search-li" scroll="no" style="width: 230px; height: 32px; position: static;"><label class="search-title pad7" fldid="2" istitle="1">性别</label>
<div class="field-content pad2">
	<span class="form-ctr" isfcontain="1">','</span>
</div>
</li>
		
		<li areaid="8" class="" scroll="no" style="width: 120px; height: 32px; position: static;"><div class="searchform-button" onclick="javascript:return VL_Search(2037);">
	<div class="search-btn">
		&nbsp;</div>
	<a href="javascript:void(0);" id="2037_searchBT">搜索</a></div>
</li>
	</ul>
</div>
<br>','','','<div id="d2037_Sex" class="form-radio" style="" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="Sex" dType="2" Vtp="1" RDT="2" Isc="1" RId="7" CId="7" FId="2" vlk=0    Cpre="="  Type="1" ><span class="form-radio-item"  >
<input id="ddcx_2037_Sex_0"  name="ddcx_2037_Sex" checked ="checked" type="radio"  text="全部"  value=""  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2037_Sex_0">全部</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2037_Sex_1"  name="ddcx_2037_Sex"  type="radio"  text="男"  value="男"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2037_Sex_1">男</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2037_Sex_2"  name="ddcx_2037_Sex"  type="radio"  text="女"  value="女"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2037_Sex_2">女</label></span>
<span class="clearfix"></span>','</div>','',1,-1,-1,-1,-1,0,'2037,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=2,[Form_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[CompareOperatorType]='=',[FieldName]='Sex',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=4,[DefaultValue]='全部|',[ValueType]=1,[RunValueType]=7,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=7,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
		<li areaid="6" class="search-li" scroll="no" style="width: 230px; height: 32px; position: static;"><label class="search-title pad7" fldid="2" istitle="1">性别</label>
<div class="field-content pad2">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
</div>
</li>
		
		<li areaid="8" class="" scroll="no" style="width: 120px; height: 32px; position: static;"><div class="searchform-button" onclick="javascript:return VL_Search(2037);">
	<div class="search-btn">
		&nbsp;</div>
	<a href="javascript:void(0);" id="2037_searchBT">搜索</a></div>
</li>
	</ul>
</div>
<br>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2037_Sex" class="form-radio" style="" EntId="2037" IsField=1 DBField=1 IsPost=1 FieldName="Sex" dType="2" Vtp="1" RDT="2" Isc="1" RId="7" CId="7" FId="2" vlk=0    Cpre="="  Type="1" ><span class="form-radio-item"  >
<input id="ddcx_2037_Sex_0"  name="ddcx_2037_Sex" checked ="checked" type="radio"  text="全部"  value=""  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2037_Sex_0">全部</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2037_Sex_1"  name="ddcx_2037_Sex"  type="radio"  text="男"  value="男"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2037_Sex_1">男</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2037_Sex_2"  name="ddcx_2037_Sex"  type="radio"  text="女"  value="女"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2037_Sex_2">女</label></span>
<span class="clearfix"></span>',[CtrlbackHtml]='</div>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2037,' where  [FldUId]='a56eb137-3ed6-a80c-9213-76ec011715bc' 
      end



Delete from [Dcx_ListReport_Run]  where [EntId]=2037

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=2037  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('a1b4030f-13b5-1cad-de0d-772a8373fb95','员工管理',2037,1,'','','<$2037$>select *  from (select row_number() over( order by [EmployeeId])as dcx_rowid,[Name],[Sex],[Email],[Telephone],[PositionName],[EmployeeId] from Dcx_Employee  where [AccountId]={$AccountId} and {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$2037$><$2037:Count$>select count([EmployeeId]) from Dcx_Employee where  [AccountId]={$AccountId} and {$SearchArea}</$2037:Count$>',1,1,10,'DcxRun.ListR_2037= {"MenuId":3283,"MEntId":2037,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"员工管理","EntMsg":{"E2037":{"EntId":2037,"EntName":"员工管理","KeyFieldValue":"","DBTableName":"","KeyField":"EmployeeId","KeydtId":2,"JoinKeyField":"EmployeeId","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','2037*EmployeeId*2*EmployeeId*2*Dcx_Employee*员工管理',3,'admin','2012-11-9 5:16:49',3,'','2013-11-24 3:36:12',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='a1b4030f-13b5-1cad-de0d-772a8373fb95',[ReportName]='员工管理',[ModuleId]=1,[StaticHtml]='',[DIYJsCss]='',[LoadingSql]='<$2037$>select *  from (select row_number() over( order by [EmployeeId])as dcx_rowid,[Name],[Sex],[Email],[Telephone],[PositionName],[EmployeeId] from Dcx_Employee  where [AccountId]={$AccountId} and {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$2037$><$2037:Count$>select count([EmployeeId]) from Dcx_Employee where  [AccountId]={$AccountId} and {$SearchArea}</$2037:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=10,[AutoPublicJs]='DcxRun.ListR_2037= {"MenuId":3283,"MEntId":2037,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"员工管理","EntMsg":{"E2037":{"EntId":2037,"EntName":"员工管理","KeyFieldValue":"","DBTableName":"","KeyField":"EmployeeId","KeydtId":2,"JoinKeyField":"EmployeeId","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='2037*EmployeeId*2*EmployeeId*2*Dcx_Employee*员工管理',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-11-9 5:16:49',[EditorId]=3,[Editor]='',[EditTime]='2013-11-24 3:36:12',[AccountId]=1 where  [EntId]=2037 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='6ce5c90e-f1c3-2e1f-d93e-87fa098df75b'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(78,'6ce5c90e-f1c3-2e1f-d93e-87fa098df75b',2037,2037,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<div class="listreport">
<div class="toolbar">
<ul style="WIDTH: 812px" class="tool-ul" entid="2037" groupid="2" isgroup="1" istoolbar="1" ctrlprex="ListR_" isrple="1">
<li style="position: static;" class="tool-li" areaid="27"><a id="ListR_2037_btn_buildNew" class="list-bt-add" title="添   加" onclick="javascript:DcxCom.ShowAddDataDlg(2037,''ListR_'');" href="javascript:void(0);">添 加</a></li>
<li style="position: static;" class="tool-li" areaid="28"><a id="ListR_2037_deletebut" class="list-bt-other" title="删   除" onclick="javascript:DcxReport.DeleteDatas(2037,''ListR_'');" href="javascript:void(0);">删 除</a></li>
<li style="width: 64px; height: 29px; position: static;" class="tool-li" areaid="29"><a id="ListR_2037_ExportToExcelbut" class="list-bt-other" title="导   出" onclick="javascript:DcxCom.ExportExcel(2037,''ListR_'');" href="javascript:void(0);">导 出</a></li>
<li style="position: static;" class="tool-li" areaid="30"><a id="ListR_2037_refreshbut" class="list-bt-other" title="刷   新" onclick="javascript:DcxCom.ReLoad(2037,''ListR_'');" href="javascript:void(0);">刷 新</a></li><!--分页栏-->
<li style="width: 187px; height: 33px; position: static;" id="li2_ListR_2037" class="pages" areaid="31"><a class="list-pages list-prepage" href="javascript:void(0);" id="ListR_2037_PrevPage" isfirstpage="1" onclick="javascript:DcxSch.GetHtml(2037,''ListR_'',''p'',this);" title="上一页">上一页</a> <span class="ddl_pageindex list-pagesdown"><select id="ddl_ListR_2037_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(2037,''ListR_'',''a'',this);"></select> </span><a class="list-pages list-nextpage" href="javascript:void(0);" id="ListR_2037_NextPage" isnextpage="1" onclick="javascript:DcxSch.GetHtml(2037,''ListR_'',''n'',this);" title="下一页">下一页</a> <span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_2037_RecCount_lbl" isrecortcount="">0</span> <span class="list-data-amount">条记录</span></li></ul></div><!-- 列表主体-->
<div class="list-area dcx-scroll">
<div class="list-head">
<ul style="width: 812px;" class="list-head-ul" entid="2037" groupid="3" isgroup="1" ctrlprex="ListR_" isrple="1">
<li style="float: left; height: 29px; clear: none; position: static;" class="list-head-select" areaid="32"><input id="ckb_CheckAllListR_2037" class="chPut ifselect" onclick="javascript:DcxCom.CheckedAll(this,2037,''ListR_'');" value="on" type="checkbox" rel="chkall"></li>
<li style="width: 130px; float: left; height: 29px; clear: none; position: static;" class="list-head-li" areaid="35">
<div class="list-li-field"><label istitle="1">姓名</label></div></li>
<li style="width: 110px; float: left; height: 29px; clear: none; position: static;" class="list-head-li" areaid="36">
<div class="list-li-field"><label istitle="1">性别</label></div></li>
<li style="width: 170px; float: left; height: 29px; clear: none; position: static;" class="list-head-li" areaid="37">
<div class="list-li-field"><label istitle="1">Email</label></div></li>
<li style="width: 130px; float: left; height: 29px; clear: none; position: static;" class="list-head-li" areaid="38">
<div class="list-li-field"><label istitle="1">电话</label></div></li>
<li style="width: 130px; float: left; height: 29px; clear: none; position: static;" class="list-head-li" areaid="40">
<div class="list-li-field"><label istitle="1">职位</label></div></li>
<li style="position: static; width: 32px; float: left; height: 29px; clear: none;" class="list-operate" areaid="33">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);"><span class="i">编辑</span></a></div></li>
<li style="position: static; width: 32px; float: left; height: 29px; clear: right;" class="list-operate" areaid="34">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);"><span class="i">删除</span></a></div></li></ul></div>
<div class="list-body">','',-1,4,-1,-1,1,'2037,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=78,[Report_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="listreport">
<div class="toolbar">
<ul style="WIDTH: 812px" class="tool-ul" entid="2037" groupid="2" isgroup="1" istoolbar="1" ctrlprex="ListR_" isrple="1">
<li style="position: static;" class="tool-li" areaid="27"><a id="ListR_2037_btn_buildNew" class="list-bt-add" title="添   加" onclick="javascript:DcxCom.ShowAddDataDlg(2037,''ListR_'');" href="javascript:void(0);">添 加</a></li>
<li style="position: static;" class="tool-li" areaid="28"><a id="ListR_2037_deletebut" class="list-bt-other" title="删   除" onclick="javascript:DcxReport.DeleteDatas(2037,''ListR_'');" href="javascript:void(0);">删 除</a></li>
<li style="width: 64px; height: 29px; position: static;" class="tool-li" areaid="29"><a id="ListR_2037_ExportToExcelbut" class="list-bt-other" title="导   出" onclick="javascript:DcxCom.ExportExcel(2037,''ListR_'');" href="javascript:void(0);">导 出</a></li>
<li style="position: static;" class="tool-li" areaid="30"><a id="ListR_2037_refreshbut" class="list-bt-other" title="刷   新" onclick="javascript:DcxCom.ReLoad(2037,''ListR_'');" href="javascript:void(0);">刷 新</a></li><!--分页栏-->
<li style="width: 187px; height: 33px; position: static;" id="li2_ListR_2037" class="pages" areaid="31"><a class="list-pages list-prepage" href="javascript:void(0);" id="ListR_2037_PrevPage" isfirstpage="1" onclick="javascript:DcxSch.GetHtml(2037,''ListR_'',''p'',this);" title="上一页">上一页</a> <span class="ddl_pageindex list-pagesdown"><select id="ddl_ListR_2037_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(2037,''ListR_'',''a'',this);"></select> </span><a class="list-pages list-nextpage" href="javascript:void(0);" id="ListR_2037_NextPage" isnextpage="1" onclick="javascript:DcxSch.GetHtml(2037,''ListR_'',''n'',this);" title="下一页">下一页</a> <span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_2037_RecCount_lbl" isrecortcount="">0</span> <span class="list-data-amount">条记录</span></li></ul></div><!-- 列表主体-->
<div class="list-area dcx-scroll">
<div class="list-head">
<ul style="width: 812px;" class="list-head-ul" entid="2037" groupid="3" isgroup="1" ctrlprex="ListR_" isrple="1">
<li style="float: left; height: 29px; clear: none; position: static;" class="list-head-select" areaid="32"><input id="ckb_CheckAllListR_2037" class="chPut ifselect" onclick="javascript:DcxCom.CheckedAll(this,2037,''ListR_'');" value="on" type="checkbox" rel="chkall"></li>
<li style="width: 130px; float: left; height: 29px; clear: none; position: static;" class="list-head-li" areaid="35">
<div class="list-li-field"><label istitle="1">姓名</label></div></li>
<li style="width: 110px; float: left; height: 29px; clear: none; position: static;" class="list-head-li" areaid="36">
<div class="list-li-field"><label istitle="1">性别</label></div></li>
<li style="width: 170px; float: left; height: 29px; clear: none; position: static;" class="list-head-li" areaid="37">
<div class="list-li-field"><label istitle="1">Email</label></div></li>
<li style="width: 130px; float: left; height: 29px; clear: none; position: static;" class="list-head-li" areaid="38">
<div class="list-li-field"><label istitle="1">电话</label></div></li>
<li style="width: 130px; float: left; height: 29px; clear: none; position: static;" class="list-head-li" areaid="40">
<div class="list-li-field"><label istitle="1">职位</label></div></li>
<li style="position: static; width: 32px; float: left; height: 29px; clear: none;" class="list-operate" areaid="33">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);"><span class="i">编辑</span></a></div></li>
<li style="position: static; width: 32px; float: left; height: 29px; clear: right;" class="list-operate" areaid="34">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);"><span class="i">删除</span></a></div></li></ul></div>
<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2037,' where  [FldUId]='6ce5c90e-f1c3-2e1f-d93e-87fa098df75b' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='7c5caf2f-8f92-2a19-c321-f72e2e6617e8'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'7c5caf2f-8f92-2a19-c321-f72e2e6617e8',2037,2037,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',2,1,'varchar',2,21,0,'','','','style="width: 812px;" class="list-body-ul" groupid="4" isgroup="1" isrple="1">
<li style="width: 32px; float: left; height: 38px; clear: none; position: static;" class="list-body-select" areaid="41">
<div style="PADDING-TOP: 11px" class="list-li-field"><input class="ckb_del" value="on" type="checkbox" entid="2037" keyvalue="','',-1,4,-1,-1,1,'2037,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=2,[Report_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='style="width: 812px;" class="list-body-ul" groupid="4" isgroup="1" isrple="1">
<li style="width: 32px; float: left; height: 38px; clear: none; position: static;" class="list-body-select" areaid="41">
<div style="PADDING-TOP: 11px" class="list-li-field"><input class="ckb_del" value="on" type="checkbox" entid="2037" keyvalue="',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2037,' where  [FldUId]='7c5caf2f-8f92-2a19-c321-f72e2e6617e8' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='52df0d2c-ba07-746c-f91f-04fb7e30cfbe'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'52df0d2c-ba07-746c-f91f-04fb7e30cfbe',2037,2037,'00000000-0000-0000-0000-000000000000',3,'Name',3,1,'varchar',2,1,0,'','','','" issyscheck="1" ctrlprex="ListR_"></div></li>
<li style="width: 130px; float: left; height: 38px; clear: none; position: static;" class="list-body-li" areaid="44">
<div style="PADDING-TOP: 4px" class="list-li-field"><span isfield="1" entid="2037" fieldname="Name" fldid="6" columntypeid="1" class="form-ctr">','',-1,4,-1,-1,1,'2037,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=6,[Report_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='Name',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='" issyscheck="1" ctrlprex="ListR_"></div></li>
<li style="width: 130px; float: left; height: 38px; clear: none; position: static;" class="list-body-li" areaid="44">
<div style="PADDING-TOP: 4px" class="list-li-field"><span isfield="1" entid="2037" fieldname="Name" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2037,' where  [FldUId]='52df0d2c-ba07-746c-f91f-04fb7e30cfbe' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='e432877e-67c6-6f5c-040a-efefc13e3af1'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'e432877e-67c6-6f5c-040a-efefc13e3af1',2037,2037,'00000000-0000-0000-0000-000000000000',4,'Sex',4,1,'varchar',2,1,0,'','','','</span>
 </div></li>
<li style="position: static; width: 110px; float: left; height: 38px; clear: none;" class="list-body-li" areaid="45">
<div style="PADDING-TOP: 4px" class="list-li-field"><span columntypeid="1" fieldname="Sex" entid="2037" fldid="7" isfield="1" class="form-ctr">','',-1,4,-1,-1,1,'2037,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=7,[Report_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=4,[FieldName]='Sex',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
 </div></li>
<li style="position: static; width: 110px; float: left; height: 38px; clear: none;" class="list-body-li" areaid="45">
<div style="PADDING-TOP: 4px" class="list-li-field"><span columntypeid="1" fieldname="Sex" entid="2037" fldid="7" isfield="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2037,' where  [FldUId]='e432877e-67c6-6f5c-040a-efefc13e3af1' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='2cabdb79-bcef-7f3f-bc91-17e3cb864710'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'2cabdb79-bcef-7f3f-bc91-17e3cb864710',2037,2037,'00000000-0000-0000-0000-000000000000',18,'Email',5,1,'varchar',2,1,0,'','','','</span> </div></li>
<li style="width: 170px; float: left; height: 38px; clear: none; position: static;" class="list-body-li" areaid="46">
<div style="PADDING-TOP: 4px" class="list-li-field"><span columntypeid="1" fieldname="Email" entid="2037" fldid="8" isfield="1" class="form-ctr">','',-1,4,-1,-1,1,'2037,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=8,[Report_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=18,[FieldName]='Email',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> </div></li>
<li style="width: 170px; float: left; height: 38px; clear: none; position: static;" class="list-body-li" areaid="46">
<div style="PADDING-TOP: 4px" class="list-li-field"><span columntypeid="1" fieldname="Email" entid="2037" fldid="8" isfield="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2037,' where  [FldUId]='2cabdb79-bcef-7f3f-bc91-17e3cb864710' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='7facd623-3bdc-b88a-343a-84ac640cb67c'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'7facd623-3bdc-b88a-343a-84ac640cb67c',2037,2037,'00000000-0000-0000-0000-000000000000',19,'Telephone',6,1,'varchar',2,1,0,'','','','</span> </div></li>
<li style="width: 130px; float: left; height: 38px; clear: none; position: static;" class="list-body-li" areaid="47">
<div style="PADDING-TOP: 4px" class="list-li-field"><span columntypeid="1" fieldname="Telephone" entid="2037" fldid="9" isfield="1" class="form-ctr">','',-1,4,-1,-1,1,'2037,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=9,[Report_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=19,[FieldName]='Telephone',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> </div></li>
<li style="width: 130px; float: left; height: 38px; clear: none; position: static;" class="list-body-li" areaid="47">
<div style="PADDING-TOP: 4px" class="list-li-field"><span columntypeid="1" fieldname="Telephone" entid="2037" fldid="9" isfield="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2037,' where  [FldUId]='7facd623-3bdc-b88a-343a-84ac640cb67c' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='c7d77e68-4a10-e665-803c-5a5f570ffee2'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'c7d77e68-4a10-e665-803c-5a5f570ffee2',2037,2037,'00000000-0000-0000-0000-000000000000',16,'PositionName',7,1,'varchar',2,1,0,'','','','</span> </div></li>
<li style="position: static; width: 130px; float: left; height: 38px; clear: none;" class="list-body-li" areaid="49">
<div style="PADDING-TOP: 4px" class="list-li-field"><span columntypeid="1" fieldname="PositionName" entid="2037" fldid="11" isfield="1" class="form-ctr">','',-1,4,-1,-1,1,'2037,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=11,[Report_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=16,[FieldName]='PositionName',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> </div></li>
<li style="position: static; width: 130px; float: left; height: 38px; clear: none;" class="list-body-li" areaid="49">
<div style="PADDING-TOP: 4px" class="list-li-field"><span columntypeid="1" fieldname="PositionName" entid="2037" fldid="11" isfield="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2037,' where  [FldUId]='c7d77e68-4a10-e665-803c-5a5f570ffee2' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='9db533de-1db6-a6bc-b5d7-3c23dad49c09'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'9db533de-1db6-a6bc-b5d7-3c23dad49c09',2037,2037,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',8,1,'varchar',2,21,0,'','','','</span> </div></li>
<li style="position: static; width: 32px; float: left; height: 38px; clear: none;" class="list-operate" areaid="42">
<div style="PADDING-TOP: 4px" class="edit"><a class="li-item-btn btn-pink " onclick="javascript:DcxCom.ShowFormDlg(this,2037,''ListR_'',''','',-1,4,-1,-1,1,'2037,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=3,[Report_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> </div></li>
<li style="position: static; width: 32px; float: left; height: 38px; clear: none;" class="list-operate" areaid="42">
<div style="PADDING-TOP: 4px" class="edit"><a class="li-item-btn btn-pink " onclick="javascript:DcxCom.ShowFormDlg(this,2037,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2037,' where  [FldUId]='9db533de-1db6-a6bc-b5d7-3c23dad49c09' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='619b1ff3-faaf-ce37-a25e-69220d76f107'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'619b1ff3-faaf-ce37-a25e-69220d76f107',2037,2037,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',9,1,'varchar',2,21,0,'','','',''',null,1040,480);" href="javascript:void(0);"><span class="i">编辑</span></a></div></li>
<li style="position: static; width: 32px; float: left; height: 38px; clear: right;" class="list-operate" areaid="43">
<div style="PADDING-TOP: 4px" class="delete"><a class="li-item-btn  J_Comp" onclick="javascript:DcxReport.DeleteData(this,2037,''ListR_'',''','',-1,4,-1,-1,1,'2037,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=4,[Report_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);" href="javascript:void(0);"><span class="i">编辑</span></a></div></li>
<li style="position: static; width: 32px; float: left; height: 38px; clear: right;" class="list-operate" areaid="43">
<div style="PADDING-TOP: 4px" class="delete"><a class="li-item-btn  J_Comp" onclick="javascript:DcxReport.DeleteData(this,2037,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2037,' where  [FldUId]='619b1ff3-faaf-ce37-a25e-69220d76f107' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='4afc1ceb-36f4-50fb-2d48-729490442be3'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(79,'4afc1ceb-36f4-50fb-2d48-729490442be3',2037,2037,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',10,-1,'varchar',2,13,0,'','','',''');" href="javascript:void(0);"><span class="i">删除</span></a></div></li></ul>','</div></div></div><br>',-1,4,-1,-1,1,'2037,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=79,[Report_EntId]=2037,[EntId]=2037,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=10,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''');" href="javascript:void(0);"><span class="i">删除</span></a></div></li></ul>',[LastHtml]='</div></div></div><br>',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2037,' where  [FldUId]='4afc1ceb-36f4-50fb-2d48-729490442be3' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=129

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=129  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(129,null,'Dcx_Employee','Dcx_Employee',1,0,0,0,0,0,29,1,3,'admin','2013-12-15 17:32:13',3,'admin','2013-12-15 17:32:13',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='Dcx_Employee',[DBTableByName]='Dcx_Employee',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=29,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:13',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:13',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=129 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16525,1,29,129,'int',1,1,1,'Dcx_Employee','EmployeeId','EmployeeId','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='EmployeeId',[FieldByname]='EmployeeId',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16526,2,29,129,'varchar',2,1,1,'Dcx_Employee','EmployeeCode','EmployeeCode','',0,0,0,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='EmployeeCode',[FieldByname]='EmployeeCode',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16527,3,29,129,'varchar',2,1,1,'Dcx_Employee','Name','Name','',0,0,0,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='Name',[FieldByname]='Name',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16528,4,29,129,'varchar',2,1,1,'Dcx_Employee','Sex','Sex','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='Sex',[FieldByname]='Sex',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16529,5,29,129,'datetime',3,1,1,'Dcx_Employee','Birthday','Birthday','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='Birthday',[FieldByname]='Birthday',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16530,6,29,129,'int',1,1,1,'Dcx_Employee','Age','Age','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='Age',[FieldByname]='Age',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16531,7,29,129,'varchar',2,1,1,'Dcx_Employee','Nation','Nation','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='Nation',[FieldByname]='Nation',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16532,8,29,129,'varchar',2,1,1,'Dcx_Employee','NativePlace','NativePlace','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='NativePlace',[FieldByname]='NativePlace',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16533,9,29,129,'varchar',2,1,1,'Dcx_Employee','Marriage','Marriage','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='Marriage',[FieldByname]='Marriage',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16534,10,29,129,'varchar',2,1,1,'Dcx_Employee','Membership','Membership','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='Membership',[FieldByname]='Membership',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16535,11,29,129,'decimal',7,1,1,'Dcx_Employee','WageLevel','WageLevel','',0,0,1,9,18,1,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='decimal',[FieldDataTypeId]=7,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='WageLevel',[FieldByname]='WageLevel',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=9,[Precision]=18,[Scale]=1,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16536,12,29,129,'varchar',2,1,1,'Dcx_Employee','UserName','UserName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='UserName',[FieldByname]='UserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16537,13,29,129,'int',1,1,1,'Dcx_Employee','UserId','UserId','-1',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='UserId',[FieldByname]='UserId',[DefaultValue]='-1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16538,14,29,129,'int',1,1,1,'Dcx_Employee','DeptId','DeptId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='DeptId',[FieldByname]='DeptId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16539,15,29,129,'int',1,1,1,'Dcx_Employee','PositionId','PositionId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='PositionId',[FieldByname]='PositionId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16540,16,29,129,'varchar',2,1,1,'Dcx_Employee','PositionName','PositionName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='PositionName',[FieldByname]='PositionName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16541,17,29,129,'varchar',2,1,1,'Dcx_Employee','State','State','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='State',[FieldByname]='State',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16542,18,29,129,'varchar',2,1,1,'Dcx_Employee','Email','Email','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='Email',[FieldByname]='Email',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16543,19,29,129,'varchar',2,1,1,'Dcx_Employee','Telephone','Telephone','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='Telephone',[FieldByname]='Telephone',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16544,20,29,129,'datetime',3,1,1,'Dcx_Employee','EntryDate','EntryDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='EntryDate',[FieldByname]='EntryDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16545,21,29,129,'int',1,1,1,'Dcx_Employee','ServiceYear','ServiceYear','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='ServiceYear',[FieldByname]='ServiceYear',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16546,22,29,129,'datetime',3,1,1,'Dcx_Employee','PermanentDate','PermanentDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='PermanentDate',[FieldByname]='PermanentDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16547,23,29,129,'datetime',3,1,1,'Dcx_Employee','LeaveOfficeDate','LeaveOfficeDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='LeaveOfficeDate',[FieldByname]='LeaveOfficeDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16548,24,29,129,'money',5,1,1,'Dcx_Employee','BaseWage','BaseWage','0',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='BaseWage',[FieldByname]='BaseWage',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16549,25,29,129,'money',5,1,1,'Dcx_Employee','MeritWage','MeritWage','0',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='MeritWage',[FieldByname]='MeritWage',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16550,26,29,129,'money',5,1,1,'Dcx_Employee','ProbationWage','ProbationWage','0',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='ProbationWage',[FieldByname]='ProbationWage',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=26 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=27  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16551,27,29,129,'money',5,1,1,'Dcx_Employee','ProbationMeritWage','ProbationMeritWage','0',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='ProbationMeritWage',[FieldByname]='ProbationMeritWage',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=27 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=28  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16552,28,29,129,'bit',4,1,1,'Dcx_Employee','ComputerAllowance','ComputerAllowance','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='ComputerAllowance',[FieldByname]='ComputerAllowance',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=28 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=29  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16553,29,29,129,'money',5,1,1,'Dcx_Employee','ComputerAllowanceAmount','ComputerAllowanceAmount','0',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='ComputerAllowanceAmount',[FieldByname]='ComputerAllowanceAmount',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=29 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=30  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16554,30,29,129,'bit',4,1,1,'Dcx_Employee','CameraAllowance','CameraAllowance','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='CameraAllowance',[FieldByname]='CameraAllowance',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=30 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=31  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16555,31,29,129,'money',5,1,1,'Dcx_Employee','CameraAllowanceAmount','CameraAllowanceAmount','0',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='CameraAllowanceAmount',[FieldByname]='CameraAllowanceAmount',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=31 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=32  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16556,32,29,129,'bit',4,1,1,'Dcx_Employee','SocialInsurance','SocialInsurance','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='SocialInsurance',[FieldByname]='SocialInsurance',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=32 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=33  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16557,33,29,129,'money',5,1,1,'Dcx_Employee','SocialInsuranceAmount','SocialInsuranceAmount','0',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='SocialInsuranceAmount',[FieldByname]='SocialInsuranceAmount',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=33 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=34  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16558,34,29,129,'bit',4,1,1,'Dcx_Employee','PersonalCapitalReserve','PersonalCapitalReserve','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='PersonalCapitalReserve',[FieldByname]='PersonalCapitalReserve',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=34 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=35  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16559,35,29,129,'money',5,1,1,'Dcx_Employee','PersonalCapitalReserveAmount','PersonalCapitalReserveAmount','0',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='PersonalCapitalReserveAmount',[FieldByname]='PersonalCapitalReserveAmount',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=35 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=36  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16560,36,29,129,'bit',4,1,1,'Dcx_Employee','CompanyReserve','CompanyReserve','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='CompanyReserve',[FieldByname]='CompanyReserve',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=36 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=37  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16561,37,29,129,'money',5,1,1,'Dcx_Employee','CompanyReserveAmount','CompanyReserveAmount','0',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='CompanyReserveAmount',[FieldByname]='CompanyReserveAmount',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=37 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=38  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16562,38,29,129,'money',5,1,1,'Dcx_Employee','SocialInsuranceAmountByCompany','SocialInsuranceAmountByCompany','0',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='SocialInsuranceAmountByCompany',[FieldByname]='SocialInsuranceAmountByCompany',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=38 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=39  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16563,39,29,129,'money',5,1,1,'Dcx_Employee','AresAllowance','AresAllowance','0',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='AresAllowance',[FieldByname]='AresAllowance',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=39 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=40  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16564,40,29,129,'varchar',2,1,1,'Dcx_Employee','PlaceOfSocialInsurance','PlaceOfSocialInsurance','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='PlaceOfSocialInsurance',[FieldByname]='PlaceOfSocialInsurance',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=40 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=41  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16565,41,29,129,'varchar',2,1,1,'Dcx_Employee','BankAccount','BankAccount','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='BankAccount',[FieldByname]='BankAccount',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=41 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=42  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16566,42,29,129,'varchar',2,1,1,'Dcx_Employee','Contract','Contract','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='Contract',[FieldByname]='Contract',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=42 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=43  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16567,43,29,129,'datetime',3,1,1,'Dcx_Employee','ContractDate','ContractDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='ContractDate',[FieldByname]='ContractDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=43 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=44  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16568,44,29,129,'datetime',3,1,1,'Dcx_Employee','MaturityDate','MaturityDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='MaturityDate',[FieldByname]='MaturityDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=44 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=45  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16569,45,29,129,'int',1,1,1,'Dcx_Employee','ContractPeriod','ContractPeriod','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='ContractPeriod',[FieldByname]='ContractPeriod',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=45 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=46  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16570,46,29,129,'varchar',2,1,1,'Dcx_Employee','Education','Education','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='Education',[FieldByname]='Education',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=46 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=47  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16571,47,29,129,'varchar',2,1,1,'Dcx_Employee','College','College','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='College',[FieldByname]='College',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=47 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=48  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16572,48,29,129,'datetime',3,1,1,'Dcx_Employee','GraduationDate','GraduationDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='GraduationDate',[FieldByname]='GraduationDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=48 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=49  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16573,49,29,129,'varchar',2,1,1,'Dcx_Employee','Speciality','Speciality','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='Speciality',[FieldByname]='Speciality',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=49 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=50  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16574,50,29,129,'varchar',2,1,1,'Dcx_Employee','SpecialSkill','SpecialSkill','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='SpecialSkill',[FieldByname]='SpecialSkill',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=50 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=51  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16575,51,29,129,'varchar',2,1,1,'Dcx_Employee','QualificationCertificate','QualificationCertificate','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='QualificationCertificate',[FieldByname]='QualificationCertificate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=51 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=52  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16576,52,29,129,'varchar',2,1,1,'Dcx_Employee','PositionalTitles','PositionalTitles','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='PositionalTitles',[FieldByname]='PositionalTitles',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=52 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=53  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16577,53,29,129,'int',1,1,1,'Dcx_Employee','InsurancePeriod','InsurancePeriod','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='InsurancePeriod',[FieldByname]='InsurancePeriod',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=53 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=54  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16578,54,29,129,'datetime',3,1,1,'Dcx_Employee','InsuranceDeadline','InsuranceDeadline','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='InsuranceDeadline',[FieldByname]='InsuranceDeadline',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=54 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=55  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16579,55,29,129,'varchar',2,1,1,'Dcx_Employee','Address','Address','',0,0,1,350,350,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='Address',[FieldByname]='Address',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=350,[Precision]=350,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=55 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=56  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16580,56,29,129,'varchar',2,1,1,'Dcx_Employee','Remark','Remark','',0,0,1,350,350,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='Remark',[FieldByname]='Remark',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=350,[Precision]=350,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=56 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=57  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16581,57,29,129,'varchar',2,1,1,'Dcx_Employee','QQ','QQ','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='QQ',[FieldByname]='QQ',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=57 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=58  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16582,58,29,129,'varchar',2,1,1,'Dcx_Employee','Qualifications','Qualifications','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='Qualifications',[FieldByname]='Qualifications',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=58 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=59  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16583,59,29,129,'int',1,1,1,'Dcx_Employee','ExperienceGrade','ExperienceGrade','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='ExperienceGrade',[FieldByname]='ExperienceGrade',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=59 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=60  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16584,60,29,129,'int',1,1,1,'Dcx_Employee','MarketingGrade','MarketingGrade','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='MarketingGrade',[FieldByname]='MarketingGrade',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=60 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=61  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16585,61,29,129,'int',1,1,1,'Dcx_Employee','CraftsmanshipGrade','CraftsmanshipGrade','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='CraftsmanshipGrade',[FieldByname]='CraftsmanshipGrade',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=61 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=62  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16586,62,29,129,'int',1,1,1,'Dcx_Employee','manageGrade','manageGrade','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='manageGrade',[FieldByname]='manageGrade',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=62 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=63  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16587,63,29,129,'int',1,1,1,'Dcx_Employee','PerformanceGrade','PerformanceGrade','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='PerformanceGrade',[FieldByname]='PerformanceGrade',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=63 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=64  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16588,64,29,129,'int',1,1,1,'Dcx_Employee','CheckUpMonthCount','CheckUpMonthCount','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='CheckUpMonthCount',[FieldByname]='CheckUpMonthCount',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=64 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=65  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16589,65,29,129,'int',1,1,1,'Dcx_Employee','AccountId','AccountId','1',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='AccountId',[FieldByname]='AccountId',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=65 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=129  and  [FieldId]=66  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16590,66,29,129,'varchar',2,1,1,'Dcx_Employee','Photo','Photo','',0,0,1,350,350,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Employee',[FieldName]='Photo',[FieldByname]='Photo',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=350,[Precision]=350,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=129  and  [FieldId]=66 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=3284  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(3284,'13cf555f-cbae-4c5b-acc0-dbd632334fd3','首页设置',3278,'',-1,'/images/default.gif','/images/default.gif',0,'rightFrame',0,1,'',29,-1,29,0,0,1,null,'',0,0,'',null,3,'admin','2013-10-9 4:14:56',1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='13cf555f-cbae-4c5b-acc0-dbd632334fd3',[MenuName]='首页设置',[ParentId]=3278,[ProPath]='',[TemplateId]=-1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=0,[Target]='rightFrame',[IsOpen]=0,[IsHidden]=1,[Remark]='',[SSystemId]=29,[SMenuId]=-1,[SystemId]=29,[EntityCount]=0,[VersionId]=0,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=0,[Creator]='',[CreateTime]=null,[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-9 4:14:56',[AccountId]=1 where  [MenuId]=3284 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3284  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(1044,3284,'首页设置','Public',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='首页设置',[RoleName]='Public',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3284  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3284  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(976,3284,'首页设置','系统管理员',3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='首页设置',[RoleName]='系统管理员',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3284  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=3285  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(3285,'8c034db2-f5d9-4ab4-8e47-a4a91acafe58','工作流设计',3278,'/WorkFlow/WorkFlowMng.aspx?MenuId=3285&entid=2062&navindex=10',75,'/images/default.gif','/images/default.gif',0,'rightFrame',0,0,'',29,-1,29,1,1,1,null,'',0,0,'',null,3,'admin','2013-10-9 4:16:12',1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='8c034db2-f5d9-4ab4-8e47-a4a91acafe58',[MenuName]='工作流设计',[ParentId]=3278,[ProPath]='/WorkFlow/WorkFlowMng.aspx?MenuId=3285&entid=2062&navindex=10',[TemplateId]=75,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=0,[Target]='rightFrame',[IsOpen]=0,[IsHidden]=0,[Remark]='',[SSystemId]=29,[SMenuId]=-1,[SystemId]=29,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=0,[Creator]='',[CreateTime]=null,[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-9 4:16:12',[AccountId]=1 where  [MenuId]=3285 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3285  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(1045,3285,'工作流设计','Public',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='工作流设计',[RoleName]='Public',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3285  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3285  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(977,3285,'工作流设计','系统管理员',3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='工作流设计',[RoleName]='系统管理员',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3285  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2062  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2062,3285,'工作流设计',1,667,0,'WF_FlowType',0,0,1,29,2062,null,null,29,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3285,[EntName]='工作流设计',[MEnt]=1,[DBTableId]=667,[DBConnectId]=0,[DBTableName]='WF_FlowType',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2062,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2062 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=2062

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2062  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11096,3285,2062,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=3285,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2062  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2062

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2062  and  [ModuleTypeId]=5  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20481,29,3285,2062,63,5,25,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3285,[TemplateId]=63,[ModuleId]=25,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2062  and  [ModuleTypeId]=5 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2062  and  [ModuleTypeId]=18  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20482,29,3285,2062,63,18,49,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3285,[TemplateId]=63,[ModuleId]=49,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2062  and  [ModuleTypeId]=18 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_DefaultForm_Run]  where [EntId]=2062

--Dcx_DefaultForm_Run
      if (select count(1) from [Dcx_DefaultForm_Run] where  [EntId]=2062  )<1 
      begin 
           Insert into [Dcx_DefaultForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[OtherMsg],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('a7b4a5e1-c0a9-88fe-b6be-e3bf28926a61','工作流设计',2062,-1,'','',0,'<script src="/Js/Control/LTreeRList/LTreeRList.js"></script>','<script type="text/javascript" src="/js/WorkFlow/FlowManage.js"></script>','DcxRun.DefaultF_2062= {"MenuId":3285,"MEntId":2062,"EntName":"工作流设计","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2062":{"EntId":2062,"KeyFieldValue":"","DBTableName":"","KeyField":"FlowId","KeydtId":2,"JoinKeyField":"FlowId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
GetLinkCtrlData_DefaultF_2062_112(null,null);
GetLinkCtrlData_DefaultF_2062_113(null,null);
GetLinkCtrlData_DefaultF_2062_114(null,null);
GetLinkCtrlData_DefaultF_2062_115(null,null);
GetLinkCtrlData_DefaultF_2062_116(null,null);
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":22,"Ent":[{"EntId":2062,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,200}$","err":"限制0-200个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":2,"Vld":[{"Id":4,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":6,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":3,"Vld":[{"Id":7,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":8,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":9,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":4,"Vld":[{"Id":10,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":11,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":5,"Vld":[]},{"FldId":6,"Vld":[{"Id":13,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,200}$","err":"限制0-200个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":7,"Vld":[{"Id":14,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":15,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":8,"Vld":[{"Id":16,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":17,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":9,"Vld":[]},{"FldId":10,"Vld":[]},{"FldId":11,"Vld":[]},{"FldId":12,"Vld":[]},{"FldId":13,"Vld":[]},{"FldId":14,"Vld":[]},{"FldId":15,"Vld":[]},{"FldId":16,"Vld":[]},{"FldId":17,"Vld":[{"Id":18,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":18,"Vld":[{"Id":19,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-)) (20|21|22|23|[0-1]?\\d):[0-5]?\\d:[0-5]?\\d|((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))","err":"格式要求为日期时间格式：yyyy-mm-dd  hh:mm:ss","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":19,"Vld":[]},{"FldId":20,"Vld":[{"Id":21,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":22,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]}]}]};
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2062.EntMsg.E2062.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"WF_FlowType","EntId":2062,"KeyField":"FlowId","MKeyField":"FlowId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"FlowName":{"DtId":2,"DB":1,"CId":1,"FL":200},"SortId":{"DtId":1,"DB":1,"CId":35,"FL":4},"FlowNo":{"DtId":1,"DB":1,"CId":1,"FL":4},"EntId":{"DtId":1,"DB":1,"CId":40,"FL":4},"Detail":{"DtId":6,"DB":1,"CId":2,"FL":16},"EntName":{"DtId":2,"DB":1,"CId":1,"FL":200},"AttachMaxSize":{"DtId":1,"DB":1,"CId":1,"FL":4},"FlowAttach":{"DtId":1,"DB":1,"CId":13,"FL":4},"CanStartUsers":{"DtId":2,"DB":1,"CId":40,"FL":0},"CanStartRoles":{"DtId":2,"DB":1,"CId":1,"FL":0},"CanStartRolesId":{"DtId":2,"DB":1,"CId":40,"FL":0},"CanStartNames":{"DtId":2,"DB":1,"CId":1,"FL":0},"QueryUsers":{"DtId":2,"DB":1,"CId":40,"FL":0},"ManageUsers":{"DtId":2,"DB":1,"CId":40,"FL":0},"ManageNames":{"DtId":2,"DB":1,"CId":1,"FL":0},"Creator":{"DtId":2,"DB":1,"CId":4,"FL":50},"CreateTime":{"DtId":3,"DB":1,"CId":4,"FL":8},"QueryNames":{"DtId":2,"DB":1,"CId":1,"FL":0},"AccountId":{"DtId":1,"DB":1,"CId":1,"FL":4}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2062.EntMsg.E2062.GetDataRowModel=function()
{
    return {"FlowName":"","SortId":-1,"FlowNo":1,"EntId":-1,"Detail":"","EntName":"{@EntId*}","AttachMaxSize":-1,"FlowAttach":-1,"CanStartUsers":"","CanStartRoles":"{@CanStartRolesId*}","CanStartRolesId":"","CanStartNames":"{@CanStartUsers*}","QueryUsers":"","ManageUsers":"","ManageNames":"{@ManageUsers*}","Creator":"","CreateTime":new Date(),"QueryNames":"{@QueryUsers*}","AccountId":-1,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"FlowId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_DefaultF_2062_112(obj,curFieldName){
 var EntId=2062;
 var FldId=6;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''EntName'';
 var $formContainer=DcxForm.GetHtmlContainer(2062,''DefaultF_'');
 var $ddlContainer=null;
var strCode="{@EntId&}" ;
var v_f1=null;
if(''EntId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,2062,''DefaultF_'',''EntId'',40,$formContainer,false,true);
if(v_f1==null)
   v_f1='''';
strCode=strCode.replaceAll("{@EntId&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d2062_EntName");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
function GetLinkCtrlData_DefaultF_2062_113(obj,curFieldName){
 var EntId=2062;
 var FldId=10;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''CanStartRoles'';
 var $formContainer=DcxForm.GetHtmlContainer(2062,''DefaultF_'');
 var $ddlContainer=null;
var strCode="{@CanStartRolesId&}" ;
var v_f1=null;
if(''CanStartRolesId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,2062,''DefaultF_'',''CanStartRolesId'',40,$formContainer,false,true);
if(v_f1==null)
   v_f1='''';
strCode=strCode.replaceAll("{@CanStartRolesId&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d2062_CanStartRoles");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
function GetLinkCtrlData_DefaultF_2062_114(obj,curFieldName){
 var EntId=2062;
 var FldId=13;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''CanStartNames'';
 var $formContainer=DcxForm.GetHtmlContainer(2062,''DefaultF_'');
 var $ddlContainer=null;
var strCode="{@CanStartUsers&}" ;
var v_f1=null;
if(''CanStartUsers''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,2062,''DefaultF_'',''CanStartUsers'',40,$formContainer,false,true);
if(v_f1==null)
   v_f1='''';
strCode=strCode.replaceAll("{@CanStartUsers&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d2062_CanStartNames");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
function GetLinkCtrlData_DefaultF_2062_115(obj,curFieldName){
 var EntId=2062;
 var FldId=16;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''ManageNames'';
 var $formContainer=DcxForm.GetHtmlContainer(2062,''DefaultF_'');
 var $ddlContainer=null;
var strCode="{@ManageUsers&}" ;
var v_f1=null;
if(''ManageUsers''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,2062,''DefaultF_'',''ManageUsers'',40,$formContainer,false,true);
if(v_f1==null)
   v_f1='''';
strCode=strCode.replaceAll("{@ManageUsers&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d2062_ManageNames");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
function GetLinkCtrlData_DefaultF_2062_116(obj,curFieldName){
 var EntId=2062;
 var FldId=19;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''QueryNames'';
 var $formContainer=DcxForm.GetHtmlContainer(2062,''DefaultF_'');
 var $ddlContainer=null;
var strCode="{@QueryUsers&}" ;
var v_f1=null;
if(''QueryUsers''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,2062,''DefaultF_'',''QueryUsers'',40,$formContainer,false,true);
if(v_f1==null)
   v_f1='''';
strCode=strCode.replaceAll("{@QueryUsers&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d2062_QueryNames");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2062.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2062,''DefaultF_'',buildNew,closeDlg);

}','<$2062$>select [FlowName],[SortId],[EntId],[EntName],[CanStartUsers],[CanStartNames],[CanStartRolesId],[CanStartRoles],[QueryUsers],[QueryNames],[ManageUsers],[ManageNames],[FlowNo],[FlowAttach],[AttachMaxSize],[Detail],[Creator],[CreateTime],[AccountId],[FlowId] from WF_FlowType where [FlowId]=''{$keyfieldvalue}''</$2062$>',10,'2062*FlowId*2*FlowId*2*WF_FlowType*工作流设计','','','',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-15 21:18:26',3,'admin','2013-11-29 4:04:37',1)
      end
      else 
      begin 
           update [Dcx_DefaultForm_Run] set [FormId]='a7b4a5e1-c0a9-88fe-b6be-e3bf28926a61',[FormName]='工作流设计',[ModuleId]=-1,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script src="/Js/Control/LTreeRList/LTreeRList.js"></script>',[DIYJsCss2]='<script type="text/javascript" src="/js/WorkFlow/FlowManage.js"></script>',[AutoPublicJs]='DcxRun.DefaultF_2062= {"MenuId":3285,"MEntId":2062,"EntName":"工作流设计","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2062":{"EntId":2062,"KeyFieldValue":"","DBTableName":"","KeyField":"FlowId","KeydtId":2,"JoinKeyField":"FlowId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
GetLinkCtrlData_DefaultF_2062_112(null,null);
GetLinkCtrlData_DefaultF_2062_113(null,null);
GetLinkCtrlData_DefaultF_2062_114(null,null);
GetLinkCtrlData_DefaultF_2062_115(null,null);
GetLinkCtrlData_DefaultF_2062_116(null,null);
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":22,"Ent":[{"EntId":2062,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,200}$","err":"限制0-200个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":2,"Vld":[{"Id":4,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":6,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":3,"Vld":[{"Id":7,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":8,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":9,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":4,"Vld":[{"Id":10,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":11,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":5,"Vld":[]},{"FldId":6,"Vld":[{"Id":13,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,200}$","err":"限制0-200个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":7,"Vld":[{"Id":14,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":15,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":8,"Vld":[{"Id":16,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":17,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":9,"Vld":[]},{"FldId":10,"Vld":[]},{"FldId":11,"Vld":[]},{"FldId":12,"Vld":[]},{"FldId":13,"Vld":[]},{"FldId":14,"Vld":[]},{"FldId":15,"Vld":[]},{"FldId":16,"Vld":[]},{"FldId":17,"Vld":[{"Id":18,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":18,"Vld":[{"Id":19,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-)) (20|21|22|23|[0-1]?\\d):[0-5]?\\d:[0-5]?\\d|((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))","err":"格式要求为日期时间格式：yyyy-mm-dd  hh:mm:ss","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":19,"Vld":[]},{"FldId":20,"Vld":[{"Id":21,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":22,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]}]}]};
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2062.EntMsg.E2062.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"WF_FlowType","EntId":2062,"KeyField":"FlowId","MKeyField":"FlowId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"FlowName":{"DtId":2,"DB":1,"CId":1,"FL":200},"SortId":{"DtId":1,"DB":1,"CId":35,"FL":4},"FlowNo":{"DtId":1,"DB":1,"CId":1,"FL":4},"EntId":{"DtId":1,"DB":1,"CId":40,"FL":4},"Detail":{"DtId":6,"DB":1,"CId":2,"FL":16},"EntName":{"DtId":2,"DB":1,"CId":1,"FL":200},"AttachMaxSize":{"DtId":1,"DB":1,"CId":1,"FL":4},"FlowAttach":{"DtId":1,"DB":1,"CId":13,"FL":4},"CanStartUsers":{"DtId":2,"DB":1,"CId":40,"FL":0},"CanStartRoles":{"DtId":2,"DB":1,"CId":1,"FL":0},"CanStartRolesId":{"DtId":2,"DB":1,"CId":40,"FL":0},"CanStartNames":{"DtId":2,"DB":1,"CId":1,"FL":0},"QueryUsers":{"DtId":2,"DB":1,"CId":40,"FL":0},"ManageUsers":{"DtId":2,"DB":1,"CId":40,"FL":0},"ManageNames":{"DtId":2,"DB":1,"CId":1,"FL":0},"Creator":{"DtId":2,"DB":1,"CId":4,"FL":50},"CreateTime":{"DtId":3,"DB":1,"CId":4,"FL":8},"QueryNames":{"DtId":2,"DB":1,"CId":1,"FL":0},"AccountId":{"DtId":1,"DB":1,"CId":1,"FL":4}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2062.EntMsg.E2062.GetDataRowModel=function()
{
    return {"FlowName":"","SortId":-1,"FlowNo":1,"EntId":-1,"Detail":"","EntName":"{@EntId*}","AttachMaxSize":-1,"FlowAttach":-1,"CanStartUsers":"","CanStartRoles":"{@CanStartRolesId*}","CanStartRolesId":"","CanStartNames":"{@CanStartUsers*}","QueryUsers":"","ManageUsers":"","ManageNames":"{@ManageUsers*}","Creator":"","CreateTime":new Date(),"QueryNames":"{@QueryUsers*}","AccountId":-1,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"FlowId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_DefaultF_2062_112(obj,curFieldName){
 var EntId=2062;
 var FldId=6;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''EntName'';
 var $formContainer=DcxForm.GetHtmlContainer(2062,''DefaultF_'');
 var $ddlContainer=null;
var strCode="{@EntId&}" ;
var v_f1=null;
if(''EntId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,2062,''DefaultF_'',''EntId'',40,$formContainer,false,true);
if(v_f1==null)
   v_f1='''';
strCode=strCode.replaceAll("{@EntId&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d2062_EntName");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
function GetLinkCtrlData_DefaultF_2062_113(obj,curFieldName){
 var EntId=2062;
 var FldId=10;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''CanStartRoles'';
 var $formContainer=DcxForm.GetHtmlContainer(2062,''DefaultF_'');
 var $ddlContainer=null;
var strCode="{@CanStartRolesId&}" ;
var v_f1=null;
if(''CanStartRolesId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,2062,''DefaultF_'',''CanStartRolesId'',40,$formContainer,false,true);
if(v_f1==null)
   v_f1='''';
strCode=strCode.replaceAll("{@CanStartRolesId&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d2062_CanStartRoles");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
function GetLinkCtrlData_DefaultF_2062_114(obj,curFieldName){
 var EntId=2062;
 var FldId=13;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''CanStartNames'';
 var $formContainer=DcxForm.GetHtmlContainer(2062,''DefaultF_'');
 var $ddlContainer=null;
var strCode="{@CanStartUsers&}" ;
var v_f1=null;
if(''CanStartUsers''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,2062,''DefaultF_'',''CanStartUsers'',40,$formContainer,false,true);
if(v_f1==null)
   v_f1='''';
strCode=strCode.replaceAll("{@CanStartUsers&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d2062_CanStartNames");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
function GetLinkCtrlData_DefaultF_2062_115(obj,curFieldName){
 var EntId=2062;
 var FldId=16;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''ManageNames'';
 var $formContainer=DcxForm.GetHtmlContainer(2062,''DefaultF_'');
 var $ddlContainer=null;
var strCode="{@ManageUsers&}" ;
var v_f1=null;
if(''ManageUsers''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,2062,''DefaultF_'',''ManageUsers'',40,$formContainer,false,true);
if(v_f1==null)
   v_f1='''';
strCode=strCode.replaceAll("{@ManageUsers&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d2062_ManageNames");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
function GetLinkCtrlData_DefaultF_2062_116(obj,curFieldName){
 var EntId=2062;
 var FldId=19;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''QueryNames'';
 var $formContainer=DcxForm.GetHtmlContainer(2062,''DefaultF_'');
 var $ddlContainer=null;
var strCode="{@QueryUsers&}" ;
var v_f1=null;
if(''QueryUsers''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,2062,''DefaultF_'',''QueryUsers'',40,$formContainer,false,true);
if(v_f1==null)
   v_f1='''';
strCode=strCode.replaceAll("{@QueryUsers&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d2062_QueryNames");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2062.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2062,''DefaultF_'',buildNew,closeDlg);

}',[LoadingSql]='<$2062$>select [FlowName],[SortId],[EntId],[EntName],[CanStartUsers],[CanStartNames],[CanStartRolesId],[CanStartRoles],[QueryUsers],[QueryNames],[ManageUsers],[ManageNames],[FlowNo],[FlowAttach],[AttachMaxSize],[Detail],[Creator],[CreateTime],[AccountId],[FlowId] from WF_FlowType where [FlowId]=''{$keyfieldvalue}''</$2062$>',[PageSize]=10,[OtherMsg]='2062*FlowId*2*FlowId*2*WF_FlowType*工作流设计',[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-15 21:18:26',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-29 4:04:37',[AccountId]=1 where  [EntId]=2062 
      end




--Dcx_DefaultFormField_Run
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='8a29330e-317a-df2b-948e-ed1f4c6aa9d4'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'8a29330e-317a-df2b-948e-ed1f4c6aa9d4',2062,2062,'00000000-0000-0000-0000-000000000000',1,'FlowName',2,2,2,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','<div class="defaultform ">
<div class="div_top">
<div class="title-div">
<ul style="WIDTH: 599px" class="ul-title" entid="2062" groupid="5" isgroup="1" ctrlprex="DefaultF_" isrple="1">
<li style="position: static;" class="li-area-title" areaid="20" scroll="no">
<div id="div_head1" class="form-title5"><span id="h2_title" class="title-name">工作流设计</span></div></li>
<li style="width: 120px; height: 36px; position: static;" class="li-area1" areaid="21" scroll="no"><a style="WIDTH: 60px" class="f_hot_op_bt f_hot_op_bt3 " onclick="javascript:DcxCom.ShowWfDlgDesigner();" href="javascript:void(0);"><span class="op_bt_i">设计流程</span> </a></li>
<li style="position: static;" class="li-area1" areaid="22" scroll="no"><a class="f_hot_op_bt f_hot_op_bt1 " onclick="javascript:DcxRun.DefaultF_2062.SubmitForm(false);" href="javascript:void(0);"><span class="op_bt_i">保存</span> </a></li>
<li style="width: 91px; height: 36px; position: static;" class="li-area1" areaid="23" scroll="no"><a id="btn_NewBrotherMenu" class="f_hot_op_bt f_hot_op_bt2" onclick="javascript:DcxForm.BuildNew(2062,''DefaultF_'');" href="javascript:void(0);"><span class="op_bt_i">新建</span> </a></li></ul></div>
<div class="frame-div">
<ul style="WIDTH: 599px" class="ul-mform" entid="2062" groupid="1" isgroup="1" ctrlprex="DefaultF_" isrple="1">
<li style="width: 595px; height: 55px; position: static;" class="li-area" areaid="24" scroll="no"><label class="area-title pad4" fldid="1" istitle="1">流程名称</label> 
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">','','','','<input  id="d2062_FlowName"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2062,''DefaultF_'',2062,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2062,''DefaultF_'',2062);" EntId="2062" IsField=1 DBField=1 IsPost=1 FieldName="FlowName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2062,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=1,[Form_EntId]=2062,[EntId]=2062,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[FieldName]='FlowName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=2,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="defaultform ">
<div class="div_top">
<div class="title-div">
<ul style="WIDTH: 599px" class="ul-title" entid="2062" groupid="5" isgroup="1" ctrlprex="DefaultF_" isrple="1">
<li style="position: static;" class="li-area-title" areaid="20" scroll="no">
<div id="div_head1" class="form-title5"><span id="h2_title" class="title-name">工作流设计</span></div></li>
<li style="width: 120px; height: 36px; position: static;" class="li-area1" areaid="21" scroll="no"><a style="WIDTH: 60px" class="f_hot_op_bt f_hot_op_bt3 " onclick="javascript:DcxCom.ShowWfDlgDesigner();" href="javascript:void(0);"><span class="op_bt_i">设计流程</span> </a></li>
<li style="position: static;" class="li-area1" areaid="22" scroll="no"><a class="f_hot_op_bt f_hot_op_bt1 " onclick="javascript:DcxRun.DefaultF_2062.SubmitForm(false);" href="javascript:void(0);"><span class="op_bt_i">保存</span> </a></li>
<li style="width: 91px; height: 36px; position: static;" class="li-area1" areaid="23" scroll="no"><a id="btn_NewBrotherMenu" class="f_hot_op_bt f_hot_op_bt2" onclick="javascript:DcxForm.BuildNew(2062,''DefaultF_'');" href="javascript:void(0);"><span class="op_bt_i">新建</span> </a></li></ul></div>
<div class="frame-div">
<ul style="WIDTH: 599px" class="ul-mform" entid="2062" groupid="1" isgroup="1" ctrlprex="DefaultF_" isrple="1">
<li style="width: 595px; height: 55px; position: static;" class="li-area" areaid="24" scroll="no"><label class="area-title pad4" fldid="1" istitle="1">流程名称</label> 
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2062_FlowName"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2062,''DefaultF_'',2062,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2062,''DefaultF_'',2062);" EntId="2062" IsField=1 DBField=1 IsPost=1 FieldName="FlowName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2062,' where  [FldUId]='8a29330e-317a-df2b-948e-ed1f4c6aa9d4' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='4dd4e8d2-6037-8764-c76a-72f297a02c4c'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'4dd4e8d2-6037-8764-c76a-72f297a02c4c',2062,2062,'00000000-0000-0000-0000-000000000000',2,'SortId',1,1,4,'SELECT [SortName],[SortId]  FROM [WF_FlowSort] order by [SortNo]',2,2,1,0,35,1,-1,-1,1,0,'','','','','</span> </div></li>
<li style="width: 595px; height: 55px; position: static;" class="li-area" areaid="25" scroll="no"><label class="area-title pad4" fldid="2" istitle="1">所属类别</label> 
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">','','','','<div id="d2062_SortId" class="form-ddl" style="-width:280px;" IsForField=1 EntId="2062" FId="2" Vtp="2" RId="2" Isc="1" CId="35" FieldName="SortId" ><input  id="d2062_SortId_Text" type="text" class="form-ddl-txt" readonly="readOnly"  CId="35" FId="2" Vtp="2"  RId="2" Isc="1"  style="width:250px;" onclick ="javascript:DcxDdl.ShowDialogAf(this,2062,''SortId'',false);" onchange ="javascript:if(!DcxVld.Validate(this,2062,''DefaultF_'',2062,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2062,''DefaultF_'',2062);" onkeyup ="javascript:DcxDdl.ShowDialogAf(this,2062,''SortId'',true);" value="','" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2062_SortId_hid" type="hidden"  EntId="2062" IsField=1 DBField=1 IsPost=1 FieldName="SortId" dType="1" Vtp="2" RDT="1" Isc="1" RId="2" CId="35" FId="2" vlk=0    value="','"/>',-1,-1,-1,-1,0,'2062,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=2,[Form_EntId]=2062,[EntId]=2062,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[FieldName]='SortId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=4,[DefaultValue]='SELECT [SortName],[SortId]  FROM [WF_FlowSort] order by [SortNo]',[ValueType]=2,[RunValueType]=2,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=35,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="width: 595px; height: 55px; position: static;" class="li-area" areaid="25" scroll="no"><label class="area-title pad4" fldid="2" istitle="1">所属类别</label> 
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2062_SortId" class="form-ddl" style="-width:280px;" IsForField=1 EntId="2062" FId="2" Vtp="2" RId="2" Isc="1" CId="35" FieldName="SortId" ><input  id="d2062_SortId_Text" type="text" class="form-ddl-txt" readonly="readOnly"  CId="35" FId="2" Vtp="2"  RId="2" Isc="1"  style="width:250px;" onclick ="javascript:DcxDdl.ShowDialogAf(this,2062,''SortId'',false);" onchange ="javascript:if(!DcxVld.Validate(this,2062,''DefaultF_'',2062,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2062,''DefaultF_'',2062);" onkeyup ="javascript:DcxDdl.ShowDialogAf(this,2062,''SortId'',true);" value="',[CtrlbackHtml]='" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2062_SortId_hid" type="hidden"  EntId="2062" IsField=1 DBField=1 IsPost=1 FieldName="SortId" dType="1" Vtp="2" RDT="1" Isc="1" RId="2" CId="35" FId="2" vlk=0    value="',[CtrlLastHtml]='"/>',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2062,' where  [FldUId]='4dd4e8d2-6037-8764-c76a-72f297a02c4c' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='03f47905-4c8e-931b-2efa-bcffe8e5cb66'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'03f47905-4c8e-931b-2efa-bcffe8e5cb66',2062,2062,'00000000-0000-0000-0000-000000000000',3,'EntId',1,1,5,'',5,2,1,0,40,1,-1,32,1,0,'','','','','</span> 
<div class="form-vld" iserr="1"></div></div></li>
<li style="position: static; width: 595px; height: 55px;" class="li-area" areaid="33" scroll="no"><label class="area-title pad4" fldid="4" istitle="1">绑定的应用</label> 
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">','','','','<div id="d2062_EntId" class="form-ddl" style="-width:280px;" CBack=1  IsForField=1 EntId="2062" FId="4" Vtp="5" RId="2" Isc="1" CId="40" FieldName="EntId" ><input  id="d2062_EntId_Text" type="text" class="form-ddl-txt" readonly="readOnly"  CId="40" FId="4" Vtp="5"  RId="2" Isc="1"  style="width:250px;" onclick ="javascript:DcxTree.ShowDialogAf(this,32,2062,''EntId'',false);" onchange ="javascript:GetLinkCtrlData_DefaultF_2062_112(this,''EntId'');if(!DcxVld.Validate(this,2062,''DefaultF_'',2062,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2062,''DefaultF_'',2062);" onkeyup ="javascript:DcxTree.ShowDialogAf(this,32,2062,''EntId'',true);" CBack=1  value="','" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2062_EntId_hid" type="hidden"  EntId="2062" IsField=1 DBField=1 IsPost=1 FieldName="EntId" dType="1" Vtp="5" RDT="1" Isc="1" RId="2" CId="40" FId="4" vlk=0   TId=32  TFN="EntName"  value="','" />',-1,-1,-1,-1,0,'2062,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=4,[Form_EntId]=2062,[EntId]=2062,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[FieldName]='EntId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=5,[DefaultValue]='',[ValueType]=5,[RunValueType]=2,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=40,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=32,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> 
<div class="form-vld" iserr="1"></div></div></li>
<li style="position: static; width: 595px; height: 55px;" class="li-area" areaid="33" scroll="no"><label class="area-title pad4" fldid="4" istitle="1">绑定的应用</label> 
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2062_EntId" class="form-ddl" style="-width:280px;" CBack=1  IsForField=1 EntId="2062" FId="4" Vtp="5" RId="2" Isc="1" CId="40" FieldName="EntId" ><input  id="d2062_EntId_Text" type="text" class="form-ddl-txt" readonly="readOnly"  CId="40" FId="4" Vtp="5"  RId="2" Isc="1"  style="width:250px;" onclick ="javascript:DcxTree.ShowDialogAf(this,32,2062,''EntId'',false);" onchange ="javascript:GetLinkCtrlData_DefaultF_2062_112(this,''EntId'');if(!DcxVld.Validate(this,2062,''DefaultF_'',2062,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2062,''DefaultF_'',2062);" onkeyup ="javascript:DcxTree.ShowDialogAf(this,32,2062,''EntId'',true);" CBack=1  value="',[CtrlbackHtml]='" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2062_EntId_hid" type="hidden"  EntId="2062" IsField=1 DBField=1 IsPost=1 FieldName="EntId" dType="1" Vtp="5" RDT="1" Isc="1" RId="2" CId="40" FId="4" vlk=0   TId=32  TFN="EntName"  value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2062,' where  [FldUId]='03f47905-4c8e-931b-2efa-bcffe8e5cb66' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='da72392a-d962-17c7-3a7d-04dca44c0006'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'da72392a-d962-17c7-3a7d-04dca44c0006',2062,2062,'00000000-0000-0000-0000-000000000000',4,'EntName',2,2,6,'',5,1,1,0,1,1,-1,-1,1,0,'','','EntId,','','</span> <span class="form-ctr" isfcontain="1">','','','','<input  id="d2062_EntName"   type="text" class="form-txt hide"  style="width:20px;display:none;" onblur ="javascript:if(!DcxVld.Validate(this,2062,''DefaultF_'',2062,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2062,''DefaultF_'',2062);" EntId="2062" IsField=1 DBField=1 IsPost=1 FieldName="EntName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="6" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2062,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=6,[Form_EntId]=2062,[EntId]=2062,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=4,[FieldName]='EntName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=6,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='EntId,',[SystemVariables]='',[BeforeHtml]='</span> <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2062_EntName"   type="text" class="form-txt hide"  style="width:20px;display:none;" onblur ="javascript:if(!DcxVld.Validate(this,2062,''DefaultF_'',2062,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2062,''DefaultF_'',2062);" EntId="2062" IsField=1 DBField=1 IsPost=1 FieldName="EntName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="6" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2062,' where  [FldUId]='da72392a-d962-17c7-3a7d-04dca44c0006' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='363b16c7-9a24-e9fe-3ed9-8e058ee243b2'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'363b16c7-9a24-e9fe-3ed9-8e058ee243b2',2062,2062,'00000000-0000-0000-0000-000000000000',5,'CanStartUsers',2,2,16,'',5,2,0,0,40,1,-1,-27,1,0,'','','','','</span> </div></li></ul></div>
<div class="div_tabs">
<ul style="WIDTH: 595px" class="tab_ul" entid="2062" groupid="2" isgroup="1" islonly="1" istab="1" ctrlprex="DefaultF_" isrple="1">
<li style="width: 70px; height: 29px; position: static;" class="ui-droppable  li-tab" areaid="26" scroll="no" istab="1" tabid="1"><a class="tab_a" href="javascript:void(0);" tabid="1">权限设置</a></li>
<li style="width: 70px; height: 29px; position: static;" class="ui-droppable  li-tab de-selected" areaid="27" scroll="no" istab="1" tabid="2"><a class="tab_a" href="javascript:void(0);" tabid="2">其他属性</a></li></ul>
<div style="display: none;" class="tabs-content" tabid="1">
<ul style="width: 595px;" class="ul-mform" entid="2062" groupid="3" isgroup="1" ctrlprex="DefaultF_" isrple="1">
<li style="width: 595px; height: 55px; position: static;" class="li-area" areaid="28" scroll="no"><label class="area-title pad4" fldid="9" istitle="1">可启动人员</label> 
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">','','','','<div id="d2062_CanStartUsers" class="form-ddl" style="-width:350px;" CBack=1  IsForField=1 EntId="2062" FId="9" Vtp="5" RId="2" Isc="0" CId="40" FieldName="CanStartUsers" ><textarea  id="d2062_CanStartUsers_Text" class="form-ddl-txts" readonly="readOnly"  CId="40" FId="9" Vtp="5"  RId="2" Isc="0"  style="width:320px;height:50px;" onclick ="javascript:DcxTree.ShowDialogAf(this,27,2062,''CanStartUsers'',false);" onchange ="javascript:GetLinkCtrlData_DefaultF_2062_114(this,''CanStartUsers'');" onkeyup ="javascript:DcxTree.ShowDialogAf(this,27,2062,''CanStartUsers'',true);" CBack=1  >','</textarea><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2062_CanStartUsers_hid" type="hidden"  EntId="2062" IsField=1 DBField=1 IsPost=1 FieldName="CanStartUsers" dType="2" Vtp="5" RDT="2" Isc="0" RId="2" CId="40" FId="9" vlk=0   TId=27  TFN="CanStartNames"  value="','" />',-1,-1,-1,-1,0,'2062,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=9,[Form_EntId]=2062,[EntId]=2062,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=5,[FieldName]='CanStartUsers',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=16,[DefaultValue]='',[ValueType]=5,[RunValueType]=2,[IsSingleChoice]=0,[CtrlStyleId]=0,[CtrlTypeId]=40,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-27,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li></ul></div>
<div class="div_tabs">
<ul style="WIDTH: 595px" class="tab_ul" entid="2062" groupid="2" isgroup="1" islonly="1" istab="1" ctrlprex="DefaultF_" isrple="1">
<li style="width: 70px; height: 29px; position: static;" class="ui-droppable  li-tab" areaid="26" scroll="no" istab="1" tabid="1"><a class="tab_a" href="javascript:void(0);" tabid="1">权限设置</a></li>
<li style="width: 70px; height: 29px; position: static;" class="ui-droppable  li-tab de-selected" areaid="27" scroll="no" istab="1" tabid="2"><a class="tab_a" href="javascript:void(0);" tabid="2">其他属性</a></li></ul>
<div style="display: none;" class="tabs-content" tabid="1">
<ul style="width: 595px;" class="ul-mform" entid="2062" groupid="3" isgroup="1" ctrlprex="DefaultF_" isrple="1">
<li style="width: 595px; height: 55px; position: static;" class="li-area" areaid="28" scroll="no"><label class="area-title pad4" fldid="9" istitle="1">可启动人员</label> 
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2062_CanStartUsers" class="form-ddl" style="-width:350px;" CBack=1  IsForField=1 EntId="2062" FId="9" Vtp="5" RId="2" Isc="0" CId="40" FieldName="CanStartUsers" ><textarea  id="d2062_CanStartUsers_Text" class="form-ddl-txts" readonly="readOnly"  CId="40" FId="9" Vtp="5"  RId="2" Isc="0"  style="width:320px;height:50px;" onclick ="javascript:DcxTree.ShowDialogAf(this,27,2062,''CanStartUsers'',false);" onchange ="javascript:GetLinkCtrlData_DefaultF_2062_114(this,''CanStartUsers'');" onkeyup ="javascript:DcxTree.ShowDialogAf(this,27,2062,''CanStartUsers'',true);" CBack=1  >',[CtrlbackHtml]='</textarea><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2062_CanStartUsers_hid" type="hidden"  EntId="2062" IsField=1 DBField=1 IsPost=1 FieldName="CanStartUsers" dType="2" Vtp="5" RDT="2" Isc="0" RId="2" CId="40" FId="9" vlk=0   TId=27  TFN="CanStartNames"  value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2062,' where  [FldUId]='363b16c7-9a24-e9fe-3ed9-8e058ee243b2' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='41f0c954-1114-bfcd-c511-01c9380bccc3'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(13,'41f0c954-1114-bfcd-c511-01c9380bccc3',2062,2062,'00000000-0000-0000-0000-000000000000',6,'CanStartNames',2,2,17,'',5,1,1,0,1,1,-1,-1,1,0,'','','CanStartUsers,','','</span> <span class="form-ctr" isfcontain="1">','','','','<input  id="d2062_CanStartNames"   type="text" class="form-txt hide"  style="width:40px;display:none;" EntId="2062" IsField=1 DBField=1 IsPost=1 FieldName="CanStartNames" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="13" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2062,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=13,[Form_EntId]=2062,[EntId]=2062,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=6,[FieldName]='CanStartNames',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=17,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='CanStartUsers,',[SystemVariables]='',[BeforeHtml]='</span> <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2062_CanStartNames"   type="text" class="form-txt hide"  style="width:40px;display:none;" EntId="2062" IsField=1 DBField=1 IsPost=1 FieldName="CanStartNames" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="13" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2062,' where  [FldUId]='41f0c954-1114-bfcd-c511-01c9380bccc3' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='6a2674c0-b9c0-b38e-12ee-bfa668e52b88'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'6a2674c0-b9c0-b38e-12ee-bfa668e52b88',2062,2062,'00000000-0000-0000-0000-000000000000',7,'CanStartRolesId',2,2,19,'',5,2,0,0,40,1,-1,28,1,0,'','','','','</span> </div></li>
<li style="width: 595px; height: 55px; position: static;" class="li-area" fldid="-1" areaid="29" scroll="no"><label class="area-title pad4" fldid="10" istitle="1">可启动角色</label> 
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">','','','','<div id="d2062_CanStartRolesId" class="form-ddl" style="-width:350px;" CBack=1  IsForField=1 EntId="2062" FId="11" Vtp="5" RId="2" Isc="0" CId="40" FieldName="CanStartRolesId" ><textarea  id="d2062_CanStartRolesId_Text" class="form-ddl-txts" readonly="readOnly"  CId="40" FId="11" Vtp="5"  RId="2" Isc="0"  style="width:320px;height:50px;" onclick ="javascript:DcxTree.ShowDialogAf(this,28,2062,''CanStartRolesId'',false);" onchange ="javascript:GetLinkCtrlData_DefaultF_2062_113(this,''CanStartRolesId'');" onkeyup ="javascript:DcxTree.ShowDialogAf(this,28,2062,''CanStartRolesId'',true);" CBack=1  >','</textarea><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2062_CanStartRolesId_hid" type="hidden"  EntId="2062" IsField=1 DBField=1 IsPost=1 FieldName="CanStartRolesId" dType="2" Vtp="5" RDT="2" Isc="0" RId="2" CId="40" FId="11" vlk=0   TId=28  TFN="CanStartRoles"  value="','" />',-1,-1,-1,-1,0,'2062,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=11,[Form_EntId]=2062,[EntId]=2062,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=7,[FieldName]='CanStartRolesId',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=19,[DefaultValue]='',[ValueType]=5,[RunValueType]=2,[IsSingleChoice]=0,[CtrlStyleId]=0,[CtrlTypeId]=40,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=28,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="width: 595px; height: 55px; position: static;" class="li-area" fldid="-1" areaid="29" scroll="no"><label class="area-title pad4" fldid="10" istitle="1">可启动角色</label> 
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2062_CanStartRolesId" class="form-ddl" style="-width:350px;" CBack=1  IsForField=1 EntId="2062" FId="11" Vtp="5" RId="2" Isc="0" CId="40" FieldName="CanStartRolesId" ><textarea  id="d2062_CanStartRolesId_Text" class="form-ddl-txts" readonly="readOnly"  CId="40" FId="11" Vtp="5"  RId="2" Isc="0"  style="width:320px;height:50px;" onclick ="javascript:DcxTree.ShowDialogAf(this,28,2062,''CanStartRolesId'',false);" onchange ="javascript:GetLinkCtrlData_DefaultF_2062_113(this,''CanStartRolesId'');" onkeyup ="javascript:DcxTree.ShowDialogAf(this,28,2062,''CanStartRolesId'',true);" CBack=1  >',[CtrlbackHtml]='</textarea><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2062_CanStartRolesId_hid" type="hidden"  EntId="2062" IsField=1 DBField=1 IsPost=1 FieldName="CanStartRolesId" dType="2" Vtp="5" RDT="2" Isc="0" RId="2" CId="40" FId="11" vlk=0   TId=28  TFN="CanStartRoles"  value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2062,' where  [FldUId]='6a2674c0-b9c0-b38e-12ee-bfa668e52b88' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='aa562917-5deb-3549-a1de-2e98b559cf06'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'aa562917-5deb-3549-a1de-2e98b559cf06',2062,2062,'00000000-0000-0000-0000-000000000000',8,'CanStartRoles',2,2,18,'',5,1,1,0,1,1,-1,-1,1,0,'','','CanStartRolesId,','','</span> <span class="form-ctr" isfcontain="1">','','','','<input  id="d2062_CanStartRoles"   type="text" class="form-txt hide"  style="width:40px;display:none;" EntId="2062" IsField=1 DBField=1 IsPost=1 FieldName="CanStartRoles" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="10" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2062,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=10,[Form_EntId]=2062,[EntId]=2062,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=8,[FieldName]='CanStartRoles',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=18,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='CanStartRolesId,',[SystemVariables]='',[BeforeHtml]='</span> <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2062_CanStartRoles"   type="text" class="form-txt hide"  style="width:40px;display:none;" EntId="2062" IsField=1 DBField=1 IsPost=1 FieldName="CanStartRoles" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="10" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2062,' where  [FldUId]='aa562917-5deb-3549-a1de-2e98b559cf06' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='d962b259-0584-2072-2044-0cfaa9211f85'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(14,'d962b259-0584-2072-2044-0cfaa9211f85',2062,2062,'00000000-0000-0000-0000-000000000000',9,'QueryUsers',2,2,10,'',5,2,0,0,40,1,-1,-27,1,0,'','','','','</span> </div></li>
<li style="position: static; width: 595px; height: 55px;" class="li-area" fldid="-1" areaid="36" scroll="no"><label class="area-title pad4" fldid="14" istitle="1">可查询人员</label> 
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">','','','','<div id="d2062_QueryUsers" class="form-ddl" style="-width:350px;" CBack=1  IsForField=1 EntId="2062" FId="14" Vtp="5" RId="2" Isc="0" CId="40" FieldName="QueryUsers" ><textarea  id="d2062_QueryUsers_Text" class="form-ddl-txts" readonly="readOnly"  CId="40" FId="14" Vtp="5"  RId="2" Isc="0"  style="width:320px;height:50px;" onclick ="javascript:DcxTree.ShowDialogAf(this,27,2062,''QueryUsers'',false);" onchange ="javascript:GetLinkCtrlData_DefaultF_2062_116(this,''QueryUsers'');" onkeyup ="javascript:DcxTree.ShowDialogAf(this,27,2062,''QueryUsers'',true);" CBack=1  >','</textarea><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2062_QueryUsers_hid" type="hidden"  EntId="2062" IsField=1 DBField=1 IsPost=1 FieldName="QueryUsers" dType="2" Vtp="5" RDT="2" Isc="0" RId="2" CId="40" FId="14" vlk=0   TId=27  TFN="QueryNames"  value="','" />',-1,-1,-1,-1,0,'2062,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=14,[Form_EntId]=2062,[EntId]=2062,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=9,[FieldName]='QueryUsers',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=10,[DefaultValue]='',[ValueType]=5,[RunValueType]=2,[IsSingleChoice]=0,[CtrlStyleId]=0,[CtrlTypeId]=40,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-27,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="position: static; width: 595px; height: 55px;" class="li-area" fldid="-1" areaid="36" scroll="no"><label class="area-title pad4" fldid="14" istitle="1">可查询人员</label> 
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2062_QueryUsers" class="form-ddl" style="-width:350px;" CBack=1  IsForField=1 EntId="2062" FId="14" Vtp="5" RId="2" Isc="0" CId="40" FieldName="QueryUsers" ><textarea  id="d2062_QueryUsers_Text" class="form-ddl-txts" readonly="readOnly"  CId="40" FId="14" Vtp="5"  RId="2" Isc="0"  style="width:320px;height:50px;" onclick ="javascript:DcxTree.ShowDialogAf(this,27,2062,''QueryUsers'',false);" onchange ="javascript:GetLinkCtrlData_DefaultF_2062_116(this,''QueryUsers'');" onkeyup ="javascript:DcxTree.ShowDialogAf(this,27,2062,''QueryUsers'',true);" CBack=1  >',[CtrlbackHtml]='</textarea><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2062_QueryUsers_hid" type="hidden"  EntId="2062" IsField=1 DBField=1 IsPost=1 FieldName="QueryUsers" dType="2" Vtp="5" RDT="2" Isc="0" RId="2" CId="40" FId="14" vlk=0   TId=27  TFN="QueryNames"  value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2062,' where  [FldUId]='d962b259-0584-2072-2044-0cfaa9211f85' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='0a114e12-7f7f-cf22-d085-f4144c32a37e'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(19,'0a114e12-7f7f-cf22-d085-f4144c32a37e',2062,2062,'00000000-0000-0000-0000-000000000000',10,'QueryNames',2,2,11,'',5,1,1,0,1,1,-1,-1,1,0,'','','QueryUsers,','','</span> <span class="form-ctr" isfcontain="1">','','','','<input  id="d2062_QueryNames"   type="text" class="form-txt hide"  style="width:40px;display:none;" EntId="2062" IsField=1 DBField=1 IsPost=1 FieldName="QueryNames" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="19" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2062,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=19,[Form_EntId]=2062,[EntId]=2062,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=10,[FieldName]='QueryNames',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=11,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='QueryUsers,',[SystemVariables]='',[BeforeHtml]='</span> <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2062_QueryNames"   type="text" class="form-txt hide"  style="width:40px;display:none;" EntId="2062" IsField=1 DBField=1 IsPost=1 FieldName="QueryNames" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="19" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2062,' where  [FldUId]='0a114e12-7f7f-cf22-d085-f4144c32a37e' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='3b3ad606-ef19-9815-b8b7-d9ffcc4db236'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(15,'3b3ad606-ef19-9815-b8b7-d9ffcc4db236',2062,2062,'00000000-0000-0000-0000-000000000000',11,'ManageUsers',2,2,8,'',5,2,0,0,40,1,-1,27,1,0,'','','','','</span> </div></li>
<li style="width: 595px; height: 55px; position: static;" class="li-area" fldid="-1" areaid="35" scroll="no"><label class="area-title pad4" fldid="15" istitle="1">可监控人员</label> 
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">','','','','<div id="d2062_ManageUsers" class="form-ddl" style="-width:350px;" CBack=1  IsForField=1 EntId="2062" FId="15" Vtp="5" RId="2" Isc="0" CId="40" FieldName="ManageUsers" ><textarea  id="d2062_ManageUsers_Text" class="form-ddl-txts" readonly="readOnly"  CId="40" FId="15" Vtp="5"  RId="2" Isc="0"  style="width:320px;height:50px;" onclick ="javascript:DcxTree.ShowDialogAf(this,27,2062,''ManageUsers'',false);" onchange ="javascript:GetLinkCtrlData_DefaultF_2062_115(this,''ManageUsers'');" onkeyup ="javascript:DcxTree.ShowDialogAf(this,27,2062,''ManageUsers'',true);" CBack=1  >','</textarea><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2062_ManageUsers_hid" type="hidden"  EntId="2062" IsField=1 DBField=1 IsPost=1 FieldName="ManageUsers" dType="2" Vtp="5" RDT="2" Isc="0" RId="2" CId="40" FId="15" vlk=0   TId=27  TFN="ManageNames"  value="','" />',-1,-1,-1,-1,0,'2062,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=15,[Form_EntId]=2062,[EntId]=2062,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=11,[FieldName]='ManageUsers',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=8,[DefaultValue]='',[ValueType]=5,[RunValueType]=2,[IsSingleChoice]=0,[CtrlStyleId]=0,[CtrlTypeId]=40,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=27,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="width: 595px; height: 55px; position: static;" class="li-area" fldid="-1" areaid="35" scroll="no"><label class="area-title pad4" fldid="15" istitle="1">可监控人员</label> 
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2062_ManageUsers" class="form-ddl" style="-width:350px;" CBack=1  IsForField=1 EntId="2062" FId="15" Vtp="5" RId="2" Isc="0" CId="40" FieldName="ManageUsers" ><textarea  id="d2062_ManageUsers_Text" class="form-ddl-txts" readonly="readOnly"  CId="40" FId="15" Vtp="5"  RId="2" Isc="0"  style="width:320px;height:50px;" onclick ="javascript:DcxTree.ShowDialogAf(this,27,2062,''ManageUsers'',false);" onchange ="javascript:GetLinkCtrlData_DefaultF_2062_115(this,''ManageUsers'');" onkeyup ="javascript:DcxTree.ShowDialogAf(this,27,2062,''ManageUsers'',true);" CBack=1  >',[CtrlbackHtml]='</textarea><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2062_ManageUsers_hid" type="hidden"  EntId="2062" IsField=1 DBField=1 IsPost=1 FieldName="ManageUsers" dType="2" Vtp="5" RDT="2" Isc="0" RId="2" CId="40" FId="15" vlk=0   TId=27  TFN="ManageNames"  value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2062,' where  [FldUId]='3b3ad606-ef19-9815-b8b7-d9ffcc4db236' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='04518f6b-af9e-2eba-819e-34865ec8c55c'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(16,'04518f6b-af9e-2eba-819e-34865ec8c55c',2062,2062,'00000000-0000-0000-0000-000000000000',12,'ManageNames',2,2,9,'',5,1,1,0,1,1,-1,-1,1,0,'','','ManageUsers,','','</span> <span class="form-ctr" isfcontain="1">','','','','<input  id="d2062_ManageNames"   type="text" class="form-txt hide"  style="width:40px;display:none;" EntId="2062" IsField=1 DBField=1 IsPost=1 FieldName="ManageNames" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="16" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2062,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=16,[Form_EntId]=2062,[EntId]=2062,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=12,[FieldName]='ManageNames',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=9,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='ManageUsers,',[SystemVariables]='',[BeforeHtml]='</span> <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2062_ManageNames"   type="text" class="form-txt hide"  style="width:40px;display:none;" EntId="2062" IsField=1 DBField=1 IsPost=1 FieldName="ManageNames" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="16" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2062,' where  [FldUId]='04518f6b-af9e-2eba-819e-34865ec8c55c' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='6cecb35a-fab9-b571-f4bf-75869880900a'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'6cecb35a-fab9-b571-f4bf-75869880900a',2062,2062,'00000000-0000-0000-0000-000000000000',13,'FlowNo',1,1,3,'1',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span> </div></li>
<li style="width: 595px; height: 355px; position: static;" class="li-area" fldid="-1" areaid="39" scroll="no">&nbsp; </li>
<li style="width: 595px; height: 55px; display: none; position: static;" class="li-area" fldid="-1" areaid="42" scroll="no"><label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">请编辑..</div></li></ul></div>
<div style="display: block;" class="tabs-content" tabid="2">
<ul style="WIDTH: 595px" class="ul-mform" entid="2062" groupid="4" isgroup="1" ctrlprex="DefaultF_" isrple="1">
<li style="position: static; width: 595px; height: 55px;" class="li-area" areaid="34" scroll="no"><label class="area-title pad4" fldid="3" istitle="1">排序号</label> 
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">','','','','<input  id="d2062_FlowNo"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2062,''DefaultF_'',2062,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2062,''DefaultF_'',2062);" EntId="2062" IsField=1 DBField=1 IsPost=1 FieldName="FlowNo" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="3" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2062,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=3,[Form_EntId]=2062,[EntId]=2062,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=13,[FieldName]='FlowNo',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=3,[DefaultValue]='1',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="width: 595px; height: 355px; position: static;" class="li-area" fldid="-1" areaid="39" scroll="no">&nbsp; </li>
<li style="width: 595px; height: 55px; display: none; position: static;" class="li-area" fldid="-1" areaid="42" scroll="no"><label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">请编辑..</div></li></ul></div>
<div style="display: block;" class="tabs-content" tabid="2">
<ul style="WIDTH: 595px" class="ul-mform" entid="2062" groupid="4" isgroup="1" ctrlprex="DefaultF_" isrple="1">
<li style="position: static; width: 595px; height: 55px;" class="li-area" areaid="34" scroll="no"><label class="area-title pad4" fldid="3" istitle="1">排序号</label> 
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2062_FlowNo"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2062,''DefaultF_'',2062,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2062,''DefaultF_'',2062);" EntId="2062" IsField=1 DBField=1 IsPost=1 FieldName="FlowNo" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="3" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2062,' where  [FldUId]='6cecb35a-fab9-b571-f4bf-75869880900a' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='5b60e0f8-8323-cac4-7126-8bcc19ffb99a'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'5b60e0f8-8323-cac4-7126-8bcc19ffb99a',2062,2062,'00000000-0000-0000-0000-000000000000',14,'FlowAttach',1,1,21,'允许/1/0/0',5,6,1,0,13,1,-1,-1,1,0,'','','','','</span> </div></li>
<li style="position: static; width: 595px; height: 55px;" class="li-area" areaid="30" scroll="no"><label class="area-title pad10" fldid="8" istitle="1">是否允许附件</label> 
<div class="field-content pad4">
<table>
<tbody>
<tr>
<td><span class="form-ctr" isfcontain="1">','','','','<div class="form-radio" ><span class="form-radio-item" ><input id="d2062_FlowAttach"  name="d2062_FlowAttach" type="checkbox" class="form-ckb" yesv=''1'' nov=''0''  EntId="2062" IsField=1 DBField=1 IsPost=1 FieldName="FlowAttach" dType="1" Vtp="5" RDT="1" Isc="1" RId="6" CId="13" FId="8" vlk=0    onclick ="javascript:if(!DcxVld.Validate(this,2062,''DefaultF_'',2062))return false;"','/><label for="d2062_FlowAttach">允许</label></span></div>','',-1,-1,-1,-1,0,'2062,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=8,[Form_EntId]=2062,[EntId]=2062,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=14,[FieldName]='FlowAttach',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=21,[DefaultValue]='允许/1/0/0',[ValueType]=5,[RunValueType]=6,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=13,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="position: static; width: 595px; height: 55px;" class="li-area" areaid="30" scroll="no"><label class="area-title pad10" fldid="8" istitle="1">是否允许附件</label> 
<div class="field-content pad4">
<table>
<tbody>
<tr>
<td><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-radio" ><span class="form-radio-item" ><input id="d2062_FlowAttach"  name="d2062_FlowAttach" type="checkbox" class="form-ckb" yesv=''1'' nov=''0''  EntId="2062" IsField=1 DBField=1 IsPost=1 FieldName="FlowAttach" dType="1" Vtp="5" RDT="1" Isc="1" RId="6" CId="13" FId="8" vlk=0    onclick ="javascript:if(!DcxVld.Validate(this,2062,''DefaultF_'',2062))return false;"',[CtrlbackHtml]='/><label for="d2062_FlowAttach">允许</label></span></div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2062,' where  [FldUId]='5b60e0f8-8323-cac4-7126-8bcc19ffb99a' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='ce4dd04a-8080-deeb-ea5b-1c93ce60d2f7'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'ce4dd04a-8080-deeb-ea5b-1c93ce60d2f7',2062,2062,'00000000-0000-0000-0000-000000000000',15,'AttachMaxSize',1,1,20,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span> </td>
<td>允许的最大附件</td>
<td><span class="form-ctr" isfcontain="1">','','','','<input  id="d2062_AttachMaxSize"   type="text" class="form-txt"  style="width:70px;" onblur ="javascript:if(!DcxVld.Validate(this,2062,''DefaultF_'',2062,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2062,''DefaultF_'',2062);" EntId="2062" IsField=1 DBField=1 IsPost=1 FieldName="AttachMaxSize" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="7" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2062,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=7,[Form_EntId]=2062,[EntId]=2062,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=15,[FieldName]='AttachMaxSize',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=20,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </td>
<td>允许的最大附件</td>
<td><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2062_AttachMaxSize"   type="text" class="form-txt"  style="width:70px;" onblur ="javascript:if(!DcxVld.Validate(this,2062,''DefaultF_'',2062,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2062,''DefaultF_'',2062);" EntId="2062" IsField=1 DBField=1 IsPost=1 FieldName="AttachMaxSize" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="7" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2062,' where  [FldUId]='ce4dd04a-8080-deeb-ea5b-1c93ce60d2f7' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='badf5eda-1356-4e36-08a3-a897fd3d4e21'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'badf5eda-1356-4e36-08a3-a897fd3d4e21',2062,2062,'00000000-0000-0000-0000-000000000000',16,'Detail',6,2,30,'',5,1,1,0,2,1,-1,-1,1,0,'','','','','</span> </td>
<td>M</td></tr></tbody></table></div></li>
<li style="position: static; width: 595px; height: 76px;" class="li-area" areaid="32" scroll="no"><label class="area-title pad4" fldid="5" istitle="1">流程说明</label> 
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">','','','','<textarea  id="d2062_Detail" class="form-txts"  style="width:250px;height:45px;" onblur ="javascript:if(!DcxVld.Validate(this,2062,''DefaultF_'',2062,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2062,''DefaultF_'',2062);" EntId="2062" IsField=1 DBField=1 IsPost=1 FieldName="Detail" dType="6" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="5" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'2062,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=5,[Form_EntId]=2062,[EntId]=2062,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=16,[FieldName]='Detail',[FieldDataTypeId]=6,[RunDataTypeId]=2,[DBFieldId]=30,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </td>
<td>M</td></tr></tbody></table></div></li>
<li style="position: static; width: 595px; height: 76px;" class="li-area" areaid="32" scroll="no"><label class="area-title pad4" fldid="5" istitle="1">流程说明</label> 
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d2062_Detail" class="form-txts"  style="width:250px;height:45px;" onblur ="javascript:if(!DcxVld.Validate(this,2062,''DefaultF_'',2062,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2062,''DefaultF_'',2062);" EntId="2062" IsField=1 DBField=1 IsPost=1 FieldName="Detail" dType="6" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="5" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2062,' where  [FldUId]='badf5eda-1356-4e36-08a3-a897fd3d4e21' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='75b1043f-ca9f-c737-4d5a-18f747e07065'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(17,'75b1043f-ca9f-c737-4d5a-18f747e07065',2062,2062,'00000000-0000-0000-0000-000000000000',17,'Creator',2,2,32,'{$username}',0,9,1,0,4,1,-1,-1,1,0,'','','','{$username},','</span>
<div class="form-vld" iserr="1"></div></div></li>
<li style="width: 595px; height: 55px; display: none; position: static;" class="li-area" areaid="31" scroll="no"><label class="area-title pad4" fldid="17" istitle="1">创建者</label> 
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">','','','','<span id="d2062_Creator" class="form-lbl" style="width:200px;" IsForField=1 EntId="2062" CId="4" FId="17" Vtp="0"  >','</span><input id="d2062_Creator_hid" type="hidden"  EntId="2062" IsField=1 DBField=1 IsPost=1 FieldName="Creator" dType="2" Vtp="0" RDT="2" Isc="1" RId="9" CId="4" FId="17" vlk=0    value="','" />',-1,-1,-1,-1,0,'2062,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=17,[Form_EntId]=2062,[EntId]=2062,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=17,[FieldName]='Creator',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=32,[DefaultValue]='{$username}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$username},',[BeforeHtml]='</span>
<div class="form-vld" iserr="1"></div></div></li>
<li style="width: 595px; height: 55px; display: none; position: static;" class="li-area" areaid="31" scroll="no"><label class="area-title pad4" fldid="17" istitle="1">创建者</label> 
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d2062_Creator" class="form-lbl" style="width:200px;" IsForField=1 EntId="2062" CId="4" FId="17" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d2062_Creator_hid" type="hidden"  EntId="2062" IsField=1 DBField=1 IsPost=1 FieldName="Creator" dType="2" Vtp="0" RDT="2" Isc="1" RId="9" CId="4" FId="17" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2062,' where  [FldUId]='75b1043f-ca9f-c737-4d5a-18f747e07065' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='fdede291-f625-53c0-3c17-f5b002ea80e0'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(18,'fdede291-f625-53c0-3c17-f5b002ea80e0',2062,2062,'00000000-0000-0000-0000-000000000000',18,'CreateTime',3,3,33,'{$datetime}',0,9,1,0,4,1,-1,-1,1,0,'','','','{$datetime},','</span> </div></li>
<li style="width: 595px; height: 55px; display: none; position: static;" class="li-area" areaid="41" scroll="no"><label class="area-title pad4" fldid="18" istitle="1">创建时间</label> 
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">','','','','<span id="d2062_CreateTime" class="form-lbl" style="width:200px;" IsForField=1 EntId="2062" CId="4" FId="18" Vtp="0"  >','</span><input id="d2062_CreateTime_hid" type="hidden"  EntId="2062" IsField=1 DBField=1 IsPost=1 FieldName="CreateTime" dType="3" Vtp="0" RDT="3" Isc="1" RId="9" CId="4" FId="18" vlk=0    value="','" />',-1,-1,-1,-1,0,'2062,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=18,[Form_EntId]=2062,[EntId]=2062,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=18,[FieldName]='CreateTime',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=33,[DefaultValue]='{$datetime}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$datetime},',[BeforeHtml]='</span> </div></li>
<li style="width: 595px; height: 55px; display: none; position: static;" class="li-area" areaid="41" scroll="no"><label class="area-title pad4" fldid="18" istitle="1">创建时间</label> 
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d2062_CreateTime" class="form-lbl" style="width:200px;" IsForField=1 EntId="2062" CId="4" FId="18" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d2062_CreateTime_hid" type="hidden"  EntId="2062" IsField=1 DBField=1 IsPost=1 FieldName="CreateTime" dType="3" Vtp="0" RDT="3" Isc="1" RId="9" CId="4" FId="18" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2062,' where  [FldUId]='fdede291-f625-53c0-3c17-f5b002ea80e0' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='51485f9e-1f3f-b817-09d4-180ecc84e3d1'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(20,'51485f9e-1f3f-b817-09d4-180ecc84e3d1',2062,2062,'00000000-0000-0000-0000-000000000000',19,'AccountId',1,1,37,'{$AccountId}',0,1,1,0,1,1,-1,-1,1,0,'','','','{$AccountId},','</span> </div></li>
<li style="width: 595px; height: 55px; display: none; position: static;" class="li-area" areaid="40" scroll="no"><label class="area-title pad4" fldid="20" istitle="1">AccountId</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','</span>
</div>
</li><li style="width: 595px; height: 55px; display: none; position: static;" class="li-area" areaid="43" scroll="no"><label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li></ul></div></div></div></div><br>','','','<input  id="d2062_AccountId"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2062,''DefaultF_'',2062,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2062,''DefaultF_'',2062);" EntId="2062" IsField=1 DBField=1 IsPost=1 FieldName="AccountId" dType="1" Vtp="0" RDT="1" Isc="1" RId="1" CId="1" FId="20" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2062,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=20,[Form_EntId]=2062,[EntId]=2062,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=19,[FieldName]='AccountId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=37,[DefaultValue]='{$AccountId}',[ValueType]=0,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$AccountId},',[BeforeHtml]='</span> </div></li>
<li style="width: 595px; height: 55px; display: none; position: static;" class="li-area" areaid="40" scroll="no"><label class="area-title pad4" fldid="20" istitle="1">AccountId</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
</div>
</li><li style="width: 595px; height: 55px; display: none; position: static;" class="li-area" areaid="43" scroll="no"><label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li></ul></div></div></div></div><br>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2062_AccountId"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2062,''DefaultF_'',2062,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2062,''DefaultF_'',2062);" EntId="2062" IsField=1 DBField=1 IsPost=1 FieldName="AccountId" dType="1" Vtp="0" RDT="1" Isc="1" RId="1" CId="1" FId="20" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2062,' where  [FldUId]='51485f9e-1f3f-b817-09d4-180ecc84e3d1' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=667

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=667  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(667,null,'WF_FlowType','WF_FlowType',1,0,0,0,0,0,29,1,3,'admin','2013-12-15 17:32:36',3,'admin','2013-12-15 17:32:36',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='WF_FlowType',[DBTableByName]='WF_FlowType',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=29,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:36',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:36',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=667 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=667  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17800,1,29,667,'int',1,1,1,'WF_FlowType','FlowId','FlowId','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='FlowId',[FieldByname]='FlowId',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=667  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=667  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17801,2,29,667,'varchar',2,1,1,'WF_FlowType','FlowName','FlowName','',0,0,0,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='FlowName',[FieldByname]='FlowName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=667  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=667  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17802,3,29,667,'int',1,1,1,'WF_FlowType','FlowNo','FlowNo','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='FlowNo',[FieldByname]='FlowNo',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=667  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=667  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17803,4,29,667,'int',1,1,1,'WF_FlowType','SortId','SortId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='SortId',[FieldByname]='SortId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=667  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=667  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17804,5,29,667,'int',1,1,1,'WF_FlowType','EntId','EntId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='EntId',[FieldByname]='EntId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=667  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=667  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17805,6,29,667,'varchar',2,1,1,'WF_FlowType','EntName','EntName','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='EntName',[FieldByname]='EntName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=667  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=667  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17806,7,29,667,'varchar',2,1,1,'WF_FlowType','AutoName','AutoName','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='AutoName',[FieldByname]='AutoName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=667  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=667  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17807,8,29,667,'varchar',2,1,1,'WF_FlowType','ManageUsers','ManageUsers','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='ManageUsers',[FieldByname]='ManageUsers',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=667  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=667  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17808,9,29,667,'varchar',2,1,1,'WF_FlowType','ManageNames','ManageNames','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='ManageNames',[FieldByname]='ManageNames',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=667  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=667  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17809,10,29,667,'varchar',2,1,1,'WF_FlowType','QueryUsers','QueryUsers','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='QueryUsers',[FieldByname]='QueryUsers',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=667  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=667  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17810,11,29,667,'varchar',2,1,1,'WF_FlowType','QueryNames','QueryNames','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='QueryNames',[FieldByname]='QueryNames',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=667  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=667  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17811,12,29,667,'varchar',2,1,1,'WF_FlowType','CanQueryRoles','CanQueryRoles','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='CanQueryRoles',[FieldByname]='CanQueryRoles',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=667  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=667  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17812,13,29,667,'varchar',2,1,1,'WF_FlowType','CanQueryRolesId','CanQueryRolesId','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='CanQueryRolesId',[FieldByname]='CanQueryRolesId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=667  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=667  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17813,14,29,667,'varchar',2,1,1,'WF_FlowType','CanManageRoles','CanManageRoles','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='CanManageRoles',[FieldByname]='CanManageRoles',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=667  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=667  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17814,15,29,667,'varchar',2,1,1,'WF_FlowType','CanManageRolesId','CanManageRolesId','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='CanManageRolesId',[FieldByname]='CanManageRolesId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=667  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=667  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17815,16,29,667,'varchar',2,1,1,'WF_FlowType','CanStartUsers','CanStartUsers','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='CanStartUsers',[FieldByname]='CanStartUsers',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=667  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=667  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17816,17,29,667,'varchar',2,1,1,'WF_FlowType','CanStartNames','CanStartNames','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='CanStartNames',[FieldByname]='CanStartNames',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=667  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=667  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17817,18,29,667,'varchar',2,1,1,'WF_FlowType','CanStartRoles','CanStartRoles','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='CanStartRoles',[FieldByname]='CanStartRoles',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=667  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=667  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17818,19,29,667,'varchar',2,1,1,'WF_FlowType','CanStartRolesId','CanStartRolesId','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='CanStartRolesId',[FieldByname]='CanStartRolesId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=667  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=667  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17819,20,29,667,'int',1,1,1,'WF_FlowType','AttachMaxSize','AttachMaxSize','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='AttachMaxSize',[FieldByname]='AttachMaxSize',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=667  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=667  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17820,21,29,667,'int',1,1,1,'WF_FlowType','FlowAttach','FlowAttach','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='FlowAttach',[FieldByname]='FlowAttach',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=667  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=667  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17821,22,29,667,'bit',4,1,1,'WF_FlowType','IsPigeonhole','IsPigeonhole','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='IsPigeonhole',[FieldByname]='IsPigeonhole',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=667  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=667  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17822,23,29,667,'varchar',2,1,1,'WF_FlowType','PigeonholedSQL','PigeonholedSQL','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='PigeonholedSQL',[FieldByname]='PigeonholedSQL',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=667  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=667  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17823,24,29,667,'bit',4,1,1,'WF_FlowType','IsFreeFlow','IsFreeFlow','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='IsFreeFlow',[FieldByname]='IsFreeFlow',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=667  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=667  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17824,25,29,667,'varchar',2,1,1,'WF_FlowType','QueryItem','QueryItem','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='QueryItem',[FieldByname]='QueryItem',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=667  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=667  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17825,26,29,667,'bit',4,1,1,'WF_FlowType','LaunchIsOpen','LaunchIsOpen','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='LaunchIsOpen',[FieldByname]='LaunchIsOpen',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=667  and  [FieldId]=26 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=667  and  [FieldId]=27  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17826,27,29,667,'varchar',2,1,1,'WF_FlowType','FormUrl','FormUrl','',0,0,1,300,300,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='FormUrl',[FieldByname]='FormUrl',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=300,[Precision]=300,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=667  and  [FieldId]=27 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=667  and  [FieldId]=28  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17827,28,29,667,'varchar',2,1,1,'WF_FlowType','BrowseUrl','BrowseUrl','',0,0,1,300,300,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='BrowseUrl',[FieldByname]='BrowseUrl',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=300,[Precision]=300,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=667  and  [FieldId]=28 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=667  and  [FieldId]=29  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17828,29,29,667,'varchar',2,1,1,'WF_FlowType','ListUrl','ListUrl','',0,0,1,300,300,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='ListUrl',[FieldByname]='ListUrl',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=300,[Precision]=300,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=667  and  [FieldId]=29 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=667  and  [FieldId]=30  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17829,30,29,667,'varchar',2,1,1,'WF_FlowType','Detail','Detail','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='Detail',[FieldByname]='Detail',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=667  and  [FieldId]=30 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=667  and  [FieldId]=31  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17830,31,29,667,'int',1,1,1,'WF_FlowType','CreatorId','CreatorId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='CreatorId',[FieldByname]='CreatorId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=667  and  [FieldId]=31 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=667  and  [FieldId]=32  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17831,32,29,667,'varchar',2,1,1,'WF_FlowType','Creator','Creator','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='Creator',[FieldByname]='Creator',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=667  and  [FieldId]=32 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=667  and  [FieldId]=33  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17832,33,29,667,'datetime',3,1,1,'WF_FlowType','CreateTime','CreateTime','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='CreateTime',[FieldByname]='CreateTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=667  and  [FieldId]=33 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=667  and  [FieldId]=34  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17833,34,29,667,'datetime',3,1,1,'WF_FlowType','EditTime','EditTime','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='EditTime',[FieldByname]='EditTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=667  and  [FieldId]=34 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=667  and  [FieldId]=35  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17834,35,29,667,'varchar',2,1,1,'WF_FlowType','Editor','Editor','',0,0,1,40,40,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='Editor',[FieldByname]='Editor',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=40,[Precision]=40,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=667  and  [FieldId]=35 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=667  and  [FieldId]=36  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17835,36,29,667,'int',1,1,1,'WF_FlowType','EditorId','EditorId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='EditorId',[FieldByname]='EditorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=667  and  [FieldId]=36 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=667  and  [FieldId]=37  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17836,37,29,667,'int',1,1,1,'WF_FlowType','AccountId','AccountId','1',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='AccountId',[FieldByname]='AccountId',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=667  and  [FieldId]=37 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=3286  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(3286,'62bd7b8b-320d-48d0-8ac1-aeb01e025616','应用权限',3278,'/System/AppPower.aspx?MenuId=3286&navindex=5',66,'/images/default.gif','/images/default.gif',0,'rightFrame',0,0,'',29,-1,29,2,1,1,null,'',0,0,'',null,3,'admin','2013-10-9 4:24:34',1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='62bd7b8b-320d-48d0-8ac1-aeb01e025616',[MenuName]='应用权限',[ParentId]=3278,[ProPath]='/System/AppPower.aspx?MenuId=3286&navindex=5',[TemplateId]=66,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=0,[Target]='rightFrame',[IsOpen]=0,[IsHidden]=0,[Remark]='',[SSystemId]=29,[SMenuId]=-1,[SystemId]=29,[EntityCount]=2,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=0,[Creator]='',[CreateTime]=null,[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-9 4:24:34',[AccountId]=1 where  [MenuId]=3286 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3286  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(1046,3286,'应用权限','Public',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='应用权限',[RoleName]='Public',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3286  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3286  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(993,3286,'菜单权限','系统管理员',3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='菜单权限',[RoleName]='系统管理员',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3286  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2023  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2023,3286,'应用权限',1,132,0,'Dcx_Entity_Run',0,0,1,29,2023,null,null,29,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3286,[EntName]='应用权限',[MEnt]=1,[DBTableId]=132,[DBConnectId]=0,[DBTableName]='Dcx_Entity_Run',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2023,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2023 
      end
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2024  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2024,3286,'权限从表',0,138,0,'Dcx_EntityPrivilege',2023,0,1,29,2024,null,null,29,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3286,[EntName]='权限从表',[MEnt]=0,[DBTableId]=138,[DBConnectId]=0,[DBTableName]='Dcx_EntityPrivilege',[ParentId]=2023,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2024,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2024 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=2023

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2023  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11060,3286,2023,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=3286,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2023  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2023

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2023  and  [ModuleTypeId]=5  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20455,29,3286,2023,70,5,25,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3286,[TemplateId]=70,[ModuleId]=25,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2023  and  [ModuleTypeId]=5 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2023  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20456,29,3286,2023,70,3,14,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3286,[TemplateId]=70,[ModuleId]=14,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2023  and  [ModuleTypeId]=3 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_AjaxForm_Run]  where [EntId]=2023

--Dcx_AjaxForm_Run
      if (select count(1) from [Dcx_AjaxForm_Run] where  [EntId]=2023  )<1 
      begin 
           Insert into [Dcx_AjaxForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('533723e8-9f0d-80f7-22f6-d8e184c7e3a8','应用权限',2023,0,'','',0,'<script src="/Js/Control/LTreeRList/LTreeRList.js"></script>','','DcxRun.AjaxF_2023= {"MenuId":3286,"MEntId":2023,"EntName":"应用权限","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2023":{"EntId":2023,"KeyFieldValue":"","DBTableName":"","KeyField":"EntId","KeydtId":2,"JoinKeyField":"EntId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""},"E2024":{"EntId":2024,"KeyFieldValue":"","DBTableName":"","KeyField":"EntityPrivilegeId","KeydtId":2,"JoinKeyField":"EntId","JKeydtId":2,"IsMEnt":false,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}


if(runObj.NoInit)
{
   entMsg.E2024.FormData=null;
   mEntMsg.RowCount=0;mEntMsg.RecortCount=0;entMsg.E2024.RowCount=0;

}

 DcxForm.InitSheetForm(2024,''AjaxF_'',entMsg.E2024.FormData,entMsg.E2024.$listContainer);


}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":19,"Ent":[{"EntId":2023,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":3,"vlId":5,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"此值已存在,请重新输入","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":4,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":2,"Vld":[{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,100}$","err":"限制0-100个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"id":16,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":3,"Vld":[]},{"FldId":4,"Vld":[]}]},{"EntId":2024,"Fld":[{"FldId":5,"Vld":[{"Id":6,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":6,"Vld":[{"Id":7,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":7,"Vld":[{"Id":8,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":8,"Vld":[{"Id":9,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":9,"Vld":[{"Id":10,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":10,"Vld":[{"Id":11,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":11,"Vld":[{"Id":12,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":12,"Vld":[{"Id":13,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":14,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":19,"Vld":[{"Id":15,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":81,"Vld":[{"Id":18,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":82,"Vld":[{"Id":19,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":87,"Vld":[]}]}]};
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_2023.EntMsg.E2023.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_Entity_Run","EntId":2023,"KeyField":"EntId","MKeyField":"EntId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":1},"FieldDefine":{"EntId":{"DtId":1,"DB":1,"CId":4,"FL":4},"EntName":{"DtId":2,"DB":1,"CId":1,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_2023.EntMsg.E2023.GetDataRowModel=function()
{
    return {"EntId":-1,"EntName":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"EntId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
DcxRun.AjaxF_2023.EntMsg.E2024.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_EntityPrivilege","EntId":2024,"KeyField":"EntityPrivilegeId","MKeyField":"EntityPrivilegeId","MKeyValue":-1,"DataTypeId":2,"JoinKeyField":"EntId","JKeydtId":2,"OpType":1,"IsMEnt":false,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null},"FieldDefine":{"CanViewList":{"DtId":4,"DB":1,"CId":13,"FL":1},"CanBrowse":{"DtId":4,"DB":1,"CId":13,"FL":1},"CanInsert":{"DtId":4,"DB":1,"CId":13,"FL":1},"CanDelete":{"DtId":4,"DB":1,"CId":13,"FL":1},"CanUpdate":{"DtId":4,"DB":1,"CId":13,"FL":1},"CanOutPut":{"DtId":4,"DB":1,"CId":13,"FL":1},"CanInput":{"DtId":4,"DB":1,"CId":13,"FL":1},"RoleId":{"DtId":1,"DB":1,"CId":40,"FL":4},"RoleName":{"DtId":2,"DB":1,"CId":1,"FL":50}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_2023.EntMsg.E2024.GetDataRowModel=function()
{
    return {"CanViewList":false,"CanBrowse":false,"CanInsert":false,"CanDelete":false,"CanUpdate":false,"CanOutPut":false,"CanInput":false,"RoleId":-1,"RoleName":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"EntityPrivilegeId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_AjaxF_2024_363(obj,curFieldName){
 var EntId=2024;
 var FldId=19;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''RoleName'';
 var $formContainer=DcxForm.GetRow(obj,2024,''AjaxF_'');
 var $ddlContainer=null;
var strCode="{@RoleId&}" ;
var v_f1=null;
if(''RoleId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,2024,''AjaxF_'',''RoleId'',40,$formContainer,true,true);
if(Dcx.IsNull(v_f1))
   v_f1=0;
strCode=strCode.replaceAll("{@RoleId&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var rowindex=$formContainer.attr("rowix");
var Cur_ctrlId="d2024_RoleNamefrom_tr"+rowindex;
var $AcceptObj=$formContainer.find("#"+Cur_ctrlId);
$AcceptObj.val(myVal);
$AcceptObj.change();
}



 function GetLinkCtrl_AjaxF_2024(obj,FieldName,EntId)
{

}
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_2023.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2023,''AjaxF_'',buildNew,closeDlg);

}','<$2023$>select [EntId],[EntName] from Dcx_Entity_Run where [EntId]=''{$keyfieldvalue}''</$2023$><$2024$>select [RoleId],[RoleName],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[EntityPrivilegeId],[EntId] from Dcx_EntityPrivilege where [AccountId]={$AccountId} and [EntId]=''{$mkeyValue}''</$2024$>',10,'','','','2023*EntId*2*EntId*2*Dcx_Entity_Run*应用权限,2024*EntityPrivilegeId*2*EntId*2*Dcx_EntityPrivilege*权限从表',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2013-1-27 1:51:39',3,'admin','2013-11-24 4:20:04',1)
      end
      else 
      begin 
           update [Dcx_AjaxForm_Run] set [FormId]='533723e8-9f0d-80f7-22f6-d8e184c7e3a8',[FormName]='应用权限',[ModuleId]=0,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script src="/Js/Control/LTreeRList/LTreeRList.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.AjaxF_2023= {"MenuId":3286,"MEntId":2023,"EntName":"应用权限","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2023":{"EntId":2023,"KeyFieldValue":"","DBTableName":"","KeyField":"EntId","KeydtId":2,"JoinKeyField":"EntId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""},"E2024":{"EntId":2024,"KeyFieldValue":"","DBTableName":"","KeyField":"EntityPrivilegeId","KeydtId":2,"JoinKeyField":"EntId","JKeydtId":2,"IsMEnt":false,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}


if(runObj.NoInit)
{
   entMsg.E2024.FormData=null;
   mEntMsg.RowCount=0;mEntMsg.RecortCount=0;entMsg.E2024.RowCount=0;

}

 DcxForm.InitSheetForm(2024,''AjaxF_'',entMsg.E2024.FormData,entMsg.E2024.$listContainer);


}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":19,"Ent":[{"EntId":2023,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":3,"vlId":5,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"此值已存在,请重新输入","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":4,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":2,"Vld":[{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,100}$","err":"限制0-100个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"id":16,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":3,"Vld":[]},{"FldId":4,"Vld":[]}]},{"EntId":2024,"Fld":[{"FldId":5,"Vld":[{"Id":6,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":6,"Vld":[{"Id":7,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":7,"Vld":[{"Id":8,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":8,"Vld":[{"Id":9,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":9,"Vld":[{"Id":10,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":10,"Vld":[{"Id":11,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":11,"Vld":[{"Id":12,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":12,"Vld":[{"Id":13,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":14,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":19,"Vld":[{"Id":15,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":81,"Vld":[{"Id":18,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":82,"Vld":[{"Id":19,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":87,"Vld":[]}]}]};
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_2023.EntMsg.E2023.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_Entity_Run","EntId":2023,"KeyField":"EntId","MKeyField":"EntId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":1},"FieldDefine":{"EntId":{"DtId":1,"DB":1,"CId":4,"FL":4},"EntName":{"DtId":2,"DB":1,"CId":1,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_2023.EntMsg.E2023.GetDataRowModel=function()
{
    return {"EntId":-1,"EntName":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"EntId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
DcxRun.AjaxF_2023.EntMsg.E2024.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_EntityPrivilege","EntId":2024,"KeyField":"EntityPrivilegeId","MKeyField":"EntityPrivilegeId","MKeyValue":-1,"DataTypeId":2,"JoinKeyField":"EntId","JKeydtId":2,"OpType":1,"IsMEnt":false,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null},"FieldDefine":{"CanViewList":{"DtId":4,"DB":1,"CId":13,"FL":1},"CanBrowse":{"DtId":4,"DB":1,"CId":13,"FL":1},"CanInsert":{"DtId":4,"DB":1,"CId":13,"FL":1},"CanDelete":{"DtId":4,"DB":1,"CId":13,"FL":1},"CanUpdate":{"DtId":4,"DB":1,"CId":13,"FL":1},"CanOutPut":{"DtId":4,"DB":1,"CId":13,"FL":1},"CanInput":{"DtId":4,"DB":1,"CId":13,"FL":1},"RoleId":{"DtId":1,"DB":1,"CId":40,"FL":4},"RoleName":{"DtId":2,"DB":1,"CId":1,"FL":50}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_2023.EntMsg.E2024.GetDataRowModel=function()
{
    return {"CanViewList":false,"CanBrowse":false,"CanInsert":false,"CanDelete":false,"CanUpdate":false,"CanOutPut":false,"CanInput":false,"RoleId":-1,"RoleName":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"EntityPrivilegeId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_AjaxF_2024_363(obj,curFieldName){
 var EntId=2024;
 var FldId=19;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''RoleName'';
 var $formContainer=DcxForm.GetRow(obj,2024,''AjaxF_'');
 var $ddlContainer=null;
var strCode="{@RoleId&}" ;
var v_f1=null;
if(''RoleId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,2024,''AjaxF_'',''RoleId'',40,$formContainer,true,true);
if(Dcx.IsNull(v_f1))
   v_f1=0;
strCode=strCode.replaceAll("{@RoleId&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var rowindex=$formContainer.attr("rowix");
var Cur_ctrlId="d2024_RoleNamefrom_tr"+rowindex;
var $AcceptObj=$formContainer.find("#"+Cur_ctrlId);
$AcceptObj.val(myVal);
$AcceptObj.change();
}



 function GetLinkCtrl_AjaxF_2024(obj,FieldName,EntId)
{

}
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_2023.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2023,''AjaxF_'',buildNew,closeDlg);

}',[LoadingSql]='<$2023$>select [EntId],[EntName] from Dcx_Entity_Run where [EntId]=''{$keyfieldvalue}''</$2023$><$2024$>select [RoleId],[RoleName],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[EntityPrivilegeId],[EntId] from Dcx_EntityPrivilege where [AccountId]={$AccountId} and [EntId]=''{$mkeyValue}''</$2024$>',[PageSize]=10,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='2023*EntId*2*EntId*2*Dcx_Entity_Run*应用权限,2024*EntityPrivilegeId*2*EntId*2*Dcx_EntityPrivilege*权限从表',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-1-27 1:51:39',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-24 4:20:04',[AccountId]=1 where  [EntId]=2023 
      end




--Dcx_AjaxFormField_Run
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='127572f2-e217-dd01-4de2-e6e3debf9861'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'127572f2-e217-dd01-4de2-e6e3debf9861',2023,2023,'00000000-0000-0000-0000-000000000000','EntId',1,1,1,'',5,9,1,0,4,1,-1,1,-1,1,0,'','','','','<div class="ajaxform ">
	<div class="div_top">
		<div class="title-div">
			<ul class="ul-title" style="border-bottom-width:0px;" entid="2023" groupid="5" isgroup="1" ctrlprex="AjaxF_" isrple="1">
				<li areaid="20" class="li-area-title" scroll="no" style="width: 76px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title"></span></div>
</li>
				<li areaid="21" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
				<li areaid="22" class="li-area1" scroll="no" style="position: static;">
					<a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.AjaxF_2023.SubmitForm(false);"><span class="op_bt_i">保存</span> </a></li>
				<li areaid="23" class="li-area1" scroll="no" style="width: 90px; height: 36px; position: static;">
					<a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(2023,''AjaxF_'');"><span class="op_bt_i">新建</span> </a></li>
			</ul>
		</div>
		<div class="frame-div" style="margin-top:15px;">
			<ul class="ul-mform" entid="2023" groupid="1" isgroup="1" style="width: 600px;border-left-width:0px;" ctrlprex="AjaxF_" isrple="1">
				<li areaid="24" class="li-area" scroll="no" style="border-right-width: 0px; border-bottom-width: 1px; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(229, 229, 229); height: 38px; width: 280px; position: static;"><label class="area-title pad7" fldid="1" istitle="1">编号</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d2023_EntId" class="form-lbl" style="width:200px;" IsForField=1 EntId="2023" CId="4" FId="1" Vtp="5"  >','</span><input id="d2023_EntId_hid" type="hidden"  EntId="2023" IsField=1 DBField=1 IsPost=1 FieldName="EntId" dType="1" Vtp="5" RDT="1" Isc="1" RId="9" CId="4" FId="1" vlk=0    value="','" />',1,24,-1,-1,0,'2023,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=1,[Form_EntId]=2023,[EntId]=2023,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='EntId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=1,[DefaultValue]='',[ValueType]=5,[RunValueType]=9,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="ajaxform ">
	<div class="div_top">
		<div class="title-div">
			<ul class="ul-title" style="border-bottom-width:0px;" entid="2023" groupid="5" isgroup="1" ctrlprex="AjaxF_" isrple="1">
				<li areaid="20" class="li-area-title" scroll="no" style="width: 76px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title"></span></div>
</li>
				<li areaid="21" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
				<li areaid="22" class="li-area1" scroll="no" style="position: static;">
					<a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.AjaxF_2023.SubmitForm(false);"><span class="op_bt_i">保存</span> </a></li>
				<li areaid="23" class="li-area1" scroll="no" style="width: 90px; height: 36px; position: static;">
					<a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(2023,''AjaxF_'');"><span class="op_bt_i">新建</span> </a></li>
			</ul>
		</div>
		<div class="frame-div" style="margin-top:15px;">
			<ul class="ul-mform" entid="2023" groupid="1" isgroup="1" style="width: 600px;border-left-width:0px;" ctrlprex="AjaxF_" isrple="1">
				<li areaid="24" class="li-area" scroll="no" style="border-right-width: 0px; border-bottom-width: 1px; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(229, 229, 229); height: 38px; width: 280px; position: static;"><label class="area-title pad7" fldid="1" istitle="1">编号</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d2023_EntId" class="form-lbl" style="width:200px;" IsForField=1 EntId="2023" CId="4" FId="1" Vtp="5"  >',[CtrlbackHtml]='</span><input id="d2023_EntId_hid" type="hidden"  EntId="2023" IsField=1 DBField=1 IsPost=1 FieldName="EntId" dType="1" Vtp="5" RDT="1" Isc="1" RId="9" CId="4" FId="1" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=1,[RowIndex]=24,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2023,' where  [FldUId]='127572f2-e217-dd01-4de2-e6e3debf9861' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='756001fc-a187-cc7d-f2ce-d6c8ceb9c5c3'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'756001fc-a187-cc7d-f2ce-d6c8ceb9c5c3',2023,2023,'00000000-0000-0000-0000-000000000000','EntName',2,2,3,'',5,1,1,0,1,1,-1,2,-1,1,0,'','','','','</span>
	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li><li areaid="25" class="li-area" scroll="no" style="height: 38px; width: 316px; position: static;">
					<label class="area-title pad7" fldid="2" istitle="1">应用名称</label>
					<div class="field-content pad4">
						<span class="form-ctr" isfcontain="1">','','','','<input  id="d2023_EntName"   type="text" class="form-txt"  style="width:180px;" onblur ="javascript:if(!DcxVld.Validate(this,2023,''AjaxF_'',2023,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2023,''AjaxF_'',2023);" EntId="2023" IsField=1 DBField=1 IsPost=1 FieldName="EntName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2023,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2,[Form_EntId]=2023,[EntId]=2023,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='EntName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=3,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=2,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li><li areaid="25" class="li-area" scroll="no" style="height: 38px; width: 316px; position: static;">
					<label class="area-title pad7" fldid="2" istitle="1">应用名称</label>
					<div class="field-content pad4">
						<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2023_EntName"   type="text" class="form-txt"  style="width:180px;" onblur ="javascript:if(!DcxVld.Validate(this,2023,''AjaxF_'',2023,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2023,''AjaxF_'',2023);" EntId="2023" IsField=1 DBField=1 IsPost=1 FieldName="EntName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2023,' where  [FldUId]='756001fc-a187-cc7d-f2ce-d6c8ceb9c5c3' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='aa39c1e6-5864-b30a-3572-04754a4291a7'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(114,'aa39c1e6-5864-b30a-3572-04754a4291a7',2023,2024,'00000000-0000-0000-0000-000000000000','CEntBegin',-1,2,-1,'',5,-1,1,0,-1,10,-1,3,-1,0,0,'','','','','</span>
<div iserr="1" class="form-vld"></div></div>
				</li><li entname="权限从表" class="li-area w958" areaid="32" style="width: 600px; position: static; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; height: auto;" scroll="no"><div class="field-content pad7" entid="2024" ischildentity="1" style="padding: 7px 0px 7px 0px;margin-top:15px;">
	<!-- 开始 --><!-- 功能键栏 -->
	<div class="ajaxform toolbar-opt">
		<!--功能键栏-->
		<ul class="ul-toolbar repUl1" entid="2024" groupid="6" isgroup="1" istoolbar="1" ctrlprex="AjaxF_" isrple="1">
			<li areaid="33" class="list-allselect" scroll="no" style="width: 60px; height: 15px; position: static;">
				<input class="list-ifselect" id="ckb_CheckAllAjaxF_2024" onclick="javascript:DcxCom.CheckedAll(this,2024,''AjaxF_'');" rel="chkall" type="checkbox"> <label for="ckb_CheckAllAjaxF_2024">全选</label></li><li areaid="34" class="list-tit" scroll="no" style="width: 98px; height: 29px; position: static;"><a class="lform-bt-add" href="javascript:void(0);" id="AjaxF_2024_btn_buildNew" onclick="javascript:DcxForm.AddRow(this,1,2024,''AjaxF_'');" style="width:53px;margin-left:10px;" title="添   加">添 加</a></li>
			
			<li areaid="35" class="list-tit" scroll="no" style="width: 80px; height: 29px; position: static;"><a class="lform-bt-other" href="javascript:void(0);" id="AjaxF_2024_btn_buildNew" onclick="javascript:DcxForm.AddRow(this,5,2024,''AjaxF_'');" title="添加5行">添加5行</a></li>
			<li areaid="37" class="list-tit" scroll="no" style="width: 65px; height: 29px; position: static;"><a class="lform-bt-delete" href="javascript:void(0);" id="AjaxF_2024_deletebut" onclick="javascript:DcxForm.DeleteRow(this,2024,''AjaxF_'');" title="删   除">删 除</a></li>
			<li areaid="39" class="list-tit" scroll="no" style="width: 93px; height: 29px; position: static;"><a class="lform-bt-other" href="javascript:void(0);" id="AjaxF_2024_deletebut" onclick="javascript:DcxForm.DeleteUnlawRow(this,2024,''AjaxF_'');" title="删除非法">删除非法</a></li>
		</ul>
	</div>
	<div class="ajaxform listarea">
		<div class="lf-head">
			<ul class="ul-listtitle" entid="2024" groupid="7" isgroup="1" islisthead="1" islonly="1" style="width: 598px;" ctrlprex="AjaxF_" isrple="1">
				<li areaid="59" class="li-head-item" scroll="no" style="width: 40px; height: 29px; clear: none; float: left; position: static;"></li><li areaid="40" class="li-head-item" scroll="no" style="width: 130px; height: 29px; clear: none; float: left; position: static;">
					<label class="head-label" istitle="1" style="height: 158px;">角色</label></li>
				<li areaid="42" class="li-head-item" scroll="no" style="width: 60px; height: 29px; clear: none; float: left; position: static;">
					<label class="head-label" istitle="1" style="height: 158px;">列表</label></li>
				<li areaid="53" class="li-head-item" scroll="no" style="width: 55px; height: 29px; clear: none; float: left; position: static;">
					<label class="head-label" istitle="1" style="height: 158px;">明细 </label></li>
				<li areaid="52" class="li-head-item" scroll="no" style="width: 60px; height: 29px; clear: none; float: left; position: static;">
					<label class="head-label" istitle="1" style="height: 158px;">添加</label></li>
				<li areaid="51" class="li-head-item" scroll="no" style="width: 60px; height: 29px; clear: none; float: left; position: static;">
					<label class="head-label" istitle="1" style="height: 158px;">修改 </label></li>
				<li areaid="50" class="li-head-item" scroll="no" style="width: 55px; height: 29px; clear: none; float: left; position: static;">
					<label class="head-label" istitle="1" style="height: 158px;">删除 </label></li>
				<li areaid="49" class="li-head-item" scroll="no" style="width: 60px; height: 29px; clear: none; float: left; position: static;">
					<label class="head-label" istitle="1" style="height: 158px;">导入 </label></li>
				<li areaid="55" class="li-head-item" scroll="no" style="width: 60px; height: 29px; clear: right; float: left; position: static;"><label class="head-label" istitle="1" style="height: 158px;">导出 </label></li>
			</ul>
		</div>
		<div class="lf-body">','','','','','','',8,-1,-1,-1,1,'2024,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=114,[Form_EntId]=2023,[EntId]=2024,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='CEntBegin',[FieldDataTypeId]=-1,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=-1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=-1,[FieldTypeId]=10,[RepeatColumns]=-1,[FieldNO]=3,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
<div iserr="1" class="form-vld"></div></div>
				</li><li entname="权限从表" class="li-area w958" areaid="32" style="width: 600px; position: static; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; height: auto;" scroll="no"><div class="field-content pad7" entid="2024" ischildentity="1" style="padding: 7px 0px 7px 0px;margin-top:15px;">
	<!-- 开始 --><!-- 功能键栏 -->
	<div class="ajaxform toolbar-opt">
		<!--功能键栏-->
		<ul class="ul-toolbar repUl1" entid="2024" groupid="6" isgroup="1" istoolbar="1" ctrlprex="AjaxF_" isrple="1">
			<li areaid="33" class="list-allselect" scroll="no" style="width: 60px; height: 15px; position: static;">
				<input class="list-ifselect" id="ckb_CheckAllAjaxF_2024" onclick="javascript:DcxCom.CheckedAll(this,2024,''AjaxF_'');" rel="chkall" type="checkbox"> <label for="ckb_CheckAllAjaxF_2024">全选</label></li><li areaid="34" class="list-tit" scroll="no" style="width: 98px; height: 29px; position: static;"><a class="lform-bt-add" href="javascript:void(0);" id="AjaxF_2024_btn_buildNew" onclick="javascript:DcxForm.AddRow(this,1,2024,''AjaxF_'');" style="width:53px;margin-left:10px;" title="添   加">添 加</a></li>
			
			<li areaid="35" class="list-tit" scroll="no" style="width: 80px; height: 29px; position: static;"><a class="lform-bt-other" href="javascript:void(0);" id="AjaxF_2024_btn_buildNew" onclick="javascript:DcxForm.AddRow(this,5,2024,''AjaxF_'');" title="添加5行">添加5行</a></li>
			<li areaid="37" class="list-tit" scroll="no" style="width: 65px; height: 29px; position: static;"><a class="lform-bt-delete" href="javascript:void(0);" id="AjaxF_2024_deletebut" onclick="javascript:DcxForm.DeleteRow(this,2024,''AjaxF_'');" title="删   除">删 除</a></li>
			<li areaid="39" class="list-tit" scroll="no" style="width: 93px; height: 29px; position: static;"><a class="lform-bt-other" href="javascript:void(0);" id="AjaxF_2024_deletebut" onclick="javascript:DcxForm.DeleteUnlawRow(this,2024,''AjaxF_'');" title="删除非法">删除非法</a></li>
		</ul>
	</div>
	<div class="ajaxform listarea">
		<div class="lf-head">
			<ul class="ul-listtitle" entid="2024" groupid="7" isgroup="1" islisthead="1" islonly="1" style="width: 598px;" ctrlprex="AjaxF_" isrple="1">
				<li areaid="59" class="li-head-item" scroll="no" style="width: 40px; height: 29px; clear: none; float: left; position: static;"></li><li areaid="40" class="li-head-item" scroll="no" style="width: 130px; height: 29px; clear: none; float: left; position: static;">
					<label class="head-label" istitle="1" style="height: 158px;">角色</label></li>
				<li areaid="42" class="li-head-item" scroll="no" style="width: 60px; height: 29px; clear: none; float: left; position: static;">
					<label class="head-label" istitle="1" style="height: 158px;">列表</label></li>
				<li areaid="53" class="li-head-item" scroll="no" style="width: 55px; height: 29px; clear: none; float: left; position: static;">
					<label class="head-label" istitle="1" style="height: 158px;">明细 </label></li>
				<li areaid="52" class="li-head-item" scroll="no" style="width: 60px; height: 29px; clear: none; float: left; position: static;">
					<label class="head-label" istitle="1" style="height: 158px;">添加</label></li>
				<li areaid="51" class="li-head-item" scroll="no" style="width: 60px; height: 29px; clear: none; float: left; position: static;">
					<label class="head-label" istitle="1" style="height: 158px;">修改 </label></li>
				<li areaid="50" class="li-head-item" scroll="no" style="width: 55px; height: 29px; clear: none; float: left; position: static;">
					<label class="head-label" istitle="1" style="height: 158px;">删除 </label></li>
				<li areaid="49" class="li-head-item" scroll="no" style="width: 60px; height: 29px; clear: none; float: left; position: static;">
					<label class="head-label" istitle="1" style="height: 158px;">导入 </label></li>
				<li areaid="55" class="li-head-item" scroll="no" style="width: 60px; height: 29px; clear: right; float: left; position: static;"><label class="head-label" istitle="1" style="height: 158px;">导出 </label></li>
			</ul>
		</div>
		<div class="lf-body">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='',[CtrlbackHtml]='',[CtrlLastHtml]='',[TableIndex]=8,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2024,' where  [FldUId]='aa39c1e6-5864-b30a-3572-04754a4291a7' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='46acaba4-30de-b738-16c9-9a6db5e8d275'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(87,'46acaba4-30de-b738-16c9-9a6db5e8d275',2023,2024,'00000000-0000-0000-0000-000000000000','KeyFieldValue',2,2,-1,'',5,1,1,0,1,21,-1,4,-1,0,0,'','','','','class="ul-listfield" groupid="8" isgroup="1" islonly="1" style="width: 598px;" isrple="1">
				<li areaid="56" class="li-listfield" scroll="no" style="width: 40px; height: 38px; clear: none; float: left; position: static;"><div class="list-field" style="padding-top:10px;padding-left:10px;">
	<input class="ckb_del" ctrlprex="AjaxF_" entid="2023" issyscheck="1" keyvalue="','','','','','','',8,56,-1,-1,1,'2024,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=87,[Form_EntId]=2023,[EntId]=2024,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='KeyFieldValue',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=21,[RepeatColumns]=-1,[FieldNO]=4,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='class="ul-listfield" groupid="8" isgroup="1" islonly="1" style="width: 598px;" isrple="1">
				<li areaid="56" class="li-listfield" scroll="no" style="width: 40px; height: 38px; clear: none; float: left; position: static;"><div class="list-field" style="padding-top:10px;padding-left:10px;">
	<input class="ckb_del" ctrlprex="AjaxF_" entid="2023" issyscheck="1" keyvalue="',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='',[CtrlbackHtml]='',[CtrlLastHtml]='',[TableIndex]=8,[RowIndex]=56,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2024,' where  [FldUId]='46acaba4-30de-b738-16c9-9a6db5e8d275' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='e8ceb31b-0f79-5669-360a-a572f548fd30'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(12,'e8ceb31b-0f79-5669-360a-a572f548fd30',2023,2024,'00000000-0000-0000-0000-000000000000','RoleId',1,1,4,'',5,2,1,0,40,1,-1,5,17,1,0,'','','','','" type="checkbox"></div>
</li><li areaid="41" class="li-listfield" scroll="no" style="width: 130px; height: 38px; clear: none; float: left; position: static;">
					<div class="list-field" style="padding-top:4px;">
						<span class="form-ctr" isfcontain="1">','','','<div id="d2024_RoleId%trindex%" CtrlPrex="AjaxF_"','class="lt-ddl" style="-width:140px;" CBack=1  IsForField=1 EntId="2024" FId="12" Vtp="5" RId="2" Isc="1" CId="40" FieldName="RoleId" ><input  id="d2024_RoleId%trindex%_Text" type="text" class="lt-ddl-txt" readonly="readOnly"  CId="40" FId="12" Vtp="5"  RId="2" Isc="1"  style="width:110px;" onclick ="javascript:DcxTree.ShowDialogLf(this,17,2024,''RoleId'',false);" onchange ="javascript:GetLinkCtrlData_AjaxF_2024_363(this,''RoleId'');if(!DcxVld.Validate(this,2024,''AjaxF_'',2023,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2024,''AjaxF_'',2023,true);" onkeyup ="javascript:DcxTree.ShowDialogLf(this,17,2024,''RoleId'',true);" onmouseover ="javascript:DcxForm.ListTxtMouseOver(this,2024,''RoleId'');" value="','" /><span class="lt-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2024_RoleId%trindex%_hid" CtrlPrex="AjaxF_" type="hidden"  CBack=1  EntId="2024" IsField=1 DBField=1 IsPost=1 FieldName="RoleId" dType="1" Vtp="5" RDT="1" Isc="1" RId="2" CId="40" FId="12" vlk=0   TId=17  TFN="RoleName"  value="','"/>',8,-1,-1,-1,1,'2024,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=12,[Form_EntId]=2023,[EntId]=2024,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='RoleId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=4,[DefaultValue]='',[ValueType]=5,[RunValueType]=2,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=40,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=5,[TreeId]=17,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='" type="checkbox"></div>
</li><li areaid="41" class="li-listfield" scroll="no" style="width: 130px; height: 38px; clear: none; float: left; position: static;">
					<div class="list-field" style="padding-top:4px;">
						<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<div id="d2024_RoleId%trindex%" CtrlPrex="AjaxF_"',[CtrlfrontHtml]='class="lt-ddl" style="-width:140px;" CBack=1  IsForField=1 EntId="2024" FId="12" Vtp="5" RId="2" Isc="1" CId="40" FieldName="RoleId" ><input  id="d2024_RoleId%trindex%_Text" type="text" class="lt-ddl-txt" readonly="readOnly"  CId="40" FId="12" Vtp="5"  RId="2" Isc="1"  style="width:110px;" onclick ="javascript:DcxTree.ShowDialogLf(this,17,2024,''RoleId'',false);" onchange ="javascript:GetLinkCtrlData_AjaxF_2024_363(this,''RoleId'');if(!DcxVld.Validate(this,2024,''AjaxF_'',2023,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2024,''AjaxF_'',2023,true);" onkeyup ="javascript:DcxTree.ShowDialogLf(this,17,2024,''RoleId'',true);" onmouseover ="javascript:DcxForm.ListTxtMouseOver(this,2024,''RoleId'');" value="',[CtrlbackHtml]='" /><span class="lt-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2024_RoleId%trindex%_hid" CtrlPrex="AjaxF_" type="hidden"  CBack=1  EntId="2024" IsField=1 DBField=1 IsPost=1 FieldName="RoleId" dType="1" Vtp="5" RDT="1" Isc="1" RId="2" CId="40" FId="12" vlk=0   TId=17  TFN="RoleName"  value="',[CtrlLastHtml]='"/>',[TableIndex]=8,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2024,' where  [FldUId]='e8ceb31b-0f79-5669-360a-a572f548fd30' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='8d88ded2-a7f9-54f7-00d1-6fb9880520fd'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(19,'8d88ded2-a7f9-54f7-00d1-6fb9880520fd',2023,2024,'00000000-0000-0000-0000-000000000000','RoleName',2,2,20,'',3,1,1,0,1,1,-1,6,-1,1,0,'','','','','</span>
 <span class="form-ctr" isfcontain="1">','','','<input  id="d2024_RoleName%trindex%" CtrlPrex="AjaxF_"','type="text" class="lt-txt hide"  style="width:200px;display:none;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2024,''AjaxF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2024,''AjaxF_'',2023,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2024,''AjaxF_'',2023,true);" EntId="2024" IsField=1 DBField=1 IsPost=1 FieldName="RoleName" dType="2" Vtp="3" RDT="2" Isc="1" RId="1" CId="1" FId="19" vlk=0    value="','" />','',8,-1,-1,-1,1,'2024,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=19,[Form_EntId]=2023,[EntId]=2024,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='RoleName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=20,[DefaultValue]='',[ValueType]=3,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=6,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
 <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<input  id="d2024_RoleName%trindex%" CtrlPrex="AjaxF_"',[CtrlfrontHtml]='type="text" class="lt-txt hide"  style="width:200px;display:none;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2024,''AjaxF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2024,''AjaxF_'',2023,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2024,''AjaxF_'',2023,true);" EntId="2024" IsField=1 DBField=1 IsPost=1 FieldName="RoleName" dType="2" Vtp="3" RDT="2" Isc="1" RId="1" CId="1" FId="19" vlk=0    value="',[CtrlbackHtml]='" />',[CtrlLastHtml]='',[TableIndex]=8,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2024,' where  [FldUId]='8d88ded2-a7f9-54f7-00d1-6fb9880520fd' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='d8ff65b8-242a-b1fe-bae3-7cd2a78c4067'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'d8ff65b8-242a-b1fe-bae3-7cd2a78c4067',2023,2024,'00000000-0000-0000-0000-000000000000','CanViewList',4,4,5,'',1,6,1,0,13,1,-1,7,-1,1,0,'','','','','</span>
</div>
				</li>
				<li areaid="43" class="li-listfield" scroll="no" style="width: 60px; height: 38px; clear: none; float: left; position: static;">
					<div class="list-field" style="padding-top:4px;">
						<span class="form-ctr" isfcontain="1">','','','<div class="form-radio" ><span class="form-radio-item" ><input class="radio" id="d2024_CanViewList%trindex%" CtrlPrex="AjaxF_"','type="checkbox" yesv=''true'' nov=''false'' checked=''checked''  onclick ="javascript:DcxForm.ClickCkbLf(this,2024,''AjaxF_'');if(!DcxVld.Validate(this,2024,''AjaxF_'',2023,true))return false;" EntId="2024" IsField=1 DBField=1 IsPost=1 FieldName="CanViewList" dType="4" Vtp="1" RDT="4" Isc="1" RId="6" CId="13" FId="5" vlk=0    />','<label for="d2024_CanViewList%trindex%">允许</label></span></div>','',8,-1,-1,-1,1,'2024,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=5,[Form_EntId]=2023,[EntId]=2024,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='CanViewList',[FieldDataTypeId]=4,[RunDataTypeId]=4,[DBFieldId]=5,[DefaultValue]='',[ValueType]=1,[RunValueType]=6,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=13,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=7,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
				</li>
				<li areaid="43" class="li-listfield" scroll="no" style="width: 60px; height: 38px; clear: none; float: left; position: static;">
					<div class="list-field" style="padding-top:4px;">
						<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<div class="form-radio" ><span class="form-radio-item" ><input class="radio" id="d2024_CanViewList%trindex%" CtrlPrex="AjaxF_"',[CtrlfrontHtml]='type="checkbox" yesv=''true'' nov=''false'' checked=''checked''  onclick ="javascript:DcxForm.ClickCkbLf(this,2024,''AjaxF_'');if(!DcxVld.Validate(this,2024,''AjaxF_'',2023,true))return false;" EntId="2024" IsField=1 DBField=1 IsPost=1 FieldName="CanViewList" dType="4" Vtp="1" RDT="4" Isc="1" RId="6" CId="13" FId="5" vlk=0    />',[CtrlbackHtml]='<label for="d2024_CanViewList%trindex%">允许</label></span></div>',[CtrlLastHtml]='',[TableIndex]=8,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2024,' where  [FldUId]='d8ff65b8-242a-b1fe-bae3-7cd2a78c4067' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='cfe63b7d-161b-ca21-dffd-88673a323ad9'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'cfe63b7d-161b-ca21-dffd-88673a323ad9',2023,2024,'00000000-0000-0000-0000-000000000000','CanBrowse',4,4,6,'',1,6,1,0,13,1,-1,8,-1,1,0,'','','','','</span>

</div>
				</li>
				<li areaid="48" class="li-listfield" scroll="no" style="width: 55px; height: 38px; clear: none; float: left; position: static;">
					<div class="list-field" style="padding-top:4px;">
						<span class="form-ctr" isfcontain="1">','','','<div class="form-radio" ><span class="form-radio-item" ><input class="radio" id="d2024_CanBrowse%trindex%" CtrlPrex="AjaxF_"','type="checkbox" yesv=''true'' nov=''false'' checked=''checked''  onclick ="javascript:DcxForm.ClickCkbLf(this,2024,''AjaxF_'');if(!DcxVld.Validate(this,2024,''AjaxF_'',2023,true))return false;" EntId="2024" IsField=1 DBField=1 IsPost=1 FieldName="CanBrowse" dType="4" Vtp="1" RDT="4" Isc="1" RId="6" CId="13" FId="6" vlk=0    />','<label for="d2024_CanBrowse%trindex%">允许</label></span></div>','',8,-1,-1,-1,1,'2024,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=6,[Form_EntId]=2023,[EntId]=2024,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='CanBrowse',[FieldDataTypeId]=4,[RunDataTypeId]=4,[DBFieldId]=6,[DefaultValue]='',[ValueType]=1,[RunValueType]=6,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=13,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=8,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

</div>
				</li>
				<li areaid="48" class="li-listfield" scroll="no" style="width: 55px; height: 38px; clear: none; float: left; position: static;">
					<div class="list-field" style="padding-top:4px;">
						<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<div class="form-radio" ><span class="form-radio-item" ><input class="radio" id="d2024_CanBrowse%trindex%" CtrlPrex="AjaxF_"',[CtrlfrontHtml]='type="checkbox" yesv=''true'' nov=''false'' checked=''checked''  onclick ="javascript:DcxForm.ClickCkbLf(this,2024,''AjaxF_'');if(!DcxVld.Validate(this,2024,''AjaxF_'',2023,true))return false;" EntId="2024" IsField=1 DBField=1 IsPost=1 FieldName="CanBrowse" dType="4" Vtp="1" RDT="4" Isc="1" RId="6" CId="13" FId="6" vlk=0    />',[CtrlbackHtml]='<label for="d2024_CanBrowse%trindex%">允许</label></span></div>',[CtrlLastHtml]='',[TableIndex]=8,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2024,' where  [FldUId]='cfe63b7d-161b-ca21-dffd-88673a323ad9' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='c507a343-6408-c52f-21e1-d3a2fcc4ead4'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'c507a343-6408-c52f-21e1-d3a2fcc4ead4',2023,2024,'00000000-0000-0000-0000-000000000000','CanInsert',4,4,7,'',1,6,1,0,13,1,-1,9,-1,1,0,'','','','','</span>
</div>
				</li>
				<li areaid="47" class="li-listfield" scroll="no" style="width: 60px; height: 38px; clear: none; float: left; position: static;">
					<div class="list-field" style="padding-top:4px;">
						<span class="form-ctr" isfcontain="1">','','','<div class="form-radio" ><span class="form-radio-item" ><input class="radio" id="d2024_CanInsert%trindex%" CtrlPrex="AjaxF_"','type="checkbox" yesv=''true'' nov=''false'' checked=''checked''  onclick ="javascript:DcxForm.ClickCkbLf(this,2024,''AjaxF_'');if(!DcxVld.Validate(this,2024,''AjaxF_'',2023,true))return false;" EntId="2024" IsField=1 DBField=1 IsPost=1 FieldName="CanInsert" dType="4" Vtp="1" RDT="4" Isc="1" RId="6" CId="13" FId="7" vlk=0    />','<label for="d2024_CanInsert%trindex%">允许</label></span></div>','',8,-1,-1,-1,1,'2024,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=7,[Form_EntId]=2023,[EntId]=2024,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='CanInsert',[FieldDataTypeId]=4,[RunDataTypeId]=4,[DBFieldId]=7,[DefaultValue]='',[ValueType]=1,[RunValueType]=6,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=13,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=9,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
				</li>
				<li areaid="47" class="li-listfield" scroll="no" style="width: 60px; height: 38px; clear: none; float: left; position: static;">
					<div class="list-field" style="padding-top:4px;">
						<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<div class="form-radio" ><span class="form-radio-item" ><input class="radio" id="d2024_CanInsert%trindex%" CtrlPrex="AjaxF_"',[CtrlfrontHtml]='type="checkbox" yesv=''true'' nov=''false'' checked=''checked''  onclick ="javascript:DcxForm.ClickCkbLf(this,2024,''AjaxF_'');if(!DcxVld.Validate(this,2024,''AjaxF_'',2023,true))return false;" EntId="2024" IsField=1 DBField=1 IsPost=1 FieldName="CanInsert" dType="4" Vtp="1" RDT="4" Isc="1" RId="6" CId="13" FId="7" vlk=0    />',[CtrlbackHtml]='<label for="d2024_CanInsert%trindex%">允许</label></span></div>',[CtrlLastHtml]='',[TableIndex]=8,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2024,' where  [FldUId]='c507a343-6408-c52f-21e1-d3a2fcc4ead4' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='0e61192c-eb8e-13b1-f89d-6361f379c07e'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'0e61192c-eb8e-13b1-f89d-6361f379c07e',2023,2024,'00000000-0000-0000-0000-000000000000','CanDelete',4,4,8,'',1,6,1,0,13,1,-1,10,-1,1,0,'','','','','</span>
</div>
				</li>
				<li areaid="46" class="li-listfield" scroll="no" style="width: 60px; height: 38px; clear: none; float: left; position: static;">
					<div class="list-field" style="padding-top:4px;">
						<span class="form-ctr" isfcontain="1">','','','<div class="form-radio" ><span class="form-radio-item" ><input class="radio" id="d2024_CanDelete%trindex%" CtrlPrex="AjaxF_"','type="checkbox" yesv=''true'' nov=''false'' checked=''checked''  onclick ="javascript:DcxForm.ClickCkbLf(this,2024,''AjaxF_'');if(!DcxVld.Validate(this,2024,''AjaxF_'',2023,true))return false;" EntId="2024" IsField=1 DBField=1 IsPost=1 FieldName="CanDelete" dType="4" Vtp="1" RDT="4" Isc="1" RId="6" CId="13" FId="8" vlk=0    />','<label for="d2024_CanDelete%trindex%">允许</label></span></div>','',8,-1,-1,-1,1,'2024,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=8,[Form_EntId]=2023,[EntId]=2024,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='CanDelete',[FieldDataTypeId]=4,[RunDataTypeId]=4,[DBFieldId]=8,[DefaultValue]='',[ValueType]=1,[RunValueType]=6,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=13,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=10,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
				</li>
				<li areaid="46" class="li-listfield" scroll="no" style="width: 60px; height: 38px; clear: none; float: left; position: static;">
					<div class="list-field" style="padding-top:4px;">
						<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<div class="form-radio" ><span class="form-radio-item" ><input class="radio" id="d2024_CanDelete%trindex%" CtrlPrex="AjaxF_"',[CtrlfrontHtml]='type="checkbox" yesv=''true'' nov=''false'' checked=''checked''  onclick ="javascript:DcxForm.ClickCkbLf(this,2024,''AjaxF_'');if(!DcxVld.Validate(this,2024,''AjaxF_'',2023,true))return false;" EntId="2024" IsField=1 DBField=1 IsPost=1 FieldName="CanDelete" dType="4" Vtp="1" RDT="4" Isc="1" RId="6" CId="13" FId="8" vlk=0    />',[CtrlbackHtml]='<label for="d2024_CanDelete%trindex%">允许</label></span></div>',[CtrlLastHtml]='',[TableIndex]=8,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2024,' where  [FldUId]='0e61192c-eb8e-13b1-f89d-6361f379c07e' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='106676c8-5660-e246-efda-59c6f0e95857'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'106676c8-5660-e246-efda-59c6f0e95857',2023,2024,'00000000-0000-0000-0000-000000000000','CanUpdate',4,4,9,'',1,6,1,0,13,1,-1,11,-1,1,0,'','','','','</span>

</div>
				</li>
				<li areaid="45" class="li-listfield" scroll="no" style="width: 55px; height: 38px; clear: none; float: left; position: static;">
					<div class="list-field" style="padding-top:4px;">
						<span class="form-ctr" isfcontain="1">','','','<div class="form-radio" ><span class="form-radio-item" ><input class="radio" id="d2024_CanUpdate%trindex%" CtrlPrex="AjaxF_"','type="checkbox" yesv=''true'' nov=''false'' checked=''checked''  onclick ="javascript:DcxForm.ClickCkbLf(this,2024,''AjaxF_'');if(!DcxVld.Validate(this,2024,''AjaxF_'',2023,true))return false;" EntId="2024" IsField=1 DBField=1 IsPost=1 FieldName="CanUpdate" dType="4" Vtp="1" RDT="4" Isc="1" RId="6" CId="13" FId="9" vlk=0    />','<label for="d2024_CanUpdate%trindex%">允许</label></span></div>','',8,-1,-1,-1,1,'2024,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=9,[Form_EntId]=2023,[EntId]=2024,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='CanUpdate',[FieldDataTypeId]=4,[RunDataTypeId]=4,[DBFieldId]=9,[DefaultValue]='',[ValueType]=1,[RunValueType]=6,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=13,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=11,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

</div>
				</li>
				<li areaid="45" class="li-listfield" scroll="no" style="width: 55px; height: 38px; clear: none; float: left; position: static;">
					<div class="list-field" style="padding-top:4px;">
						<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<div class="form-radio" ><span class="form-radio-item" ><input class="radio" id="d2024_CanUpdate%trindex%" CtrlPrex="AjaxF_"',[CtrlfrontHtml]='type="checkbox" yesv=''true'' nov=''false'' checked=''checked''  onclick ="javascript:DcxForm.ClickCkbLf(this,2024,''AjaxF_'');if(!DcxVld.Validate(this,2024,''AjaxF_'',2023,true))return false;" EntId="2024" IsField=1 DBField=1 IsPost=1 FieldName="CanUpdate" dType="4" Vtp="1" RDT="4" Isc="1" RId="6" CId="13" FId="9" vlk=0    />',[CtrlbackHtml]='<label for="d2024_CanUpdate%trindex%">允许</label></span></div>',[CtrlLastHtml]='',[TableIndex]=8,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2024,' where  [FldUId]='106676c8-5660-e246-efda-59c6f0e95857' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='305adedd-e68b-249d-9f1b-7a4d572bdc91'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'305adedd-e68b-249d-9f1b-7a4d572bdc91',2023,2024,'00000000-0000-0000-0000-000000000000','CanOutPut',4,4,10,'',1,6,1,0,13,1,-1,12,-1,1,0,'','','','','</span>

</div>
				</li>
				<li areaid="44" class="li-listfield" scroll="no" style="width: 60px; height: 38px; clear: none; float: left; position: static;">
					<div class="list-field" style="padding-top:4px;">
						<span class="form-ctr" isfcontain="1">','','','<div class="form-radio" ><span class="form-radio-item" ><input class="radio" id="d2024_CanOutPut%trindex%" CtrlPrex="AjaxF_"','type="checkbox" yesv=''true'' nov=''false'' checked=''checked''  onclick ="javascript:DcxForm.ClickCkbLf(this,2024,''AjaxF_'');if(!DcxVld.Validate(this,2024,''AjaxF_'',2023,true))return false;" EntId="2024" IsField=1 DBField=1 IsPost=1 FieldName="CanOutPut" dType="4" Vtp="1" RDT="4" Isc="1" RId="6" CId="13" FId="10" vlk=0    />','<label for="d2024_CanOutPut%trindex%">允许</label></span></div>','',8,-1,-1,-1,1,'2024,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=10,[Form_EntId]=2023,[EntId]=2024,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='CanOutPut',[FieldDataTypeId]=4,[RunDataTypeId]=4,[DBFieldId]=10,[DefaultValue]='',[ValueType]=1,[RunValueType]=6,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=13,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=12,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

</div>
				</li>
				<li areaid="44" class="li-listfield" scroll="no" style="width: 60px; height: 38px; clear: none; float: left; position: static;">
					<div class="list-field" style="padding-top:4px;">
						<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<div class="form-radio" ><span class="form-radio-item" ><input class="radio" id="d2024_CanOutPut%trindex%" CtrlPrex="AjaxF_"',[CtrlfrontHtml]='type="checkbox" yesv=''true'' nov=''false'' checked=''checked''  onclick ="javascript:DcxForm.ClickCkbLf(this,2024,''AjaxF_'');if(!DcxVld.Validate(this,2024,''AjaxF_'',2023,true))return false;" EntId="2024" IsField=1 DBField=1 IsPost=1 FieldName="CanOutPut" dType="4" Vtp="1" RDT="4" Isc="1" RId="6" CId="13" FId="10" vlk=0    />',[CtrlbackHtml]='<label for="d2024_CanOutPut%trindex%">允许</label></span></div>',[CtrlLastHtml]='',[TableIndex]=8,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2024,' where  [FldUId]='305adedd-e68b-249d-9f1b-7a4d572bdc91' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='0b563b59-7c72-9bea-78af-ff6ce80b8692'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'0b563b59-7c72-9bea-78af-ff6ce80b8692',2023,2024,'00000000-0000-0000-0000-000000000000','CanInput',4,4,11,'',1,6,1,0,13,1,-1,13,-1,1,0,'','','','','</span>
</div>
				</li>
				<li areaid="54" class="li-listfield" scroll="no" style="width: 60px; height: 38px; clear: right; float: left; position: static;"><div class="list-field" style="padding-top:4px;">
	<span class="form-ctr" isfcontain="1">','','','<div class="form-radio" ><span class="form-radio-item" ><input class="radio" id="d2024_CanInput%trindex%" CtrlPrex="AjaxF_"','type="checkbox" yesv=''true'' nov=''false'' checked=''checked''  onclick ="javascript:DcxForm.ClickCkbLf(this,2024,''AjaxF_'');if(!DcxVld.Validate(this,2024,''AjaxF_'',2023,true))return false;" EntId="2024" IsField=1 DBField=1 IsPost=1 FieldName="CanInput" dType="4" Vtp="1" RDT="4" Isc="1" RId="6" CId="13" FId="11" vlk=0    />','<label for="d2024_CanInput%trindex%">允许</label></span></div>','',8,-1,-1,-1,1,'2024,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=11,[Form_EntId]=2023,[EntId]=2024,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='CanInput',[FieldDataTypeId]=4,[RunDataTypeId]=4,[DBFieldId]=11,[DefaultValue]='',[ValueType]=1,[RunValueType]=6,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=13,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=13,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
				</li>
				<li areaid="54" class="li-listfield" scroll="no" style="width: 60px; height: 38px; clear: right; float: left; position: static;"><div class="list-field" style="padding-top:4px;">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<div class="form-radio" ><span class="form-radio-item" ><input class="radio" id="d2024_CanInput%trindex%" CtrlPrex="AjaxF_"',[CtrlfrontHtml]='type="checkbox" yesv=''true'' nov=''false'' checked=''checked''  onclick ="javascript:DcxForm.ClickCkbLf(this,2024,''AjaxF_'');if(!DcxVld.Validate(this,2024,''AjaxF_'',2023,true))return false;" EntId="2024" IsField=1 DBField=1 IsPost=1 FieldName="CanInput" dType="4" Vtp="1" RDT="4" Isc="1" RId="6" CId="13" FId="11" vlk=0    />',[CtrlbackHtml]='<label for="d2024_CanInput%trindex%">允许</label></span></div>',[CtrlLastHtml]='',[TableIndex]=8,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2024,' where  [FldUId]='0b563b59-7c72-9bea-78af-ff6ce80b8692' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='ffc6356e-2004-e159-ef95-2e3b187db7df'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(115,'ffc6356e-2004-e159-ef95-2e3b187db7df',2023,2024,'00000000-0000-0000-0000-000000000000','CEntEnd',-1,2,-1,'',5,-1,1,0,-1,11,-1,14,-1,0,0,'','','','','</span>
	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li>
				
				
				
			</ul>','</div>
	</div>
	<!-- 结束 --></div>
</li>
				
			</ul>
		</div>
		<div class="div_tabs" style="display:none;">
			<ul class="tab_ul" entid="2023" groupid="2" isgroup="1" islonly="1" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
				<li areaid="26" class="ui-droppable  li-tab de-selected" istab="1" scroll="no" style="height: 29px; width: 70px; position: static;" tabid="1">
					<a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
				<li areaid="27" class="ui-droppable  li-tab" istab="1" scroll="no" style="position: static;" tabid="2">
					<a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
			</ul>
			<div class="tabs-content" style="" tabid="1">
				<ul class="ul-mform" entid="2023" groupid="3" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
					<li areaid="28" class="li-area" scroll="no" style="width: 395px; height: 38px; position: static;">
						<label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
					<li areaid="29" class="li-area" fldid="-1" scroll="no" style="width: 395px; height: 38px; position: static;">
						<label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
				</ul>
			</div>
			<div class="tabs-content" style="display: none;" tabid="2">
				<ul class="ul-mform" entid="2023" groupid="4" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
					<li areaid="30" class="li-area" scroll="no" style="width: 395px; height: 38px; position: static;">
						<label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
					<li areaid="31" class="li-area" scroll="no" style="width: 395px; height: 38px; position: static;">
						<label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
				</ul>
			</div>
		</div>
	</div>
</div>
<br>','','','','','',8,-1,-1,-1,1,'2024,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=115,[Form_EntId]=2023,[EntId]=2024,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='CEntEnd',[FieldDataTypeId]=-1,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=-1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=-1,[FieldTypeId]=11,[RepeatColumns]=-1,[FieldNO]=14,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li>
				
				
				
			</ul>',[LastHtml]='</div>
	</div>
	<!-- 结束 --></div>
</li>
				
			</ul>
		</div>
		<div class="div_tabs" style="display:none;">
			<ul class="tab_ul" entid="2023" groupid="2" isgroup="1" islonly="1" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
				<li areaid="26" class="ui-droppable  li-tab de-selected" istab="1" scroll="no" style="height: 29px; width: 70px; position: static;" tabid="1">
					<a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
				<li areaid="27" class="ui-droppable  li-tab" istab="1" scroll="no" style="position: static;" tabid="2">
					<a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
			</ul>
			<div class="tabs-content" style="" tabid="1">
				<ul class="ul-mform" entid="2023" groupid="3" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
					<li areaid="28" class="li-area" scroll="no" style="width: 395px; height: 38px; position: static;">
						<label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
					<li areaid="29" class="li-area" fldid="-1" scroll="no" style="width: 395px; height: 38px; position: static;">
						<label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
				</ul>
			</div>
			<div class="tabs-content" style="display: none;" tabid="2">
				<ul class="ul-mform" entid="2023" groupid="4" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
					<li areaid="30" class="li-area" scroll="no" style="width: 395px; height: 38px; position: static;">
						<label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
					<li areaid="31" class="li-area" scroll="no" style="width: 395px; height: 38px; position: static;">
						<label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
				</ul>
			</div>
		</div>
	</div>
</div>
<br>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='',[CtrlbackHtml]='',[CtrlLastHtml]='',[TableIndex]=8,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2024,' where  [FldUId]='ffc6356e-2004-e159-ef95-2e3b187db7df' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=132

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=132  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(132,null,'Dcx_Entity_Run','Dcx_Entity_Run',1,0,0,0,0,0,29,1,3,'admin','2013-12-15 17:32:13',3,'admin','2013-12-15 17:32:13',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='Dcx_Entity_Run',[DBTableByName]='Dcx_Entity_Run',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=29,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:13',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:13',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=132 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16591,1,29,132,'int',1,1,1,'Dcx_Entity_Run','EntId','EntId','',0,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='EntId',[FieldByname]='EntId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16592,2,29,132,'int',1,1,1,'Dcx_Entity_Run','MenuId','MenuId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='MenuId',[FieldByname]='MenuId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16593,3,29,132,'varchar',2,1,1,'Dcx_Entity_Run','EntName','EntName','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='EntName',[FieldByname]='EntName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16594,4,29,132,'bit',4,1,1,'Dcx_Entity_Run','MEnt','MEnt','',0,0,0,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='MEnt',[FieldByname]='MEnt',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16595,5,29,132,'int',1,1,1,'Dcx_Entity_Run','DBTableId','DBTableId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='DBTableId',[FieldByname]='DBTableId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16596,6,29,132,'int',1,1,1,'Dcx_Entity_Run','DBConnectId','DBConnectId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='DBConnectId',[FieldByname]='DBConnectId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16597,7,29,132,'varchar',2,1,1,'Dcx_Entity_Run','DBTableName','DBTableName','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='DBTableName',[FieldByname]='DBTableName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16598,8,29,132,'int',1,1,1,'Dcx_Entity_Run','ParentId','ParentId','0',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='ParentId',[FieldByname]='ParentId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16599,9,29,132,'int',1,1,1,'Dcx_Entity_Run','OrderBy','OrderBy','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='OrderBy',[FieldByname]='OrderBy',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16600,10,29,132,'bit',4,1,1,'Dcx_Entity_Run','CheckPower','CheckPower','1',0,0,0,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='CheckPower',[FieldByname]='CheckPower',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16601,11,29,132,'int',1,1,1,'Dcx_Entity_Run','SSystemId','SSystemId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='SSystemId',[FieldByname]='SSystemId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16602,12,29,132,'int',1,1,1,'Dcx_Entity_Run','SEntId','SEntId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='SEntId',[FieldByname]='SEntId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16603,13,29,132,'int',1,1,1,'Dcx_Entity_Run','FSystemId','FSystemId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='FSystemId',[FieldByname]='FSystemId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16604,14,29,132,'int',1,1,1,'Dcx_Entity_Run','FEntId','FEntId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='FEntId',[FieldByname]='FEntId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16605,15,29,132,'int',1,1,1,'Dcx_Entity_Run','SystemId','SystemId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='SystemId',[FieldByname]='SystemId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16606,16,29,132,'varchar',2,1,1,'Dcx_Entity_Run','Remark','Remark','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='Remark',[FieldByname]='Remark',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16607,17,29,132,'bit',4,1,1,'Dcx_Entity_Run','IsFlow','IsFlow','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='IsFlow',[FieldByname]='IsFlow',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16608,18,29,132,'bit',4,1,1,'Dcx_Entity_Run','IsChecked','IsChecked','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='IsChecked',[FieldByname]='IsChecked',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16609,19,29,132,'int',1,1,1,'Dcx_Entity_Run','FlowId','FlowId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='FlowId',[FieldByname]='FlowId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16610,20,29,132,'int',1,1,1,'Dcx_Entity_Run','MaxCount','MaxCount','-1',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='MaxCount',[FieldByname]='MaxCount',[DefaultValue]='-1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16611,21,29,132,'bit',4,1,1,'Dcx_Entity_Run','IsDesigning','IsDesigning','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='IsDesigning',[FieldByname]='IsDesigning',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16612,22,29,132,'bit',4,1,1,'Dcx_Entity_Run','ShowTag','ShowTag','1',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='ShowTag',[FieldByname]='ShowTag',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16613,23,29,132,'datetime',3,1,1,'Dcx_Entity_Run','AddDcxTime','AddDcxTime','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='AddDcxTime',[FieldByname]='AddDcxTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16614,24,29,132,'varchar',2,1,1,'Dcx_Entity_Run','AddDcxUserName','AddDcxUserName','',0,0,1,40,40,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='AddDcxUserName',[FieldByname]='AddDcxUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=40,[Precision]=40,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16615,25,29,132,'int',1,1,1,'Dcx_Entity_Run','AddDcxUserId','AddDcxUserId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='AddDcxUserId',[FieldByname]='AddDcxUserId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16616,26,29,132,'varchar',2,1,1,'Dcx_Entity_Run','SqlDelete','SqlDelete','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='SqlDelete',[FieldByname]='SqlDelete',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=26 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=27  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16617,27,29,132,'varchar',2,1,1,'Dcx_Entity_Run','SqlInsert','SqlInsert','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='SqlInsert',[FieldByname]='SqlInsert',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=27 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=28  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16618,28,29,132,'varchar',2,1,1,'Dcx_Entity_Run','SqlUpdate','SqlUpdate','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='SqlUpdate',[FieldByname]='SqlUpdate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=28 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=29  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16619,29,29,132,'varchar',2,1,1,'Dcx_Entity_Run','SqlSelect','SqlSelect','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='SqlSelect',[FieldByname]='SqlSelect',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=29 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=30  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16620,30,29,132,'int',1,1,1,'Dcx_Entity_Run','CreatorId','CreatorId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='CreatorId',[FieldByname]='CreatorId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=30 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=31  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16621,31,29,132,'varchar',2,1,1,'Dcx_Entity_Run','Creator','Creator','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='Creator',[FieldByname]='Creator',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=31 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=32  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16622,32,29,132,'datetime',3,1,1,'Dcx_Entity_Run','CreateTime','CreateTime','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='CreateTime',[FieldByname]='CreateTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=32 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=33  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16623,33,29,132,'int',1,1,1,'Dcx_Entity_Run','EditorId','EditorId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='EditorId',[FieldByname]='EditorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=33 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=34  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16624,34,29,132,'varchar',2,1,1,'Dcx_Entity_Run','Editor','Editor','',0,0,1,40,40,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='Editor',[FieldByname]='Editor',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=40,[Precision]=40,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=34 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=35  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16625,35,29,132,'datetime',3,1,1,'Dcx_Entity_Run','EditTime','EditTime','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='EditTime',[FieldByname]='EditTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=35 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=36  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16626,36,29,132,'int',1,1,1,'Dcx_Entity_Run','AccountId','AccountId','1',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='AccountId',[FieldByname]='AccountId',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=36 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 



Delete from [Dcx_EntityPrivilege]  where [EntId]=2024

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2024  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11061,3286,2024,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=3286,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2024  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=3287  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(3287,'c6c36674-267f-4d0b-bf6f-505ca9333ef6','公司管理',3273,'/Template/default/form/AllForm_List_Tree_Tag.aspx?optype=2&mkfv=1',75,'/images/default.gif','/images/default.gif',11,'rightFrame',0,1,'',29,-1,29,1,1,1,null,'',0,0,'',null,3,'admin','2013-10-9 4:21:00',1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='c6c36674-267f-4d0b-bf6f-505ca9333ef6',[MenuName]='公司管理',[ParentId]=3273,[ProPath]='/Template/default/form/AllForm_List_Tree_Tag.aspx?optype=2&mkfv=1',[TemplateId]=75,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=11,[Target]='rightFrame',[IsOpen]=0,[IsHidden]=1,[Remark]='',[SSystemId]=29,[SMenuId]=-1,[SystemId]=29,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=0,[Creator]='',[CreateTime]=null,[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-9 4:21:00',[AccountId]=1 where  [MenuId]=3287 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3287  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(1047,3287,'公司管理','Public',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='公司管理',[RoleName]='Public',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3287  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3287  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(979,3287,'公司管理','系统管理员',3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='公司管理',[RoleName]='系统管理员',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3287  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2010  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2010,3287,'公司管理',1,84,0,'Dcx_Company',0,0,1,29,2010,null,null,29,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3287,[EntName]='公司管理',[MEnt]=1,[DBTableId]=84,[DBConnectId]=0,[DBTableName]='Dcx_Company',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2010,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2010 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=2010

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2010  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11049,3287,2010,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=3287,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2010  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2010

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2010  and  [ModuleTypeId]=18  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20440,29,3287,2010,63,18,44,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3287,[TemplateId]=63,[ModuleId]=44,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2010  and  [ModuleTypeId]=18 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2010  and  [ModuleTypeId]=5  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20441,29,3287,2010,63,5,25,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3287,[TemplateId]=63,[ModuleId]=25,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2010  and  [ModuleTypeId]=5 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_DefaultForm_Run]  where [EntId]=2010

--Dcx_DefaultForm_Run
      if (select count(1) from [Dcx_DefaultForm_Run] where  [EntId]=2010  )<1 
      begin 
           Insert into [Dcx_DefaultForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[OtherMsg],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('c96e3b7f-ea72-1158-8946-2e141c2e6a6f','公司管理',2010,-1,'','',0,'','','DcxRun.DefaultF_2010= {"MenuId":3287,"MEntId":2010,"EntName":"公司管理","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2010":{"EntId":2010,"KeyFieldValue":"","DBTableName":"","KeyField":"CompanyId","KeydtId":2,"JoinKeyField":"CompanyId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{
InitCtrlHtml_Address(null,2010,''DefaultF_'',''Principal'',8,null,null,false);

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":10,"Ent":[{"EntId":2010,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":2,"Vld":[{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,100}$","err":"限制0-100个字符。","ok":"","warn":"","ovt":1}]},{"FldId":3,"Vld":[{"Id":4,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,100}$","err":"限制0-100个字符。","ok":"","warn":"","ovt":1}]},{"FldId":4,"Vld":[{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,100}$","err":"限制0-100个字符。","ok":"","warn":"","ovt":1}]},{"FldId":5,"Vld":[{"Id":6,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":6,"Vld":[{"Id":7,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":7,"Vld":[{"Id":8,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":8,"Vld":[{"Id":9,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":9,"Vld":[{"Id":10,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":10,"Vld":[]}]}]};
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2010.EntMsg.E2010.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_Company","EntId":2010,"KeyField":"CompanyId","MKeyField":"CompanyId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"CompanyCode":{"DtId":2,"DB":1,"CId":1,"FL":50},"CompanyName":{"DtId":2,"DB":1,"CId":1,"FL":100},"Telephone":{"DtId":2,"DB":1,"CId":1,"FL":100},"Address":{"DtId":2,"DB":1,"CId":1,"FL":100},"PostalCode":{"DtId":2,"DB":1,"CId":1,"FL":50},"Email":{"DtId":2,"DB":1,"CId":1,"FL":50},"URL":{"DtId":2,"DB":1,"CId":1,"FL":50},"Principal":{"DtId":2,"DB":1,"CId":46,"FL":50},"Accounts":{"DtId":2,"DB":1,"CId":1,"FL":50},"Remark":{"DtId":2,"DB":1,"CId":2,"FL":0}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2010.EntMsg.E2010.GetDataRowModel=function()
{
    return {"CompanyCode":"","CompanyName":"","Telephone":"","Address":"","PostalCode":"","Email":"","URL":"","Principal":"","Accounts":"","Remark":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"CompanyId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2010.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2010,''DefaultF_'',buildNew,closeDlg);

}','<$2010$>select [CompanyCode],[CompanyName],[Telephone],[Email],[URL],[Principal],[Address],[PostalCode],[Accounts],[Remark],[CompanyId] from Dcx_Company where [CompanyId]=''{$keyfieldvalue}''</$2010$>',10,'2010*CompanyId*2*CompanyId*2*Dcx_Company*公司管理','','','',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-10-2 1:44:25',3,'admin','2013-10-2 18:34:09',1)
      end
      else 
      begin 
           update [Dcx_DefaultForm_Run] set [FormId]='c96e3b7f-ea72-1158-8946-2e141c2e6a6f',[FormName]='公司管理',[ModuleId]=-1,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.DefaultF_2010= {"MenuId":3287,"MEntId":2010,"EntName":"公司管理","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2010":{"EntId":2010,"KeyFieldValue":"","DBTableName":"","KeyField":"CompanyId","KeydtId":2,"JoinKeyField":"CompanyId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{
InitCtrlHtml_Address(null,2010,''DefaultF_'',''Principal'',8,null,null,false);

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":10,"Ent":[{"EntId":2010,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":2,"Vld":[{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,100}$","err":"限制0-100个字符。","ok":"","warn":"","ovt":1}]},{"FldId":3,"Vld":[{"Id":4,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,100}$","err":"限制0-100个字符。","ok":"","warn":"","ovt":1}]},{"FldId":4,"Vld":[{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,100}$","err":"限制0-100个字符。","ok":"","warn":"","ovt":1}]},{"FldId":5,"Vld":[{"Id":6,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":6,"Vld":[{"Id":7,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":7,"Vld":[{"Id":8,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":8,"Vld":[{"Id":9,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":9,"Vld":[{"Id":10,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":10,"Vld":[]}]}]};
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2010.EntMsg.E2010.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_Company","EntId":2010,"KeyField":"CompanyId","MKeyField":"CompanyId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"CompanyCode":{"DtId":2,"DB":1,"CId":1,"FL":50},"CompanyName":{"DtId":2,"DB":1,"CId":1,"FL":100},"Telephone":{"DtId":2,"DB":1,"CId":1,"FL":100},"Address":{"DtId":2,"DB":1,"CId":1,"FL":100},"PostalCode":{"DtId":2,"DB":1,"CId":1,"FL":50},"Email":{"DtId":2,"DB":1,"CId":1,"FL":50},"URL":{"DtId":2,"DB":1,"CId":1,"FL":50},"Principal":{"DtId":2,"DB":1,"CId":46,"FL":50},"Accounts":{"DtId":2,"DB":1,"CId":1,"FL":50},"Remark":{"DtId":2,"DB":1,"CId":2,"FL":0}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2010.EntMsg.E2010.GetDataRowModel=function()
{
    return {"CompanyCode":"","CompanyName":"","Telephone":"","Address":"","PostalCode":"","Email":"","URL":"","Principal":"","Accounts":"","Remark":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"CompanyId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2010.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2010,''DefaultF_'',buildNew,closeDlg);

}',[LoadingSql]='<$2010$>select [CompanyCode],[CompanyName],[Telephone],[Email],[URL],[Principal],[Address],[PostalCode],[Accounts],[Remark],[CompanyId] from Dcx_Company where [CompanyId]=''{$keyfieldvalue}''</$2010$>',[PageSize]=10,[OtherMsg]='2010*CompanyId*2*CompanyId*2*Dcx_Company*公司管理',[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-10-2 1:44:25',[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-2 18:34:09',[AccountId]=1 where  [EntId]=2010 
      end




--Dcx_DefaultFormField_Run
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='8bb190e5-10ba-626f-9258-2f6b090f4baf'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'8bb190e5-10ba-626f-9258-2f6b090f4baf',2010,2010,'00000000-0000-0000-0000-000000000000',1,'CompanyCode',2,2,2,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','<div class="ajaxfrom defaultform">
<div class="div_top">
<ul class="ul-group" isgroup="1" groupid="1" isrple="1">
<li style="width: 716px; height: 55px; position: static;" class="li-area" scroll="no" areaid="9">
<div style="WIDTH: 716px" id="div_head1" class="form-title2">
<div style="WIDTH: 270px; FLOAT: left; CLEAR: none">
<h2 id="h2_title">公司管理</h2></div>
<div style="WIDTH: 435px; FLOAT: right; CLEAR: none"><a style="FLOAT: right" class="f_hot_op_bt f_hot_op_bt3 " onclick="javascript:DcxForm.Close();" href="javascript:void(0);"><span class="op_bt_i">关&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;闭</span></a> <a style="FLOAT: right" class="f_hot_op_bt f_hot_op_bt1 " onclick="javascript:DcxRun.DefaultF_2010.SubmitForm(false,2010,''DefaultF_'');" href="javascript:void(0);"><span class="op_bt_i">保&nbsp;&nbsp;&nbsp;&nbsp;存</span></a> <a style="DISPLAY: none; FLOAT: right" id="btn_NewBrotherMenu" class="f_hot_op_bt f_hot_op_bt2" onclick="javascript:DcxForm.BuildNew(2010,''DefaultF_'');" href="javascript:void(0);"><span class="op_bt_i">新&nbsp;&nbsp;&nbsp;&nbsp;建</span></a></div></div></li>
<li style="width: 716px; height: 45px; position: static;" class="li-area" scroll="no" areaid="10"><label class="area-title pad7" fldid="1" istitle="1">公司编号</label> 
<div class="field-content pad7"><span class="form-ctr" isfcontain="1">','','','','<input  id="d2010_CompanyCode"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2010,''DefaultF_'',2010,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2010,''DefaultF_'',2010);" EntId="2010" IsField=1 DBField=1 IsPost=1 FieldName="CompanyCode" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2010,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=1,[Form_EntId]=2010,[EntId]=2010,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[FieldName]='CompanyCode',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=2,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="ajaxfrom defaultform">
<div class="div_top">
<ul class="ul-group" isgroup="1" groupid="1" isrple="1">
<li style="width: 716px; height: 55px; position: static;" class="li-area" scroll="no" areaid="9">
<div style="WIDTH: 716px" id="div_head1" class="form-title2">
<div style="WIDTH: 270px; FLOAT: left; CLEAR: none">
<h2 id="h2_title">公司管理</h2></div>
<div style="WIDTH: 435px; FLOAT: right; CLEAR: none"><a style="FLOAT: right" class="f_hot_op_bt f_hot_op_bt3 " onclick="javascript:DcxForm.Close();" href="javascript:void(0);"><span class="op_bt_i">关&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;闭</span></a> <a style="FLOAT: right" class="f_hot_op_bt f_hot_op_bt1 " onclick="javascript:DcxRun.DefaultF_2010.SubmitForm(false,2010,''DefaultF_'');" href="javascript:void(0);"><span class="op_bt_i">保&nbsp;&nbsp;&nbsp;&nbsp;存</span></a> <a style="DISPLAY: none; FLOAT: right" id="btn_NewBrotherMenu" class="f_hot_op_bt f_hot_op_bt2" onclick="javascript:DcxForm.BuildNew(2010,''DefaultF_'');" href="javascript:void(0);"><span class="op_bt_i">新&nbsp;&nbsp;&nbsp;&nbsp;建</span></a></div></div></li>
<li style="width: 716px; height: 45px; position: static;" class="li-area" scroll="no" areaid="10"><label class="area-title pad7" fldid="1" istitle="1">公司编号</label> 
<div class="field-content pad7"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2010_CompanyCode"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2010,''DefaultF_'',2010,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2010,''DefaultF_'',2010);" EntId="2010" IsField=1 DBField=1 IsPost=1 FieldName="CompanyCode" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2010,' where  [FldUId]='8bb190e5-10ba-626f-9258-2f6b090f4baf' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='9f9e4160-7bc1-438a-d7d1-814516092653'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'9f9e4160-7bc1-438a-d7d1-814516092653',2010,2010,'00000000-0000-0000-0000-000000000000',2,'CompanyName',2,2,3,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span> </div></li>
<li style="width: 716px; height: 45px; position: static;" class="li-area" scroll="no" areaid="11"><label class="area-title pad7" fldid="2" istitle="1">公司名称</label> 
<div class="field-content pad7"><span class="form-ctr" isfcontain="1">','','','','<input  id="d2010_CompanyName"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2010,''DefaultF_'',2010,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2010,''DefaultF_'',2010);" EntId="2010" IsField=1 DBField=1 IsPost=1 FieldName="CompanyName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2010,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=2,[Form_EntId]=2010,[EntId]=2010,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[FieldName]='CompanyName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=3,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="width: 716px; height: 45px; position: static;" class="li-area" scroll="no" areaid="11"><label class="area-title pad7" fldid="2" istitle="1">公司名称</label> 
<div class="field-content pad7"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2010_CompanyName"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2010,''DefaultF_'',2010,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2010,''DefaultF_'',2010);" EntId="2010" IsField=1 DBField=1 IsPost=1 FieldName="CompanyName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2010,' where  [FldUId]='9f9e4160-7bc1-438a-d7d1-814516092653' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='de289604-4666-d4ce-05d8-840b84f5580e'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'de289604-4666-d4ce-05d8-840b84f5580e',2010,2010,'00000000-0000-0000-0000-000000000000',3,'Telephone',2,2,4,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span> </div></li>
<li style="width: 716px; height: 45px; position: static;" class="li-area" scroll="no" areaid="16"><label class="area-title pad7" fldid="3" istitle="1">电话号码</label> 
<div class="field-content pad7"><span class="form-ctr" isfcontain="1">','','','','<input  id="d2010_Telephone"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2010,''DefaultF_'',2010,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2010,''DefaultF_'',2010);" EntId="2010" IsField=1 DBField=1 IsPost=1 FieldName="Telephone" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="3" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2010,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=3,[Form_EntId]=2010,[EntId]=2010,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[FieldName]='Telephone',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=4,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="width: 716px; height: 45px; position: static;" class="li-area" scroll="no" areaid="16"><label class="area-title pad7" fldid="3" istitle="1">电话号码</label> 
<div class="field-content pad7"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2010_Telephone"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2010,''DefaultF_'',2010,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2010,''DefaultF_'',2010);" EntId="2010" IsField=1 DBField=1 IsPost=1 FieldName="Telephone" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="3" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2010,' where  [FldUId]='de289604-4666-d4ce-05d8-840b84f5580e' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='74814db0-6dbb-a5ea-1ae2-8efe3fc4c527'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'74814db0-6dbb-a5ea-1ae2-8efe3fc4c527',2010,2010,'00000000-0000-0000-0000-000000000000',4,'Email',2,2,7,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span> </div></li>
<li style="position: static; width: 716px; height: 45px;" class="li-area" scroll="no" areaid="13"><label class="area-title pad7" fldid="6" istitle="1">Email</label> 
<div class="field-content pad7"><span class="form-ctr" isfcontain="1">','','','','<input  id="d2010_Email"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2010,''DefaultF_'',2010,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2010,''DefaultF_'',2010);" EntId="2010" IsField=1 DBField=1 IsPost=1 FieldName="Email" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="6" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2010,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=6,[Form_EntId]=2010,[EntId]=2010,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=4,[FieldName]='Email',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=7,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="position: static; width: 716px; height: 45px;" class="li-area" scroll="no" areaid="13"><label class="area-title pad7" fldid="6" istitle="1">Email</label> 
<div class="field-content pad7"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2010_Email"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2010,''DefaultF_'',2010,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2010,''DefaultF_'',2010);" EntId="2010" IsField=1 DBField=1 IsPost=1 FieldName="Email" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="6" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2010,' where  [FldUId]='74814db0-6dbb-a5ea-1ae2-8efe3fc4c527' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='a107e755-5fba-70ec-0c71-099fd9bdd512'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'a107e755-5fba-70ec-0c71-099fd9bdd512',2010,2010,'00000000-0000-0000-0000-000000000000',5,'URL',2,2,8,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span> </div></li>
<li style="position: static; width: 716px; height: 45px;" class="li-area" scroll="no" areaid="18"><label class="area-title pad7" fldid="7" istitle="1">公司网址</label> 
<div class="field-content pad7"><span class="form-ctr" isfcontain="1">','','','','<input  id="d2010_URL"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2010,''DefaultF_'',2010,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2010,''DefaultF_'',2010);" EntId="2010" IsField=1 DBField=1 IsPost=1 FieldName="URL" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="7" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2010,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=7,[Form_EntId]=2010,[EntId]=2010,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=5,[FieldName]='URL',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=8,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="position: static; width: 716px; height: 45px;" class="li-area" scroll="no" areaid="18"><label class="area-title pad7" fldid="7" istitle="1">公司网址</label> 
<div class="field-content pad7"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2010_URL"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2010,''DefaultF_'',2010,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2010,''DefaultF_'',2010);" EntId="2010" IsField=1 DBField=1 IsPost=1 FieldName="URL" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="7" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2010,' where  [FldUId]='a107e755-5fba-70ec-0c71-099fd9bdd512' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='dd50d446-20b2-b541-2be8-8cd89c8cde2a'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'dd50d446-20b2-b541-2be8-8cd89c8cde2a',2010,2010,'00000000-0000-0000-0000-000000000000',6,'Principal',2,2,10,'',5,10,1,0,46,1,-1,-1,1,0,'','','','','</span> </div></li>
<li style="position: static; width: 716px; height: 45px;" class="li-area" scroll="no" areaid="17"><label class="area-title pad7" fldid="8" istitle="1">省份</label> 
<div class="field-content pad7"><span class="form-ctr" isfcontain="1"><div id="d2010_Principal" ctrlprex="DefaultF_" class="form-address" style="" isforfield="1" entid="2010" fid="8" rid="10" cid="46" fieldname="Principal"><table><tbody><tr>
<td><select id="d2010_Principal_1" class="form-select" onchange="javascript:GetChildOption_Address(this);" style="width:120px;" vlabel="1"><option selected="" vid="0" value="0">选择国家</option></select></td><td><select id="d2010_Principal_2" class="form-select" onchange="javascript:GetChildOption_Address(this);" style="width:80px;" vlabel="2"><option selected="" vid="0" value="0">选择省</option></select></td><td><select id="d2010_Principal_3" class="form-select" onchange="javascript:GetChildOption_Address(this);" style="width:80px;" vlabel="3"><option selected="" vid="0" value="0">选择市</option></select></td></tr></tbody></table>
</div>','','','','<input  id="d2010_Principal_hid"   type="hidden"  EntId="2010" IsField=1 DBField=1 IsPost=1 FieldName="Principal" dType="2" Vtp="5" RDT="2" Isc="1" RId="10" CId="46" FId="8" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2010,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=8,[Form_EntId]=2010,[EntId]=2010,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=6,[FieldName]='Principal',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=10,[DefaultValue]='',[ValueType]=5,[RunValueType]=10,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=46,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="position: static; width: 716px; height: 45px;" class="li-area" scroll="no" areaid="17"><label class="area-title pad7" fldid="8" istitle="1">省份</label> 
<div class="field-content pad7"><span class="form-ctr" isfcontain="1"><div id="d2010_Principal" ctrlprex="DefaultF_" class="form-address" style="" isforfield="1" entid="2010" fid="8" rid="10" cid="46" fieldname="Principal"><table><tbody><tr>
<td><select id="d2010_Principal_1" class="form-select" onchange="javascript:GetChildOption_Address(this);" style="width:120px;" vlabel="1"><option selected="" vid="0" value="0">选择国家</option></select></td><td><select id="d2010_Principal_2" class="form-select" onchange="javascript:GetChildOption_Address(this);" style="width:80px;" vlabel="2"><option selected="" vid="0" value="0">选择省</option></select></td><td><select id="d2010_Principal_3" class="form-select" onchange="javascript:GetChildOption_Address(this);" style="width:80px;" vlabel="3"><option selected="" vid="0" value="0">选择市</option></select></td></tr></tbody></table>
</div>',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2010_Principal_hid"   type="hidden"  EntId="2010" IsField=1 DBField=1 IsPost=1 FieldName="Principal" dType="2" Vtp="5" RDT="2" Isc="1" RId="10" CId="46" FId="8" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2010,' where  [FldUId]='dd50d446-20b2-b541-2be8-8cd89c8cde2a' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='601601a9-9ad5-c142-bda8-fb2e3f9eeb89'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'601601a9-9ad5-c142-bda8-fb2e3f9eeb89',2010,2010,'00000000-0000-0000-0000-000000000000',7,'Address',2,2,5,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span> </div></li>
<li style="position: static; width: 716px; height: 45px;" class="li-area" scroll="no" areaid="15"><label class="area-title pad7" fldid="4" istitle="1">地址</label> 
<div class="field-content pad7"><span class="form-ctr" isfcontain="1">','','','','<input  id="d2010_Address"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2010,''DefaultF_'',2010,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2010,''DefaultF_'',2010);" EntId="2010" IsField=1 DBField=1 IsPost=1 FieldName="Address" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="4" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2010,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=4,[Form_EntId]=2010,[EntId]=2010,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=7,[FieldName]='Address',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=5,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="position: static; width: 716px; height: 45px;" class="li-area" scroll="no" areaid="15"><label class="area-title pad7" fldid="4" istitle="1">地址</label> 
<div class="field-content pad7"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2010_Address"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2010,''DefaultF_'',2010,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2010,''DefaultF_'',2010);" EntId="2010" IsField=1 DBField=1 IsPost=1 FieldName="Address" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="4" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2010,' where  [FldUId]='601601a9-9ad5-c142-bda8-fb2e3f9eeb89' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='a7ae5d40-0a2c-28ac-ea79-c40bcae32e2b'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'a7ae5d40-0a2c-28ac-ea79-c40bcae32e2b',2010,2010,'00000000-0000-0000-0000-000000000000',8,'PostalCode',2,2,6,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span> </div></li>
<li style="position: static; width: 716px; height: 45px;" class="li-area" scroll="no" areaid="14"><label class="area-title pad7" fldid="5" istitle="1">邮政编码</label> 
<div class="field-content pad7"><span class="form-ctr" isfcontain="1">','','','','<input  id="d2010_PostalCode"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2010,''DefaultF_'',2010,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2010,''DefaultF_'',2010);" EntId="2010" IsField=1 DBField=1 IsPost=1 FieldName="PostalCode" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="5" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2010,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=5,[Form_EntId]=2010,[EntId]=2010,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=8,[FieldName]='PostalCode',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=6,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="position: static; width: 716px; height: 45px;" class="li-area" scroll="no" areaid="14"><label class="area-title pad7" fldid="5" istitle="1">邮政编码</label> 
<div class="field-content pad7"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2010_PostalCode"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2010,''DefaultF_'',2010,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2010,''DefaultF_'',2010);" EntId="2010" IsField=1 DBField=1 IsPost=1 FieldName="PostalCode" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="5" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2010,' where  [FldUId]='a7ae5d40-0a2c-28ac-ea79-c40bcae32e2b' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='e657b061-ed38-c98e-c608-b93aea5ccab0'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'e657b061-ed38-c98e-c608-b93aea5ccab0',2010,2010,'00000000-0000-0000-0000-000000000000',9,'Accounts',2,2,9,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span> </div></li>
<li style="width: 716px; height: 45px; position: static;" class="li-area" scroll="no" areaid="12"><label class="area-title pad7" fldid="9" istitle="1">银行帐号</label> 
<div class="field-content pad7"><span class="form-ctr" isfcontain="1">','','','','<input  id="d2010_Accounts"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2010,''DefaultF_'',2010,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2010,''DefaultF_'',2010);" EntId="2010" IsField=1 DBField=1 IsPost=1 FieldName="Accounts" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="9" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2010,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=9,[Form_EntId]=2010,[EntId]=2010,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=9,[FieldName]='Accounts',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=9,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="width: 716px; height: 45px; position: static;" class="li-area" scroll="no" areaid="12"><label class="area-title pad7" fldid="9" istitle="1">银行帐号</label> 
<div class="field-content pad7"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2010_Accounts"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2010,''DefaultF_'',2010,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2010,''DefaultF_'',2010);" EntId="2010" IsField=1 DBField=1 IsPost=1 FieldName="Accounts" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="9" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2010,' where  [FldUId]='e657b061-ed38-c98e-c608-b93aea5ccab0' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='47e56011-3f0b-b1bb-7f0e-b07e7b5abc54'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'47e56011-3f0b-b1bb-7f0e-b07e7b5abc54',2010,2010,'00000000-0000-0000-0000-000000000000',10,'Remark',2,2,12,'',5,1,1,0,2,1,-1,-1,1,0,'','','','','</span> </div></li>
<li style="position: static; width: 716px; height: 120px;" class="li-area" scroll="no" areaid="20"><label class="area-title pad7" fldid="10" istitle="1">备注</label> 
<div class="field-content pad7"><span class="form-ctr" isfcontain="1">','</span> </div></li>
<li style="width: 716px; height: 45px; display: none; position: static;" class="li-area" scroll="no" areaid="19"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad7">请编辑..</div></li></ul></div></div><br>','','','<textarea  id="d2010_Remark" class="form-txts"  style="width:250px;height:100px;" EntId="2010" IsField=1 DBField=1 IsPost=1 FieldName="Remark" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="10" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'2010,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=10,[Form_EntId]=2010,[EntId]=2010,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=10,[FieldName]='Remark',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=12,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="position: static; width: 716px; height: 120px;" class="li-area" scroll="no" areaid="20"><label class="area-title pad7" fldid="10" istitle="1">备注</label> 
<div class="field-content pad7"><span class="form-ctr" isfcontain="1">',[LastHtml]='</span> </div></li>
<li style="width: 716px; height: 45px; display: none; position: static;" class="li-area" scroll="no" areaid="19"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad7">请编辑..</div></li></ul></div></div><br>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d2010_Remark" class="form-txts"  style="width:250px;height:100px;" EntId="2010" IsField=1 DBField=1 IsPost=1 FieldName="Remark" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="10" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2010,' where  [FldUId]='47e56011-3f0b-b1bb-7f0e-b07e7b5abc54' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=84

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=84  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(84,null,'Dcx_Company','Dcx_Company',1,0,0,0,0,0,29,1,3,'admin','2013-12-15 17:32:10',3,'admin','2013-12-15 17:32:10',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='Dcx_Company',[DBTableByName]='Dcx_Company',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=29,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:10',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:10',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=84 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=84  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16208,1,29,84,'int',1,1,1,'Dcx_Company','CompanyId','CompanyId','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Company',[FieldName]='CompanyId',[FieldByname]='CompanyId',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=84  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=84  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16209,2,29,84,'varchar',2,1,1,'Dcx_Company','CompanyCode','CompanyCode','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Company',[FieldName]='CompanyCode',[FieldByname]='CompanyCode',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=84  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=84  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16210,3,29,84,'varchar',2,1,1,'Dcx_Company','CompanyName','CompanyName','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Company',[FieldName]='CompanyName',[FieldByname]='CompanyName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=84  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=84  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16211,4,29,84,'varchar',2,1,1,'Dcx_Company','Telephone','Telephone','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Company',[FieldName]='Telephone',[FieldByname]='Telephone',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=84  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=84  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16212,5,29,84,'varchar',2,1,1,'Dcx_Company','Address','Address','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Company',[FieldName]='Address',[FieldByname]='Address',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=84  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=84  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16213,6,29,84,'varchar',2,1,1,'Dcx_Company','PostalCode','PostalCode','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Company',[FieldName]='PostalCode',[FieldByname]='PostalCode',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=84  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=84  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16214,7,29,84,'varchar',2,1,1,'Dcx_Company','Email','Email','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Company',[FieldName]='Email',[FieldByname]='Email',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=84  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=84  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16215,8,29,84,'varchar',2,1,1,'Dcx_Company','URL','URL','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Company',[FieldName]='URL',[FieldByname]='URL',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=84  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=84  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16216,9,29,84,'varchar',2,1,1,'Dcx_Company','Accounts','Accounts','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Company',[FieldName]='Accounts',[FieldByname]='Accounts',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=84  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=84  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16217,10,29,84,'varchar',2,1,1,'Dcx_Company','Principal','Principal','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Company',[FieldName]='Principal',[FieldByname]='Principal',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=84  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=84  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16218,11,29,84,'int',1,1,1,'Dcx_Company','ComOrder','ComOrder','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Company',[FieldName]='ComOrder',[FieldByname]='ComOrder',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=84  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=84  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16219,12,29,84,'varchar',2,1,1,'Dcx_Company','Remark','Remark','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Company',[FieldName]='Remark',[FieldByname]='Remark',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=84  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=84  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16220,13,29,84,'int',1,1,1,'Dcx_Company','AccountId','AccountId','1',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Company',[FieldName]='AccountId',[FieldByname]='AccountId',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=84  and  [FieldId]=13 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=3288  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(3288,'de2bb612-2bf9-40ae-969b-546dfbdc8683','网页权限',3278,'/System/MenuPower.aspx?MenuId=3288&navindex=6',66,'/images/default.gif','/images/default.gif',0,'rightFrame',0,0,'',29,-1,29,2,1,1,null,'',0,0,'',null,3,'admin','2013-10-9 4:16:28',1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='de2bb612-2bf9-40ae-969b-546dfbdc8683',[MenuName]='网页权限',[ParentId]=3278,[ProPath]='/System/MenuPower.aspx?MenuId=3288&navindex=6',[TemplateId]=66,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=0,[Target]='rightFrame',[IsOpen]=0,[IsHidden]=0,[Remark]='',[SSystemId]=29,[SMenuId]=-1,[SystemId]=29,[EntityCount]=2,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=0,[Creator]='',[CreateTime]=null,[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-9 4:16:28',[AccountId]=1 where  [MenuId]=3288 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3288  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(1048,3288,'网页权限','Public',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='网页权限',[RoleName]='Public',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3288  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3288  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(994,3288,'应用权限','系统管理员',3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='应用权限',[RoleName]='系统管理员',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3288  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2029  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2029,3288,'网页权限',1,249,0,'Dcx_Menu_Run',0,0,1,29,2029,null,null,29,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3288,[EntName]='网页权限',[MEnt]=1,[DBTableId]=249,[DBConnectId]=0,[DBTableName]='Dcx_Menu_Run',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2029,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2029 
      end
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2030  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2030,3288,'网页权限从表',0,254,0,'Dcx_MenuPrivilege',2029,0,1,29,2030,null,null,29,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3288,[EntName]='网页权限从表',[MEnt]=0,[DBTableId]=254,[DBConnectId]=0,[DBTableName]='Dcx_MenuPrivilege',[ParentId]=2029,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2030,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2030 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=2029

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2029  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11065,3288,2029,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=3288,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2029  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2029

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2029  and  [ModuleTypeId]=5  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20462,29,3288,2029,70,5,25,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3288,[TemplateId]=70,[ModuleId]=25,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2029  and  [ModuleTypeId]=5 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2029  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20463,29,3288,2029,70,3,14,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3288,[TemplateId]=70,[ModuleId]=14,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2029  and  [ModuleTypeId]=3 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_AjaxForm_Run]  where [EntId]=2029

--Dcx_AjaxForm_Run
      if (select count(1) from [Dcx_AjaxForm_Run] where  [EntId]=2029  )<1 
      begin 
           Insert into [Dcx_AjaxForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('56605410-c8ec-ecdd-05d9-60e45acfc479','网页权限',2029,0,'','',0,'<script src="/Js/Control/LTreeRList/LTreeRList.js"></script>','','DcxRun.AjaxF_2029= {"MenuId":3288,"MEntId":2029,"EntName":"网页权限","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2029":{"EntId":2029,"KeyFieldValue":"","DBTableName":"","KeyField":"MenuId","KeydtId":2,"JoinKeyField":"MenuId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""},"E2030":{"EntId":2030,"KeyFieldValue":"","DBTableName":"","KeyField":"MenuPrivilegeId","KeydtId":2,"JoinKeyField":"MenuId","JKeydtId":2,"IsMEnt":false,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}


if(runObj.NoInit)
{
   entMsg.E2030.FormData=null;
   mEntMsg.RowCount=0;mEntMsg.RecortCount=0;entMsg.E2030.RowCount=0;

}

 DcxForm.InitSheetForm(2030,''AjaxF_'',entMsg.E2030.FormData,entMsg.E2030.$listContainer);


}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":10,"Ent":[{"EntId":2029,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":3,"vlId":5,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"此值已存在,请重新输入","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":4,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":2,"Vld":[{"Id":5,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":6,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,150}$","err":"限制0-150个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]}]},{"EntId":2030,"Fld":[{"FldId":3,"Vld":[{"Id":7,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":8,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":4,"Vld":[]},{"FldId":64,"Vld":[]},{"FldId":65,"Vld":[]}]}]};
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_2029.EntMsg.E2029.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_Menu_Run","EntId":2029,"KeyField":"MenuId","MKeyField":"MenuId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":1},"FieldDefine":{"MenuId":{"DtId":1,"DB":1,"CId":4,"FL":4},"MenuName":{"DtId":2,"DB":1,"CId":1,"FL":150}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_2029.EntMsg.E2029.GetDataRowModel=function()
{
    return {"MenuId":-1,"MenuName":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"MenuId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
DcxRun.AjaxF_2029.EntMsg.E2030.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_MenuPrivilege","EntId":2030,"KeyField":"MenuPrivilegeId","MKeyField":"MenuPrivilegeId","MKeyValue":-1,"DataTypeId":2,"JoinKeyField":"MenuId","JKeydtId":2,"OpType":1,"IsMEnt":false,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null},"FieldDefine":{"RoleId":{"DtId":1,"DB":1,"CId":40,"FL":4},"CanViewList":{"DtId":4,"DB":1,"CId":13,"FL":1}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_2029.EntMsg.E2030.GetDataRowModel=function()
{
    return {"RoleId":-1,"CanViewList":false,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"MenuPrivilegeId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1}};
}
/***************************上：JSON 函数*********************/



 function GetLinkCtrl_AjaxF_2030(obj,FieldName,EntId)
{

}
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_2029.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2029,''AjaxF_'',buildNew,closeDlg);

}','<$2029$>select [MenuId],[MenuName] from Dcx_Menu_Run where [MenuId]=''{$keyfieldvalue}''</$2029$><$2030$>select [RoleId],[CanViewList],[MenuPrivilegeId],[MenuId] from Dcx_MenuPrivilege where [AccountId]={$AccountId} and [MenuId]=''{$mkeyValue}''</$2030$>',10,'','','','2029*MenuId*2*MenuId*2*Dcx_Menu_Run*网页权限,2030*MenuPrivilegeId*2*MenuId*2*Dcx_MenuPrivilege*网页权限从表',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2013-1-26 0:13:56',3,'admin','2013-11-24 4:19:03',1)
      end
      else 
      begin 
           update [Dcx_AjaxForm_Run] set [FormId]='56605410-c8ec-ecdd-05d9-60e45acfc479',[FormName]='网页权限',[ModuleId]=0,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script src="/Js/Control/LTreeRList/LTreeRList.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.AjaxF_2029= {"MenuId":3288,"MEntId":2029,"EntName":"网页权限","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2029":{"EntId":2029,"KeyFieldValue":"","DBTableName":"","KeyField":"MenuId","KeydtId":2,"JoinKeyField":"MenuId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""},"E2030":{"EntId":2030,"KeyFieldValue":"","DBTableName":"","KeyField":"MenuPrivilegeId","KeydtId":2,"JoinKeyField":"MenuId","JKeydtId":2,"IsMEnt":false,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}


if(runObj.NoInit)
{
   entMsg.E2030.FormData=null;
   mEntMsg.RowCount=0;mEntMsg.RecortCount=0;entMsg.E2030.RowCount=0;

}

 DcxForm.InitSheetForm(2030,''AjaxF_'',entMsg.E2030.FormData,entMsg.E2030.$listContainer);


}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":10,"Ent":[{"EntId":2029,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":3,"vlId":5,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"此值已存在,请重新输入","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":4,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":2,"Vld":[{"Id":5,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":6,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,150}$","err":"限制0-150个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]}]},{"EntId":2030,"Fld":[{"FldId":3,"Vld":[{"Id":7,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":8,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":4,"Vld":[]},{"FldId":64,"Vld":[]},{"FldId":65,"Vld":[]}]}]};
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_2029.EntMsg.E2029.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_Menu_Run","EntId":2029,"KeyField":"MenuId","MKeyField":"MenuId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":1},"FieldDefine":{"MenuId":{"DtId":1,"DB":1,"CId":4,"FL":4},"MenuName":{"DtId":2,"DB":1,"CId":1,"FL":150}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_2029.EntMsg.E2029.GetDataRowModel=function()
{
    return {"MenuId":-1,"MenuName":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"MenuId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
DcxRun.AjaxF_2029.EntMsg.E2030.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_MenuPrivilege","EntId":2030,"KeyField":"MenuPrivilegeId","MKeyField":"MenuPrivilegeId","MKeyValue":-1,"DataTypeId":2,"JoinKeyField":"MenuId","JKeydtId":2,"OpType":1,"IsMEnt":false,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null},"FieldDefine":{"RoleId":{"DtId":1,"DB":1,"CId":40,"FL":4},"CanViewList":{"DtId":4,"DB":1,"CId":13,"FL":1}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_2029.EntMsg.E2030.GetDataRowModel=function()
{
    return {"RoleId":-1,"CanViewList":false,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"MenuPrivilegeId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1}};
}
/***************************上：JSON 函数*********************/



 function GetLinkCtrl_AjaxF_2030(obj,FieldName,EntId)
{

}
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_2029.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2029,''AjaxF_'',buildNew,closeDlg);

}',[LoadingSql]='<$2029$>select [MenuId],[MenuName] from Dcx_Menu_Run where [MenuId]=''{$keyfieldvalue}''</$2029$><$2030$>select [RoleId],[CanViewList],[MenuPrivilegeId],[MenuId] from Dcx_MenuPrivilege where [AccountId]={$AccountId} and [MenuId]=''{$mkeyValue}''</$2030$>',[PageSize]=10,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='2029*MenuId*2*MenuId*2*Dcx_Menu_Run*网页权限,2030*MenuPrivilegeId*2*MenuId*2*Dcx_MenuPrivilege*网页权限从表',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-1-26 0:13:56',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-24 4:19:03',[AccountId]=1 where  [EntId]=2029 
      end




--Dcx_AjaxFormField_Run
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='96ae62e2-217d-651a-780e-f41eb5f04a2d'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'96ae62e2-217d-651a-780e-f41eb5f04a2d',2029,2029,'00000000-0000-0000-0000-000000000000','MenuId',1,1,1,'',5,9,1,0,4,1,-1,1,-1,1,0,'','','','','<div class="ajaxform ">
	<div class="div_top">
		<div class="title-div">
			<ul class="ul-title" entid="2029" groupid="5" isgroup="1" style="width: 598px;border-bottom-width:0px;" ctrlprex="AjaxF_" isrple="1">
				<li areaid="20" class="li-area-title" scroll="no" style="width: 76px; height: 34px; position: static;"></li>
				<li areaid="21" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
				<li areaid="22" class="li-area1" scroll="no" style="position: static;">
					<a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.AjaxF_2029.SubmitForm(false);"><span class="op_bt_i">保存</span> </a></li>
				<li areaid="23" class="li-area1" scroll="no" style="width: 90px; height: 36px; position: static;"><a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(2029,''AjaxF_'');"><span class="op_bt_i">新建</span> </a></li>
			</ul>
		</div>
		<div class="frame-div" style="margin-top:15px;">
			<ul class="ul-mform" entid="2029" groupid="1" isgroup="1" style="width: 600px;border-left-width: 0px;" ctrlprex="AjaxF_" isrple="1">
				<li areaid="24" class="li-area" scroll="no" style="border-right-width: 0px; border-bottom-width: 1px; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(229, 229, 229); height: 38px; width: 280px; position: static;"><label class="area-title pad7" fldid="1" istitle="1">编号</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d2029_MenuId" class="form-lbl" style="width:150px;" IsForField=1 EntId="2029" CId="4" FId="1" Vtp="5"  >','</span><input id="d2029_MenuId_hid" type="hidden"  EntId="2029" IsField=1 DBField=1 IsPost=1 FieldName="MenuId" dType="1" Vtp="5" RDT="1" Isc="1" RId="9" CId="4" FId="1" vlk=0    value="','" />',1,24,-1,-1,0,'2029,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=1,[Form_EntId]=2029,[EntId]=2029,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='MenuId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=1,[DefaultValue]='',[ValueType]=5,[RunValueType]=9,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="ajaxform ">
	<div class="div_top">
		<div class="title-div">
			<ul class="ul-title" entid="2029" groupid="5" isgroup="1" style="width: 598px;border-bottom-width:0px;" ctrlprex="AjaxF_" isrple="1">
				<li areaid="20" class="li-area-title" scroll="no" style="width: 76px; height: 34px; position: static;"></li>
				<li areaid="21" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
				<li areaid="22" class="li-area1" scroll="no" style="position: static;">
					<a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.AjaxF_2029.SubmitForm(false);"><span class="op_bt_i">保存</span> </a></li>
				<li areaid="23" class="li-area1" scroll="no" style="width: 90px; height: 36px; position: static;"><a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(2029,''AjaxF_'');"><span class="op_bt_i">新建</span> </a></li>
			</ul>
		</div>
		<div class="frame-div" style="margin-top:15px;">
			<ul class="ul-mform" entid="2029" groupid="1" isgroup="1" style="width: 600px;border-left-width: 0px;" ctrlprex="AjaxF_" isrple="1">
				<li areaid="24" class="li-area" scroll="no" style="border-right-width: 0px; border-bottom-width: 1px; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(229, 229, 229); height: 38px; width: 280px; position: static;"><label class="area-title pad7" fldid="1" istitle="1">编号</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d2029_MenuId" class="form-lbl" style="width:150px;" IsForField=1 EntId="2029" CId="4" FId="1" Vtp="5"  >',[CtrlbackHtml]='</span><input id="d2029_MenuId_hid" type="hidden"  EntId="2029" IsField=1 DBField=1 IsPost=1 FieldName="MenuId" dType="1" Vtp="5" RDT="1" Isc="1" RId="9" CId="4" FId="1" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=1,[RowIndex]=24,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2029,' where  [FldUId]='96ae62e2-217d-651a-780e-f41eb5f04a2d' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='89c97d57-3e02-c4a5-f636-1ab1c6465510'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'89c97d57-3e02-c4a5-f636-1ab1c6465510',2029,2029,'00000000-0000-0000-0000-000000000000','MenuName',2,2,3,'',5,1,1,0,1,1,-1,2,-1,1,0,'','','','','</span>
</div>
</li>
				<li areaid="25" class="li-area" scroll="no" style="height: 38px; width: 316px; position: static;"><label class="area-title pad7" fldid="2" istitle="1">网页名称</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2029_MenuName"   type="text" class="form-txt"  style="width:180px;" onblur ="javascript:if(!DcxVld.Validate(this,2029,''AjaxF_'',2029,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2029,''AjaxF_'',2029);" EntId="2029" IsField=1 DBField=1 IsPost=1 FieldName="MenuName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2029,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2,[Form_EntId]=2029,[EntId]=2029,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='MenuName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=3,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=2,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
				<li areaid="25" class="li-area" scroll="no" style="height: 38px; width: 316px; position: static;"><label class="area-title pad7" fldid="2" istitle="1">网页名称</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2029_MenuName"   type="text" class="form-txt"  style="width:180px;" onblur ="javascript:if(!DcxVld.Validate(this,2029,''AjaxF_'',2029,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2029,''AjaxF_'',2029);" EntId="2029" IsField=1 DBField=1 IsPost=1 FieldName="MenuName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2029,' where  [FldUId]='89c97d57-3e02-c4a5-f636-1ab1c6465510' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='3b5aa6f6-37a1-136d-f45d-83f9daa7a0ea'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(92,'3b5aa6f6-37a1-136d-f45d-83f9daa7a0ea',2029,2030,'00000000-0000-0000-0000-000000000000','CEntBegin',-1,2,-1,'',5,-1,1,0,-1,10,-1,3,-1,0,0,'','','','','</span>
</div>
</li><li entname="网页权限从表" class="li-area w958" areaid="33" style="width: 598px; position: static; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; height: auto;" scroll="no"><div class="field-content pad7" entid="2030" ischildentity="1" style="margin-top:15px;">
	<!-- 开始 -->
	
	<!-- 功能键栏 -->
	<div class="ajaxform toolbar-opt">
		<!--功能键栏-->
		<ul class="ul-toolbar repUl1" entid="2030" groupid="6" isgroup="1" istoolbar="1" ctrlprex="AjaxF_" isrple="1">
			<li areaid="34" class="list-allselect" scroll="no" style="width: 60px; height: 15px; position: static;">
				<input class="list-ifselect" id="ckb_CheckAllAjaxF_2030" onclick="javascript:DcxCom.CheckedAll(this,2030,''AjaxF_'');" rel="chkall" type="checkbox"> <label for="ckb_CheckAllAjaxF_2030">全选</label></li>
			<li areaid="35" class="list-tit" scroll="no" style="width: 98px; height: 29px; position: static;"><a class="lform-bt-add" href="javascript:void(0);" id="AjaxF_2030_btn_buildNew" onclick="javascript:DcxForm.AddRow(this,1,2030,''AjaxF_'');" style="width:53px;margin-left:10px;" title="添   加">添 加</a></li>
			<li areaid="36" class="list-tit" scroll="no" style="width: 80px; height: 29px; position: static;"><a class="lform-bt-other" href="javascript:void(0);" id="AjaxF_2030_btn_buildNew" onclick="javascript:DcxForm.AddRow(this,5,2030,''AjaxF_'');" title="添加5行">添加5行</a></li>
			<li areaid="38" class="list-tit" scroll="no" style="width: 70px; height: 32px; position: static;"><a class="lform-bt-delete" href="javascript:void(0);" id="AjaxF_2030_deletebut" onclick="javascript:DcxForm.DeleteRow(this,2030,''AjaxF_'');" title="删   除">删 除</a></li>
			<li areaid="40" class="list-tit" scroll="no" style="width: 85px; height: 29px; position: static;"><a class="lform-bt-other" href="javascript:void(0);" id="AjaxF_2030_deletebut" onclick="javascript:DcxForm.DeleteUnlawRow(this,2030,''AjaxF_'');" title="删除非法">删除非法</a></li>
		</ul>
	</div>
	<div class="ajaxform listarea">
		<div class="lf-head">
			<ul class="ul-listtitle" entid="2030" groupid="7" isgroup="1" islisthead="1" islonly="1" style="width: 591px;" ctrlprex="AjaxF_" isrple="1">
				<li areaid="46" class="li-head-item" scroll="no" style="width: 50px; height: 29px; clear: none; float: left; position: static;"></li><li areaid="41" class="li-head-item" scroll="no" style="width: 300px; height: 29px; position: static; clear: none; float: left;">
					<label class="head-label" istitle="1" style="height: 152px;">角色</label></li>
				<li areaid="43" class="li-head-item" scroll="no" style="width: 235px; height: 29px; clear: right; float: left; position: static;"><label class="head-label" istitle="1" style="height: 152px;">是否允许访问 </label></li>
			</ul>
		</div>
		<div class="lf-body">','','','','','','',8,-1,-1,-1,1,'2030,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=92,[Form_EntId]=2029,[EntId]=2030,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='CEntBegin',[FieldDataTypeId]=-1,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=-1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=-1,[FieldTypeId]=10,[RepeatColumns]=-1,[FieldNO]=3,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li entname="网页权限从表" class="li-area w958" areaid="33" style="width: 598px; position: static; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; height: auto;" scroll="no"><div class="field-content pad7" entid="2030" ischildentity="1" style="margin-top:15px;">
	<!-- 开始 -->
	
	<!-- 功能键栏 -->
	<div class="ajaxform toolbar-opt">
		<!--功能键栏-->
		<ul class="ul-toolbar repUl1" entid="2030" groupid="6" isgroup="1" istoolbar="1" ctrlprex="AjaxF_" isrple="1">
			<li areaid="34" class="list-allselect" scroll="no" style="width: 60px; height: 15px; position: static;">
				<input class="list-ifselect" id="ckb_CheckAllAjaxF_2030" onclick="javascript:DcxCom.CheckedAll(this,2030,''AjaxF_'');" rel="chkall" type="checkbox"> <label for="ckb_CheckAllAjaxF_2030">全选</label></li>
			<li areaid="35" class="list-tit" scroll="no" style="width: 98px; height: 29px; position: static;"><a class="lform-bt-add" href="javascript:void(0);" id="AjaxF_2030_btn_buildNew" onclick="javascript:DcxForm.AddRow(this,1,2030,''AjaxF_'');" style="width:53px;margin-left:10px;" title="添   加">添 加</a></li>
			<li areaid="36" class="list-tit" scroll="no" style="width: 80px; height: 29px; position: static;"><a class="lform-bt-other" href="javascript:void(0);" id="AjaxF_2030_btn_buildNew" onclick="javascript:DcxForm.AddRow(this,5,2030,''AjaxF_'');" title="添加5行">添加5行</a></li>
			<li areaid="38" class="list-tit" scroll="no" style="width: 70px; height: 32px; position: static;"><a class="lform-bt-delete" href="javascript:void(0);" id="AjaxF_2030_deletebut" onclick="javascript:DcxForm.DeleteRow(this,2030,''AjaxF_'');" title="删   除">删 除</a></li>
			<li areaid="40" class="list-tit" scroll="no" style="width: 85px; height: 29px; position: static;"><a class="lform-bt-other" href="javascript:void(0);" id="AjaxF_2030_deletebut" onclick="javascript:DcxForm.DeleteUnlawRow(this,2030,''AjaxF_'');" title="删除非法">删除非法</a></li>
		</ul>
	</div>
	<div class="ajaxform listarea">
		<div class="lf-head">
			<ul class="ul-listtitle" entid="2030" groupid="7" isgroup="1" islisthead="1" islonly="1" style="width: 591px;" ctrlprex="AjaxF_" isrple="1">
				<li areaid="46" class="li-head-item" scroll="no" style="width: 50px; height: 29px; clear: none; float: left; position: static;"></li><li areaid="41" class="li-head-item" scroll="no" style="width: 300px; height: 29px; position: static; clear: none; float: left;">
					<label class="head-label" istitle="1" style="height: 152px;">角色</label></li>
				<li areaid="43" class="li-head-item" scroll="no" style="width: 235px; height: 29px; clear: right; float: left; position: static;"><label class="head-label" istitle="1" style="height: 152px;">是否允许访问 </label></li>
			</ul>
		</div>
		<div class="lf-body">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='',[CtrlbackHtml]='',[CtrlLastHtml]='',[TableIndex]=8,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2030,' where  [FldUId]='3b5aa6f6-37a1-136d-f45d-83f9daa7a0ea' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='8af6e480-fe58-17b4-344d-6e7f68ca63d0'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(65,'8af6e480-fe58-17b4-344d-6e7f68ca63d0',2029,2030,'00000000-0000-0000-0000-000000000000','KeyFieldValue',2,2,-1,'',5,1,1,0,1,21,-1,4,-1,0,0,'','','','','class="ul-listfield" groupid="8" isgroup="1" islonly="1" style="width: 591px;" isrple="1">
				<li areaid="45" class="li-listfield" scroll="no" style="width: 50px; height: 38px; clear: none; float: left; position: static;"><div class="list-field" style="padding-top:10px;padding-left:10px;">
	<input class="ckb_del" ctrlprex="AjaxF_" entid="2029" issyscheck="1" keyvalue="','','','','','','',8,45,-1,-1,1,'2030,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=65,[Form_EntId]=2029,[EntId]=2030,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='KeyFieldValue',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=21,[RepeatColumns]=-1,[FieldNO]=4,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='class="ul-listfield" groupid="8" isgroup="1" islonly="1" style="width: 591px;" isrple="1">
				<li areaid="45" class="li-listfield" scroll="no" style="width: 50px; height: 38px; clear: none; float: left; position: static;"><div class="list-field" style="padding-top:10px;padding-left:10px;">
	<input class="ckb_del" ctrlprex="AjaxF_" entid="2029" issyscheck="1" keyvalue="',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='',[CtrlbackHtml]='',[CtrlLastHtml]='',[TableIndex]=8,[RowIndex]=45,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2030,' where  [FldUId]='8af6e480-fe58-17b4-344d-6e7f68ca63d0' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='ff2fe8bf-c88d-9f81-e322-1439057b00b6'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'ff2fe8bf-c88d-9f81-e322-1439057b00b6',2029,2030,'00000000-0000-0000-0000-000000000000','RoleId',1,1,5,'',5,2,1,0,40,1,-1,5,16,1,0,'','','','','" type="checkbox"></div>
</li><li areaid="42" class="li-listfield" scroll="no" style="width: 300px; height: 38px; clear: none; float: left; position: static;"><div class="list-field" style="padding-top:4px;">
	<span class="form-ctr" isfcontain="1">','','','<div id="d2030_RoleId%trindex%" CtrlPrex="AjaxF_"','class="lt-ddl" style="-width:280px;" IsForField=1 EntId="2030" FId="3" Vtp="5" RId="2" Isc="1" CId="40" FieldName="RoleId" ><input  id="d2030_RoleId%trindex%_Text" type="text" class="lt-ddl-txt" readonly="readOnly"  CId="40" FId="3" Vtp="5"  RId="2" Isc="1"  style="width:250px;" onclick ="javascript:DcxTree.ShowDialogLf(this,16,2030,''RoleId'',false);" onchange ="javascript:if(!DcxVld.Validate(this,2030,''AjaxF_'',2029,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2030,''AjaxF_'',2029,true);" onkeyup ="javascript:DcxTree.ShowDialogLf(this,16,2030,''RoleId'',true);" onmouseover ="javascript:DcxForm.ListTxtMouseOver(this,2030,''RoleId'');" value="','" /><span class="lt-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2030_RoleId%trindex%_hid" CtrlPrex="AjaxF_" type="hidden"  EntId="2030" IsField=1 DBField=1 IsPost=1 FieldName="RoleId" dType="1" Vtp="5" RDT="1" Isc="1" RId="2" CId="40" FId="3" vlk=0   TId=16  value="','"/>',8,-1,-1,-1,1,'2030,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3,[Form_EntId]=2029,[EntId]=2030,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='RoleId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=5,[DefaultValue]='',[ValueType]=5,[RunValueType]=2,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=40,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=5,[TreeId]=16,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='" type="checkbox"></div>
</li><li areaid="42" class="li-listfield" scroll="no" style="width: 300px; height: 38px; clear: none; float: left; position: static;"><div class="list-field" style="padding-top:4px;">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<div id="d2030_RoleId%trindex%" CtrlPrex="AjaxF_"',[CtrlfrontHtml]='class="lt-ddl" style="-width:280px;" IsForField=1 EntId="2030" FId="3" Vtp="5" RId="2" Isc="1" CId="40" FieldName="RoleId" ><input  id="d2030_RoleId%trindex%_Text" type="text" class="lt-ddl-txt" readonly="readOnly"  CId="40" FId="3" Vtp="5"  RId="2" Isc="1"  style="width:250px;" onclick ="javascript:DcxTree.ShowDialogLf(this,16,2030,''RoleId'',false);" onchange ="javascript:if(!DcxVld.Validate(this,2030,''AjaxF_'',2029,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2030,''AjaxF_'',2029,true);" onkeyup ="javascript:DcxTree.ShowDialogLf(this,16,2030,''RoleId'',true);" onmouseover ="javascript:DcxForm.ListTxtMouseOver(this,2030,''RoleId'');" value="',[CtrlbackHtml]='" /><span class="lt-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2030_RoleId%trindex%_hid" CtrlPrex="AjaxF_" type="hidden"  EntId="2030" IsField=1 DBField=1 IsPost=1 FieldName="RoleId" dType="1" Vtp="5" RDT="1" Isc="1" RId="2" CId="40" FId="3" vlk=0   TId=16  value="',[CtrlLastHtml]='"/>',[TableIndex]=8,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2030,' where  [FldUId]='ff2fe8bf-c88d-9f81-e322-1439057b00b6' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='089653b9-831f-08f5-ff7a-d3e3dd45c2c6'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'089653b9-831f-08f5-ff7a-d3e3dd45c2c6',2029,2030,'00000000-0000-0000-0000-000000000000','CanViewList',4,4,6,'允许访问/true/false/1',5,6,1,0,13,1,-1,6,-1,1,0,'','','','','</span>
</div>
</li>
				<li areaid="44" class="li-listfield" scroll="no" style="width: 235px; height: 38px; clear: right; float: left; position: static;"><div class="list-field" style="padding-top:4px;padding-left:24px;">
	<span class="form-ctr" isfcontain="1">','','','<div class="form-radio" ><span class="form-radio-item" ><input class="radio" id="d2030_CanViewList%trindex%" CtrlPrex="AjaxF_"','type="checkbox" yesv=''true'' nov=''false'' checked=''checked''  onclick ="javascript:DcxForm.ClickCkbLf(this,2030,''AjaxF_'');" EntId="2030" IsField=1 DBField=1 IsPost=1 FieldName="CanViewList" dType="4" Vtp="5" RDT="4" Isc="1" RId="6" CId="13" FId="4" vlk=0    />','<label for="d2030_CanViewList%trindex%">允许访问</label></span></div>','',8,-1,-1,-1,1,'2030,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4,[Form_EntId]=2029,[EntId]=2030,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='CanViewList',[FieldDataTypeId]=4,[RunDataTypeId]=4,[DBFieldId]=6,[DefaultValue]='允许访问/true/false/1',[ValueType]=5,[RunValueType]=6,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=13,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=6,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
				<li areaid="44" class="li-listfield" scroll="no" style="width: 235px; height: 38px; clear: right; float: left; position: static;"><div class="list-field" style="padding-top:4px;padding-left:24px;">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<div class="form-radio" ><span class="form-radio-item" ><input class="radio" id="d2030_CanViewList%trindex%" CtrlPrex="AjaxF_"',[CtrlfrontHtml]='type="checkbox" yesv=''true'' nov=''false'' checked=''checked''  onclick ="javascript:DcxForm.ClickCkbLf(this,2030,''AjaxF_'');" EntId="2030" IsField=1 DBField=1 IsPost=1 FieldName="CanViewList" dType="4" Vtp="5" RDT="4" Isc="1" RId="6" CId="13" FId="4" vlk=0    />',[CtrlbackHtml]='<label for="d2030_CanViewList%trindex%">允许访问</label></span></div>',[CtrlLastHtml]='',[TableIndex]=8,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2030,' where  [FldUId]='089653b9-831f-08f5-ff7a-d3e3dd45c2c6' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='b54cc21a-16e5-6c12-f2ea-d1e24d4edb69'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(93,'b54cc21a-16e5-6c12-f2ea-d1e24d4edb69',2029,2030,'00000000-0000-0000-0000-000000000000','CEntEnd',-1,2,-1,'',5,-1,1,0,-1,11,-1,7,-1,0,0,'','','','','</span>
</div>
</li>
			</ul>','</div>
	</div>
	<!-- 结束 --></div>
</li><li areaid="32" class="li-area" scroll="no" style="height: 38px; width: 395px; display: none; position: static;"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
			</ul>
		</div>
		<div class="div_tabs" style="display:none;">
			<ul class="tab_ul" entid="2029" groupid="2" isgroup="1" islonly="1" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
				<li areaid="26" class="ui-droppable  li-tab de-selected" istab="1" scroll="no" style="height: 29px; width: 70px; position: static;" tabid="1"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
				<li areaid="27" class="ui-droppable  li-tab" istab="1" scroll="no" style="height: 29px; width: 70px; position: static;" tabid="2"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
			</ul>
			<div class="tabs-content" style="" tabid="1">
				<ul class="ul-mform" entid="2029" groupid="3" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
					<li areaid="28" class="li-area" scroll="no" style="width: 395px; height: 38px; position: static;"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
					<li areaid="29" class="li-area" fldid="-1" scroll="no" style="width: 395px; height: 38px; position: static;"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
				</ul>
			</div>
			<div class="tabs-content" style="display: none;" tabid="2">
				<ul class="ul-mform" entid="2029" groupid="4" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
					<li areaid="30" class="li-area" scroll="no" style="width: 395px; height: 38px; position: static;"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
					<li areaid="31" class="li-area" scroll="no" style="width: 395px; height: 38px; position: static;">
						<label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
				</ul>
			</div>
		</div>
	</div>
</div>
<br>','','','','','',8,-1,-1,-1,1,'2030,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=93,[Form_EntId]=2029,[EntId]=2030,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='CEntEnd',[FieldDataTypeId]=-1,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=-1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=-1,[FieldTypeId]=11,[RepeatColumns]=-1,[FieldNO]=7,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
			</ul>',[LastHtml]='</div>
	</div>
	<!-- 结束 --></div>
</li><li areaid="32" class="li-area" scroll="no" style="height: 38px; width: 395px; display: none; position: static;"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
			</ul>
		</div>
		<div class="div_tabs" style="display:none;">
			<ul class="tab_ul" entid="2029" groupid="2" isgroup="1" islonly="1" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
				<li areaid="26" class="ui-droppable  li-tab de-selected" istab="1" scroll="no" style="height: 29px; width: 70px; position: static;" tabid="1"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
				<li areaid="27" class="ui-droppable  li-tab" istab="1" scroll="no" style="height: 29px; width: 70px; position: static;" tabid="2"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
			</ul>
			<div class="tabs-content" style="" tabid="1">
				<ul class="ul-mform" entid="2029" groupid="3" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
					<li areaid="28" class="li-area" scroll="no" style="width: 395px; height: 38px; position: static;"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
					<li areaid="29" class="li-area" fldid="-1" scroll="no" style="width: 395px; height: 38px; position: static;"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
				</ul>
			</div>
			<div class="tabs-content" style="display: none;" tabid="2">
				<ul class="ul-mform" entid="2029" groupid="4" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
					<li areaid="30" class="li-area" scroll="no" style="width: 395px; height: 38px; position: static;"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
					<li areaid="31" class="li-area" scroll="no" style="width: 395px; height: 38px; position: static;">
						<label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
				</ul>
			</div>
		</div>
	</div>
</div>
<br>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='',[CtrlbackHtml]='',[CtrlLastHtml]='',[TableIndex]=8,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2030,' where  [FldUId]='b54cc21a-16e5-6c12-f2ea-d1e24d4edb69' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=249

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=249  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(249,null,'Dcx_Menu_Run','Dcx_Menu_Run',1,0,0,0,0,0,29,1,3,'admin','2013-12-15 17:32:18',3,'admin','2013-12-15 17:32:18',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='Dcx_Menu_Run',[DBTableByName]='Dcx_Menu_Run',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=29,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:18',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:18',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=249 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=249  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16929,1,29,249,'int',1,1,1,'Dcx_Menu_Run','MenuId','MenuId','',0,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu_Run',[FieldName]='MenuId',[FieldByname]='MenuId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=249  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=249  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16930,2,29,249,'uniqueidentifier',24,1,1,'Dcx_Menu_Run','MenuUId','MenuUId','newid()',0,0,1,16,16,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='uniqueidentifier',[FieldDataTypeId]=24,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu_Run',[FieldName]='MenuUId',[FieldByname]='MenuUId',[DefaultValue]='newid()',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=16,[Precision]=16,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=249  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=249  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16931,3,29,249,'varchar',2,1,1,'Dcx_Menu_Run','MenuName','MenuName','',0,0,0,150,150,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu_Run',[FieldName]='MenuName',[FieldByname]='MenuName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=150,[Precision]=150,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=249  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=249  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16932,4,29,249,'int',1,1,1,'Dcx_Menu_Run','ParentId','ParentId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu_Run',[FieldName]='ParentId',[FieldByname]='ParentId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=249  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=249  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16933,5,29,249,'varchar',2,1,1,'Dcx_Menu_Run','ProPath','ProPath','',0,0,1,550,550,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu_Run',[FieldName]='ProPath',[FieldByname]='ProPath',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=550,[Precision]=550,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=249  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=249  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16934,6,29,249,'int',1,1,1,'Dcx_Menu_Run','TemplateId','TemplateId','-1',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu_Run',[FieldName]='TemplateId',[FieldByname]='TemplateId',[DefaultValue]='-1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=249  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=249  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16935,7,29,249,'varchar',2,1,1,'Dcx_Menu_Run','ImgPath','ImgPath','',0,0,1,550,550,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu_Run',[FieldName]='ImgPath',[FieldByname]='ImgPath',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=550,[Precision]=550,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=249  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=249  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16936,8,29,249,'varchar',2,1,1,'Dcx_Menu_Run','ExImgPath','ExImgPath','',0,0,1,250,250,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu_Run',[FieldName]='ExImgPath',[FieldByname]='ExImgPath',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=250,[Precision]=250,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=249  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=249  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16937,9,29,249,'int',1,1,1,'Dcx_Menu_Run','OrderBy','OrderBy','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu_Run',[FieldName]='OrderBy',[FieldByname]='OrderBy',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=249  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=249  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16938,10,29,249,'varchar',2,1,1,'Dcx_Menu_Run','Target','Target','',0,0,1,250,250,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu_Run',[FieldName]='Target',[FieldByname]='Target',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=250,[Precision]=250,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=249  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=249  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16939,11,29,249,'bit',4,1,1,'Dcx_Menu_Run','IsOpen','IsOpen','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu_Run',[FieldName]='IsOpen',[FieldByname]='IsOpen',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=249  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=249  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16940,12,29,249,'bit',4,1,1,'Dcx_Menu_Run','IsHidden','IsHidden','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu_Run',[FieldName]='IsHidden',[FieldByname]='IsHidden',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=249  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=249  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16941,13,29,249,'varchar',2,1,1,'Dcx_Menu_Run','Remark','Remark','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu_Run',[FieldName]='Remark',[FieldByname]='Remark',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=249  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=249  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16942,14,29,249,'int',1,1,1,'Dcx_Menu_Run','SSystemId','SSystemId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu_Run',[FieldName]='SSystemId',[FieldByname]='SSystemId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=249  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=249  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16943,15,29,249,'int',1,1,1,'Dcx_Menu_Run','SMenuId','SMenuId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu_Run',[FieldName]='SMenuId',[FieldByname]='SMenuId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=249  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=249  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16944,16,29,249,'int',1,1,1,'Dcx_Menu_Run','SystemId','SystemId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu_Run',[FieldName]='SystemId',[FieldByname]='SystemId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=249  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=249  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16945,17,29,249,'int',1,1,1,'Dcx_Menu_Run','EntityCount','EntityCount','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu_Run',[FieldName]='EntityCount',[FieldByname]='EntityCount',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=249  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=249  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16946,18,29,249,'int',1,1,1,'Dcx_Menu_Run','VersionId','VersionId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu_Run',[FieldName]='VersionId',[FieldByname]='VersionId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=249  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=249  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16947,19,29,249,'bit',4,1,1,'Dcx_Menu_Run','IsDesigning','IsDesigning','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu_Run',[FieldName]='IsDesigning',[FieldByname]='IsDesigning',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=249  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=249  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16948,20,29,249,'datetime',3,1,1,'Dcx_Menu_Run','AddDcxTime','AddDcxTime','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu_Run',[FieldName]='AddDcxTime',[FieldByname]='AddDcxTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=249  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=249  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16949,21,29,249,'varchar',2,1,1,'Dcx_Menu_Run','AddDcxUserName','AddDcxUserName','',0,0,1,40,40,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu_Run',[FieldName]='AddDcxUserName',[FieldByname]='AddDcxUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=40,[Precision]=40,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=249  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=249  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16950,22,29,249,'int',1,1,1,'Dcx_Menu_Run','AddDcxUserId','AddDcxUserId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu_Run',[FieldName]='AddDcxUserId',[FieldByname]='AddDcxUserId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=249  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=249  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16951,23,29,249,'int',1,1,1,'Dcx_Menu_Run','CreatorId','CreatorId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu_Run',[FieldName]='CreatorId',[FieldByname]='CreatorId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=249  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=249  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16952,24,29,249,'varchar',2,1,1,'Dcx_Menu_Run','Creator','Creator','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu_Run',[FieldName]='Creator',[FieldByname]='Creator',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=249  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=249  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16953,25,29,249,'datetime',3,1,1,'Dcx_Menu_Run','CreateTime','CreateTime','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu_Run',[FieldName]='CreateTime',[FieldByname]='CreateTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=249  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=249  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16954,26,29,249,'int',1,1,1,'Dcx_Menu_Run','EditorId','EditorId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu_Run',[FieldName]='EditorId',[FieldByname]='EditorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=249  and  [FieldId]=26 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=249  and  [FieldId]=27  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16955,27,29,249,'varchar',2,1,1,'Dcx_Menu_Run','Editor','Editor','',0,0,1,40,40,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu_Run',[FieldName]='Editor',[FieldByname]='Editor',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=40,[Precision]=40,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=249  and  [FieldId]=27 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=249  and  [FieldId]=28  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16956,28,29,249,'datetime',3,1,1,'Dcx_Menu_Run','EditTime','EditTime','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu_Run',[FieldName]='EditTime',[FieldByname]='EditTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=249  and  [FieldId]=28 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=249  and  [FieldId]=29  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16957,29,29,249,'int',1,1,1,'Dcx_Menu_Run','AccountId','AccountId','1',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu_Run',[FieldName]='AccountId',[FieldByname]='AccountId',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=249  and  [FieldId]=29 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 



Delete from [Dcx_EntityPrivilege]  where [EntId]=2030

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2030  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11066,3288,2030,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=3288,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2030  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=3290  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(3290,'4f0a8a71-1633-4485-b4ce-5bd538caea67','后台管理',0,'',-1,'/images/default.gif','/images/default.gif',14,'rightFrame',0,0,'',29,-1,29,0,0,1,'2013-3-10 3:59:09','',0,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='4f0a8a71-1633-4485-b4ce-5bd538caea67',[MenuName]='后台管理',[ParentId]=0,[ProPath]='',[TemplateId]=-1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=14,[Target]='rightFrame',[IsOpen]=0,[IsHidden]=0,[Remark]='',[SSystemId]=29,[SMenuId]=-1,[SystemId]=29,[EntityCount]=0,[VersionId]=0,[IsDesigning]=1,[AddDcxTime]='2013-3-10 3:59:09',[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=3290 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3290  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(1049,3290,'后台管理','Public',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='后台管理',[RoleName]='Public',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3290  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3290  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(982,3290,'通用后台','系统管理员',3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='通用后台',[RoleName]='系统管理员',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3290  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=3291  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(3291,'99a8aac0-1671-4cf2-99fb-ecb796a1a1dc','我的桌面',3278,'/Template/default/ListReport/ListReport001.aspx',1,'/images/default.gif','/images/default.gif',0,'rightFrame',0,1,'',29,-1,29,3,1,1,null,'',0,0,'',null,3,'admin','2013-10-9 4:16:40',1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='99a8aac0-1671-4cf2-99fb-ecb796a1a1dc',[MenuName]='我的桌面',[ParentId]=3278,[ProPath]='/Template/default/ListReport/ListReport001.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=0,[Target]='rightFrame',[IsOpen]=0,[IsHidden]=1,[Remark]='',[SSystemId]=29,[SMenuId]=-1,[SystemId]=29,[EntityCount]=3,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=0,[Creator]='',[CreateTime]=null,[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-9 4:16:40',[AccountId]=1 where  [MenuId]=3291 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3291  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(1050,3291,'我的桌面','Public',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='我的桌面',[RoleName]='Public',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3291  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3291  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(983,3291,'我的桌面','系统管理员',3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='我的桌面',[RoleName]='系统管理员',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3291  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2015  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2015,3291,'通知公告',1,275,0,'Dcx_News',0,0,1,29,2015,null,null,29,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3291,[EntName]='通知公告',[MEnt]=1,[DBTableId]=275,[DBConnectId]=0,[DBTableName]='Dcx_News',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2015,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2015 
      end
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2047  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2047,3291,'客户资料',1,1206,0,'ERP_客户资料',0,0,1,29,2047,null,null,29,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3291,[EntName]='客户资料',[MEnt]=1,[DBTableId]=1206,[DBConnectId]=0,[DBTableName]='ERP_客户资料',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2047,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2047 
      end
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2048  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2048,3291,'公司新闻',1,275,0,'Dcx_News',0,0,1,29,2048,null,null,29,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3291,[EntName]='公司新闻',[MEnt]=1,[DBTableId]=275,[DBConnectId]=0,[DBTableName]='Dcx_News',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2048,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2048 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=2015

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2015  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11052,3291,2015,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=3291,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2015  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2015

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2015  and  [ModuleTypeId]=9  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20444,29,3291,2015,62,9,50,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3291,[TemplateId]=62,[ModuleId]=50,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2015  and  [ModuleTypeId]=9 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_DBTable_Run]  where [DBTableId]=275

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=275  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(275,null,'Dcx_News','Dcx_News',1,0,0,0,0,0,29,1,3,'admin','2013-12-15 17:32:19',3,'admin','2013-12-15 17:32:19',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='Dcx_News',[DBTableByName]='Dcx_News',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=29,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:19',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:19',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=275 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=275  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17212,1,29,275,'int',1,1,1,'Dcx_News','NId','NId','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_News',[FieldName]='NId',[FieldByname]='NId',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=275  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=275  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17213,2,29,275,'varchar',2,1,1,'Dcx_News','Title','Title','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_News',[FieldName]='Title',[FieldByname]='Title',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=275  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=275  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17214,3,29,275,'int',1,1,1,'Dcx_News','TypeId','TypeId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_News',[FieldName]='TypeId',[FieldByname]='TypeId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=275  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=275  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17215,4,29,275,'int',1,1,1,'Dcx_News','TagId','TagId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_News',[FieldName]='TagId',[FieldByname]='TagId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=275  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=275  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17216,5,29,275,'varchar',2,1,1,'Dcx_News','TagName','TagName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_News',[FieldName]='TagName',[FieldByname]='TagName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=275  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=275  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17217,6,29,275,'varchar',2,1,1,'Dcx_News','NewsContent','NewsContent','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_News',[FieldName]='NewsContent',[FieldByname]='NewsContent',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=275  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=275  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17218,7,29,275,'bit',4,1,1,'Dcx_News','IsPublic','IsPublic','0',0,0,0,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_News',[FieldName]='IsPublic',[FieldByname]='IsPublic',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=275  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=275  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17219,8,29,275,'datetime',3,1,1,'Dcx_News','CreateDate','CreateDate','',0,0,0,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_News',[FieldName]='CreateDate',[FieldByname]='CreateDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=275  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=275  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17220,9,29,275,'varchar',2,1,1,'Dcx_News','CreatorName','CreatorName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_News',[FieldName]='CreatorName',[FieldByname]='CreatorName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=275  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=275  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17221,10,29,275,'int',1,1,1,'Dcx_News','CreatorId','CreatorId','0',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_News',[FieldName]='CreatorId',[FieldByname]='CreatorId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=275  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=275  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17222,11,29,275,'bit',4,1,1,'Dcx_News','IsTop','IsTop','0',0,0,0,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_News',[FieldName]='IsTop',[FieldByname]='IsTop',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=275  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=275  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17223,12,29,275,'tinyint',23,1,1,'Dcx_News','ColorId','ColorId','',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_News',[FieldName]='ColorId',[FieldByname]='ColorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=275  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=275  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17224,13,29,275,'varchar',2,1,1,'Dcx_News','FileJson','FileJson','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_News',[FieldName]='FileJson',[FieldByname]='FileJson',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=275  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=275  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17225,14,29,275,'int',1,1,1,'Dcx_News','ReadTimes','ReadTimes','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_News',[FieldName]='ReadTimes',[FieldByname]='ReadTimes',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=275  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=275  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17226,15,29,275,'varchar',2,1,1,'Dcx_News','Summary','Summary','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_News',[FieldName]='Summary',[FieldByname]='Summary',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=275  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=275  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17227,16,29,275,'datetime',3,1,1,'Dcx_News','BeginDate','BeginDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_News',[FieldName]='BeginDate',[FieldByname]='BeginDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=275  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=275  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17228,17,29,275,'datetime',3,1,1,'Dcx_News','EndDate','EndDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_News',[FieldName]='EndDate',[FieldByname]='EndDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=275  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=275  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17229,18,29,275,'datetime',3,1,1,'Dcx_News','EditTime','EditTime','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_News',[FieldName]='EditTime',[FieldByname]='EditTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=275  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=275  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17230,19,29,275,'varchar',2,1,1,'Dcx_News','Editor','Editor','',0,0,1,40,40,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_News',[FieldName]='Editor',[FieldByname]='Editor',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=40,[Precision]=40,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=275  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=275  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17231,20,29,275,'int',1,1,1,'Dcx_News','EditorId','EditorId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_News',[FieldName]='EditorId',[FieldByname]='EditorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=275  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=275  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17232,21,29,275,'int',1,1,1,'Dcx_News','AccountId','AccountId','1',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_News',[FieldName]='AccountId',[FieldByname]='AccountId',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=275  and  [FieldId]=21 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 



Delete from [Dcx_EntityPrivilege]  where [EntId]=2047

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2047  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11081,3291,2047,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=3291,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2047  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2047

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2047  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20471,29,3291,2047,62,2,62,12,22,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3291,[TemplateId]=62,[ModuleId]=62,[GroupId]=12,[AreaId]=22,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2047  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2047  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20472,29,3291,2047,62,1,61,12,23,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3291,[TemplateId]=62,[ModuleId]=61,[GroupId]=12,[AreaId]=23,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2047  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2047  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20473,29,3291,2047,62,16,58,12,24,2,'/Template/Default/Browse/Browse008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3291,[TemplateId]=62,[ModuleId]=58,[GroupId]=12,[AreaId]=24,[ShowMode]=2,[AreaUrl]='/Template/Default/Browse/Browse008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=2047  and  [ModuleTypeId]=16 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2047  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20474,29,3291,2047,62,3,55,12,25,2,'/Template/Default/Form/AjaxForm/AjaxForm008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3291,[TemplateId]=62,[ModuleId]=55,[GroupId]=12,[AreaId]=25,[ShowMode]=2,[AreaUrl]='/Template/Default/Form/AjaxForm/AjaxForm008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=2047  and  [ModuleTypeId]=3 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_ListReport_Run]  where [EntId]=2047

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=2047  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('5985174c-cb3b-f267-bf01-ed0de230d3d6','客户资料',2047,1,'','','<$2047$>select *  from (select row_number() over( order by [Id])as dcx_rowid,[客户名称],[所属地区],[QQ号码],[客户状态],[下次联系时间],[Id] from ERP_客户资料  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$2047$><$2047:Count$>select count([Id]) from ERP_客户资料 where {$SearchArea}</$2047:Count$>',1,1,10,'DcxRun.ListR_2047= {"MenuId":3291,"MEntId":2047,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"客户资料","EntMsg":{"E2047":{"EntId":2047,"EntName":"客户资料","KeyFieldValue":"","DBTableName":"ERP_客户资料","KeyField":"Id","KeydtId":2,"JoinKeyField":"Id","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','2047*Id*2*Id*2*ERP_客户资料*客户资料',3,'','2012-12-3 4:29:39',3,'','2013-7-30 2:51:09',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='5985174c-cb3b-f267-bf01-ed0de230d3d6',[ReportName]='客户资料',[ModuleId]=1,[StaticHtml]='',[DIYJsCss]='',[LoadingSql]='<$2047$>select *  from (select row_number() over( order by [Id])as dcx_rowid,[客户名称],[所属地区],[QQ号码],[客户状态],[下次联系时间],[Id] from ERP_客户资料  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$2047$><$2047:Count$>select count([Id]) from ERP_客户资料 where {$SearchArea}</$2047:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=10,[AutoPublicJs]='DcxRun.ListR_2047= {"MenuId":3291,"MEntId":2047,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"客户资料","EntMsg":{"E2047":{"EntId":2047,"EntName":"客户资料","KeyFieldValue":"","DBTableName":"ERP_客户资料","KeyField":"Id","KeydtId":2,"JoinKeyField":"Id","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='2047*Id*2*Id*2*ERP_客户资料*客户资料',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-3 4:29:39',[EditorId]=3,[Editor]='',[EditTime]='2013-7-30 2:51:09',[AccountId]=1 where  [EntId]=2047 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='6d29b1c9-19ff-7cd2-9e5f-da1e7b8e23f2'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(36,'6d29b1c9-19ff-7cd2-9e5f-da1e7b8e23f2',2047,2047,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<div class="listreport">
	<div class="toolbar">
		<ul class="tool-ul" groupid="2" isgroup="1" istoolbar="1" style="wIdth: 692px;" isrple="1">
			<li areaid="27" class="tool-li" style="width: 70px; height: 30px; position: static;"><a class="list-bt-add" href="javascript:void(0);" id="ListR_2047_btn_buildNew" onclick="javascript:DcxCom.ShowAddDataDlg(2047,''ListR_'');" title="添   加">添 加</a></li>
			<li areaid="28" class="tool-li" style="position: static;">
				<a class="list-bt-other" href="javascript:void(0);" id="ListR_2047_deletebut" onclick="javascript:DcxReport.DeleteDatas(2047,''ListR_'');" title="删   除">删 除</a></li>
			<li areaid="29" class="tool-li" style="width: 70px; height: 30px; position: static;"><a class="list-bt-other" href="javascript:void(0);" id="ListR_2047_ExportToExcelbut" onclick="javascript:DcxCom.ExportExcel(2047,''ListR_'');" title="导   出">导 出</a></li>
			<li areaid="30" class="tool-li" style="position: static;">
				<a class="list-bt-other" href="javascript:void(0);" id="ListR_2047_refreshbut" onclick="javascript:DcxCom.ReLoad(2047,''ListR_'');" title="刷   新">刷 新</a></li>
			<!--分页栏-->
			<li areaid="31" class="pages" id="li2_ListR_2047" style="position: static; width: 189px; height: 20px;"><a class="list-pages list-prepage" href="javascript:void(0);" id="ListR_2047_PrevPage" isprevpage="1" onclick="javascript:DcxSch.GetHtml(2047,''ListR_'',''p'');" title="上一页">上一页</a> <span class="ddl_pageindex list-pagesdown"><select id="ddl_ListR_2047_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(2047,''ListR_'',''a'',this);"> </select> </span> <a class="list-pages list-nextpage" href="javascript:void(0);" id="ListR_2047_NextPage" isnextpage="1" onclick="javascript:DcxSch.GetHtml(2047,''ListR_'',''n'');" title="下一页">下一页</a> <span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_2047_RecCount_lbl" ispagecount="1">0</span> <span class="list-data-amount">条记录</span></li>
		</ul>
	</div>
	<!-- 列表主体-->
	<div class="list-area dcx-scroll">
		<div class="list-head">
			<ul class="list-head-ul" groupid="3" isgroup="1" style="width: 673px;" isrple="1">
				<li areaid="32" class="list-if-select" style="clear: none; float: left; height: 30px; position: static;">
					<input class="chPut ifselect" id="ckb_CheckAllListR_2047" onclick="javascript:DcxCom.CheckedAll(this,2047,''ListR_'');" rel="chkall" type="checkbox"></li>
				<li areaid="33" class="list-head-li" style="width: 110px; height: 30px; clear: none; float: left; position: static;"><div class="list-li-field">
	<label istitle="1">客户名称</label></div></li>
				<li areaid="34" class="list-head-li" style="clear: none; float: left; height: 30px; width: 110px; position: static;"><div class="list-li-field">
	<label istitle="1">所属地区</label></div></li>
				<li areaid="35" class="list-head-li" style="clear: none; float: left; height: 30px; width: 110px; position: static;"><div class="list-li-field">
	<label istitle="1">QQ</label></div></li>
				<li areaid="36" class="list-head-li" style="clear: none; float: left; height: 30px; width: 110px; position: static;">
					<div class="list-li-field">
						<label istitle="1">客户状态</label></div>
				</li>
				<li areaid="37" class="list-head-li" style="clear: none; float: left; height: 30px; width: 110px; position: static;">
					<div class="list-li-field">
						<label istitle="1">下次联系</label></div>
				</li>
				
				<li areaid="39" class="list-operate" style="clear: none; float: left; height: 30px; position: static;">
					<div class="edit">
						<a class="li-item-btn btn-pink " href="javascript:void(0);" title="编辑"><span class="i">编辑</span></a></div>
				</li>
				<li areaid="40" class="list-operate" style="clear: right; float: left; height: 30px; position: static;">
					<div class="delete">
						<a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除"><span class="i">删除</span></a></div>
				</li>
			</ul>
		</div>
		<div class="list-body">','',-1,4,-1,-1,1,'2047,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=36,[Report_EntId]=2047,[EntId]=2047,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="listreport">
	<div class="toolbar">
		<ul class="tool-ul" groupid="2" isgroup="1" istoolbar="1" style="wIdth: 692px;" isrple="1">
			<li areaid="27" class="tool-li" style="width: 70px; height: 30px; position: static;"><a class="list-bt-add" href="javascript:void(0);" id="ListR_2047_btn_buildNew" onclick="javascript:DcxCom.ShowAddDataDlg(2047,''ListR_'');" title="添   加">添 加</a></li>
			<li areaid="28" class="tool-li" style="position: static;">
				<a class="list-bt-other" href="javascript:void(0);" id="ListR_2047_deletebut" onclick="javascript:DcxReport.DeleteDatas(2047,''ListR_'');" title="删   除">删 除</a></li>
			<li areaid="29" class="tool-li" style="width: 70px; height: 30px; position: static;"><a class="list-bt-other" href="javascript:void(0);" id="ListR_2047_ExportToExcelbut" onclick="javascript:DcxCom.ExportExcel(2047,''ListR_'');" title="导   出">导 出</a></li>
			<li areaid="30" class="tool-li" style="position: static;">
				<a class="list-bt-other" href="javascript:void(0);" id="ListR_2047_refreshbut" onclick="javascript:DcxCom.ReLoad(2047,''ListR_'');" title="刷   新">刷 新</a></li>
			<!--分页栏-->
			<li areaid="31" class="pages" id="li2_ListR_2047" style="position: static; width: 189px; height: 20px;"><a class="list-pages list-prepage" href="javascript:void(0);" id="ListR_2047_PrevPage" isprevpage="1" onclick="javascript:DcxSch.GetHtml(2047,''ListR_'',''p'');" title="上一页">上一页</a> <span class="ddl_pageindex list-pagesdown"><select id="ddl_ListR_2047_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(2047,''ListR_'',''a'',this);"> </select> </span> <a class="list-pages list-nextpage" href="javascript:void(0);" id="ListR_2047_NextPage" isnextpage="1" onclick="javascript:DcxSch.GetHtml(2047,''ListR_'',''n'');" title="下一页">下一页</a> <span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_2047_RecCount_lbl" ispagecount="1">0</span> <span class="list-data-amount">条记录</span></li>
		</ul>
	</div>
	<!-- 列表主体-->
	<div class="list-area dcx-scroll">
		<div class="list-head">
			<ul class="list-head-ul" groupid="3" isgroup="1" style="width: 673px;" isrple="1">
				<li areaid="32" class="list-if-select" style="clear: none; float: left; height: 30px; position: static;">
					<input class="chPut ifselect" id="ckb_CheckAllListR_2047" onclick="javascript:DcxCom.CheckedAll(this,2047,''ListR_'');" rel="chkall" type="checkbox"></li>
				<li areaid="33" class="list-head-li" style="width: 110px; height: 30px; clear: none; float: left; position: static;"><div class="list-li-field">
	<label istitle="1">客户名称</label></div></li>
				<li areaid="34" class="list-head-li" style="clear: none; float: left; height: 30px; width: 110px; position: static;"><div class="list-li-field">
	<label istitle="1">所属地区</label></div></li>
				<li areaid="35" class="list-head-li" style="clear: none; float: left; height: 30px; width: 110px; position: static;"><div class="list-li-field">
	<label istitle="1">QQ</label></div></li>
				<li areaid="36" class="list-head-li" style="clear: none; float: left; height: 30px; width: 110px; position: static;">
					<div class="list-li-field">
						<label istitle="1">客户状态</label></div>
				</li>
				<li areaid="37" class="list-head-li" style="clear: none; float: left; height: 30px; width: 110px; position: static;">
					<div class="list-li-field">
						<label istitle="1">下次联系</label></div>
				</li>
				
				<li areaid="39" class="list-operate" style="clear: none; float: left; height: 30px; position: static;">
					<div class="edit">
						<a class="li-item-btn btn-pink " href="javascript:void(0);" title="编辑"><span class="i">编辑</span></a></div>
				</li>
				<li areaid="40" class="list-operate" style="clear: right; float: left; height: 30px; position: static;">
					<div class="delete">
						<a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除"><span class="i">删除</span></a></div>
				</li>
			</ul>
		</div>
		<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2047,' where  [FldUId]='6d29b1c9-19ff-7cd2-9e5f-da1e7b8e23f2' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='e79ec890-872b-29c4-1f6b-8e57ce43cadd'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'e79ec890-872b-29c4-1f6b-8e57ce43cadd',2047,2047,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',2,1,'varchar',2,21,0,'','','','class="list-body-ul" groupid="4" isgroup="1" style="width: 673px;" isrple="1">
				<li areaid="41" class="list-if-select" style="clear: none; float: left; height: 30px; position: static;">
					<input class="ckb_del" ctrlprex="ListR_" entid="2047" issyscheck="1" keyvalue="','',-1,4,-1,-1,1,'2047,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=2,[Report_EntId]=2047,[EntId]=2047,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='class="list-body-ul" groupid="4" isgroup="1" style="width: 673px;" isrple="1">
				<li areaid="41" class="list-if-select" style="clear: none; float: left; height: 30px; position: static;">
					<input class="ckb_del" ctrlprex="ListR_" entid="2047" issyscheck="1" keyvalue="',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2047,' where  [FldUId]='e79ec890-872b-29c4-1f6b-8e57ce43cadd' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='e3579caa-7d83-87f0-913f-ce9091653345'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'e3579caa-7d83-87f0-913f-ce9091653345',2047,2047,'00000000-0000-0000-0000-000000000000',4,'客户名称',3,1,'varchar',2,1,0,'','','','" type="checkbox"></li>
				<li areaid="42" class="list-body-li" style="width: 110px; height: 30px; clear: none; float: left; position: static;"><div class="list-li-field">
	<span isfield="1" entid="2047" fieldname="客户名称" fldid="5" columntypeid="1" class="form-ctr">','',-1,4,-1,-1,1,'2047,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=5,[Report_EntId]=2047,[EntId]=2047,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=4,[FieldName]='客户名称',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='" type="checkbox"></li>
				<li areaid="42" class="list-body-li" style="width: 110px; height: 30px; clear: none; float: left; position: static;"><div class="list-li-field">
	<span isfield="1" entid="2047" fieldname="客户名称" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2047,' where  [FldUId]='e3579caa-7d83-87f0-913f-ce9091653345' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='bede9c46-0e5c-fcbf-b9fe-b1b971fd41bf'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'bede9c46-0e5c-fcbf-b9fe-b1b971fd41bf',2047,2047,'00000000-0000-0000-0000-000000000000',7,'所属地区',4,1,'varchar',2,1,0,'','','','</span>

</div>
</li>
				<li areaid="43" class="list-body-li" style="clear: none; float: left; height: 30px; width: 110px; position: static;"><div class="list-li-field">
	<span isfield="1" entid="2047" fieldname="所属地区" fldid="6" columntypeid="1" class="form-ctr">','',-1,4,-1,-1,1,'2047,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=6,[Report_EntId]=2047,[EntId]=2047,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=7,[FieldName]='所属地区',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>

</div>
</li>
				<li areaid="43" class="list-body-li" style="clear: none; float: left; height: 30px; width: 110px; position: static;"><div class="list-li-field">
	<span isfield="1" entid="2047" fieldname="所属地区" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2047,' where  [FldUId]='bede9c46-0e5c-fcbf-b9fe-b1b971fd41bf' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='68ee4f22-119b-9b1a-b54e-17d5419628a2'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'68ee4f22-119b-9b1a-b54e-17d5419628a2',2047,2047,'00000000-0000-0000-0000-000000000000',11,'QQ号码',5,1,'varchar',2,1,0,'','','','</span>


</div>
</li>
				<li areaid="44" class="list-body-li" style="clear: none; float: left; height: 30px; width: 110px; position: static;"><div class="list-li-field">
	<span isfield="1" entid="2047" fieldname="QQ号码" fldid="7" columntypeid="1" class="form-ctr">','',-1,4,-1,-1,1,'2047,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=7,[Report_EntId]=2047,[EntId]=2047,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=11,[FieldName]='QQ号码',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>


</div>
</li>
				<li areaid="44" class="list-body-li" style="clear: none; float: left; height: 30px; width: 110px; position: static;"><div class="list-li-field">
	<span isfield="1" entid="2047" fieldname="QQ号码" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2047,' where  [FldUId]='68ee4f22-119b-9b1a-b54e-17d5419628a2' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='53d41348-164a-f1be-a30f-a96c44a32c30'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'53d41348-164a-f1be-a30f-a96c44a32c30',2047,2047,'00000000-0000-0000-0000-000000000000',33,'客户状态',6,1,'varchar',2,1,0,'','','','</span>

</div>
</li>
				<li areaid="45" class="list-body-li" style="clear: none; float: left; height: 30px; width: 110px; position: static;"><div class="list-li-field">
	<span isfield="1" entid="2047" fieldname="客户状态" fldid="8" columntypeid="1" class="form-ctr">','',-1,4,-1,-1,1,'2047,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=8,[Report_EntId]=2047,[EntId]=2047,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=33,[FieldName]='客户状态',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>

</div>
</li>
				<li areaid="45" class="list-body-li" style="clear: none; float: left; height: 30px; width: 110px; position: static;"><div class="list-li-field">
	<span isfield="1" entid="2047" fieldname="客户状态" fldid="8" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2047,' where  [FldUId]='53d41348-164a-f1be-a30f-a96c44a32c30' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='03d0b138-f9c2-d643-1aab-1118653fd657'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'03d0b138-f9c2-d643-1aab-1118653fd657',2047,2047,'00000000-0000-0000-0000-000000000000',54,'下次联系时间',7,1,'datetime',3,1,0,'','','','</span>

</div>
</li>
				<li areaid="46" class="list-body-li" style="clear: none; float: left; height: 30px; width: 110px; position: static;"><div class="list-li-field">
	<span isfield="1" entid="2047" fieldname="下次联系时间" fldid="9" columntypeid="1" class="form-ctr">','',-1,4,-1,-1,1,'2047,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=9,[Report_EntId]=2047,[EntId]=2047,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=54,[FieldName]='下次联系时间',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='datetime',[FieldDataTypeId]=3,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>

</div>
</li>
				<li areaid="46" class="list-body-li" style="clear: none; float: left; height: 30px; width: 110px; position: static;"><div class="list-li-field">
	<span isfield="1" entid="2047" fieldname="下次联系时间" fldid="9" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2047,' where  [FldUId]='03d0b138-f9c2-d643-1aab-1118653fd657' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='96948b42-aa26-73b2-caab-1b2412157f00'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'96948b42-aa26-73b2-caab-1b2412157f00',2047,2047,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',8,1,'varchar',2,21,0,'','','','</span>

</div>
</li>
				
				<li areaid="48" class="list-operate" style="clear: none; float: left; height: 30px; position: static;">
					<div class="edit">
						<a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,2047,''ListR_'',''','',-1,4,-1,-1,1,'2047,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=3,[Report_EntId]=2047,[EntId]=2047,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>

</div>
</li>
				
				<li areaid="48" class="list-operate" style="clear: none; float: left; height: 30px; position: static;">
					<div class="edit">
						<a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,2047,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2047,' where  [FldUId]='96948b42-aa26-73b2-caab-1b2412157f00' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='1fc335a0-96cb-93d0-620a-fedd1461d4f9'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'1fc335a0-96cb-93d0-620a-fedd1461d4f9',2047,2047,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',9,1,'varchar',2,21,0,'','','',''',null,1040,480);"><span class="i">编辑</span></a></div>
				</li>
				<li areaid="49" class="list-operate" style="clear: right; float: left; height: 30px; position: static;">
					<div class="delete">
						<a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,2047,''ListR_'',''','',-1,4,-1,-1,1,'2047,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=4,[Report_EntId]=2047,[EntId]=2047,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);"><span class="i">编辑</span></a></div>
				</li>
				<li areaid="49" class="list-operate" style="clear: right; float: left; height: 30px; position: static;">
					<div class="delete">
						<a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,2047,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2047,' where  [FldUId]='1fc335a0-96cb-93d0-620a-fedd1461d4f9' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='df27e482-ebf2-75a9-8dd7-dc95f5c8e0c2'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(37,'df27e482-ebf2-75a9-8dd7-dc95f5c8e0c2',2047,2047,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',10,-1,'varchar',2,13,0,'','','',''');"><span class="i">删除</span></a></div>
				</li>
			</ul>','</div>
	</div>
</div>
<br>',-1,4,-1,-1,1,'2047,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=37,[Report_EntId]=2047,[EntId]=2047,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=10,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''');"><span class="i">删除</span></a></div>
				</li>
			</ul>',[LastHtml]='</div>
	</div>
</div>
<br>',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2047,' where  [FldUId]='df27e482-ebf2-75a9-8dd7-dc95f5c8e0c2' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=1206

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=1206  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(1206,null,'ERP_客户资料','ERP_客户资料',0,0,0,0,0,0,29,1,3,'admin','2013-12-15 17:32:29',3,'admin','2013-12-15 17:32:29',null,null,2,519,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='ERP_客户资料',[DBTableByName]='ERP_客户资料',[IsForbid]=0,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=29,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:29',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:29',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=2,[SDbTableId]=519,[IsChange]=null,[IsSystem]=null where  [DBTableId]=1206 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=59  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18187,59,29,1206,'varchar',2,1,1,'ERP_客户资料','联系周期','联系周期','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='联系周期',[FieldByname]='联系周期',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=59 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=58  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18188,58,29,1206,'varchar',2,1,1,'ERP_客户资料','省份','省份','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='省份',[FieldByname]='省份',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=58 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=57  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18189,57,29,1206,'datetime',3,1,1,'ERP_客户资料','最近退货日期','最近退货日期','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='最近退货日期',[FieldByname]='最近退货日期',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=57 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=56  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18190,56,29,1206,'datetime',3,1,1,'ERP_客户资料','最近进货日期','最近进货日期','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='最近进货日期',[FieldByname]='最近进货日期',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=56 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=55  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18191,55,29,1206,'datetime',3,1,1,'ERP_客户资料','最近回访日期','最近回访日期','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='最近回访日期',[FieldByname]='最近回访日期',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=55 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=54  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18192,54,29,1206,'datetime',3,1,1,'ERP_客户资料','下次联系时间','下次联系时间','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='下次联系时间',[FieldByname]='下次联系时间',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=54 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=53  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18193,53,29,1206,'datetime',3,1,1,'ERP_客户资料','最近购买日期','最近购买日期','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='最近购买日期',[FieldByname]='最近购买日期',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=53 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=52  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18194,52,29,1206,'varchar',2,1,1,'ERP_客户资料','国家','国家','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='国家',[FieldByname]='国家',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=52 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=51  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18195,51,29,1206,'varchar',2,1,1,'ERP_客户资料','推荐人','推荐人','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='推荐人',[FieldByname]='推荐人',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=51 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=50  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18196,50,29,1206,'int',1,1,1,'ERP_客户资料','员工人数','员工人数','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='员工人数',[FieldByname]='员工人数',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=50 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=49  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18197,49,29,1206,'varchar',2,1,1,'ERP_客户资料','银行帐号','银行帐号','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='银行帐号',[FieldByname]='银行帐号',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=49 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=48  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18198,48,29,1206,'varchar',2,1,1,'ERP_客户资料','开户银行','开户银行','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='开户银行',[FieldByname]='开户银行',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=48 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=47  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18199,47,29,1206,'varchar',2,1,1,'ERP_客户资料','发货地址','发货地址','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='发货地址',[FieldByname]='发货地址',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=47 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=46  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18200,46,29,1206,'varchar',2,1,1,'ERP_客户资料','付款方式ID','付款方式ID','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='付款方式ID',[FieldByname]='付款方式ID',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=46 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=45  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18201,45,29,1206,'varchar',2,1,1,'ERP_客户资料','付款方式','付款方式','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='付款方式',[FieldByname]='付款方式',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=45 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=44  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18202,44,29,1206,'varchar',2,1,1,'ERP_客户资料','公司规模','公司规模','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='公司规模',[FieldByname]='公司规模',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=44 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=43  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18203,43,29,1206,'bit',4,1,1,'ERP_客户资料','是否已删除','是否已删除','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='是否已删除',[FieldByname]='是否已删除',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=43 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=42  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18204,42,29,1206,'text',6,1,1,'ERP_客户资料','备注','备注','',0,0,1,16,2147483647,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='text',[FieldDataTypeId]=6,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='备注',[FieldByname]='备注',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=16,[Precision]=2147483647,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=42 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=41  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18205,41,29,1206,'varchar',2,1,1,'ERP_客户资料','企业简介','企业简介','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='企业简介',[FieldByname]='企业简介',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=41 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=40  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18206,40,29,1206,'varchar',2,1,1,'ERP_客户资料','所属部门编号','所属部门编号','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='所属部门编号',[FieldByname]='所属部门编号',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=40 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=39  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18207,39,29,1206,'varchar',2,1,1,'ERP_客户资料','所属部门','所属部门','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='所属部门',[FieldByname]='所属部门',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=39 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=38  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18208,38,29,1206,'varchar',2,1,1,'ERP_客户资料','所属用户','所属用户','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='所属用户',[FieldByname]='所属用户',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=38 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=37  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18209,37,29,1206,'varchar',2,1,1,'ERP_客户资料','创建者','创建者','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='创建者',[FieldByname]='创建者',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=37 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=36  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18210,36,29,1206,'datetime',3,1,1,'ERP_客户资料','最后更改日期','最后更改日期','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='最后更改日期',[FieldByname]='最后更改日期',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=36 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=35  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18211,35,29,1206,'datetime',3,1,1,'ERP_客户资料','创建日期','创建日期','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='创建日期',[FieldByname]='创建日期',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=35 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=34  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18212,34,29,1206,'datetime',3,1,1,'ERP_客户资料','最近联系日期','最近联系日期','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='最近联系日期',[FieldByname]='最近联系日期',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=34 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=33  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18213,33,29,1206,'varchar',2,1,1,'ERP_客户资料','客户状态','客户状态','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='客户状态',[FieldByname]='客户状态',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=33 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=32  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18214,32,29,1206,'varchar',2,1,1,'ERP_客户资料','客户类型','客户类型','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='客户类型',[FieldByname]='客户类型',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=32 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=31  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18215,31,29,1206,'varchar',2,1,1,'ERP_客户资料','客户级别','客户级别','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='客户级别',[FieldByname]='客户级别',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=31 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=30  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18216,30,29,1206,'varchar',2,1,1,'ERP_客户资料','客户来源','客户来源','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='客户来源',[FieldByname]='客户来源',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=30 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=29  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18217,29,29,1206,'varchar',2,1,1,'ERP_客户资料','主营行业','主营行业','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='主营行业',[FieldByname]='主营行业',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=29 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=28  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18218,28,29,1206,'varchar',2,1,1,'ERP_客户资料','主联系人编号','主联系人编号','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='主联系人编号',[FieldByname]='主联系人编号',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=28 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=27  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18219,27,29,1206,'varchar',2,1,1,'ERP_客户资料','主联系人','主联系人','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='主联系人',[FieldByname]='主联系人',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=27 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18220,26,29,1206,'varchar',2,1,1,'ERP_客户资料','父级客户编号','父级客户编号','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='父级客户编号',[FieldByname]='父级客户编号',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=26 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18221,25,29,1206,'varchar',2,1,1,'ERP_客户资料','父级客户','父级客户','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='父级客户',[FieldByname]='父级客户',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18222,24,29,1206,'varchar',2,1,1,'ERP_客户资料','跟进人员','跟进人员','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='跟进人员',[FieldByname]='跟进人员',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18223,23,29,1206,'money',5,1,1,'ERP_客户资料','资信额','资信额','0',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='资信额',[FieldByname]='资信额',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18224,22,29,1206,'money',5,1,1,'ERP_客户资料','期初余额','期初余额','0',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='期初余额',[FieldByname]='期初余额',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18225,21,29,1206,'money',5,1,1,'ERP_客户资料','期初已收','期初已收','0',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='期初已收',[FieldByname]='期初已收',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18226,20,29,1206,'money',5,1,1,'ERP_客户资料','累计退款金额','累计退款金额','0',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='累计退款金额',[FieldByname]='累计退款金额',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18227,19,29,1206,'money',5,1,1,'ERP_客户资料','累计应收金额','累计应收金额','0',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='累计应收金额',[FieldByname]='累计应收金额',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18228,18,29,1206,'money',5,1,1,'ERP_客户资料','累计已收金额','累计已收金额','0',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='累计已收金额',[FieldByname]='累计已收金额',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18229,17,29,1206,'money',5,1,1,'ERP_客户资料','余额','余额','',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='余额',[FieldByname]='余额',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18230,16,29,1206,'money',5,1,1,'ERP_客户资料','应收款','应收款','0',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='应收款',[FieldByname]='应收款',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18231,15,29,1206,'money',5,1,1,'ERP_客户资料','预收款','预收款','0',0,0,1,8,19,4,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='money',[FieldDataTypeId]=5,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='预收款',[FieldByname]='预收款',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=19,[Scale]=4,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18232,14,29,1206,'varchar',2,1,1,'ERP_客户资料','联系人','联系人','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='联系人',[FieldByname]='联系人',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18233,13,29,1206,'varchar',2,1,1,'ERP_客户资料','主页','主页','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='主页',[FieldByname]='主页',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18234,12,29,1206,'varchar',2,1,1,'ERP_客户资料','邮件','邮件','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='邮件',[FieldByname]='邮件',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18235,11,29,1206,'varchar',2,1,1,'ERP_客户资料','QQ号码','QQ号码','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='QQ号码',[FieldByname]='QQ号码',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18236,10,29,1206,'varchar',2,1,1,'ERP_客户资料','代理商','代理商','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='代理商',[FieldByname]='代理商',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18237,9,29,1206,'varchar',2,1,1,'ERP_客户资料','电话','电话','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='电话',[FieldByname]='电话',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18238,8,29,1206,'varchar',2,1,1,'ERP_客户资料','地址','地址','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='地址',[FieldByname]='地址',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18239,7,29,1206,'varchar',2,1,1,'ERP_客户资料','所属地区','所属地区','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='所属地区',[FieldByname]='所属地区',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18240,6,29,1206,'varchar',2,1,1,'ERP_客户资料','业务关系','业务关系','直销客户',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='业务关系',[FieldByname]='业务关系',[DefaultValue]='直销客户',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18241,5,29,1206,'varchar',2,1,1,'ERP_客户资料','客户简称','客户简称','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='客户简称',[FieldByname]='客户简称',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18242,4,29,1206,'varchar',2,1,1,'ERP_客户资料','客户名称','客户名称','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='客户名称',[FieldByname]='客户名称',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18243,3,29,1206,'varchar',2,1,1,'ERP_客户资料','客户名称助记码','客户名称助记码','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='客户名称助记码',[FieldByname]='客户名称助记码',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18244,2,29,1206,'varchar',2,1,1,'ERP_客户资料','客户编号','客户编号','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='客户编号',[FieldByname]='客户编号',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1206  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18245,1,29,1206,'int',1,1,1,'ERP_客户资料','Id','Id','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_客户资料',[FieldName]='Id',[FieldByname]='Id',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1206  and  [FieldId]=1 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 



Delete from [Dcx_EntityPrivilege]  where [EntId]=2048

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2048  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11082,3291,2048,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=3291,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2048  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2048

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2048  and  [ModuleTypeId]=9  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20475,29,3291,2048,62,9,50,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3291,[TemplateId]=62,[ModuleId]=50,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2048  and  [ModuleTypeId]=9 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_DBTable_Run]  where [DBTableId]=275

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=275  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(275,null,'Dcx_News','Dcx_News',1,0,0,0,0,0,29,1,3,'admin','2013-12-15 17:32:19',3,'admin','2013-12-15 17:32:19',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='Dcx_News',[DBTableByName]='Dcx_News',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=29,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:19',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:19',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=275 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=275  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17212,1,29,275,'int',1,1,1,'Dcx_News','NId','NId','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_News',[FieldName]='NId',[FieldByname]='NId',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=275  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=275  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17213,2,29,275,'varchar',2,1,1,'Dcx_News','Title','Title','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_News',[FieldName]='Title',[FieldByname]='Title',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=275  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=275  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17214,3,29,275,'int',1,1,1,'Dcx_News','TypeId','TypeId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_News',[FieldName]='TypeId',[FieldByname]='TypeId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=275  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=275  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17215,4,29,275,'int',1,1,1,'Dcx_News','TagId','TagId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_News',[FieldName]='TagId',[FieldByname]='TagId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=275  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=275  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17216,5,29,275,'varchar',2,1,1,'Dcx_News','TagName','TagName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_News',[FieldName]='TagName',[FieldByname]='TagName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=275  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=275  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17217,6,29,275,'varchar',2,1,1,'Dcx_News','NewsContent','NewsContent','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_News',[FieldName]='NewsContent',[FieldByname]='NewsContent',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=275  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=275  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17218,7,29,275,'bit',4,1,1,'Dcx_News','IsPublic','IsPublic','0',0,0,0,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_News',[FieldName]='IsPublic',[FieldByname]='IsPublic',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=275  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=275  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17219,8,29,275,'datetime',3,1,1,'Dcx_News','CreateDate','CreateDate','',0,0,0,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_News',[FieldName]='CreateDate',[FieldByname]='CreateDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=275  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=275  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17220,9,29,275,'varchar',2,1,1,'Dcx_News','CreatorName','CreatorName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_News',[FieldName]='CreatorName',[FieldByname]='CreatorName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=275  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=275  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17221,10,29,275,'int',1,1,1,'Dcx_News','CreatorId','CreatorId','0',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_News',[FieldName]='CreatorId',[FieldByname]='CreatorId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=275  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=275  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17222,11,29,275,'bit',4,1,1,'Dcx_News','IsTop','IsTop','0',0,0,0,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_News',[FieldName]='IsTop',[FieldByname]='IsTop',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=275  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=275  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17223,12,29,275,'tinyint',23,1,1,'Dcx_News','ColorId','ColorId','',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_News',[FieldName]='ColorId',[FieldByname]='ColorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=275  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=275  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17224,13,29,275,'varchar',2,1,1,'Dcx_News','FileJson','FileJson','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_News',[FieldName]='FileJson',[FieldByname]='FileJson',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=275  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=275  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17225,14,29,275,'int',1,1,1,'Dcx_News','ReadTimes','ReadTimes','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_News',[FieldName]='ReadTimes',[FieldByname]='ReadTimes',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=275  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=275  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17226,15,29,275,'varchar',2,1,1,'Dcx_News','Summary','Summary','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_News',[FieldName]='Summary',[FieldByname]='Summary',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=275  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=275  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17227,16,29,275,'datetime',3,1,1,'Dcx_News','BeginDate','BeginDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_News',[FieldName]='BeginDate',[FieldByname]='BeginDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=275  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=275  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17228,17,29,275,'datetime',3,1,1,'Dcx_News','EndDate','EndDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_News',[FieldName]='EndDate',[FieldByname]='EndDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=275  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=275  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17229,18,29,275,'datetime',3,1,1,'Dcx_News','EditTime','EditTime','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_News',[FieldName]='EditTime',[FieldByname]='EditTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=275  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=275  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17230,19,29,275,'varchar',2,1,1,'Dcx_News','Editor','Editor','',0,0,1,40,40,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_News',[FieldName]='Editor',[FieldByname]='Editor',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=40,[Precision]=40,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=275  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=275  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17231,20,29,275,'int',1,1,1,'Dcx_News','EditorId','EditorId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_News',[FieldName]='EditorId',[FieldByname]='EditorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=275  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=275  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17232,21,29,275,'int',1,1,1,'Dcx_News','AccountId','AccountId','1',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_News',[FieldName]='AccountId',[FieldByname]='AccountId',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=275  and  [FieldId]=21 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=3292  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(3292,'a6d3884d-38fd-4316-b35d-cb198f0d9685','顶部导航（标准表单版）',3284,'/Template/default/form/DefaultForm/DefaultForm3.aspx',61,'/images/default.gif','/images/default.gif',0,'rightFrame',0,1,'',29,-1,29,1,1,1,null,'',0,0,'',null,3,'admin','2013-10-9 4:15:04',1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='a6d3884d-38fd-4316-b35d-cb198f0d9685',[MenuName]='顶部导航（标准表单版）',[ParentId]=3284,[ProPath]='/Template/default/form/DefaultForm/DefaultForm3.aspx',[TemplateId]=61,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=0,[Target]='rightFrame',[IsOpen]=0,[IsHidden]=1,[Remark]='',[SSystemId]=29,[SMenuId]=-1,[SystemId]=29,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=0,[Creator]='',[CreateTime]=null,[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-9 4:15:04',[AccountId]=1 where  [MenuId]=3292 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3292  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(1051,3292,'顶部导航（标准表单版）','Public',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='顶部导航（标准表单版）',[RoleName]='Public',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3292  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3292  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(984,3292,'顶部导航（标准表单版）','系统管理员',3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='顶部导航（标准表单版）',[RoleName]='系统管理员',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3292  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2016  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2016,3292,'顶部导航',1,273,0,'Dcx_NavMenu',0,0,1,29,2016,null,null,29,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3292,[EntName]='顶部导航',[MEnt]=1,[DBTableId]=273,[DBConnectId]=0,[DBTableName]='Dcx_NavMenu',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2016,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2016 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=2016

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2016  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11053,3292,2016,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=3292,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2016  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2016

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2016  and  [ModuleTypeId]=18  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20445,29,3292,2016,61,18,44,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3292,[TemplateId]=61,[ModuleId]=44,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2016  and  [ModuleTypeId]=18 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_DefaultForm_Run]  where [EntId]=2016

--Dcx_DefaultForm_Run
      if (select count(1) from [Dcx_DefaultForm_Run] where  [EntId]=2016  )<1 
      begin 
           Insert into [Dcx_DefaultForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[OtherMsg],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('a663db8b-1f65-84e3-2552-9c0f4656dd59','顶部导航',2016,-1,'','',0,'<script src="/Js/Control/LTreeRList/LTreeRList.js"></script>','','DcxRun.DefaultF_2016= {"MenuId":3292,"MEntId":2016,"EntName":"顶部导航","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2016":{"EntId":2016,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"Id","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":3,"Ent":[{"EntId":2016,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":2,"Vld":[]},{"FldId":3,"Vld":[]}]}]};
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2016.EntMsg.E2016.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_NavMenu","EntId":2016,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2016.EntMsg.E2016.GetDataRowModel=function()
{
    return {"Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2016.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2016,''DefaultF_'',buildNew,closeDlg);

}','<$2016$>select [Id] from Dcx_NavMenu where [Id]=''{$keyfieldvalue}''</$2016$>',10,'2016*Id*2*Id*2*Dcx_NavMenu*顶部导航','','','',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-10-6 23:45:55',3,'admin','2013-10-2 18:34:10',1)
      end
      else 
      begin 
           update [Dcx_DefaultForm_Run] set [FormId]='a663db8b-1f65-84e3-2552-9c0f4656dd59',[FormName]='顶部导航',[ModuleId]=-1,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script src="/Js/Control/LTreeRList/LTreeRList.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.DefaultF_2016= {"MenuId":3292,"MEntId":2016,"EntName":"顶部导航","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2016":{"EntId":2016,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"Id","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":3,"Ent":[{"EntId":2016,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":2,"Vld":[]},{"FldId":3,"Vld":[]}]}]};
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2016.EntMsg.E2016.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_NavMenu","EntId":2016,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2016.EntMsg.E2016.GetDataRowModel=function()
{
    return {"Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2016.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2016,''DefaultF_'',buildNew,closeDlg);

}',[LoadingSql]='<$2016$>select [Id] from Dcx_NavMenu where [Id]=''{$keyfieldvalue}''</$2016$>',[PageSize]=10,[OtherMsg]='2016*Id*2*Id*2*Dcx_NavMenu*顶部导航',[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-10-6 23:45:55',[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-2 18:34:10',[AccountId]=1 where  [EntId]=2016 
      end




--Dcx_DefaultFormField_Run
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='d1eb6d31-d396-83ad-532a-fbc847d0c855'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'d1eb6d31-d396-83ad-532a-fbc847d0c855',2016,2016,'00000000-0000-0000-0000-000000000000',1,'TopMenuCount',2,2,-1,'5',5,1,1,0,1,3,-1,-1,0,0,'','','','','<div class="ajaxfrom defaultform">
	<div class="div_top">
		<ul class="ul-group" groupid="1" isgroup="1" isrple="1">
			<li areaid="9" class="li-area" scroll="no" style="width: 716px; height: 55px; position: static;"><div class="form-title2" id="div_head1" style="width: 716px; ">
	<div style="width:270px;float:left;clear:none;">
		<h2 id="h2_title">
			顶部导航</h2>
	</div>
	<div style="width:435px;float:right;clear:none;">
		<a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();" style="float:right;"><span class="op_bt_i">关&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;闭</span></a> <a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.DefaultF_2016.SubmitForm(false,2016,''DefaultF_'');" style="float:right;"><span class="op_bt_i">保&nbsp;&nbsp;&nbsp;&nbsp;存</span></a></div>
</div>
</li>
			
			<li areaid="11" class="li-area" scroll="no" style="width: 716px; height: 45px; position: static;"><label class="area-title pad7" fldid="2" istitle="1">“更多”前面导航数量</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2016_TopMenuCount"   type="text" class="form-txt"  style="width:250px;" EntId="2016" IsField=1 DBField=0 IsPost=0 FieldName="TopMenuCount" dType="2" Vtp="5" RDT="2" Isc="1" RId="-1" CId="1" FId="2" vlk=0    value="','"/>','',1,11,-1,-1,0,'2016,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=2,[Form_EntId]=2016,[EntId]=2016,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[FieldName]='TopMenuCount',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='5',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="ajaxfrom defaultform">
	<div class="div_top">
		<ul class="ul-group" groupid="1" isgroup="1" isrple="1">
			<li areaid="9" class="li-area" scroll="no" style="width: 716px; height: 55px; position: static;"><div class="form-title2" id="div_head1" style="width: 716px; ">
	<div style="width:270px;float:left;clear:none;">
		<h2 id="h2_title">
			顶部导航</h2>
	</div>
	<div style="width:435px;float:right;clear:none;">
		<a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();" style="float:right;"><span class="op_bt_i">关&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;闭</span></a> <a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.DefaultF_2016.SubmitForm(false,2016,''DefaultF_'');" style="float:right;"><span class="op_bt_i">保&nbsp;&nbsp;&nbsp;&nbsp;存</span></a></div>
</div>
</li>
			
			<li areaid="11" class="li-area" scroll="no" style="width: 716px; height: 45px; position: static;"><label class="area-title pad7" fldid="2" istitle="1">“更多”前面导航数量</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2016_TopMenuCount"   type="text" class="form-txt"  style="width:250px;" EntId="2016" IsField=1 DBField=0 IsPost=0 FieldName="TopMenuCount" dType="2" Vtp="5" RDT="2" Isc="1" RId="-1" CId="1" FId="2" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=11,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2016,' where  [FldUId]='d1eb6d31-d396-83ad-532a-fbc847d0c855' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='52517bdc-93c8-ae3f-163e-c46977c5136f'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'52517bdc-93c8-ae3f-163e-c46977c5136f',2016,2016,'00000000-0000-0000-0000-000000000000',2,'TopMenuIds',2,2,-1,'',5,10,1,0,49,3,-1,11,0,0,'','','','','</span>






</div>
</li><li areaid="12" class="li-area" scroll="no" style="width: 716px; height: 440px; position: static;"><label class="area-title pad7" fldid="3" istitle="1">导航</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','</span>
</div>
</li><li areaid="13" class="li-area" scroll="no" style="width: 716px; height: 45px; position: static;"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad7">
	请编辑.. </div>
</li>
		</ul>
	</div>
</div>
<br>','','','<div id="d2016_TopMenuIds" class="form-lrlist" style="" IsForField=1 EntId="2016" FId="3" Vtp="5" RId="10" Isc="1" CId="49" FieldName="TopMenuIds" >','</div> <input id="d2016_TopMenuIds_hid" type="hidden"  EntId="2016" IsField=1 DBField=0 IsPost=0 FieldName="TopMenuIds" dType="2" Vtp="5" RDT="2" Isc="1" RId="10" CId="49" FId="3" vlk=0   TId=11 />','',1,12,-1,-1,0,'2016,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=3,[Form_EntId]=2016,[EntId]=2016,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[FieldName]='TopMenuIds',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=10,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=49,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=11,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>






</div>
</li><li areaid="12" class="li-area" scroll="no" style="width: 716px; height: 440px; position: static;"><label class="area-title pad7" fldid="3" istitle="1">导航</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
</div>
</li><li areaid="13" class="li-area" scroll="no" style="width: 716px; height: 45px; position: static;"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad7">
	请编辑.. </div>
</li>
		</ul>
	</div>
</div>
<br>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2016_TopMenuIds" class="form-lrlist" style="" IsForField=1 EntId="2016" FId="3" Vtp="5" RId="10" Isc="1" CId="49" FieldName="TopMenuIds" >',[CtrlbackHtml]='</div> <input id="d2016_TopMenuIds_hid" type="hidden"  EntId="2016" IsField=1 DBField=0 IsPost=0 FieldName="TopMenuIds" dType="2" Vtp="5" RDT="2" Isc="1" RId="10" CId="49" FId="3" vlk=0   TId=11 />',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=12,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2016,' where  [FldUId]='52517bdc-93c8-ae3f-163e-c46977c5136f' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=273

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=273  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(273,null,'Dcx_NavMenu','Dcx_NavMenu',1,0,0,0,0,0,29,1,3,'admin','2013-12-15 17:32:19',3,'admin','2013-12-15 17:32:19',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='Dcx_NavMenu',[DBTableByName]='Dcx_NavMenu',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=29,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:19',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:19',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=273 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=273  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17192,1,29,273,'int',1,1,1,'Dcx_NavMenu','Id','Id','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_NavMenu',[FieldName]='Id',[FieldByname]='Id',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=273  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=273  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17193,2,29,273,'int',1,1,1,'Dcx_NavMenu','UserId','UserId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_NavMenu',[FieldName]='UserId',[FieldByname]='UserId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=273  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=273  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17194,3,29,273,'varchar',2,1,1,'Dcx_NavMenu','UserName','UserName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_NavMenu',[FieldName]='UserName',[FieldByname]='UserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=273  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=273  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17195,4,29,273,'int',1,1,1,'Dcx_NavMenu','MenuId','MenuId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_NavMenu',[FieldName]='MenuId',[FieldByname]='MenuId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=273  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=273  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17196,5,29,273,'int',1,1,1,'Dcx_NavMenu','SortOrder','SortOrder','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_NavMenu',[FieldName]='SortOrder',[FieldByname]='SortOrder',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=273  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=273  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17197,6,29,273,'bit',4,1,1,'Dcx_NavMenu','ShowAtTop','ShowAtTop','1',0,0,0,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_NavMenu',[FieldName]='ShowAtTop',[FieldByname]='ShowAtTop',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=273  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=273  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17198,7,29,273,'bit',4,1,1,'Dcx_NavMenu','AfterSeparate','AfterSeparate','0',0,0,0,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_NavMenu',[FieldName]='AfterSeparate',[FieldByname]='AfterSeparate',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=273  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=273  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17199,8,29,273,'varchar',2,1,1,'Dcx_NavMenu','MenuName','MenuName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_NavMenu',[FieldName]='MenuName',[FieldByname]='MenuName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=273  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=273  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17200,9,29,273,'int',1,1,1,'Dcx_NavMenu','ParentId','ParentId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_NavMenu',[FieldName]='ParentId',[FieldByname]='ParentId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=273  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=273  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17201,10,29,273,'varchar',2,1,1,'Dcx_NavMenu','ImgPath','ImgPath','',0,0,1,300,300,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_NavMenu',[FieldName]='ImgPath',[FieldByname]='ImgPath',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=300,[Precision]=300,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=273  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=273  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17202,11,29,273,'varchar',2,1,1,'Dcx_NavMenu','ProPath','ProPath','',0,0,1,300,300,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_NavMenu',[FieldName]='ProPath',[FieldByname]='ProPath',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=300,[Precision]=300,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=273  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=273  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17203,12,29,273,'int',1,1,1,'Dcx_NavMenu','AccountId','AccountId','1',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_NavMenu',[FieldName]='AccountId',[FieldByname]='AccountId',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=273  and  [FieldId]=12 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=3293  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(3293,'f37cfabc-0f2e-4653-b633-7afcaaafa9b5','我的桌面',3284,'/Template/default/form/ListForm/ListForm_Selector.aspx',66,'/images/default.gif','/images/default.gif',0,'rightFrame',0,1,'',29,-1,29,4,1,1,null,'',0,0,'',null,3,'admin','2013-10-9 4:15:08',1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='f37cfabc-0f2e-4653-b633-7afcaaafa9b5',[MenuName]='我的桌面',[ParentId]=3284,[ProPath]='/Template/default/form/ListForm/ListForm_Selector.aspx',[TemplateId]=66,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=0,[Target]='rightFrame',[IsOpen]=0,[IsHidden]=1,[Remark]='',[SSystemId]=29,[SMenuId]=-1,[SystemId]=29,[EntityCount]=4,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=0,[Creator]='',[CreateTime]=null,[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-9 4:15:08',[AccountId]=1 where  [MenuId]=3293 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3293  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(1052,3293,'我的桌面','Public',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='我的桌面',[RoleName]='Public',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3293  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3293  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(985,3293,'顶部导航','系统管理员',3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='顶部导航',[RoleName]='系统管理员',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3293  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2017  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2017,3293,'顶部导航',1,273,0,'Dcx_NavMenu',0,0,1,29,2017,null,null,29,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3293,[EntName]='顶部导航',[MEnt]=1,[DBTableId]=273,[DBConnectId]=0,[DBTableName]='Dcx_NavMenu',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2017,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2017 
      end
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2018  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2018,3293,'网页列表',1,1202,0,'Dcx_Menu',0,0,1,29,2018,null,null,29,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3293,[EntName]='网页列表',[MEnt]=1,[DBTableId]=1202,[DBConnectId]=0,[DBTableName]='Dcx_Menu',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2018,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2018 
      end
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2020  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2020,3293,'搜索项目',1,326,0,'Dcx_SearchItemInUser',0,0,1,29,2020,null,null,29,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3293,[EntName]='搜索项目',[MEnt]=1,[DBTableId]=326,[DBConnectId]=0,[DBTableName]='Dcx_SearchItemInUser',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2020,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2020 
      end
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2021  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2021,3293,'我的桌面',1,200,0,'Dcx_HomePage',0,0,1,29,2021,null,null,29,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3293,[EntName]='我的桌面',[MEnt]=1,[DBTableId]=200,[DBConnectId]=0,[DBTableName]='Dcx_HomePage',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2021,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2021 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=2017

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2017  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11054,3293,2017,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=3293,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2017  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2017

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2017  and  [ModuleTypeId]=17  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20446,29,3293,2017,67,17,15,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3293,[TemplateId]=67,[ModuleId]=15,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2017  and  [ModuleTypeId]=17 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_ListForm_Run]  where [EntId]=2017

--Dcx_ListForm_Run
      if (select count(1) from [Dcx_ListForm_Run] where  [EntId]=2017  )<1 
      begin 
           Insert into [Dcx_ListForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[OtherMsg],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[AccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime])values('ee06427e-73aa-966b-281b-7ff475ba9840','顶部导航',2017,-1,'','',0,'<script type="text/javascript" src="/js/module/Report/ReportRun.js"></script>','','DcxRun.ListF_2017= {"MenuId":3293,"MEntId":2017,"EntName":"顶部导航","CtrlPrex":"ListF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2017":{"EntId":2017,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"Id","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}


if(runObj.NoInit)
{
   entMsg.E2017.FormData=null;
   mEntMsg.RowCount=0;mEntMsg.RecortCount=0;entMsg.E2017.RowCount=0;

}

 DcxForm.InitSheetForm(2017,''ListF_'',entMsg.E2017.FormData,entMsg.E2017.$listContainer);

 DcxForm.DealPage(2017,''ListF_'');

 DcxForm.SetPower(2017,''ListF_'');


}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":18,"Ent":[{"EntId":2017,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":2,"Vld":[{"Id":4,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"请点击上方工具栏中的“批量选择”按扭进行挑选。不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":3,"Vld":[{"Id":16,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"请点击上方工具栏中的“批量选择”按扭进行网页的挑选。不能为空。","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":18,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"长度不能超过50","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":4,"Vld":[{"Id":7,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":8,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":5,"Vld":[{"Id":9,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1}]},{"FldId":6,"Vld":[{"Id":10,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1}]},{"FldId":7,"Vld":[{"Id":11,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,300}$","err":"限制0-300个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":16,"Vld":[{"Id":12,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":13,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":17,"Vld":[{"Id":14,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,200}$","err":"限制0-200个字符。","ok":"","warn":"","ovt":1}]}]}]};
 }
 catch(err){}

try{
   runObj.Selector=[{"f1":"MenuName,MenuId,ProPath,ImgPath,","f2":"MenuName,MenuId,ProPath,ImgPath,","e1":2018,"e2":2017,"l":"0","t":"0","w":"800","h":"560","sc":"0","u":"/Template/default/form/ListForm/ListForm_Selector.aspx","m":3293}];
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.ListF_2017.EntMsg.E2017.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_NavMenu","EntId":2017,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"UserId":{"DtId":1,"DB":1,"CId":4,"FL":4},"MenuId":{"DtId":1,"DB":1,"CId":1,"FL":4},"MenuName":{"DtId":2,"DB":1,"CId":1,"FL":50},"SortOrder":{"DtId":1,"DB":1,"CId":1,"FL":4},"ShowAtTop":{"DtId":4,"DB":1,"CId":13,"FL":1},"AfterSeparate":{"DtId":4,"DB":1,"CId":13,"FL":1},"ImgPath":{"DtId":14,"DB":1,"CId":1,"FL":20},"ProPath":{"DtId":2,"DB":1,"CId":1,"FL":200}},"Data":{"Row":[]}};
}
DcxRun.ListF_2017.EntMsg.E2017.GetDataRowModel=function()
{
    return {"UserId":-1,"MenuId":-1,"MenuName":"","SortOrder":1,"ShowAtTop":false,"AfterSeparate":false,"ImgPath":"","ProPath":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/



 function GetLinkCtrl_ListF_2017(obj,FieldName,EntId)
{

}
/****************上：AJAX回调函数******************/


DcxRun.ListF_2017.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitLf(2017,''ListF_'',buildNew,closeDlg);

}','<$2017$>select *  from (select row_number() over( order by [Id])as dcx_rowid,[SortOrder],[MenuId],[MenuName],[ProPath],[ShowAtTop],[AfterSeparate],[ImgPath],[UserId],[Id] from Dcx_NavMenu  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$2017$><$2017:Count$>select count([Id]) from Dcx_NavMenu where {$SearchArea}</$2017:Count$>','2017*Id*2*Id*2*Dcx_NavMenu*顶部导航',30,'','','',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',1,3,'admin','2012-10-7 16:12:53',3,'admin','2013-10-2 18:14:17')
      end
      else 
      begin 
           update [Dcx_ListForm_Run] set [FormId]='ee06427e-73aa-966b-281b-7ff475ba9840',[FormName]='顶部导航',[ModuleId]=-1,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script type="text/javascript" src="/js/module/Report/ReportRun.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.ListF_2017= {"MenuId":3293,"MEntId":2017,"EntName":"顶部导航","CtrlPrex":"ListF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2017":{"EntId":2017,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"Id","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}


if(runObj.NoInit)
{
   entMsg.E2017.FormData=null;
   mEntMsg.RowCount=0;mEntMsg.RecortCount=0;entMsg.E2017.RowCount=0;

}

 DcxForm.InitSheetForm(2017,''ListF_'',entMsg.E2017.FormData,entMsg.E2017.$listContainer);

 DcxForm.DealPage(2017,''ListF_'');

 DcxForm.SetPower(2017,''ListF_'');


}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":18,"Ent":[{"EntId":2017,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":2,"Vld":[{"Id":4,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"请点击上方工具栏中的“批量选择”按扭进行挑选。不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":3,"Vld":[{"Id":16,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"请点击上方工具栏中的“批量选择”按扭进行网页的挑选。不能为空。","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":18,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"长度不能超过50","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":4,"Vld":[{"Id":7,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":8,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":5,"Vld":[{"Id":9,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1}]},{"FldId":6,"Vld":[{"Id":10,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1}]},{"FldId":7,"Vld":[{"Id":11,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,300}$","err":"限制0-300个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":16,"Vld":[{"Id":12,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":13,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":17,"Vld":[{"Id":14,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,200}$","err":"限制0-200个字符。","ok":"","warn":"","ovt":1}]}]}]};
 }
 catch(err){}

try{
   runObj.Selector=[{"f1":"MenuName,MenuId,ProPath,ImgPath,","f2":"MenuName,MenuId,ProPath,ImgPath,","e1":2018,"e2":2017,"l":"0","t":"0","w":"800","h":"560","sc":"0","u":"/Template/default/form/ListForm/ListForm_Selector.aspx","m":3293}];
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.ListF_2017.EntMsg.E2017.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_NavMenu","EntId":2017,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"UserId":{"DtId":1,"DB":1,"CId":4,"FL":4},"MenuId":{"DtId":1,"DB":1,"CId":1,"FL":4},"MenuName":{"DtId":2,"DB":1,"CId":1,"FL":50},"SortOrder":{"DtId":1,"DB":1,"CId":1,"FL":4},"ShowAtTop":{"DtId":4,"DB":1,"CId":13,"FL":1},"AfterSeparate":{"DtId":4,"DB":1,"CId":13,"FL":1},"ImgPath":{"DtId":14,"DB":1,"CId":1,"FL":20},"ProPath":{"DtId":2,"DB":1,"CId":1,"FL":200}},"Data":{"Row":[]}};
}
DcxRun.ListF_2017.EntMsg.E2017.GetDataRowModel=function()
{
    return {"UserId":-1,"MenuId":-1,"MenuName":"","SortOrder":1,"ShowAtTop":false,"AfterSeparate":false,"ImgPath":"","ProPath":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/



 function GetLinkCtrl_ListF_2017(obj,FieldName,EntId)
{

}
/****************上：AJAX回调函数******************/


DcxRun.ListF_2017.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitLf(2017,''ListF_'',buildNew,closeDlg);

}',[LoadingSql]='<$2017$>select *  from (select row_number() over( order by [Id])as dcx_rowid,[SortOrder],[MenuId],[MenuName],[ProPath],[ShowAtTop],[AfterSeparate],[ImgPath],[UserId],[Id] from Dcx_NavMenu  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$2017$><$2017:Count$>select count([Id]) from Dcx_NavMenu where {$SearchArea}</$2017:Count$>',[OtherMsg]='2017*Id*2*Id*2*Dcx_NavMenu*顶部导航',[PageSize]=30,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[AccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-10-7 16:12:53',[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-2 18:14:17' where  [EntId]=2017 
      end




--Dcx_ListFormField_Run
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='d2a4d288-c2bc-91cd-76c1-bc559052a4ac'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(82,'d2a4d288-c2bc-91cd-76c1-bc559052a4ac',2017,2017,'00000000-0000-0000-0000-000000000000',1,'MEntBegin',-1,2,-1,'',5,-1,1,0,-1,12,-1,-1,0,0,'','','','','<div class="listform toolbar-opt">
<ul style="WIDTH: 986px" class="itemUl1 repUl1" groupid="1" isgroup="1" istoolbar="1" islonly="1" isrple="1">
<li style="width: 60px; height: 30px; position: static;" class="putCont" scroll="no"><input id="ckb_CheckAllListF_2017" class="chPut" onclick="javascript:DcxCom.CheckedAll(this,2017,''ListF_'');" value="on" type="checkbox" rel="chkall"> <label for="ckb_CheckAllListF_2017">全选</label></li>
<li style="width: 70px; height: 30px; position: static;" class="listTit" scroll="no" areaid="15"><a id="ListF_2017_btn_buildNew" class="playAll" title="保   存" onclick="javascript:DcxRun.ListF_2017.SubmitForm();" href="javascript:void(0);">保 存</a></li>
<li style="width: 70px; height: 30px; position: static;" class="listTit" scroll="no" areaid="16"><a id="ListF_2017_btn_buildNew" class="lMdBtn" title="添加1行" onclick="javascript:DcxForm.AddRow(this,1,2017,''ListF_'');" href="javascript:void(0);">添加1行</a></li>
<li style="width: 70px; height: 30px; position: static;" class="listTit" scroll="no" areaid="17"><a id="ListF_2017_btn_buildNew" class="lMdBtn" title="添加5行" onclick="javascript:DcxForm.AddRow(this,5,2017,''ListF_'');" href="javascript:void(0);">添加5行</a></li>
<li style="width: 70px; height: 30px; position: static;" class="listTit" scroll="no" areaid="18"><a id="ListF_2017_deletebut" class="playAll" title="删   除" onclick="javascript:DcxForm.DeleteRow(this,2017,''ListF_'');" href="javascript:void(0);">删 除</a></li>
<li style="width: 70px; height: 30px; position: static;" class="listTit" scroll="no" areaid="19"><a id="ListF_2017_deletebut" class="lMdBtn" title="删除全部" onclick="javascript:DcxForm.DeleteAllRow(this,2017,''ListF_'');" href="javascript:void(0);">删除全部</a></li>
<li style="width: 70px; height: 30px; position: static;" class="listTit" scroll="no" areaid="21"><a id="ListF_2017_refreshbut" class="lMdBtn" title="刷   新" onclick="javascript:DcxCom.ReLoad(2017,''ListF_'');" href="javascript:void(0);">刷 新</a></li>
<li style="position: static; width: 70px; height: 30px;" class="listTit" scroll="no" areaid="39" isselector="1"><span style="font-size:12px;"><strong><a class="lMdBtn" href="javascript:void(0);" onclick="javascript:ShowSelector(2017,''ListF_'');" title="批量选择"><span style="color: rgb(255, 0, 0);">批量选择</span></a></strong></span></li><!--分页栏-->
<li style="width: 280px; height: 30px; position: static;" id="li2_ListF_2017" class="listTit_page" scroll="no" areaid="22" ispage="1"><a id="ListF_2017_FirstPage" class="btn_page firstpage" title="首页" onclick="javascript:DcxSch.GetHtml(2017,''ListF_'',''h'');" href="javascript:void(0);" isfirstpage="1">首页</a> <a id="ListF_2017_PrevPage" class="btn_page prvpage" title="上一页" onclick="javascript:DcxSch.GetHtml(2017,''ListF_'',''p'');" href="javascript:void(0);" isprevpage="1">上一页</a> <span class="ddl_pageindex"><select id="ddl_ListF_2017_PageIndex" onchange="javascript:DcxSch.GetHtml(2017,''ListF_'',''a'',this);" isddlpage="1"></select> </span><a id="ListF_2017_NextPage" class="btn_page nextpage" title="下一页" onclick="javascript:DcxSch.GetHtml(2017,''ListF_'',''n'');" href="javascript:void(0);" isnextpage="1">下一页</a> <a id="ListF_2017_LastPage" class="btn_page lastpage" title="最后一页" onclick="javascript:DcxSch.GetHtml(2017,''ListF_'',''t'');" href="javascript:void(0);" islastpage="1">最后一页</a> <span class="page">第</span> <span id="ListF_2017_CurrentPage_lbl" class="page_data" iscurpage="1">0</span> <span class="page">页,共</span>&nbsp; <span id="ListF_2017_PageCount_lbl" class="page_data" ispagecount="1">0</span> <span class="page">页 </span><span id="ListF_2017_RecCount_lbl" class="page_data" isrecortcount="1">0</span> <span class="page">条记录</span> </li></ul></div>
<div class="listform listarea">
<div class="lf-head">
<ul style="width: 986px;" class="ul-listtitle" groupid="2" isgroup="1" islonly="1" islisthead="1" isrple="1">
<li style="position: static; width: 70px; float: left; height: 30px; clear: none;" class="li-head-item" scroll="no" areaid="32"><label class="head-label" istitle="1">序号 </label></li>
<li style="width: 90px; float: left; height: 30px; clear: none; position: static;" class="li-head-item" scroll="no" areaid="23"><label class="head-label" istitle="1">网页Id </label></li>
<li style="width: 130px; float: left; height: 30px; clear: none; position: static;" class="li-head-item" scroll="no" areaid="24"><label class="head-label" istitle="1">网页名称 </label></li>
<li style="position: static; width: 170px; float: left; height: 30px; clear: none;" class="li-head-item" scroll="no" areaid="40"><label class="head-label" istitle="1">网址Url </label></li>
<li style="width: 80px; float: left; height: 30px; clear: none; position: static;" class="li-head-item" scroll="no" areaid="31"><label class="head-label" istitle="1">是否在顶部 </label></li>
<li style="width: 90px; float: left; height: 30px; clear: none; position: static;" class="li-head-item" scroll="no" areaid="30"><label class="head-label" istitle="1">前面加分隔线 </label></li>
<li style="width: 170px; float: left; height: 30px; clear: none; position: static;" class="li-head-item" scroll="no" areaid="38"><label class="head-label" istitle="1">小图标</label></li>
<li style="width: 170px; float: left; height: 30px; clear: right; position: static;" class="li-head-item" scroll="no" areaid="37"><label class="head-label" istitle="1">创建者 </label></li></ul></div>
<div class="lf-body">','','','','','','',3,-1,-1,-1,1,'2017,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=82,[Form_EntId]=2017,[EntId]=2017,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[FieldName]='MEntBegin',[FieldDataTypeId]=-1,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=-1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=-1,[FieldTypeId]=12,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="listform toolbar-opt">
<ul style="WIDTH: 986px" class="itemUl1 repUl1" groupid="1" isgroup="1" istoolbar="1" islonly="1" isrple="1">
<li style="width: 60px; height: 30px; position: static;" class="putCont" scroll="no"><input id="ckb_CheckAllListF_2017" class="chPut" onclick="javascript:DcxCom.CheckedAll(this,2017,''ListF_'');" value="on" type="checkbox" rel="chkall"> <label for="ckb_CheckAllListF_2017">全选</label></li>
<li style="width: 70px; height: 30px; position: static;" class="listTit" scroll="no" areaid="15"><a id="ListF_2017_btn_buildNew" class="playAll" title="保   存" onclick="javascript:DcxRun.ListF_2017.SubmitForm();" href="javascript:void(0);">保 存</a></li>
<li style="width: 70px; height: 30px; position: static;" class="listTit" scroll="no" areaid="16"><a id="ListF_2017_btn_buildNew" class="lMdBtn" title="添加1行" onclick="javascript:DcxForm.AddRow(this,1,2017,''ListF_'');" href="javascript:void(0);">添加1行</a></li>
<li style="width: 70px; height: 30px; position: static;" class="listTit" scroll="no" areaid="17"><a id="ListF_2017_btn_buildNew" class="lMdBtn" title="添加5行" onclick="javascript:DcxForm.AddRow(this,5,2017,''ListF_'');" href="javascript:void(0);">添加5行</a></li>
<li style="width: 70px; height: 30px; position: static;" class="listTit" scroll="no" areaid="18"><a id="ListF_2017_deletebut" class="playAll" title="删   除" onclick="javascript:DcxForm.DeleteRow(this,2017,''ListF_'');" href="javascript:void(0);">删 除</a></li>
<li style="width: 70px; height: 30px; position: static;" class="listTit" scroll="no" areaid="19"><a id="ListF_2017_deletebut" class="lMdBtn" title="删除全部" onclick="javascript:DcxForm.DeleteAllRow(this,2017,''ListF_'');" href="javascript:void(0);">删除全部</a></li>
<li style="width: 70px; height: 30px; position: static;" class="listTit" scroll="no" areaid="21"><a id="ListF_2017_refreshbut" class="lMdBtn" title="刷   新" onclick="javascript:DcxCom.ReLoad(2017,''ListF_'');" href="javascript:void(0);">刷 新</a></li>
<li style="position: static; width: 70px; height: 30px;" class="listTit" scroll="no" areaid="39" isselector="1"><span style="font-size:12px;"><strong><a class="lMdBtn" href="javascript:void(0);" onclick="javascript:ShowSelector(2017,''ListF_'');" title="批量选择"><span style="color: rgb(255, 0, 0);">批量选择</span></a></strong></span></li><!--分页栏-->
<li style="width: 280px; height: 30px; position: static;" id="li2_ListF_2017" class="listTit_page" scroll="no" areaid="22" ispage="1"><a id="ListF_2017_FirstPage" class="btn_page firstpage" title="首页" onclick="javascript:DcxSch.GetHtml(2017,''ListF_'',''h'');" href="javascript:void(0);" isfirstpage="1">首页</a> <a id="ListF_2017_PrevPage" class="btn_page prvpage" title="上一页" onclick="javascript:DcxSch.GetHtml(2017,''ListF_'',''p'');" href="javascript:void(0);" isprevpage="1">上一页</a> <span class="ddl_pageindex"><select id="ddl_ListF_2017_PageIndex" onchange="javascript:DcxSch.GetHtml(2017,''ListF_'',''a'',this);" isddlpage="1"></select> </span><a id="ListF_2017_NextPage" class="btn_page nextpage" title="下一页" onclick="javascript:DcxSch.GetHtml(2017,''ListF_'',''n'');" href="javascript:void(0);" isnextpage="1">下一页</a> <a id="ListF_2017_LastPage" class="btn_page lastpage" title="最后一页" onclick="javascript:DcxSch.GetHtml(2017,''ListF_'',''t'');" href="javascript:void(0);" islastpage="1">最后一页</a> <span class="page">第</span> <span id="ListF_2017_CurrentPage_lbl" class="page_data" iscurpage="1">0</span> <span class="page">页,共</span>&nbsp; <span id="ListF_2017_PageCount_lbl" class="page_data" ispagecount="1">0</span> <span class="page">页 </span><span id="ListF_2017_RecCount_lbl" class="page_data" isrecortcount="1">0</span> <span class="page">条记录</span> </li></ul></div>
<div class="listform listarea">
<div class="lf-head">
<ul style="width: 986px;" class="ul-listtitle" groupid="2" isgroup="1" islonly="1" islisthead="1" isrple="1">
<li style="position: static; width: 70px; float: left; height: 30px; clear: none;" class="li-head-item" scroll="no" areaid="32"><label class="head-label" istitle="1">序号 </label></li>
<li style="width: 90px; float: left; height: 30px; clear: none; position: static;" class="li-head-item" scroll="no" areaid="23"><label class="head-label" istitle="1">网页Id </label></li>
<li style="width: 130px; float: left; height: 30px; clear: none; position: static;" class="li-head-item" scroll="no" areaid="24"><label class="head-label" istitle="1">网页名称 </label></li>
<li style="position: static; width: 170px; float: left; height: 30px; clear: none;" class="li-head-item" scroll="no" areaid="40"><label class="head-label" istitle="1">网址Url </label></li>
<li style="width: 80px; float: left; height: 30px; clear: none; position: static;" class="li-head-item" scroll="no" areaid="31"><label class="head-label" istitle="1">是否在顶部 </label></li>
<li style="width: 90px; float: left; height: 30px; clear: none; position: static;" class="li-head-item" scroll="no" areaid="30"><label class="head-label" istitle="1">前面加分隔线 </label></li>
<li style="width: 170px; float: left; height: 30px; clear: none; position: static;" class="li-head-item" scroll="no" areaid="38"><label class="head-label" istitle="1">小图标</label></li>
<li style="width: 170px; float: left; height: 30px; clear: right; position: static;" class="li-head-item" scroll="no" areaid="37"><label class="head-label" istitle="1">创建者 </label></li></ul></div>
<div class="lf-body">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='',[CtrlbackHtml]='',[CtrlLastHtml]='',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2017,' where  [FldUId]='d2a4d288-c2bc-91cd-76c1-bc559052a4ac' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='60e9ed24-b4c0-13cd-588c-85faca719b0c'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'60e9ed24-b4c0-13cd-588c-85faca719b0c',2017,2017,'00000000-0000-0000-0000-000000000000',2,'SortOrder',1,1,5,'1',5,1,1,0,1,1,-1,-1,1,0,'','','','','style="width: 986px;" class="ul-listfield" groupid="3" isgroup="1" isrple="1">
<li style="position: static; width: 70px; float: left; height: 30px; clear: none;" class="li-listfield" scroll="no" areaid="29">
<div class="list-field"><span class="form-ctr" isfcontain="1">','','','<input  id="d2017_SortOrder%trindex%" CtrlPrex="ListF_"','type="text" class="lt-txt"  style="width:50px;" AutoAddDigit=1 Digit="2" onchange ="javascript:DcxForm.ListTxtChange(this,2017,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2017,''ListF_'',2017,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2017,''ListF_'',2017,true);" EntId="2017" IsField=1 DBField=1 IsPost=1 FieldName="SortOrder" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="4" vlk=0    value="','" />','',3,-1,-1,-1,1,'2017,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=4,[Form_EntId]=2017,[EntId]=2017,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[FieldName]='SortOrder',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=5,[DefaultValue]='1',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='style="width: 986px;" class="ul-listfield" groupid="3" isgroup="1" isrple="1">
<li style="position: static; width: 70px; float: left; height: 30px; clear: none;" class="li-listfield" scroll="no" areaid="29">
<div class="list-field"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<input  id="d2017_SortOrder%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='type="text" class="lt-txt"  style="width:50px;" AutoAddDigit=1 Digit="2" onchange ="javascript:DcxForm.ListTxtChange(this,2017,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2017,''ListF_'',2017,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2017,''ListF_'',2017,true);" EntId="2017" IsField=1 DBField=1 IsPost=1 FieldName="SortOrder" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="4" vlk=0    value="',[CtrlbackHtml]='" />',[CtrlLastHtml]='',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2017,' where  [FldUId]='60e9ed24-b4c0-13cd-588c-85faca719b0c' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='3e3e236c-0637-f346-6e2f-a8f4d2468bd0'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'3e3e236c-0637-f346-6e2f-a8f4d2468bd0',2017,2017,'00000000-0000-0000-0000-000000000000',3,'MenuId',1,1,4,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span> </div></li>
<li style="width: 90px; float: left; height: 30px; clear: none; position: static;" class="li-listfield" scroll="no" areaid="25">
<div class="list-field"><span class="form-ctr" isfcontain="1">','','','<input  id="d2017_MenuId%trindex%" CtrlPrex="ListF_"','type="text" class="lt-txt"  style="width:70px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2017,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2017,''ListF_'',2017,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2017,''ListF_'',2017,true);" EntId="2017" IsField=1 DBField=1 IsPost=1 FieldName="MenuId" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="2" vlk=0    value="','" />','',3,-1,-1,-1,1,'2017,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=2,[Form_EntId]=2017,[EntId]=2017,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[FieldName]='MenuId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=4,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="width: 90px; float: left; height: 30px; clear: none; position: static;" class="li-listfield" scroll="no" areaid="25">
<div class="list-field"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<input  id="d2017_MenuId%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='type="text" class="lt-txt"  style="width:70px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2017,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2017,''ListF_'',2017,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2017,''ListF_'',2017,true);" EntId="2017" IsField=1 DBField=1 IsPost=1 FieldName="MenuId" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="2" vlk=0    value="',[CtrlbackHtml]='" />',[CtrlLastHtml]='',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2017,' where  [FldUId]='3e3e236c-0637-f346-6e2f-a8f4d2468bd0' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='8e50db51-7b77-de45-c3bd-01bf268228d7'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'8e50db51-7b77-de45-c3bd-01bf268228d7',2017,2017,'00000000-0000-0000-0000-000000000000',4,'MenuName',2,2,8,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span><div iserr="1" class="form-vld"></div> </div></li>
<li style="width: 130px; float: left; height: 30px; clear: none; position: static;" class="li-listfield" scroll="no" areaid="26">
<div class="list-field"><span class="form-ctr" isfcontain="1">','','','<input  id="d2017_MenuName%trindex%" CtrlPrex="ListF_"','type="text" class="lt-txt"  style="width:110px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2017,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2017,''ListF_'',2017,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2017,''ListF_'',2017,true);" EntId="2017" IsField=1 DBField=1 IsPost=1 FieldName="MenuName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="3" vlk=0    value="','" />','',3,-1,-1,-1,1,'2017,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=3,[Form_EntId]=2017,[EntId]=2017,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=4,[FieldName]='MenuName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=8,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span><div iserr="1" class="form-vld"></div> </div></li>
<li style="width: 130px; float: left; height: 30px; clear: none; position: static;" class="li-listfield" scroll="no" areaid="26">
<div class="list-field"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<input  id="d2017_MenuName%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='type="text" class="lt-txt"  style="width:110px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2017,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2017,''ListF_'',2017,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2017,''ListF_'',2017,true);" EntId="2017" IsField=1 DBField=1 IsPost=1 FieldName="MenuName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="3" vlk=0    value="',[CtrlbackHtml]='" />',[CtrlLastHtml]='',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2017,' where  [FldUId]='8e50db51-7b77-de45-c3bd-01bf268228d7' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='2c04a740-87d6-15aa-63c7-5a5e4f23a27d'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(17,'2c04a740-87d6-15aa-63c7-5a5e4f23a27d',2017,2017,'00000000-0000-0000-0000-000000000000',5,'ProPath',2,2,11,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span><div iserr="1" class="form-vld"></div> </div></li>
<li style="position: static; width: 170px; float: left; height: 30px; clear: none;" class="li-listfield" scroll="no" areaid="41"><div class="list-field">
	<span class="form-ctr" isfcontain="1">','','','<input  id="d2017_ProPath%trindex%" CtrlPrex="ListF_"','type="text" class="lt-txt"  style="width:150px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2017,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2017,''ListF_'',2017,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2017,''ListF_'',2017,true);" EntId="2017" IsField=1 DBField=1 IsPost=1 FieldName="ProPath" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="17" vlk=0    value="','" />','',3,-1,-1,-1,1,'2017,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=17,[Form_EntId]=2017,[EntId]=2017,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=5,[FieldName]='ProPath',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=11,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span><div iserr="1" class="form-vld"></div> </div></li>
<li style="position: static; width: 170px; float: left; height: 30px; clear: none;" class="li-listfield" scroll="no" areaid="41"><div class="list-field">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<input  id="d2017_ProPath%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='type="text" class="lt-txt"  style="width:150px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2017,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2017,''ListF_'',2017,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2017,''ListF_'',2017,true);" EntId="2017" IsField=1 DBField=1 IsPost=1 FieldName="ProPath" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="17" vlk=0    value="',[CtrlbackHtml]='" />',[CtrlLastHtml]='',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2017,' where  [FldUId]='2c04a740-87d6-15aa-63c7-5a5e4f23a27d' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='8acacadd-a774-21fb-646d-5f5323230e01'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'8acacadd-a774-21fb-646d-5f5323230e01',2017,2017,'00000000-0000-0000-0000-000000000000',6,'ShowAtTop',4,4,6,'',1,6,1,0,13,1,-1,-1,1,0,'','','','','</span>

</div>
</li>
<li style="width: 80px; float: left; height: 30px; clear: none; position: static;" class="li-listfield" scroll="no" areaid="28">
<div class="list-field"><span class="form-ctr" isfcontain="1">','','','<div class="form-radio" ><span class="form-radio-item" ><input class="radio" id="d2017_ShowAtTop%trindex%" CtrlPrex="ListF_"','type="checkbox" yesv=''true'' nov=''false''  onclick ="javascript:DcxForm.ClickCkbLf(this,2017,''ListF_'');if(!DcxVld.Validate(this,2017,''ListF_'',2017,true))return false;" EntId="2017" IsField=1 DBField=1 IsPost=1 FieldName="ShowAtTop" dType="4" Vtp="1" RDT="4" Isc="1" RId="6" CId="13" FId="5" vlk=0    />','<label for="d2017_ShowAtTop%trindex%">置顶</label></span></div>','',3,-1,-1,-1,1,'2017,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=5,[Form_EntId]=2017,[EntId]=2017,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=6,[FieldName]='ShowAtTop',[FieldDataTypeId]=4,[RunDataTypeId]=4,[DBFieldId]=6,[DefaultValue]='',[ValueType]=1,[RunValueType]=6,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=13,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

</div>
</li>
<li style="width: 80px; float: left; height: 30px; clear: none; position: static;" class="li-listfield" scroll="no" areaid="28">
<div class="list-field"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<div class="form-radio" ><span class="form-radio-item" ><input class="radio" id="d2017_ShowAtTop%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='type="checkbox" yesv=''true'' nov=''false''  onclick ="javascript:DcxForm.ClickCkbLf(this,2017,''ListF_'');if(!DcxVld.Validate(this,2017,''ListF_'',2017,true))return false;" EntId="2017" IsField=1 DBField=1 IsPost=1 FieldName="ShowAtTop" dType="4" Vtp="1" RDT="4" Isc="1" RId="6" CId="13" FId="5" vlk=0    />',[CtrlbackHtml]='<label for="d2017_ShowAtTop%trindex%">置顶</label></span></div>',[CtrlLastHtml]='',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2017,' where  [FldUId]='8acacadd-a774-21fb-646d-5f5323230e01' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='106ce973-56c7-84bc-f597-c57a33e2c967'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'106ce973-56c7-84bc-f597-c57a33e2c967',2017,2017,'00000000-0000-0000-0000-000000000000',7,'AfterSeparate',4,4,7,'',1,6,1,0,13,1,-1,-1,1,0,'','','','','</span> </div></li>
<li style="width: 90px; float: left; height: 30px; clear: none; position: static;" class="li-listfield" scroll="no" areaid="35">
<div class="list-field"><span class="form-ctr" isfcontain="1">','','','<div class="form-radio" ><span class="form-radio-item" ><input class="radio" id="d2017_AfterSeparate%trindex%" CtrlPrex="ListF_"','type="checkbox" yesv=''true'' nov=''false'' checked=''checked''  onclick ="javascript:DcxForm.ClickCkbLf(this,2017,''ListF_'');if(!DcxVld.Validate(this,2017,''ListF_'',2017,true))return false;" EntId="2017" IsField=1 DBField=1 IsPost=1 FieldName="AfterSeparate" dType="4" Vtp="1" RDT="4" Isc="1" RId="6" CId="13" FId="6" vlk=0    />','<label for="d2017_AfterSeparate%trindex%">不加</label></span></div>','',3,-1,-1,-1,1,'2017,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=6,[Form_EntId]=2017,[EntId]=2017,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=7,[FieldName]='AfterSeparate',[FieldDataTypeId]=4,[RunDataTypeId]=4,[DBFieldId]=7,[DefaultValue]='',[ValueType]=1,[RunValueType]=6,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=13,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="width: 90px; float: left; height: 30px; clear: none; position: static;" class="li-listfield" scroll="no" areaid="35">
<div class="list-field"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<div class="form-radio" ><span class="form-radio-item" ><input class="radio" id="d2017_AfterSeparate%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='type="checkbox" yesv=''true'' nov=''false'' checked=''checked''  onclick ="javascript:DcxForm.ClickCkbLf(this,2017,''ListF_'');if(!DcxVld.Validate(this,2017,''ListF_'',2017,true))return false;" EntId="2017" IsField=1 DBField=1 IsPost=1 FieldName="AfterSeparate" dType="4" Vtp="1" RDT="4" Isc="1" RId="6" CId="13" FId="6" vlk=0    />',[CtrlbackHtml]='<label for="d2017_AfterSeparate%trindex%">不加</label></span></div>',[CtrlLastHtml]='',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2017,' where  [FldUId]='106ce973-56c7-84bc-f597-c57a33e2c967' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='e81f2ec7-fbc2-a33e-203e-617a34ff8f93'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'e81f2ec7-fbc2-a33e-203e-617a34ff8f93',2017,2017,'00000000-0000-0000-0000-000000000000',8,'ImgPath',14,2,10,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span> </div></li>
<li style="width: 170px; float: left; height: 30px; clear: none; position: static;" class="li-listfield" scroll="no" areaid="36">
<div class="list-field"><span class="form-ctr" isfcontain="1">','','','<input  id="d2017_ImgPath%trindex%" CtrlPrex="ListF_"','type="text" class="lt-txt"  style="width:150px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2017,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2017,''ListF_'',2017,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2017,''ListF_'',2017,true);" EntId="2017" IsField=1 DBField=1 IsPost=1 FieldName="ImgPath" dType="14" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="7" vlk=0    value="','" />','',3,-1,-1,-1,1,'2017,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=7,[Form_EntId]=2017,[EntId]=2017,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=8,[FieldName]='ImgPath',[FieldDataTypeId]=14,[RunDataTypeId]=2,[DBFieldId]=10,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="width: 170px; float: left; height: 30px; clear: none; position: static;" class="li-listfield" scroll="no" areaid="36">
<div class="list-field"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<input  id="d2017_ImgPath%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='type="text" class="lt-txt"  style="width:150px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2017,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2017,''ListF_'',2017,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2017,''ListF_'',2017,true);" EntId="2017" IsField=1 DBField=1 IsPost=1 FieldName="ImgPath" dType="14" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="7" vlk=0    value="',[CtrlbackHtml]='" />',[CtrlLastHtml]='',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2017,' where  [FldUId]='e81f2ec7-fbc2-a33e-203e-617a34ff8f93' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='17416079-f52e-866c-f4d6-4f07d513338f'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'17416079-f52e-866c-f4d6-4f07d513338f',2017,2017,'00000000-0000-0000-0000-000000000000',9,'UserId',1,1,2,'{$userId}',0,9,1,0,4,1,-1,-1,1,1,'','','','{$userId},','</span>

<div iserr="1" class="form-vld"></div> </div></li>
<li style="width: 170px; float: left; height: 30px; clear: right; position: static;" class="li-listfield" scroll="no" areaid="27">
<div class="list-field"><span class="form-ctr" isfcontain="1">','','','<span id="d2017_UserId%trindex%" CtrlPrex="ListF_"','class="form-lbl" style="width:150px;" IsForField=1 EntId="2017" CId="4" FId="1" Vtp="0"  >','</span><input id="d2017_UserId%trindex%_hid" CtrlPrex="ListF_" type="hidden"  EntId="2017" IsField=1 DBField=1 IsPost=1 FieldName="UserId" dType="1" Vtp="0" RDT="1" Isc="1" RId="9" CId="4" FId="1" vlk=1   Digit="-1" value="','" />',3,-1,-1,-1,1,'2017,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=1,[Form_EntId]=2017,[EntId]=2017,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=9,[FieldName]='UserId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=2,[DefaultValue]='{$userId}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=1,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$userId},',[BeforeHtml]='</span>

<div iserr="1" class="form-vld"></div> </div></li>
<li style="width: 170px; float: left; height: 30px; clear: right; position: static;" class="li-listfield" scroll="no" areaid="27">
<div class="list-field"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<span id="d2017_UserId%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='class="form-lbl" style="width:150px;" IsForField=1 EntId="2017" CId="4" FId="1" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d2017_UserId%trindex%_hid" CtrlPrex="ListF_" type="hidden"  EntId="2017" IsField=1 DBField=1 IsPost=1 FieldName="UserId" dType="1" Vtp="0" RDT="1" Isc="1" RId="9" CId="4" FId="1" vlk=1   Digit="-1" value="',[CtrlLastHtml]='" />',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2017,' where  [FldUId]='17416079-f52e-866c-f4d6-4f07d513338f' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='68328294-3b27-d070-611a-d7476874c227'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(83,'68328294-3b27-d070-611a-d7476874c227',2017,2017,'00000000-0000-0000-0000-000000000000',10,'MEntEnd',-1,2,-1,'',5,-1,1,0,-1,13,-1,-1,0,0,'','','','','</span> </div></li></ul>','</div></div><!-- 结束 -->','','','','','',3,-1,-1,-1,1,'2017,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=83,[Form_EntId]=2017,[EntId]=2017,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=10,[FieldName]='MEntEnd',[FieldDataTypeId]=-1,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=-1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=-1,[FieldTypeId]=13,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li></ul>',[LastHtml]='</div></div><!-- 结束 -->',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='',[CtrlbackHtml]='',[CtrlLastHtml]='',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2017,' where  [FldUId]='68328294-3b27-d070-611a-d7476874c227' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=273

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=273  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(273,null,'Dcx_NavMenu','Dcx_NavMenu',1,0,0,0,0,0,29,1,3,'admin','2013-12-15 17:32:19',3,'admin','2013-12-15 17:32:19',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='Dcx_NavMenu',[DBTableByName]='Dcx_NavMenu',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=29,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:19',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:19',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=273 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=273  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17192,1,29,273,'int',1,1,1,'Dcx_NavMenu','Id','Id','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_NavMenu',[FieldName]='Id',[FieldByname]='Id',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=273  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=273  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17193,2,29,273,'int',1,1,1,'Dcx_NavMenu','UserId','UserId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_NavMenu',[FieldName]='UserId',[FieldByname]='UserId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=273  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=273  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17194,3,29,273,'varchar',2,1,1,'Dcx_NavMenu','UserName','UserName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_NavMenu',[FieldName]='UserName',[FieldByname]='UserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=273  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=273  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17195,4,29,273,'int',1,1,1,'Dcx_NavMenu','MenuId','MenuId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_NavMenu',[FieldName]='MenuId',[FieldByname]='MenuId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=273  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=273  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17196,5,29,273,'int',1,1,1,'Dcx_NavMenu','SortOrder','SortOrder','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_NavMenu',[FieldName]='SortOrder',[FieldByname]='SortOrder',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=273  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=273  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17197,6,29,273,'bit',4,1,1,'Dcx_NavMenu','ShowAtTop','ShowAtTop','1',0,0,0,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_NavMenu',[FieldName]='ShowAtTop',[FieldByname]='ShowAtTop',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=273  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=273  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17198,7,29,273,'bit',4,1,1,'Dcx_NavMenu','AfterSeparate','AfterSeparate','0',0,0,0,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_NavMenu',[FieldName]='AfterSeparate',[FieldByname]='AfterSeparate',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=273  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=273  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17199,8,29,273,'varchar',2,1,1,'Dcx_NavMenu','MenuName','MenuName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_NavMenu',[FieldName]='MenuName',[FieldByname]='MenuName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=273  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=273  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17200,9,29,273,'int',1,1,1,'Dcx_NavMenu','ParentId','ParentId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_NavMenu',[FieldName]='ParentId',[FieldByname]='ParentId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=273  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=273  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17201,10,29,273,'varchar',2,1,1,'Dcx_NavMenu','ImgPath','ImgPath','',0,0,1,300,300,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_NavMenu',[FieldName]='ImgPath',[FieldByname]='ImgPath',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=300,[Precision]=300,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=273  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=273  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17202,11,29,273,'varchar',2,1,1,'Dcx_NavMenu','ProPath','ProPath','',0,0,1,300,300,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_NavMenu',[FieldName]='ProPath',[FieldByname]='ProPath',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=300,[Precision]=300,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=273  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=273  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17203,12,29,273,'int',1,1,1,'Dcx_NavMenu','AccountId','AccountId','1',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_NavMenu',[FieldName]='AccountId',[FieldByname]='AccountId',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=273  and  [FieldId]=12 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 



Delete from [Dcx_EntityPrivilege]  where [EntId]=2018

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2018  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11055,3293,2018,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=3293,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2018  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2018

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2018  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20447,29,3293,2018,67,2,9,2,3,2,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3293,[TemplateId]=67,[ModuleId]=9,[GroupId]=2,[AreaId]=3,[ShowMode]=2,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2018  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2018  and  [ModuleTypeId]=5  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20448,29,3293,2018,67,5,25,2,4,2,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3293,[TemplateId]=67,[ModuleId]=25,[GroupId]=2,[AreaId]=4,[ShowMode]=2,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2018  and  [ModuleTypeId]=5 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2018  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20449,29,3293,2018,67,1,1,2,5,2,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3293,[TemplateId]=67,[ModuleId]=1,[GroupId]=2,[AreaId]=5,[ShowMode]=2,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2018  and  [ModuleTypeId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_SearchForm_Run]  where [EntId]=2018

--Dcx_SearchForm_Run
      if (select count(1) from [Dcx_SearchForm_Run] where  [EntId]=2018  )<1 
      begin 
           Insert into [Dcx_SearchForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('29cd8bf7-2717-2234-a224-9bf55ed49a26','网页列表',2018,9,'','',0,'<!--/Js/ui/jquery.ui.core.js-->
<!--/Js/ui/jquery.ui.widget.js-->
<!--/Js/ui/jquery.ui.mouse.js-->
<!--/Js/ui/jquery.ui.sortable.js-->
<script src="/Js/Control/LTreeRList/LTreeRList.js"></script>','','DcxRun.SearchF_2018= {"MenuId":3293,"MEntId":2018,"EntName":"网页列表","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2018":{"EntId":2018,"KeyFieldValue":"","DBTableName":"","KeyField":"MenuId","KeydtId":2,"JoinKeyField":"MenuId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_2018.EntMsg.E2018.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_Menu","EntId":2018,"KeyField":"MenuId","MKeyField":"MenuId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"MenuName":{"DtId":2,"DB":1,"CId":1,"FL":150},"ParentId":{"DtId":1,"DB":1,"CId":40,"FL":4}},"Data":{"Row":[]}};
}
DcxRun.SearchF_2018.EntMsg.E2018.GetDataRowModel=function()
{
    return {"MenuName":"","ParentId":0,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"MenuId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_2018.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2018,''SearchF_'',buildNew,closeDlg);

}','',10,'','','','2018*MenuId*2*MenuId*2*Dcx_Menu*网页列表',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-10-7 16:40:34',3,'admin','2013-8-22 5:58:40',1)
      end
      else 
      begin 
           update [Dcx_SearchForm_Run] set [FormId]='29cd8bf7-2717-2234-a224-9bf55ed49a26',[FormName]='网页列表',[ModuleId]=9,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<!--/Js/ui/jquery.ui.core.js-->
<!--/Js/ui/jquery.ui.widget.js-->
<!--/Js/ui/jquery.ui.mouse.js-->
<!--/Js/ui/jquery.ui.sortable.js-->
<script src="/Js/Control/LTreeRList/LTreeRList.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.SearchF_2018= {"MenuId":3293,"MEntId":2018,"EntName":"网页列表","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2018":{"EntId":2018,"KeyFieldValue":"","DBTableName":"","KeyField":"MenuId","KeydtId":2,"JoinKeyField":"MenuId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_2018.EntMsg.E2018.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_Menu","EntId":2018,"KeyField":"MenuId","MKeyField":"MenuId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"MenuName":{"DtId":2,"DB":1,"CId":1,"FL":150},"ParentId":{"DtId":1,"DB":1,"CId":40,"FL":4}},"Data":{"Row":[]}};
}
DcxRun.SearchF_2018.EntMsg.E2018.GetDataRowModel=function()
{
    return {"MenuName":"","ParentId":0,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"MenuId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_2018.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2018,''SearchF_'',buildNew,closeDlg);

}',[LoadingSql]='',[PageSize]=10,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='2018*MenuId*2*MenuId*2*Dcx_Menu*网页列表',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-10-7 16:40:34',[EditorId]=3,[Editor]='admin',[EditTime]='2013-8-22 5:58:40',[AccountId]=1 where  [EntId]=2018 
      end




--Dcx_SearchFormField_Run
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='ec3f4a57-9b64-b4b6-ebd7-287bbb8cab0a'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'ec3f4a57-9b64-b4b6-ebd7-287bbb8cab0a',2018,2018,'00000000-0000-0000-0000-000000000000',1,'=','MenuName',2,2,2,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','<div class="searchform">
<fieldset class="searchform-fieldset">
<legend class="searchform-legend">
<ul isgroup="1" groupid="1" class="ul-title" isrple="1">
<li areaid="6" class="li-title-area li-title-img" style="position: static;" scroll="no">
<img src="/css/style/default/module/search/images/gray/searchtitle.png" class="title-img">
</li>
<li areaid="7" class="li-title-area li-title" style="position: static;" scroll="no">
快速搜索
</li>
</ul>
</legend>
<ul isgroup="1" groupid="2" class="ul-group w720" isrple="1">
<li areaid="8" class="li-area w240 h32" style="width: 270px; height: 32px; position: static;" scroll="no"><label class="area-title pad7" fldid="1" istitle="1">名称</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2018_MenuName"   type="text" class="form-txt"  style="width:150px;" EntId="2018" IsField=1 DBField=1 IsPost=1 FieldName="MenuName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="="  value="','"/>','',1,-1,-1,-1,-1,0,'2018,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=1,[Form_EntId]=2018,[EntId]=2018,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[CompareOperatorType]='=',[FieldName]='MenuName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=2,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="searchform">
<fieldset class="searchform-fieldset">
<legend class="searchform-legend">
<ul isgroup="1" groupid="1" class="ul-title" isrple="1">
<li areaid="6" class="li-title-area li-title-img" style="position: static;" scroll="no">
<img src="/css/style/default/module/search/images/gray/searchtitle.png" class="title-img">
</li>
<li areaid="7" class="li-title-area li-title" style="position: static;" scroll="no">
快速搜索
</li>
</ul>
</legend>
<ul isgroup="1" groupid="2" class="ul-group w720" isrple="1">
<li areaid="8" class="li-area w240 h32" style="width: 270px; height: 32px; position: static;" scroll="no"><label class="area-title pad7" fldid="1" istitle="1">名称</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2018_MenuName"   type="text" class="form-txt"  style="width:150px;" EntId="2018" IsField=1 DBField=1 IsPost=1 FieldName="MenuName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="="  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2018,' where  [FldUId]='ec3f4a57-9b64-b4b6-ebd7-287bbb8cab0a' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='138e1286-6ff1-4231-0de0-7a83e3e77478'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'138e1286-6ff1-4231-0de0-7a83e3e77478',2018,2018,'00000000-0000-0000-0000-000000000000',2,'=','ParentId',1,1,5,'0',5,2,1,0,40,1,-1,14,1,0,'','','','','</span>
</div>
</li>
<li areaid="9" class="li-area w240 h32" style="width: 270px; height: 32px; position: static;" scroll="no"><label class="area-title pad7" fldid="2" istitle="1">父级</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','</span>
</div>
</li>
<li areaid="10" style="clear: right; float: none; position: static;" class="li-area w120 h32" scroll="no">
<div class="field-content pad4 search-btn-div">
  <a id="2018_searchBT" class="search-btn" href="javascript:void(0);" onclick="javascript:return VL_Search(2018);">
  开始搜索</a>
</div>
</li>
</ul>
</fieldset>
</div>','','','<div id="d2018_ParentId" class="form-ddl" style="" IsForField=1 EntId="2018" FId="2" Vtp="5" RId="2" Isc="1" CId="40" FieldName="ParentId" ><input  id="d2018_ParentId_Text" type="text" class="form-ddl-txt"  CId="40" FId="2" Vtp="5"  RId="2" Isc="1"  style="width:150px;" onclick ="javascript:DcxTree.ShowDialogAf(this,14,2018,''ParentId'',false);" onkeyup ="javascript:DcxTree.ShowDialogAf(this,14,2018,''ParentId'',true);" value="','" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2018_ParentId_hid" type="hidden"  EntId="2018" IsField=1 DBField=1 IsPost=1 FieldName="ParentId" dType="1" Vtp="5" RDT="1" Isc="1" RId="2" CId="40" FId="2" vlk=0   TId=14  Cpre="="  value="','" />',1,-1,-1,-1,-1,0,'2018,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=2,[Form_EntId]=2018,[EntId]=2018,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[CompareOperatorType]='=',[FieldName]='ParentId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=5,[DefaultValue]='0',[ValueType]=5,[RunValueType]=2,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=40,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=14,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="9" class="li-area w240 h32" style="width: 270px; height: 32px; position: static;" scroll="no"><label class="area-title pad7" fldid="2" istitle="1">父级</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
</div>
</li>
<li areaid="10" style="clear: right; float: none; position: static;" class="li-area w120 h32" scroll="no">
<div class="field-content pad4 search-btn-div">
  <a id="2018_searchBT" class="search-btn" href="javascript:void(0);" onclick="javascript:return VL_Search(2018);">
  开始搜索</a>
</div>
</li>
</ul>
</fieldset>
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2018_ParentId" class="form-ddl" style="" IsForField=1 EntId="2018" FId="2" Vtp="5" RId="2" Isc="1" CId="40" FieldName="ParentId" ><input  id="d2018_ParentId_Text" type="text" class="form-ddl-txt"  CId="40" FId="2" Vtp="5"  RId="2" Isc="1"  style="width:150px;" onclick ="javascript:DcxTree.ShowDialogAf(this,14,2018,''ParentId'',false);" onkeyup ="javascript:DcxTree.ShowDialogAf(this,14,2018,''ParentId'',true);" value="',[CtrlbackHtml]='" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2018_ParentId_hid" type="hidden"  EntId="2018" IsField=1 DBField=1 IsPost=1 FieldName="ParentId" dType="1" Vtp="5" RDT="1" Isc="1" RId="2" CId="40" FId="2" vlk=0   TId=14  Cpre="="  value="',[CtrlLastHtml]='" />',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2018,' where  [FldUId]='138e1286-6ff1-4231-0de0-7a83e3e77478' 
      end



Delete from [Dcx_ListReport_Run]  where [EntId]=2018

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=2018  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('efb478f5-834a-8d8d-8be5-088ef0ae4b3f','网页列表',2018,1,'','','<$2018$>select *  from (select row_number() over( order by [MenuId])as dcx_rowid,[MenuId],[MenuName],[ImgPath],[ProPath] from Dcx_Menu  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$2018$><$2018:Count$>select count([MenuId]) from Dcx_Menu where {$SearchArea}</$2018:Count$>',1,1,10,'DcxRun.ListR_2018= {"MenuId":3293,"MEntId":2018,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"网页列表","EntMsg":{"E2018":{"EntId":2018,"EntName":"网页列表","KeyFieldValue":"","DBTableName":"Dcx_Menu","KeyField":"MenuId","KeydtId":2,"JoinKeyField":"MenuId","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','2018*MenuId*2*MenuId*2*Dcx_Menu*网页列表',3,'','2012-10-7 17:31:06',3,'','2013-7-30 2:51:10',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='efb478f5-834a-8d8d-8be5-088ef0ae4b3f',[ReportName]='网页列表',[ModuleId]=1,[StaticHtml]='',[DIYJsCss]='',[LoadingSql]='<$2018$>select *  from (select row_number() over( order by [MenuId])as dcx_rowid,[MenuId],[MenuName],[ImgPath],[ProPath] from Dcx_Menu  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$2018$><$2018:Count$>select count([MenuId]) from Dcx_Menu where {$SearchArea}</$2018:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=10,[AutoPublicJs]='DcxRun.ListR_2018= {"MenuId":3293,"MEntId":2018,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"网页列表","EntMsg":{"E2018":{"EntId":2018,"EntName":"网页列表","KeyFieldValue":"","DBTableName":"Dcx_Menu","KeyField":"MenuId","KeydtId":2,"JoinKeyField":"MenuId","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='2018*MenuId*2*MenuId*2*Dcx_Menu*网页列表',[CreatorId]=3,[Creator]='',[CreateTime]='2012-10-7 17:31:06',[EditorId]=3,[Editor]='',[EditTime]='2013-7-30 2:51:10',[AccountId]=1 where  [EntId]=2018 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='e8cfe490-355a-3d78-7da7-9ab9b5d2bbde'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(13,'e8cfe490-355a-3d78-7da7-9ab9b5d2bbde',2018,2018,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<!-- 开始 -->
<!-- 功能键栏 -->
<div class="listreport toolbar-opt">
<!--功能键栏-->
<ul islonly="1" class="itemUl1 repUl1" istoolbar="1" isgroup="1" groupid="1" style="wIdth: 688px; " isrple="1"> <li class="putCont" style="width: 1px; height: 30px; position: static;">
 <input class="chPut" id="ckb_CheckAllListR_2018" onclick="javascript:DcxCom.CheckedAll(this,2018,''ListR_'');" type="checkbox" rel="chkall">
<label for="ckb_CheckAllListR_2018">全选</label></li>
<li areaid="12" class="listTit" style="position: static;">
</li>


<li areaid="16" class="listTit" style="width: 70px; height: 30px; position: static;"><a class="lMdBtn" href="javascript:void(0);" id="ListR_2018_refreshbut" onclick="javascript:DcxCom.ReLoad(2018,''ListR_'');" title="刷   新">刷 新</a></li>

<!--分页栏-->
<li ispage="1" areaid="17" class="listTit_page" style="width: 280px; height: 30px; position: static;" id="li2_ListR_2018">
<a id="ListR_2018_FirstPage" isfirstpage="1" class="btn_page firstpage" title="首页" onclick="javascript:DcxSch.GetHtml(2018,''ListR_'',''h'');" href="javascript:void(0);">首页</a>
<a id="ListR_2018_PrevPage" isprevpage="1" class="btn_page prvpage" title="上一页" onclick="javascript:DcxSch.GetHtml(2018,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex">
<select id="ddl_ListR_2018_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(2018,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_2018_NextPage" isnextpage="1" class="btn_page nextpage" onclick="javascript:DcxSch.GetHtml(2018,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<a id="ListR_2018_LastPage" islastpage="1" class="btn_page lastpage" onclick="javascript:DcxSch.GetHtml(2018,''ListR_'',''t'');" href="javascript:void(0);" title="最后一页">最后一页</a>
<span class="page">第</span>
<span id="ListR_2018_CurrentPage_lbl" iscurpage="1" class="page_data">0</span>
<span class="page">页,共</span>&nbsp; 
<span id="ListR_2018_PageCount_lbl" ispagecount="1" class="page_data">0</span>
<span class="page">页 </span>
<span id="ListR_2018_RecCount_lbl" isrecortcount="1" class="page_data">0</span>
<span class="page">条记录</span>
</li>
</ul>
</div>
<div class="listreport listarea">
<div class="lf-head">
<ul islonly="1" islisthead="1" isgroup="1" groupid="2" class="ul-listtitle" style="width: 784px;" isrple="1">
<li areaid="18" class="li-head-item" style="width: 98px; height: 30px; clear: none; float: left; position: static;"><label class="head-label" istitle="1">Id </label></li><li areaid="19" class="li-head-item" style="width: 170px; height: 30px; clear: none; float: left; position: static;"><label class="head-label" istitle="1">名称 </label></li><li areaid="29" class="li-head-item" style="width: 170px; height: 30px; clear: none; float: left; position: static;"><label class="head-label" istitle="1">小图标网址</label></li><li areaid="28" class="li-head-item" style="width: 338px; height: 30px; clear: right; float: left; position: static;"><label class="head-label" istitle="1">网址URL </label></li>    </ul>
</div>
<div class="lf-body">','',-1,3,-1,-1,1,'2018,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=13,[Report_EntId]=2018,[EntId]=2018,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<!-- 开始 -->
<!-- 功能键栏 -->
<div class="listreport toolbar-opt">
<!--功能键栏-->
<ul islonly="1" class="itemUl1 repUl1" istoolbar="1" isgroup="1" groupid="1" style="wIdth: 688px; " isrple="1"> <li class="putCont" style="width: 1px; height: 30px; position: static;">
 <input class="chPut" id="ckb_CheckAllListR_2018" onclick="javascript:DcxCom.CheckedAll(this,2018,''ListR_'');" type="checkbox" rel="chkall">
<label for="ckb_CheckAllListR_2018">全选</label></li>
<li areaid="12" class="listTit" style="position: static;">
</li>


<li areaid="16" class="listTit" style="width: 70px; height: 30px; position: static;"><a class="lMdBtn" href="javascript:void(0);" id="ListR_2018_refreshbut" onclick="javascript:DcxCom.ReLoad(2018,''ListR_'');" title="刷   新">刷 新</a></li>

<!--分页栏-->
<li ispage="1" areaid="17" class="listTit_page" style="width: 280px; height: 30px; position: static;" id="li2_ListR_2018">
<a id="ListR_2018_FirstPage" isfirstpage="1" class="btn_page firstpage" title="首页" onclick="javascript:DcxSch.GetHtml(2018,''ListR_'',''h'');" href="javascript:void(0);">首页</a>
<a id="ListR_2018_PrevPage" isprevpage="1" class="btn_page prvpage" title="上一页" onclick="javascript:DcxSch.GetHtml(2018,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex">
<select id="ddl_ListR_2018_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(2018,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_2018_NextPage" isnextpage="1" class="btn_page nextpage" onclick="javascript:DcxSch.GetHtml(2018,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<a id="ListR_2018_LastPage" islastpage="1" class="btn_page lastpage" onclick="javascript:DcxSch.GetHtml(2018,''ListR_'',''t'');" href="javascript:void(0);" title="最后一页">最后一页</a>
<span class="page">第</span>
<span id="ListR_2018_CurrentPage_lbl" iscurpage="1" class="page_data">0</span>
<span class="page">页,共</span>&nbsp; 
<span id="ListR_2018_PageCount_lbl" ispagecount="1" class="page_data">0</span>
<span class="page">页 </span>
<span id="ListR_2018_RecCount_lbl" isrecortcount="1" class="page_data">0</span>
<span class="page">条记录</span>
</li>
</ul>
</div>
<div class="listreport listarea">
<div class="lf-head">
<ul islonly="1" islisthead="1" isgroup="1" groupid="2" class="ul-listtitle" style="width: 784px;" isrple="1">
<li areaid="18" class="li-head-item" style="width: 98px; height: 30px; clear: none; float: left; position: static;"><label class="head-label" istitle="1">Id </label></li><li areaid="19" class="li-head-item" style="width: 170px; height: 30px; clear: none; float: left; position: static;"><label class="head-label" istitle="1">名称 </label></li><li areaid="29" class="li-head-item" style="width: 170px; height: 30px; clear: none; float: left; position: static;"><label class="head-label" istitle="1">小图标网址</label></li><li areaid="28" class="li-head-item" style="width: 338px; height: 30px; clear: right; float: left; position: static;"><label class="head-label" istitle="1">网址URL </label></li>    </ul>
</div>
<div class="lf-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=3,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2018,' where  [FldUId]='e8cfe490-355a-3d78-7da7-9ab9b5d2bbde' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='e2e34447-cae2-0a89-b891-61821d977ff4'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'e2e34447-cae2-0a89-b891-61821d977ff4',2018,2018,'00000000-0000-0000-0000-000000000000',1,'MenuId',2,1,'int',1,1,0,'','','','islonly="1" isgroup="1" groupid="3" class="ul-listfield" style="width: 784px;" isrple="1">
<li areaid="25" class="li-listfield" style="width: 98px; height: 30px; clear: none; float: left; position: static;"><div class="list-field">
	<span isfield="1" entid="2018" fieldname="MenuId" fldid="4" columntypeid="1" class="form-ctr">','',25,3,-1,-1,1,'2018,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=4,[Report_EntId]=2018,[EntId]=2018,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=1,[FieldName]='MenuId',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='islonly="1" isgroup="1" groupid="3" class="ul-listfield" style="width: 784px;" isrple="1">
<li areaid="25" class="li-listfield" style="width: 98px; height: 30px; clear: none; float: left; position: static;"><div class="list-field">
	<span isfield="1" entid="2018" fieldname="MenuId" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=25,[TableIndex]=3,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2018,' where  [FldUId]='e2e34447-cae2-0a89-b891-61821d977ff4' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='93e809bb-9269-d421-1a32-53a6064ac9d3'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'93e809bb-9269-d421-1a32-53a6064ac9d3',2018,2018,'00000000-0000-0000-0000-000000000000',2,'MenuName',3,1,'varchar',2,1,0,'','','','</span>
</div>
</li><li areaid="20" class="li-listfield" style="width: 170px; height: 30px; position: static; clear: none; float: left;"><div class="list-field">
	<span isfield="1" entid="2018" fieldname="MenuName" fldid="1" columntypeid="1" class="form-ctr">','',-1,3,-1,-1,1,'2018,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=1,[Report_EntId]=2018,[EntId]=2018,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='MenuName',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
</div>
</li><li areaid="20" class="li-listfield" style="width: 170px; height: 30px; position: static; clear: none; float: left;"><div class="list-field">
	<span isfield="1" entid="2018" fieldname="MenuName" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=3,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2018,' where  [FldUId]='93e809bb-9269-d421-1a32-53a6064ac9d3' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='6364397d-8367-0ec0-48f1-3e70f6a50c06'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'6364397d-8367-0ec0-48f1-3e70f6a50c06',2018,2018,'00000000-0000-0000-0000-000000000000',12,'ImgPath',4,1,'varchar',2,1,0,'','','','</span>
</div>
</li><li areaid="21" class="li-listfield" style="width: 170px; height: 30px; clear: none; float: left; position: static;"><div class="list-field">
	<span isfield="1" entid="2018" fieldname="ImgPath" fldid="2" columntypeid="1" class="form-ctr">','',-1,3,-1,-1,1,'2018,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=2,[Report_EntId]=2018,[EntId]=2018,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=12,[FieldName]='ImgPath',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
</div>
</li><li areaid="21" class="li-listfield" style="width: 170px; height: 30px; clear: none; float: left; position: static;"><div class="list-field">
	<span isfield="1" entid="2018" fieldname="ImgPath" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=3,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2018,' where  [FldUId]='6364397d-8367-0ec0-48f1-3e70f6a50c06' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='715f115a-19f4-9826-abf6-1e7c38f3136a'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'715f115a-19f4-9826-abf6-1e7c38f3136a',2018,2018,'00000000-0000-0000-0000-000000000000',10,'ProPath',5,1,'varchar',2,1,0,'','','','</span>
</div>
</li><li areaid="26" class="li-listfield" style="width: 338px; height: 30px; clear: right; float: left; position: static;"><div class="list-field">
	<span isfield="1" entid="2018" fieldname="ProPath" fldid="3" columntypeid="1" class="form-ctr">','',-1,3,-1,-1,1,'2018,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=3,[Report_EntId]=2018,[EntId]=2018,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=10,[FieldName]='ProPath',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
</div>
</li><li areaid="26" class="li-listfield" style="width: 338px; height: 30px; clear: right; float: left; position: static;"><div class="list-field">
	<span isfield="1" entid="2018" fieldname="ProPath" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=3,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2018,' where  [FldUId]='715f115a-19f4-9826-abf6-1e7c38f3136a' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='3e486c70-09a5-9a9c-a95d-a885253fcb09'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(14,'3e486c70-09a5-9a9c-a95d-a885253fcb09',2018,2018,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',6,-1,'varchar',2,13,0,'','','','</span>
</div>
</li>    </ul>','</div>
</div>
<!-- 结束 -->',-1,3,-1,-1,1,'2018,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=14,[Report_EntId]=2018,[EntId]=2018,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=6,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
</div>
</li>    </ul>',[LastHtml]='</div>
</div>
<!-- 结束 -->',[RowIndex]=-1,[TableIndex]=3,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2018,' where  [FldUId]='3e486c70-09a5-9a9c-a95d-a885253fcb09' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=1202

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=1202  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(1202,null,'Dcx_Menu','Dcx_Menu',1,0,0,0,0,0,29,1,3,'admin','2013-12-15 17:32:18',3,'admin','2013-12-15 17:32:18',null,null,27,248,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='Dcx_Menu',[DBTableByName]='Dcx_Menu',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=29,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:18',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:18',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=27,[SDbTableId]=248,[IsChange]=null,[IsSystem]=null where  [DBTableId]=1202 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1202  and  [FieldId]=29  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18055,29,29,1202,'bit',4,1,1,'Dcx_Menu','NeedCode','NeedCode','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu',[FieldName]='NeedCode',[FieldByname]='NeedCode',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1202  and  [FieldId]=29 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1202  and  [FieldId]=28  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18056,28,29,1202,'varchar',2,1,1,'Dcx_Menu','Remark','Remark','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu',[FieldName]='Remark',[FieldByname]='Remark',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1202  and  [FieldId]=28 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1202  and  [FieldId]=27  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18057,27,29,1202,'int',1,1,1,'Dcx_Menu','EditorId','EditorId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu',[FieldName]='EditorId',[FieldByname]='EditorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1202  and  [FieldId]=27 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1202  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18058,26,29,1202,'varchar',2,1,1,'Dcx_Menu','Editor','Editor','',0,0,1,40,40,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu',[FieldName]='Editor',[FieldByname]='Editor',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=40,[Precision]=40,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1202  and  [FieldId]=26 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1202  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18059,25,29,1202,'datetime',3,1,1,'Dcx_Menu','EditTime','EditTime','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu',[FieldName]='EditTime',[FieldByname]='EditTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1202  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1202  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18060,24,29,1202,'int',1,1,1,'Dcx_Menu','CreatorId','CreatorId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu',[FieldName]='CreatorId',[FieldByname]='CreatorId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1202  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1202  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18061,23,29,1202,'varchar',2,1,1,'Dcx_Menu','Creator','Creator','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu',[FieldName]='Creator',[FieldByname]='Creator',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1202  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1202  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18062,22,29,1202,'datetime',3,1,1,'Dcx_Menu','CreateTime','CreateTime','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu',[FieldName]='CreateTime',[FieldByname]='CreateTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1202  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1202  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18063,21,29,1202,'int',1,1,1,'Dcx_Menu','CreatorAccountId','CreatorAccountId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu',[FieldName]='CreatorAccountId',[FieldByname]='CreatorAccountId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1202  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1202  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18064,20,29,1202,'bit',4,1,1,'Dcx_Menu','IsHidden','IsHidden','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu',[FieldName]='IsHidden',[FieldByname]='IsHidden',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1202  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1202  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18065,19,29,1202,'bit',4,1,1,'Dcx_Menu','IsShare','IsShare','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu',[FieldName]='IsShare',[FieldByname]='IsShare',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1202  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1202  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18066,18,29,1202,'bit',4,1,1,'Dcx_Menu','IsOpen','IsOpen','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu',[FieldName]='IsOpen',[FieldByname]='IsOpen',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1202  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1202  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18067,17,29,1202,'bit',4,1,1,'Dcx_Menu','MultiMEnt','MultiMEnt','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu',[FieldName]='MultiMEnt',[FieldByname]='MultiMEnt',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1202  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1202  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18068,16,29,1202,'varchar',2,1,1,'Dcx_Menu','Target','Target','',0,0,1,250,250,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu',[FieldName]='Target',[FieldByname]='Target',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=250,[Precision]=250,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1202  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1202  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18069,15,29,1202,'int',1,1,1,'Dcx_Menu','OrderBy','OrderBy','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu',[FieldName]='OrderBy',[FieldByname]='OrderBy',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1202  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1202  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18070,14,29,1202,'int',1,1,1,'Dcx_Menu','MEntId','MEntId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu',[FieldName]='MEntId',[FieldByname]='MEntId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1202  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1202  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18071,13,29,1202,'varchar',2,1,1,'Dcx_Menu','ExImgPath','ExImgPath','',0,0,1,250,250,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu',[FieldName]='ExImgPath',[FieldByname]='ExImgPath',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=250,[Precision]=250,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1202  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1202  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18072,12,29,1202,'varchar',2,1,1,'Dcx_Menu','ImgPath','ImgPath','',0,0,1,550,550,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu',[FieldName]='ImgPath',[FieldByname]='ImgPath',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=550,[Precision]=550,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1202  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1202  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18073,11,29,1202,'int',1,1,1,'Dcx_Menu','TemplateId','TemplateId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu',[FieldName]='TemplateId',[FieldByname]='TemplateId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1202  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1202  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18074,10,29,1202,'varchar',2,1,1,'Dcx_Menu','ProPath','ProPath','',0,0,1,550,550,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu',[FieldName]='ProPath',[FieldByname]='ProPath',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=550,[Precision]=550,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1202  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1202  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18075,9,29,1202,'bit',4,1,1,'Dcx_Menu','IsSystem','IsSystem','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu',[FieldName]='IsSystem',[FieldByname]='IsSystem',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1202  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1202  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18076,8,29,1202,'bit',4,1,1,'Dcx_Menu','IsChange','IsChange','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu',[FieldName]='IsChange',[FieldByname]='IsChange',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1202  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1202  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18077,7,29,1202,'int',1,1,1,'Dcx_Menu','SMenuId','SMenuId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu',[FieldName]='SMenuId',[FieldByname]='SMenuId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1202  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1202  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18078,6,29,1202,'int',1,1,1,'Dcx_Menu','SSystemId','SSystemId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu',[FieldName]='SSystemId',[FieldByname]='SSystemId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1202  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1202  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18079,5,29,1202,'int',1,1,1,'Dcx_Menu','ParentId','ParentId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu',[FieldName]='ParentId',[FieldByname]='ParentId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1202  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1202  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18080,4,29,1202,'int',1,1,1,'Dcx_Menu','SystemId','SystemId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu',[FieldName]='SystemId',[FieldByname]='SystemId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1202  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1202  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18081,3,29,1202,'uniqueidentifier',24,1,1,'Dcx_Menu','MenuUId','MenuUId','newid()',0,0,1,16,16,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='uniqueidentifier',[FieldDataTypeId]=24,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu',[FieldName]='MenuUId',[FieldByname]='MenuUId',[DefaultValue]='newid()',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=16,[Precision]=16,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1202  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1202  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18082,2,29,1202,'varchar',2,1,1,'Dcx_Menu','MenuName','MenuName','',0,0,0,150,150,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu',[FieldName]='MenuName',[FieldByname]='MenuName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=150,[Precision]=150,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1202  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1202  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18083,1,29,1202,'int',1,1,1,'Dcx_Menu','MenuId','MenuId','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Menu',[FieldName]='MenuId',[FieldByname]='MenuId',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1202  and  [FieldId]=1 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 



Delete from [Dcx_EntityPrivilege]  where [EntId]=2020

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2020  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11057,3293,2020,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=3293,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2020  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2020

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2020  and  [ModuleTypeId]=17  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20452,29,3293,2020,67,17,15,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3293,[TemplateId]=67,[ModuleId]=15,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2020  and  [ModuleTypeId]=17 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_ListForm_Run]  where [EntId]=2020

--Dcx_ListForm_Run
      if (select count(1) from [Dcx_ListForm_Run] where  [EntId]=2020  )<1 
      begin 
           Insert into [Dcx_ListForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[OtherMsg],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[AccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime])values('af14d0ff-7275-4eb2-809a-d0c227aef662','搜索项目',2020,-1,'','',0,'<script type="text/javascript" src="/js/module/Report/ReportRun.js"></script>','','DcxRun.ListF_2020= {"MenuId":3293,"MEntId":2020,"EntName":"搜索项目","CtrlPrex":"ListF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2020":{"EntId":2020,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"Id","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}


if(runObj.NoInit)
{
   entMsg.E2020.FormData=null;
   mEntMsg.RowCount=0;mEntMsg.RecortCount=0;entMsg.E2020.RowCount=0;

}

 DcxForm.InitSheetForm(2020,''ListF_'',entMsg.E2020.FormData,entMsg.E2020.$listContainer);

 DcxForm.DealPage(2020,''ListF_'');

 DcxForm.SetPower(2020,''ListF_'');


}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":14,"Ent":[{"EntId":2020,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":2,"Vld":[{"Id":4,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[0-9]*[1-9][0-9]*$","err":"格式要求为正整数","ok":"","warn":"","ovt":1}]},{"FldId":3,"Vld":[{"Id":6,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":7,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":4,"Vld":[{"Id":8,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":9,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":18,"Vld":[{"Id":13,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":14,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]}]}]};
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.ListF_2020.EntMsg.E2020.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_SearchItemInUser","EntId":2020,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"SearchId":{"DtId":1,"DB":1,"CId":3,"FL":4},"Title":{"DtId":2,"DB":1,"CId":1,"FL":50},"UserId":{"DtId":1,"DB":1,"CId":4,"FL":4},"SortOrder":{"DtId":1,"DB":1,"CId":1,"FL":4}},"Data":{"Row":[]}};
}
DcxRun.ListF_2020.EntMsg.E2020.GetDataRowModel=function()
{
    return {"SearchId":-1,"Title":"{@SearchId*}","UserId":-1,"SortOrder":1,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_ListF_2020_65(obj,curFieldName){
 var EntId=2020;
 var FldId=3;
 var CtrlPrex=''ListF_'';
 var FieldName=''Title'';
 var $formContainer=DcxForm.GetRow(obj,2020,''ListF_'');
 var $ddlContainer=null;
var strCode="{@SearchId&}" ;
var v_f1=null;
if(''SearchId''==curFieldName)
  v_f1=$(obj).find(''option:selected'').text();
else 
  v_f1=DcxForm.GetDdlValue(null,2020,''ListF_'',''SearchId'',$formContainer,true,true);
if(Dcx.IsNull(v_f1))
   v_f1=0;
strCode=strCode.replaceAll("{@SearchId&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var rowindex=$formContainer.attr("rowix");
var Cur_ctrlId="d2020_Titlefrom_tr"+rowindex;
var $AcceptObj=$formContainer.find("#"+Cur_ctrlId);
$AcceptObj.val(myVal);
$AcceptObj.change();
}



 function GetLinkCtrl_ListF_2020(obj,FieldName,EntId)
{

}
/****************上：AJAX回调函数******************/


DcxRun.ListF_2020.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitLf(2020,''ListF_'',buildNew,closeDlg);

}','<$2020$>select *  from (select row_number() over( order by [Id])as dcx_rowid,[SortOrder],[SearchId],[Title],[UserId],[Id] from Dcx_SearchItemInUser  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$2020$><$2020:Count$>select count([Id]) from Dcx_SearchItemInUser where {$SearchArea}</$2020:Count$>','2020*Id*2*Id*2*Dcx_SearchItemInUser*搜索项目',10,'','','',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',1,3,'admin','2012-10-8 3:49:07',3,'admin','2013-10-2 18:14:17')
      end
      else 
      begin 
           update [Dcx_ListForm_Run] set [FormId]='af14d0ff-7275-4eb2-809a-d0c227aef662',[FormName]='搜索项目',[ModuleId]=-1,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script type="text/javascript" src="/js/module/Report/ReportRun.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.ListF_2020= {"MenuId":3293,"MEntId":2020,"EntName":"搜索项目","CtrlPrex":"ListF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2020":{"EntId":2020,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"Id","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}


if(runObj.NoInit)
{
   entMsg.E2020.FormData=null;
   mEntMsg.RowCount=0;mEntMsg.RecortCount=0;entMsg.E2020.RowCount=0;

}

 DcxForm.InitSheetForm(2020,''ListF_'',entMsg.E2020.FormData,entMsg.E2020.$listContainer);

 DcxForm.DealPage(2020,''ListF_'');

 DcxForm.SetPower(2020,''ListF_'');


}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":14,"Ent":[{"EntId":2020,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":2,"Vld":[{"Id":4,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[0-9]*[1-9][0-9]*$","err":"格式要求为正整数","ok":"","warn":"","ovt":1}]},{"FldId":3,"Vld":[{"Id":6,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":7,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":4,"Vld":[{"Id":8,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":9,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":18,"Vld":[{"Id":13,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":14,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]}]}]};
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.ListF_2020.EntMsg.E2020.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_SearchItemInUser","EntId":2020,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"SearchId":{"DtId":1,"DB":1,"CId":3,"FL":4},"Title":{"DtId":2,"DB":1,"CId":1,"FL":50},"UserId":{"DtId":1,"DB":1,"CId":4,"FL":4},"SortOrder":{"DtId":1,"DB":1,"CId":1,"FL":4}},"Data":{"Row":[]}};
}
DcxRun.ListF_2020.EntMsg.E2020.GetDataRowModel=function()
{
    return {"SearchId":-1,"Title":"{@SearchId*}","UserId":-1,"SortOrder":1,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_ListF_2020_65(obj,curFieldName){
 var EntId=2020;
 var FldId=3;
 var CtrlPrex=''ListF_'';
 var FieldName=''Title'';
 var $formContainer=DcxForm.GetRow(obj,2020,''ListF_'');
 var $ddlContainer=null;
var strCode="{@SearchId&}" ;
var v_f1=null;
if(''SearchId''==curFieldName)
  v_f1=$(obj).find(''option:selected'').text();
else 
  v_f1=DcxForm.GetDdlValue(null,2020,''ListF_'',''SearchId'',$formContainer,true,true);
if(Dcx.IsNull(v_f1))
   v_f1=0;
strCode=strCode.replaceAll("{@SearchId&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var rowindex=$formContainer.attr("rowix");
var Cur_ctrlId="d2020_Titlefrom_tr"+rowindex;
var $AcceptObj=$formContainer.find("#"+Cur_ctrlId);
$AcceptObj.val(myVal);
$AcceptObj.change();
}



 function GetLinkCtrl_ListF_2020(obj,FieldName,EntId)
{

}
/****************上：AJAX回调函数******************/


DcxRun.ListF_2020.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitLf(2020,''ListF_'',buildNew,closeDlg);

}',[LoadingSql]='<$2020$>select *  from (select row_number() over( order by [Id])as dcx_rowid,[SortOrder],[SearchId],[Title],[UserId],[Id] from Dcx_SearchItemInUser  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$2020$><$2020:Count$>select count([Id]) from Dcx_SearchItemInUser where {$SearchArea}</$2020:Count$>',[OtherMsg]='2020*Id*2*Id*2*Dcx_SearchItemInUser*搜索项目',[PageSize]=10,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[AccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-10-8 3:49:07',[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-2 18:14:17' where  [EntId]=2020 
      end




--Dcx_ListFormField_Run
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='01bed70b-c8a7-8cdb-c217-a08dd069e2f2'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(39,'01bed70b-c8a7-8cdb-c217-a08dd069e2f2',2020,2020,'00000000-0000-0000-0000-000000000000',1,'MEntBegin',-1,2,-1,'',5,-1,1,0,-1,12,-1,-1,0,0,'','','','','<!-- 开始 -->
<!-- 功能键栏 -->
<div class="listform toolbar-opt">
<!--功能键栏-->
<ul islonly="1" class="itemUl1 repUl1" isgroup="1" groupid="1" style="width: 766px; " isrple="1"> <li class="putCont" scroll="no" style="position: static;">
 <input class="chPut" id="ckb_CheckAllListF_2020" onclick="javascript:DcxCom.CheckedAll(this,2020,''ListF_'');" type="checkbox" rel="chkall">
<label for="ckb_CheckAllListF_2020">全选</label></li>
<li areaid="15" class="listTit" style="position: static;" scroll="no"><a id="ListF_2020_btn_buildNew" class="playAll" title="保   存" href="javascript:void(0);" onclick="javascript:DcxRun.ListF_2020.SubmitForm();">保   存</a></li>
<li areaid="16" class="listTit" style="position: static;" scroll="no"><a id="ListF_2020_btn_buildNew" class="lMdBtn" title="添加1行" href="javascript:void(0);" onclick="javascript:DcxForm.AddRow(this,1,2020,''ListF_'');">添   加</a></li>
<li areaid="17" class="listTit" style="position: static;" scroll="no"><a id="ListF_2020_btn_buildNew" class="lMdBtn" title="添加5行" href="javascript:void(0);" onclick="javascript:DcxForm.AddRow(this,5,2020,''ListF_'');">添加5行</a></li>
<li areaid="18" class="listTit" style="position: static;" scroll="no"><a id="ListF_2020_deletebut" class="playAll" title="删   除" href="javascript:void(0);" onclick="javascript:DcxForm.DeleteRow(this,2020,''ListF_'');">删   除</a></li>
<li areaid="19" class="listTit" style="width: 70px; height: 30px; position: static;" scroll="no"><a id="ListF_2020_deletebut" class="lMdBtn" title="删除全部" href="javascript:void(0);" onclick="javascript:DcxForm.DeleteAllRow(this,2020,''ListF_'');">删除全部</a></li>

<li areaid="21" class="listTit" style="position: static;" scroll="no"><a id="ListF_2020_refreshbut" class="lMdBtn" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(2020,''ListF_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="22" class="listTit_page" style="width: 280px; height: 30px; position: static;" id="li2_ListF_2020" scroll="no">
<a id="ListF_2020_FirstPage" isfirstpage="1" class="btn_page firstpage" title="首页" onclick="javascript:DcxSch.GetHtml(2020,''ListF_'',''h'');" href="javascript:void(0);">首页</a>
<a id="ListF_2020_PrevPage" isprevpage="1" class="btn_page prvpage" title="上一页" onclick="javascript:DcxSch.GetHtml(2020,''ListF_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex">
<select id="ddl_ListF_2020_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(2020,''ListF_'',''a'',this);">
</select>
</span>
<a id="ListF_2020_NextPage" isnextpage="1" class="btn_page nextpage" onclick="javascript:DcxSch.GetHtml(2020,''ListF_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<a id="ListF_2020_LastPage" islastpage="1" class="btn_page lastpage" onclick="javascript:DcxSch.GetHtml(2020,''ListF_'',''t'');" href="javascript:void(0);" title="最后一页">最后一页</a>
<span class="page">第</span>
<span id="ListF_2020_CurrentPage_lbl" iscurpage="1" class="page_data">0</span>
<span class="page">页,共</span>&nbsp; 
<span id="ListF_2020_PageCount_lbl" ispagecount="1" class="page_data">0</span>
<span class="page">页 </span>
<span id="ListF_2020_RecCount_lbl" isrecortcount="1" class="page_data">0</span>
<span class="page">条记录</span>
</li>
</ul>
</div>
<div class="listform listarea">
<div class="lf-head">
<ul isgroup="1" islisthead="1" islonly="1" groupid="2" class="ul-listtitle" style="width: 784px;" isrple="1">
<li areaid="23" class="li-head-item" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><label class="head-label" istitle="1">序号</label></li><li areaid="24" class="li-head-item" style="width: 438px; height: 30px; clear: none; float: left; position: static;" scroll="no"><label class="head-label" istitle="1">搜索项目</label></li><li areaid="32" class="li-head-item" style="width: 170px; height: 30px; clear: right; float: left; position: static;" scroll="no"><label class="head-label" istitle="1">创建人</label></li>    </ul>
</div>
<div class="lf-body">','','','','','','',3,-1,-1,-1,1,'2020,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=39,[Form_EntId]=2020,[EntId]=2020,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[FieldName]='MEntBegin',[FieldDataTypeId]=-1,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=-1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=-1,[FieldTypeId]=12,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<!-- 开始 -->
<!-- 功能键栏 -->
<div class="listform toolbar-opt">
<!--功能键栏-->
<ul islonly="1" class="itemUl1 repUl1" isgroup="1" groupid="1" style="width: 766px; " isrple="1"> <li class="putCont" scroll="no" style="position: static;">
 <input class="chPut" id="ckb_CheckAllListF_2020" onclick="javascript:DcxCom.CheckedAll(this,2020,''ListF_'');" type="checkbox" rel="chkall">
<label for="ckb_CheckAllListF_2020">全选</label></li>
<li areaid="15" class="listTit" style="position: static;" scroll="no"><a id="ListF_2020_btn_buildNew" class="playAll" title="保   存" href="javascript:void(0);" onclick="javascript:DcxRun.ListF_2020.SubmitForm();">保   存</a></li>
<li areaid="16" class="listTit" style="position: static;" scroll="no"><a id="ListF_2020_btn_buildNew" class="lMdBtn" title="添加1行" href="javascript:void(0);" onclick="javascript:DcxForm.AddRow(this,1,2020,''ListF_'');">添   加</a></li>
<li areaid="17" class="listTit" style="position: static;" scroll="no"><a id="ListF_2020_btn_buildNew" class="lMdBtn" title="添加5行" href="javascript:void(0);" onclick="javascript:DcxForm.AddRow(this,5,2020,''ListF_'');">添加5行</a></li>
<li areaid="18" class="listTit" style="position: static;" scroll="no"><a id="ListF_2020_deletebut" class="playAll" title="删   除" href="javascript:void(0);" onclick="javascript:DcxForm.DeleteRow(this,2020,''ListF_'');">删   除</a></li>
<li areaid="19" class="listTit" style="width: 70px; height: 30px; position: static;" scroll="no"><a id="ListF_2020_deletebut" class="lMdBtn" title="删除全部" href="javascript:void(0);" onclick="javascript:DcxForm.DeleteAllRow(this,2020,''ListF_'');">删除全部</a></li>

<li areaid="21" class="listTit" style="position: static;" scroll="no"><a id="ListF_2020_refreshbut" class="lMdBtn" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(2020,''ListF_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="22" class="listTit_page" style="width: 280px; height: 30px; position: static;" id="li2_ListF_2020" scroll="no">
<a id="ListF_2020_FirstPage" isfirstpage="1" class="btn_page firstpage" title="首页" onclick="javascript:DcxSch.GetHtml(2020,''ListF_'',''h'');" href="javascript:void(0);">首页</a>
<a id="ListF_2020_PrevPage" isprevpage="1" class="btn_page prvpage" title="上一页" onclick="javascript:DcxSch.GetHtml(2020,''ListF_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex">
<select id="ddl_ListF_2020_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(2020,''ListF_'',''a'',this);">
</select>
</span>
<a id="ListF_2020_NextPage" isnextpage="1" class="btn_page nextpage" onclick="javascript:DcxSch.GetHtml(2020,''ListF_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<a id="ListF_2020_LastPage" islastpage="1" class="btn_page lastpage" onclick="javascript:DcxSch.GetHtml(2020,''ListF_'',''t'');" href="javascript:void(0);" title="最后一页">最后一页</a>
<span class="page">第</span>
<span id="ListF_2020_CurrentPage_lbl" iscurpage="1" class="page_data">0</span>
<span class="page">页,共</span>&nbsp; 
<span id="ListF_2020_PageCount_lbl" ispagecount="1" class="page_data">0</span>
<span class="page">页 </span>
<span id="ListF_2020_RecCount_lbl" isrecortcount="1" class="page_data">0</span>
<span class="page">条记录</span>
</li>
</ul>
</div>
<div class="listform listarea">
<div class="lf-head">
<ul isgroup="1" islisthead="1" islonly="1" groupid="2" class="ul-listtitle" style="width: 784px;" isrple="1">
<li areaid="23" class="li-head-item" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><label class="head-label" istitle="1">序号</label></li><li areaid="24" class="li-head-item" style="width: 438px; height: 30px; clear: none; float: left; position: static;" scroll="no"><label class="head-label" istitle="1">搜索项目</label></li><li areaid="32" class="li-head-item" style="width: 170px; height: 30px; clear: right; float: left; position: static;" scroll="no"><label class="head-label" istitle="1">创建人</label></li>    </ul>
</div>
<div class="lf-body">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='',[CtrlbackHtml]='',[CtrlLastHtml]='',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2020,' where  [FldUId]='01bed70b-c8a7-8cdb-c217-a08dd069e2f2' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='7ced9910-ca85-8d29-3ac8-7a120f37981e'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(18,'7ced9910-ca85-8d29-3ac8-7a120f37981e',2020,2020,'00000000-0000-0000-0000-000000000000',2,'SortOrder',1,1,6,'1',5,1,1,0,1,1,-1,-1,1,0,'','','','','isgroup="1" groupid="3" class="ul-listfield" style="width: 784px;" isrple="1">
<li areaid="25" class="li-listfield" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><div class="list-field">
	<span class="form-ctr" isfcontain="1">','','','<input  id="d2020_SortOrder%trindex%" CtrlPrex="ListF_"','type="text" class="lt-txt"  style="width:150px;" AutoAddDigit=1 Digit="2" onchange ="javascript:DcxForm.ListTxtChange(this,2020,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2020,''ListF_'',2020,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2020,''ListF_'',2020,true);" EntId="2020" IsField=1 DBField=1 IsPost=1 FieldName="SortOrder" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="18" vlk=0    value="','" />','',3,25,-1,-1,1,'2020,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=18,[Form_EntId]=2020,[EntId]=2020,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[FieldName]='SortOrder',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=6,[DefaultValue]='1',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='isgroup="1" groupid="3" class="ul-listfield" style="width: 784px;" isrple="1">
<li areaid="25" class="li-listfield" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><div class="list-field">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<input  id="d2020_SortOrder%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='type="text" class="lt-txt"  style="width:150px;" AutoAddDigit=1 Digit="2" onchange ="javascript:DcxForm.ListTxtChange(this,2020,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2020,''ListF_'',2020,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2020,''ListF_'',2020,true);" EntId="2020" IsField=1 DBField=1 IsPost=1 FieldName="SortOrder" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="18" vlk=0    value="',[CtrlbackHtml]='" />',[CtrlLastHtml]='',[TableIndex]=3,[RowIndex]=25,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2020,' where  [FldUId]='7ced9910-ca85-8d29-3ac8-7a120f37981e' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='7a46fe95-9cca-fffe-4e35-aa06a06b2b1e'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'7a46fe95-9cca-fffe-4e35-aa06a06b2b1e',2020,2020,'00000000-0000-0000-0000-000000000000',3,'SearchId',1,1,2,'SELECT ''请选择'' as [Title],-1 as [SearchId],-1 as [SortOrder] union SELECT [Title],[SearchId],[SortOrder] FROM [Dcx_SearchItem] order by SortOrder',2,1,1,0,3,1,-1,-1,1,0,'','','','','</span>

</div>

</li><li areaid="26" class="li-listfield" style="width: 438px; height: 30px; clear: none; float: left; position: static;" scroll="no"><div class="list-field">
	<span class="form-ctr" isfcontain="1">','','','<select id="d2020_SearchId%trindex%" CtrlPrex="ListF_"','class="form-select"  onclick ="javascript:DcxVld.ValidateFocus(this,2020,''ListF_'',2020,true);" onchange ="javascript:GetLinkCtrlData_ListF_2020_65(this,''SearchId'');DcxForm.ListSelectChange(this,2020,''ListF_'');DcxVld.Validate(this,2020,''ListF_'',2020,true,$(this).val());" EntId="2020" IsField=1 DBField=1 IsPost=1 FieldName="SearchId" dType="1" Vtp="2" RDT="1" Isc="1" RId="1" CId="3" FId="2" vlk=0    TFN="Title"  CBack=1  style="width:320px;">','</select>','',3,-1,-1,-1,1,'2020,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=2,[Form_EntId]=2020,[EntId]=2020,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[FieldName]='SearchId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=2,[DefaultValue]='SELECT ''请选择'' as [Title],-1 as [SearchId],-1 as [SortOrder] union SELECT [Title],[SearchId],[SortOrder] FROM [Dcx_SearchItem] order by SortOrder',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

</div>

</li><li areaid="26" class="li-listfield" style="width: 438px; height: 30px; clear: none; float: left; position: static;" scroll="no"><div class="list-field">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<select id="d2020_SearchId%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='class="form-select"  onclick ="javascript:DcxVld.ValidateFocus(this,2020,''ListF_'',2020,true);" onchange ="javascript:GetLinkCtrlData_ListF_2020_65(this,''SearchId'');DcxForm.ListSelectChange(this,2020,''ListF_'');DcxVld.Validate(this,2020,''ListF_'',2020,true,$(this).val());" EntId="2020" IsField=1 DBField=1 IsPost=1 FieldName="SearchId" dType="1" Vtp="2" RDT="1" Isc="1" RId="1" CId="3" FId="2" vlk=0    TFN="Title"  CBack=1  style="width:320px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2020,' where  [FldUId]='7a46fe95-9cca-fffe-4e35-aa06a06b2b1e' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='d51b8e6e-ca0a-afd7-11d3-7d29ba5f0b22'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'d51b8e6e-ca0a-afd7-11d3-7d29ba5f0b22',2020,2020,'00000000-0000-0000-0000-000000000000',4,'Title',2,2,3,'',5,1,1,0,1,1,-1,-1,1,0,'','','SearchId,','','</span>

 <span class="form-ctr" isfcontain="1">','','','<input  id="d2020_Title%trindex%" CtrlPrex="ListF_"','type="text" class="lt-txt hide"  style="width:150px;display:none;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2020,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2020,''ListF_'',2020,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2020,''ListF_'',2020,true);" EntId="2020" IsField=1 DBField=1 IsPost=1 FieldName="Title" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="3" vlk=0    value="','" />','',3,-1,-1,-1,1,'2020,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=3,[Form_EntId]=2020,[EntId]=2020,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=4,[FieldName]='Title',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=3,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='SearchId,',[SystemVariables]='',[BeforeHtml]='</span>

 <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<input  id="d2020_Title%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='type="text" class="lt-txt hide"  style="width:150px;display:none;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2020,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2020,''ListF_'',2020,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2020,''ListF_'',2020,true);" EntId="2020" IsField=1 DBField=1 IsPost=1 FieldName="Title" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="3" vlk=0    value="',[CtrlbackHtml]='" />',[CtrlLastHtml]='',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2020,' where  [FldUId]='d51b8e6e-ca0a-afd7-11d3-7d29ba5f0b22' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='a451e392-144a-3ff7-3480-a0321f962fbe'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'a451e392-144a-3ff7-3480-a0321f962fbe',2020,2020,'00000000-0000-0000-0000-000000000000',5,'UserId',1,1,4,'{$userId}',0,9,1,0,4,1,-1,-1,1,0,'','','','{$userId},','</span>

</div>
</li><li areaid="29" class="li-listfield" style="width: 170px; height: 30px; clear: right; float: left; position: static;" scroll="no"><div class="list-field">
	<span class="form-ctr" isfcontain="1">','','','<span id="d2020_UserId%trindex%" CtrlPrex="ListF_"','class="form-lbl" style="width:150px;" IsForField=1 EntId="2020" CId="4" FId="4" Vtp="0"  >','</span><input id="d2020_UserId%trindex%_hid" CtrlPrex="ListF_" type="hidden"  EntId="2020" IsField=1 DBField=1 IsPost=1 FieldName="UserId" dType="1" Vtp="0" RDT="1" Isc="1" RId="9" CId="4" FId="4" vlk=0    Digit="-1" value="','" />',3,-1,-1,-1,1,'2020,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=4,[Form_EntId]=2020,[EntId]=2020,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=5,[FieldName]='UserId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=4,[DefaultValue]='{$userId}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$userId},',[BeforeHtml]='</span>

</div>
</li><li areaid="29" class="li-listfield" style="width: 170px; height: 30px; clear: right; float: left; position: static;" scroll="no"><div class="list-field">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<span id="d2020_UserId%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='class="form-lbl" style="width:150px;" IsForField=1 EntId="2020" CId="4" FId="4" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d2020_UserId%trindex%_hid" CtrlPrex="ListF_" type="hidden"  EntId="2020" IsField=1 DBField=1 IsPost=1 FieldName="UserId" dType="1" Vtp="0" RDT="1" Isc="1" RId="9" CId="4" FId="4" vlk=0    Digit="-1" value="',[CtrlLastHtml]='" />',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2020,' where  [FldUId]='a451e392-144a-3ff7-3480-a0321f962fbe' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='6046550d-0f2c-7ca4-6eb2-440c48fae7ba'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(40,'6046550d-0f2c-7ca4-6eb2-440c48fae7ba',2020,2020,'00000000-0000-0000-0000-000000000000',6,'MEntEnd',-1,2,-1,'',5,-1,1,0,-1,13,-1,-1,0,0,'','','','','</span>

</div>
</li>    </ul>','</div>
</div>
<!-- 结束 -->','','','','','',3,-1,-1,-1,1,'2020,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=40,[Form_EntId]=2020,[EntId]=2020,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=6,[FieldName]='MEntEnd',[FieldDataTypeId]=-1,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=-1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=-1,[FieldTypeId]=13,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

</div>
</li>    </ul>',[LastHtml]='</div>
</div>
<!-- 结束 -->',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='',[CtrlbackHtml]='',[CtrlLastHtml]='',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2020,' where  [FldUId]='6046550d-0f2c-7ca4-6eb2-440c48fae7ba' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=326

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=326  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(326,null,'Dcx_SearchItemInUser','Dcx_SearchItemInUser',1,0,0,0,0,0,29,1,3,'admin','2013-12-15 17:32:21',3,'admin','2013-12-15 17:32:21',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='Dcx_SearchItemInUser',[DBTableByName]='Dcx_SearchItemInUser',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=29,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:21',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:21',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=326 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=326  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17570,1,29,326,'int',1,1,1,'Dcx_SearchItemInUser','Id','Id','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_SearchItemInUser',[FieldName]='Id',[FieldByname]='Id',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=326  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=326  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17571,2,29,326,'int',1,1,1,'Dcx_SearchItemInUser','SearchId','SearchId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_SearchItemInUser',[FieldName]='SearchId',[FieldByname]='SearchId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=326  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=326  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17572,3,29,326,'varchar',2,1,1,'Dcx_SearchItemInUser','Title','Title','',0,0,0,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_SearchItemInUser',[FieldName]='Title',[FieldByname]='Title',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=326  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=326  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17573,4,29,326,'int',1,1,1,'Dcx_SearchItemInUser','UserId','UserId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_SearchItemInUser',[FieldName]='UserId',[FieldByname]='UserId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=326  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=326  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17574,5,29,326,'varchar',2,1,1,'Dcx_SearchItemInUser','UserName','UserName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_SearchItemInUser',[FieldName]='UserName',[FieldByname]='UserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=326  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=326  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17575,6,29,326,'int',1,1,1,'Dcx_SearchItemInUser','SortOrder','SortOrder','0',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_SearchItemInUser',[FieldName]='SortOrder',[FieldByname]='SortOrder',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=326  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=326  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17576,7,29,326,'int',1,1,1,'Dcx_SearchItemInUser','AccountId','AccountId','1',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_SearchItemInUser',[FieldName]='AccountId',[FieldByname]='AccountId',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=326  and  [FieldId]=7 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 



Delete from [Dcx_EntityPrivilege]  where [EntId]=2021

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2021  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11058,3293,2021,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=3293,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2021  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2021

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2021  and  [ModuleTypeId]=17  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20453,29,3293,2021,67,17,15,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3293,[TemplateId]=67,[ModuleId]=15,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2021  and  [ModuleTypeId]=17 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_ListForm_Run]  where [EntId]=2021

--Dcx_ListForm_Run
      if (select count(1) from [Dcx_ListForm_Run] where  [EntId]=2021  )<1 
      begin 
           Insert into [Dcx_ListForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[OtherMsg],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[AccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime])values('94924764-a07c-bb39-0148-d25a7f65907b','我的桌面',2021,-1,'','',0,'<script type="text/javascript" src="/js/System/SetMyHomePage.js"></script><script type="text/javascript" src="/js/module/Report/ReportRun.js"></script>','','DcxRun.ListF_2021= {"MenuId":3293,"MEntId":2021,"EntName":"我的桌面","CtrlPrex":"ListF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2021":{"EntId":2021,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"Id","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}


if(runObj.NoInit)
{
   entMsg.E2021.FormData=null;
   mEntMsg.RowCount=0;mEntMsg.RecortCount=0;entMsg.E2021.RowCount=0;

}

 DcxForm.InitSheetForm(2021,''ListF_'',entMsg.E2021.FormData,entMsg.E2021.$listContainer);

 DcxForm.DealPage(2021,''ListF_'');

 DcxForm.SetPower(2021,''ListF_'');


}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":11,"Ent":[{"EntId":2021,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":2,"Vld":[{"Id":4,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":3,"Vld":[{"Id":6,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":7,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":4,"Vld":[{"Id":8,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":9,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":5,"Vld":[{"Id":10,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":11,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]}]}]};
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.ListF_2021.EntMsg.E2021.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_HomePage","EntId":2021,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"SortOrder":{"DtId":1,"DB":1,"CId":1,"FL":4},"EntId":{"DtId":1,"DB":1,"CId":3,"FL":4},"WIdth":{"DtId":1,"DB":1,"CId":1,"FL":4},"Height":{"DtId":1,"DB":1,"CId":1,"FL":4},"UserId":{"DtId":1,"DB":1,"CId":4,"FL":4}},"Data":{"Row":[]}};
}
DcxRun.ListF_2021.EntMsg.E2021.GetDataRowModel=function()
{
    return {"SortOrder":1,"EntId":-1,"WIdth":400,"Height":350,"UserId":-1,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/



 function GetLinkCtrl_ListF_2021(obj,FieldName,EntId)
{

}
/****************上：AJAX回调函数******************/


DcxRun.ListF_2021.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitLf(2021,''ListF_'',buildNew,closeDlg);

}','<$2021$>select *  from (select row_number() over( order by [Id])as dcx_rowid,[SortOrder],[EntId],[WIdth],[Height],[UserId],[Id] from Dcx_HomePage  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$2021$><$2021:Count$>select count([Id]) from Dcx_HomePage where {$SearchArea}</$2021:Count$>','2021*Id*2*Id*2*Dcx_HomePage*我的桌面',10,'','','',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',1,3,'admin','2012-10-8 4:26:54',3,'admin','2013-10-2 18:14:18')
      end
      else 
      begin 
           update [Dcx_ListForm_Run] set [FormId]='94924764-a07c-bb39-0148-d25a7f65907b',[FormName]='我的桌面',[ModuleId]=-1,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script type="text/javascript" src="/js/System/SetMyHomePage.js"></script><script type="text/javascript" src="/js/module/Report/ReportRun.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.ListF_2021= {"MenuId":3293,"MEntId":2021,"EntName":"我的桌面","CtrlPrex":"ListF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2021":{"EntId":2021,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"Id","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}


if(runObj.NoInit)
{
   entMsg.E2021.FormData=null;
   mEntMsg.RowCount=0;mEntMsg.RecortCount=0;entMsg.E2021.RowCount=0;

}

 DcxForm.InitSheetForm(2021,''ListF_'',entMsg.E2021.FormData,entMsg.E2021.$listContainer);

 DcxForm.DealPage(2021,''ListF_'');

 DcxForm.SetPower(2021,''ListF_'');


}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":11,"Ent":[{"EntId":2021,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":2,"Vld":[{"Id":4,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":3,"Vld":[{"Id":6,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":7,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":4,"Vld":[{"Id":8,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":9,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":5,"Vld":[{"Id":10,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":11,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]}]}]};
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.ListF_2021.EntMsg.E2021.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_HomePage","EntId":2021,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"SortOrder":{"DtId":1,"DB":1,"CId":1,"FL":4},"EntId":{"DtId":1,"DB":1,"CId":3,"FL":4},"WIdth":{"DtId":1,"DB":1,"CId":1,"FL":4},"Height":{"DtId":1,"DB":1,"CId":1,"FL":4},"UserId":{"DtId":1,"DB":1,"CId":4,"FL":4}},"Data":{"Row":[]}};
}
DcxRun.ListF_2021.EntMsg.E2021.GetDataRowModel=function()
{
    return {"SortOrder":1,"EntId":-1,"WIdth":400,"Height":350,"UserId":-1,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/



 function GetLinkCtrl_ListF_2021(obj,FieldName,EntId)
{

}
/****************上：AJAX回调函数******************/


DcxRun.ListF_2021.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitLf(2021,''ListF_'',buildNew,closeDlg);

}',[LoadingSql]='<$2021$>select *  from (select row_number() over( order by [Id])as dcx_rowid,[SortOrder],[EntId],[WIdth],[Height],[UserId],[Id] from Dcx_HomePage  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$2021$><$2021:Count$>select count([Id]) from Dcx_HomePage where {$SearchArea}</$2021:Count$>',[OtherMsg]='2021*Id*2*Id*2*Dcx_HomePage*我的桌面',[PageSize]=10,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[AccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-10-8 4:26:54',[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-2 18:14:18' where  [EntId]=2021 
      end




--Dcx_ListFormField_Run
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='e1b25762-01ae-eb75-5c0c-a7730944b753'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(34,'e1b25762-01ae-eb75-5c0c-a7730944b753',2021,2021,'00000000-0000-0000-0000-000000000000',1,'MEntBegin',-1,2,-1,'',5,-1,1,0,-1,12,-1,-1,0,0,'','','','','<!-- 开始 -->
<!-- 功能键栏 -->
<div class="listform toolbar-opt">
<!--功能键栏-->
<ul islonly="1" class="itemUl1 repUl1" isgroup="1" groupid="1" style="width: 822px; " isrple="1"> <li class="putCont" scroll="no" style="position: static;">
 <input class="chPut" id="ckb_CheckAllListF_2021" onclick="javascript:DcxCom.CheckedAll(this,2021,''ListF_'');" type="checkbox" rel="chkall">
<label for="ckb_CheckAllListF_2021">全选</label></li>
<li areaid="15" class="listTit" style="position: static;" scroll="no"><a id="ListF_2021_btn_buildNew" class="playAll" title="保   存" href="javascript:void(0);" onclick="javascript:DcxRun.ListF_2021.SubmitForm();">保   存</a></li>
<li areaid="16" class="listTit" style="position: static;" scroll="no"><a id="ListF_2021_btn_buildNew" class="lMdBtn" title="添加1行" href="javascript:void(0);" onclick="javascript:DcxForm.AddRow(this,1,2021,''ListF_'');">添   加</a></li>
<li areaid="17" class="listTit" style="position: static;" scroll="no"><a id="ListF_2021_btn_buildNew" class="lMdBtn" title="添加5行" href="javascript:void(0);" onclick="javascript:DcxForm.AddRow(this,5,2021,''ListF_'');">添加5行</a></li>
<li areaid="18" class="listTit" style="position: static;" scroll="no"><a id="ListF_2021_deletebut" class="playAll" title="删   除" href="javascript:void(0);" onclick="javascript:DcxForm.DeleteRow(this,2021,''ListF_'');">删   除</a></li>
<li areaid="19" class="listTit" style="position: static;" scroll="no"><a id="ListF_2021_deletebut" class="lMdBtn" title="删除全部" href="javascript:void(0);" onclick="javascript:DcxForm.DeleteAllRow(this,2021,''ListF_'');">删除全部</a></li>

<li areaid="21" class="listTit" style="position: static;" scroll="no"><a id="ListF_2021_refreshbut" class="lMdBtn" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(2021,''ListF_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="22" class="listTit_page" style="width: 280px; height: 30px; position: static;" id="li2_ListF_2021" scroll="no">
<a id="ListF_2021_FirstPage" isfirstpage="1" class="btn_page firstpage" title="首页" onclick="javascript:DcxSch.GetHtml(2021,''ListF_'',''h'');" href="javascript:void(0);">首页</a>
<a id="ListF_2021_PrevPage" isprevpage="1" class="btn_page prvpage" title="上一页" onclick="javascript:DcxSch.GetHtml(2021,''ListF_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex">
<select id="ddl_ListF_2021_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(2021,''ListF_'',''a'',this);">
</select>
</span>
<a id="ListF_2021_NextPage" isnextpage="1" class="btn_page nextpage" onclick="javascript:DcxSch.GetHtml(2021,''ListF_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<a id="ListF_2021_LastPage" islastpage="1" class="btn_page lastpage" onclick="javascript:DcxSch.GetHtml(2021,''ListF_'',''t'');" href="javascript:void(0);" title="最后一页">最后一页</a>
<span class="page">第</span>
<span id="ListF_2021_CurrentPage_lbl" iscurpage="1" class="page_data">0</span>
<span class="page">页,共</span>&nbsp; 
<span id="ListF_2021_PageCount_lbl" ispagecount="1" class="page_data">0</span>
<span class="page">页 </span>
<span id="ListF_2021_RecCount_lbl" isrecortcount="1" class="page_data">0</span>
<span class="page">条记录</span>
</li>
</ul>
</div>
<div class="listform listarea">
<div class="lf-head">
<ul isgroup="1" islisthead="1" islonly="1" groupid="2" class="ul-listtitle" style="width: 860px;" isrple="1">
<li areaid="23" class="li-head-item" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><label class="head-label" istitle="1">序号</label></li><li areaid="24" class="li-head-item" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><label class="head-label" istitle="1">应用模块</label></li><li areaid="30" class="li-head-item" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><label class="head-label" istitle="1">宽度 </label></li><li areaid="29" class="li-head-item" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><label class="head-label" istitle="1">高度 </label></li><li areaid="32" class="li-head-item" style="width: 170px; height: 30px; clear: right; float: left; position: static;" scroll="no"><label class="head-label" istitle="1">创建者</label></li>    </ul>
</div>
<div class="lf-body">','','','','','','',3,-1,-1,-1,1,'2021,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=34,[Form_EntId]=2021,[EntId]=2021,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[FieldName]='MEntBegin',[FieldDataTypeId]=-1,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=-1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=-1,[FieldTypeId]=12,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<!-- 开始 -->
<!-- 功能键栏 -->
<div class="listform toolbar-opt">
<!--功能键栏-->
<ul islonly="1" class="itemUl1 repUl1" isgroup="1" groupid="1" style="width: 822px; " isrple="1"> <li class="putCont" scroll="no" style="position: static;">
 <input class="chPut" id="ckb_CheckAllListF_2021" onclick="javascript:DcxCom.CheckedAll(this,2021,''ListF_'');" type="checkbox" rel="chkall">
<label for="ckb_CheckAllListF_2021">全选</label></li>
<li areaid="15" class="listTit" style="position: static;" scroll="no"><a id="ListF_2021_btn_buildNew" class="playAll" title="保   存" href="javascript:void(0);" onclick="javascript:DcxRun.ListF_2021.SubmitForm();">保   存</a></li>
<li areaid="16" class="listTit" style="position: static;" scroll="no"><a id="ListF_2021_btn_buildNew" class="lMdBtn" title="添加1行" href="javascript:void(0);" onclick="javascript:DcxForm.AddRow(this,1,2021,''ListF_'');">添   加</a></li>
<li areaid="17" class="listTit" style="position: static;" scroll="no"><a id="ListF_2021_btn_buildNew" class="lMdBtn" title="添加5行" href="javascript:void(0);" onclick="javascript:DcxForm.AddRow(this,5,2021,''ListF_'');">添加5行</a></li>
<li areaid="18" class="listTit" style="position: static;" scroll="no"><a id="ListF_2021_deletebut" class="playAll" title="删   除" href="javascript:void(0);" onclick="javascript:DcxForm.DeleteRow(this,2021,''ListF_'');">删   除</a></li>
<li areaid="19" class="listTit" style="position: static;" scroll="no"><a id="ListF_2021_deletebut" class="lMdBtn" title="删除全部" href="javascript:void(0);" onclick="javascript:DcxForm.DeleteAllRow(this,2021,''ListF_'');">删除全部</a></li>

<li areaid="21" class="listTit" style="position: static;" scroll="no"><a id="ListF_2021_refreshbut" class="lMdBtn" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(2021,''ListF_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="22" class="listTit_page" style="width: 280px; height: 30px; position: static;" id="li2_ListF_2021" scroll="no">
<a id="ListF_2021_FirstPage" isfirstpage="1" class="btn_page firstpage" title="首页" onclick="javascript:DcxSch.GetHtml(2021,''ListF_'',''h'');" href="javascript:void(0);">首页</a>
<a id="ListF_2021_PrevPage" isprevpage="1" class="btn_page prvpage" title="上一页" onclick="javascript:DcxSch.GetHtml(2021,''ListF_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex">
<select id="ddl_ListF_2021_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(2021,''ListF_'',''a'',this);">
</select>
</span>
<a id="ListF_2021_NextPage" isnextpage="1" class="btn_page nextpage" onclick="javascript:DcxSch.GetHtml(2021,''ListF_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<a id="ListF_2021_LastPage" islastpage="1" class="btn_page lastpage" onclick="javascript:DcxSch.GetHtml(2021,''ListF_'',''t'');" href="javascript:void(0);" title="最后一页">最后一页</a>
<span class="page">第</span>
<span id="ListF_2021_CurrentPage_lbl" iscurpage="1" class="page_data">0</span>
<span class="page">页,共</span>&nbsp; 
<span id="ListF_2021_PageCount_lbl" ispagecount="1" class="page_data">0</span>
<span class="page">页 </span>
<span id="ListF_2021_RecCount_lbl" isrecortcount="1" class="page_data">0</span>
<span class="page">条记录</span>
</li>
</ul>
</div>
<div class="listform listarea">
<div class="lf-head">
<ul isgroup="1" islisthead="1" islonly="1" groupid="2" class="ul-listtitle" style="width: 860px;" isrple="1">
<li areaid="23" class="li-head-item" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><label class="head-label" istitle="1">序号</label></li><li areaid="24" class="li-head-item" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><label class="head-label" istitle="1">应用模块</label></li><li areaid="30" class="li-head-item" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><label class="head-label" istitle="1">宽度 </label></li><li areaid="29" class="li-head-item" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><label class="head-label" istitle="1">高度 </label></li><li areaid="32" class="li-head-item" style="width: 170px; height: 30px; clear: right; float: left; position: static;" scroll="no"><label class="head-label" istitle="1">创建者</label></li>    </ul>
</div>
<div class="lf-body">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='',[CtrlbackHtml]='',[CtrlLastHtml]='',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2021,' where  [FldUId]='e1b25762-01ae-eb75-5c0c-a7730944b753' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='bad6624c-46e5-d01e-e088-fe2d36d150a0'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'bad6624c-46e5-d01e-e088-fe2d36d150a0',2021,2021,'00000000-0000-0000-0000-000000000000',2,'SortOrder',1,1,4,'1',5,1,1,0,1,1,-1,-1,1,0,'','','','','isgroup="1" groupid="3" class="ul-listfield" style="width: 860px;" isrple="1">
<li areaid="25" class="li-listfield" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><div class="list-field">
	<span class="form-ctr" isfcontain="1">','','','<input  id="d2021_SortOrder%trindex%" CtrlPrex="ListF_"','type="text" class="lt-txt"  style="width:150px;" AutoAddDigit=1 Digit="2" onchange ="javascript:DcxForm.ListTxtChange(this,2021,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2021,''ListF_'',2021,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2021,''ListF_'',2021,true);" EntId="2021" IsField=1 DBField=1 IsPost=1 FieldName="SortOrder" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="1" vlk=0    value="','" />','',3,-1,-1,-1,1,'2021,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=1,[Form_EntId]=2021,[EntId]=2021,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[FieldName]='SortOrder',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=4,[DefaultValue]='1',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='isgroup="1" groupid="3" class="ul-listfield" style="width: 860px;" isrple="1">
<li areaid="25" class="li-listfield" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><div class="list-field">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<input  id="d2021_SortOrder%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='type="text" class="lt-txt"  style="width:150px;" AutoAddDigit=1 Digit="2" onchange ="javascript:DcxForm.ListTxtChange(this,2021,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2021,''ListF_'',2021,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2021,''ListF_'',2021,true);" EntId="2021" IsField=1 DBField=1 IsPost=1 FieldName="SortOrder" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="1" vlk=0    value="',[CtrlbackHtml]='" />',[CtrlLastHtml]='',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2021,' where  [FldUId]='bad6624c-46e5-d01e-e088-fe2d36d150a0' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='f79ec5d1-bdca-29c8-3a52-bf08069d47ee'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'f79ec5d1-bdca-29c8-3a52-bf08069d47ee',2021,2021,'00000000-0000-0000-0000-000000000000',3,'EntId',1,1,2,'SELECT [PlugName],0-[PlugId] FROM [Dcx_HomePagePlug] union SELECT [EntName],[EntId] FROM [Dcx_Entity_Run] where [ParentId]<1 and [MenuId]=isnuLL((SELECT top 1 [HomePageMenuId] FROM [Dcx_RuningSysParam]),(SELECT top 1 [MenuId] FROM [Dcx_Menu_Run] where ParentId<1))',2,1,1,0,3,1,-1,-1,1,0,'','','','','</span>

</div>
</li><li areaid="26" class="li-listfield" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><div class="list-field">
	<span class="form-ctr" isfcontain="1">','','','<select id="d2021_EntId%trindex%" CtrlPrex="ListF_"','class="form-select"  onclick ="javascript:DcxVld.ValidateFocus(this,2021,''ListF_'',2021,true);" onchange ="javascript:DcxForm.ListSelectChange(this,2021,''ListF_'');DcxVld.Validate(this,2021,''ListF_'',2021,true,$(this).val());" EntId="2021" IsField=1 DBField=1 IsPost=1 FieldName="EntId" dType="1" Vtp="2" RDT="1" Isc="1" RId="1" CId="3" FId="2" vlk=0    style="width:150px;">','</select>','',3,-1,-1,-1,1,'2021,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=2,[Form_EntId]=2021,[EntId]=2021,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[FieldName]='EntId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=2,[DefaultValue]='SELECT [PlugName],0-[PlugId] FROM [Dcx_HomePagePlug] union SELECT [EntName],[EntId] FROM [Dcx_Entity_Run] where [ParentId]<1 and [MenuId]=isnuLL((SELECT top 1 [HomePageMenuId] FROM [Dcx_RuningSysParam]),(SELECT top 1 [MenuId] FROM [Dcx_Menu_Run] where ParentId<1))',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

</div>
</li><li areaid="26" class="li-listfield" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><div class="list-field">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<select id="d2021_EntId%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='class="form-select"  onclick ="javascript:DcxVld.ValidateFocus(this,2021,''ListF_'',2021,true);" onchange ="javascript:DcxForm.ListSelectChange(this,2021,''ListF_'');DcxVld.Validate(this,2021,''ListF_'',2021,true,$(this).val());" EntId="2021" IsField=1 DBField=1 IsPost=1 FieldName="EntId" dType="1" Vtp="2" RDT="1" Isc="1" RId="1" CId="3" FId="2" vlk=0    style="width:150px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2021,' where  [FldUId]='f79ec5d1-bdca-29c8-3a52-bf08069d47ee' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='bda7eb33-3b4a-e567-1b1d-25e4daaace12'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'bda7eb33-3b4a-e567-1b1d-25e4daaace12',2021,2021,'00000000-0000-0000-0000-000000000000',4,'WIdth',1,1,5,'400',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>


</div>
</li><li areaid="28" class="li-listfield" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><div class="list-field">
	<span class="form-ctr" isfcontain="1">','','','<input  id="d2021_WIdth%trindex%" CtrlPrex="ListF_"','type="text" class="lt-txt"  style="width:150px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2021,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2021,''ListF_'',2021,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2021,''ListF_'',2021,true);" EntId="2021" IsField=1 DBField=1 IsPost=1 FieldName="WIdth" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="3" vlk=0    value="','" />','',3,-1,-1,-1,1,'2021,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=3,[Form_EntId]=2021,[EntId]=2021,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=4,[FieldName]='WIdth',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=5,[DefaultValue]='400',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>


</div>
</li><li areaid="28" class="li-listfield" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><div class="list-field">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<input  id="d2021_WIdth%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='type="text" class="lt-txt"  style="width:150px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2021,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2021,''ListF_'',2021,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2021,''ListF_'',2021,true);" EntId="2021" IsField=1 DBField=1 IsPost=1 FieldName="WIdth" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="3" vlk=0    value="',[CtrlbackHtml]='" />',[CtrlLastHtml]='',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2021,' where  [FldUId]='bda7eb33-3b4a-e567-1b1d-25e4daaace12' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='cb818632-5dd8-f133-54bd-c592b1f50c41'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'cb818632-5dd8-f133-54bd-c592b1f50c41',2021,2021,'00000000-0000-0000-0000-000000000000',5,'Height',1,1,6,'350',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>

</div>
</li><li areaid="27" class="li-listfield" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><div class="list-field">
	<span class="form-ctr" isfcontain="1">','','','<input  id="d2021_Height%trindex%" CtrlPrex="ListF_"','type="text" class="lt-txt"  style="width:150px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2021,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2021,''ListF_'',2021,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2021,''ListF_'',2021,true);" EntId="2021" IsField=1 DBField=1 IsPost=1 FieldName="Height" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="4" vlk=0    value="','" />','',3,-1,-1,-1,1,'2021,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=4,[Form_EntId]=2021,[EntId]=2021,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=5,[FieldName]='Height',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=6,[DefaultValue]='350',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

</div>
</li><li areaid="27" class="li-listfield" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><div class="list-field">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<input  id="d2021_Height%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='type="text" class="lt-txt"  style="width:150px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2021,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2021,''ListF_'',2021,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2021,''ListF_'',2021,true);" EntId="2021" IsField=1 DBField=1 IsPost=1 FieldName="Height" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="4" vlk=0    value="',[CtrlbackHtml]='" />',[CtrlLastHtml]='',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2021,' where  [FldUId]='cb818632-5dd8-f133-54bd-c592b1f50c41' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='4e800819-63eb-2ab2-9577-a03e04688c65'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'4e800819-63eb-2ab2-9577-a03e04688c65',2021,2021,'00000000-0000-0000-0000-000000000000',6,'UserId',1,1,7,'{$userId}',0,9,1,0,4,1,-1,-1,1,0,'','','','{$userId},','</span>

</div>
</li><li areaid="31" class="li-listfield" style="width: 170px; height: 30px; clear: right; float: left; position: static;" scroll="no"><div class="list-field">
	<span class="form-ctr" isfcontain="1">','','','<span id="d2021_UserId%trindex%" CtrlPrex="ListF_"','class="form-lbl" style="width:150px;" IsForField=1 EntId="2021" CId="4" FId="5" Vtp="0"  >','</span><input id="d2021_UserId%trindex%_hid" CtrlPrex="ListF_" type="hidden"  EntId="2021" IsField=1 DBField=1 IsPost=1 FieldName="UserId" dType="1" Vtp="0" RDT="1" Isc="1" RId="9" CId="4" FId="5" vlk=0    Digit="-1" value="','" />',3,-1,-1,-1,1,'2021,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=5,[Form_EntId]=2021,[EntId]=2021,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=6,[FieldName]='UserId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=7,[DefaultValue]='{$userId}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$userId},',[BeforeHtml]='</span>

</div>
</li><li areaid="31" class="li-listfield" style="width: 170px; height: 30px; clear: right; float: left; position: static;" scroll="no"><div class="list-field">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<span id="d2021_UserId%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='class="form-lbl" style="width:150px;" IsForField=1 EntId="2021" CId="4" FId="5" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d2021_UserId%trindex%_hid" CtrlPrex="ListF_" type="hidden"  EntId="2021" IsField=1 DBField=1 IsPost=1 FieldName="UserId" dType="1" Vtp="0" RDT="1" Isc="1" RId="9" CId="4" FId="5" vlk=0    Digit="-1" value="',[CtrlLastHtml]='" />',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2021,' where  [FldUId]='4e800819-63eb-2ab2-9577-a03e04688c65' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='4b96c5e1-b657-e379-a3ef-738c7e186754'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(35,'4b96c5e1-b657-e379-a3ef-738c7e186754',2021,2021,'00000000-0000-0000-0000-000000000000',7,'MEntEnd',-1,2,-1,'',5,-1,1,0,-1,13,-1,-1,0,0,'','','','','</span>

</div>
</li>    </ul>','</div>
</div>
<!-- 结束 -->','','','','','',3,-1,-1,-1,1,'2021,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=35,[Form_EntId]=2021,[EntId]=2021,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=7,[FieldName]='MEntEnd',[FieldDataTypeId]=-1,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=-1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=-1,[FieldTypeId]=13,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

</div>
</li>    </ul>',[LastHtml]='</div>
</div>
<!-- 结束 -->',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='',[CtrlbackHtml]='',[CtrlLastHtml]='',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2021,' where  [FldUId]='4b96c5e1-b657-e379-a3ef-738c7e186754' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=200

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=200  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(200,null,'Dcx_HomePage','Dcx_HomePage',1,0,0,0,0,0,29,1,3,'admin','2013-12-15 17:32:16',3,'admin','2013-12-15 17:32:16',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='Dcx_HomePage',[DBTableByName]='Dcx_HomePage',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=29,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:16',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:16',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=200 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=200  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16904,1,29,200,'int',1,1,1,'Dcx_HomePage','Id','Id','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_HomePage',[FieldName]='Id',[FieldByname]='Id',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=200  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=200  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16905,2,29,200,'int',1,1,1,'Dcx_HomePage','EntId','EntId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_HomePage',[FieldName]='EntId',[FieldByname]='EntId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=200  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=200  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16906,3,29,200,'varchar',2,1,1,'Dcx_HomePage','EntName','EntName','',0,0,1,150,150,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_HomePage',[FieldName]='EntName',[FieldByname]='EntName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=150,[Precision]=150,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=200  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=200  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16907,4,29,200,'int',1,1,1,'Dcx_HomePage','SortOrder','SortOrder','0',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_HomePage',[FieldName]='SortOrder',[FieldByname]='SortOrder',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=200  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=200  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16908,5,29,200,'int',1,1,1,'Dcx_HomePage','Width','Width','0',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_HomePage',[FieldName]='Width',[FieldByname]='Width',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=200  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=200  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16909,6,29,200,'int',1,1,1,'Dcx_HomePage','Height','Height','0',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_HomePage',[FieldName]='Height',[FieldByname]='Height',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=200  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=200  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16910,7,29,200,'int',1,1,1,'Dcx_HomePage','UserId','UserId','0',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_HomePage',[FieldName]='UserId',[FieldByname]='UserId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=200  and  [FieldId]=7 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=3294  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(3294,'94f42736-899b-4ae8-96d8-bf086eb02294','管理搜索',3278,'/System/MnSearchItem.aspx?menuid=3294&navindex=9',66,'/images/default.gif','/images/default.gif',0,'rightFrame',0,0,'',29,-1,29,2,1,1,null,'',0,0,'',null,3,'admin','2013-10-9 4:22:24',1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='94f42736-899b-4ae8-96d8-bf086eb02294',[MenuName]='管理搜索',[ParentId]=3278,[ProPath]='/System/MnSearchItem.aspx?menuid=3294&navindex=9',[TemplateId]=66,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=0,[Target]='rightFrame',[IsOpen]=0,[IsHidden]=0,[Remark]='',[SSystemId]=29,[SMenuId]=-1,[SystemId]=29,[EntityCount]=2,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=0,[Creator]='',[CreateTime]=null,[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-9 4:22:24',[AccountId]=1 where  [MenuId]=3294 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3294  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(1053,3294,'管理搜索项目','Public',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='管理搜索项目',[RoleName]='Public',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3294  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3294  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(986,3294,'管理搜索项目','系统管理员',3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='管理搜索项目',[RoleName]='系统管理员',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3294  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2019  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2019,3294,'管理搜索项目',1,325,0,'Dcx_SearchItem',0,0,1,29,2019,null,null,29,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3294,[EntName]='管理搜索项目',[MEnt]=1,[DBTableId]=325,[DBConnectId]=0,[DBTableName]='Dcx_SearchItem',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2019,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2019 
      end
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2022  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2022,3294,'管理插件',1,201,0,'Dcx_HomePagePlug',0,0,1,29,2022,null,null,29,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3294,[EntName]='管理插件',[MEnt]=1,[DBTableId]=201,[DBConnectId]=0,[DBTableName]='Dcx_HomePagePlug',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2022,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2022 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=2019

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2019  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11056,3294,2019,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=3294,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2019  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2019

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2019  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20450,29,3294,2019,66,2,9,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3294,[TemplateId]=66,[ModuleId]=9,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2019  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2019  and  [ModuleTypeId]=17  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20451,29,3294,2019,66,17,15,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3294,[TemplateId]=66,[ModuleId]=15,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2019  and  [ModuleTypeId]=17 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_SearchForm_Run]  where [EntId]=2019

--Dcx_SearchForm_Run
      if (select count(1) from [Dcx_SearchForm_Run] where  [EntId]=2019  )<1 
      begin 
           Insert into [Dcx_SearchForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('d7f7dde8-6c35-6995-9206-9bb9ed253039','搜索项目',2019,9,'','',0,'','','DcxRun.SearchF_2019= {"MenuId":3294,"MEntId":2019,"EntName":"管理搜索项目","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2019":{"EntId":2019,"KeyFieldValue":"","DBTableName":"","KeyField":"SearchId","KeydtId":2,"JoinKeyField":"SearchId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_2019.EntMsg.E2019.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_SearchItem","EntId":2019,"KeyField":"SearchId","MKeyField":"SearchId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"Title":{"DtId":2,"DB":1,"CId":1,"FL":50},"EntId":{"DtId":1,"DB":1,"CId":1,"FL":4}},"Data":{"Row":[]}};
}
DcxRun.SearchF_2019.EntMsg.E2019.GetDataRowModel=function()
{
    return {"Title":"","EntId":-1,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"SearchId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_2019.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2019,''SearchF_'',buildNew,closeDlg);

}','',10,'','','','2019*SearchId*2*SearchId*2*Dcx_SearchItem*管理搜索项目',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-10-8 0:57:01',3,'admin','2013-8-22 5:58:41',1)
      end
      else 
      begin 
           update [Dcx_SearchForm_Run] set [FormId]='d7f7dde8-6c35-6995-9206-9bb9ed253039',[FormName]='搜索项目',[ModuleId]=9,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.SearchF_2019= {"MenuId":3294,"MEntId":2019,"EntName":"管理搜索项目","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2019":{"EntId":2019,"KeyFieldValue":"","DBTableName":"","KeyField":"SearchId","KeydtId":2,"JoinKeyField":"SearchId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_2019.EntMsg.E2019.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_SearchItem","EntId":2019,"KeyField":"SearchId","MKeyField":"SearchId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"Title":{"DtId":2,"DB":1,"CId":1,"FL":50},"EntId":{"DtId":1,"DB":1,"CId":1,"FL":4}},"Data":{"Row":[]}};
}
DcxRun.SearchF_2019.EntMsg.E2019.GetDataRowModel=function()
{
    return {"Title":"","EntId":-1,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"SearchId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_2019.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2019,''SearchF_'',buildNew,closeDlg);

}',[LoadingSql]='',[PageSize]=10,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='2019*SearchId*2*SearchId*2*Dcx_SearchItem*管理搜索项目',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-10-8 0:57:01',[EditorId]=3,[Editor]='admin',[EditTime]='2013-8-22 5:58:41',[AccountId]=1 where  [EntId]=2019 
      end




--Dcx_SearchFormField_Run
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='4b0d90fd-afcc-1470-5edb-f6c5012f0e2e'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'4b0d90fd-afcc-1470-5edb-f6c5012f0e2e',2019,2019,'00000000-0000-0000-0000-000000000000',1,'Like','Title',2,2,2,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','<div class="searchform">
<fieldset class="searchform-fieldset">
<legend class="searchform-legend">
<ul isgroup="1" groupid="1" class="ul-title" isrple="1">
<li areaid="6" class="li-title-area li-title-img" style="position: static;" scroll="no">
<img src="/css/style/default/module/search/images/gray/searchtitle.png" class="title-img">
</li>
<li areaid="7" class="li-title-area li-title" style="position: static;" scroll="no">
快速搜索
</li>
</ul>
</legend>
<ul isgroup="1" groupid="2" class="ul-group w720" isrple="1">
<li areaid="8" class="li-area w240 h32" style="width: 270px; height: 32px; position: static;" scroll="no"><label class="area-title pad7" fldid="1" istitle="1">标题</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2019_Title"   type="text" class="form-txt"  style="width:150px;" EntId="2019" IsField=1 DBField=1 IsPost=1 FieldName="Title" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'2019,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=1,[Form_EntId]=2019,[EntId]=2019,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[CompareOperatorType]='Like',[FieldName]='Title',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=2,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="searchform">
<fieldset class="searchform-fieldset">
<legend class="searchform-legend">
<ul isgroup="1" groupid="1" class="ul-title" isrple="1">
<li areaid="6" class="li-title-area li-title-img" style="position: static;" scroll="no">
<img src="/css/style/default/module/search/images/gray/searchtitle.png" class="title-img">
</li>
<li areaid="7" class="li-title-area li-title" style="position: static;" scroll="no">
快速搜索
</li>
</ul>
</legend>
<ul isgroup="1" groupid="2" class="ul-group w720" isrple="1">
<li areaid="8" class="li-area w240 h32" style="width: 270px; height: 32px; position: static;" scroll="no"><label class="area-title pad7" fldid="1" istitle="1">标题</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2019_Title"   type="text" class="form-txt"  style="width:150px;" EntId="2019" IsField=1 DBField=1 IsPost=1 FieldName="Title" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2019,' where  [FldUId]='4b0d90fd-afcc-1470-5edb-f6c5012f0e2e' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='16188e21-9983-aa5d-1b10-63a8819a13eb'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'16188e21-9983-aa5d-1b10-63a8819a13eb',2019,2019,'00000000-0000-0000-0000-000000000000',2,'=','EntId',1,1,3,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
</div>
</li>
<li areaid="9" class="li-area w240 h32" style="width: 270px; height: 32px; position: static;" scroll="no"><label class="area-title pad7" fldid="2" istitle="1">应用ID</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','</span>
</div>
</li>
<li areaid="10" style="clear: right; float: none; position: static;" class="li-area w120 h32" scroll="no">
<div class="field-content pad4 search-btn-div">
  <a id="2019_searchBT" class="search-btn" href="javascript:void(0);" onclick="javascript:return VL_Search(2019);">
  开始搜索</a>
</div>
</li>
</ul>
</fieldset>
</div>','','','<input  id="d2019_EntId"   type="text" class="form-txt"  style="width:150px;" EntId="2019" IsField=1 DBField=1 IsPost=1 FieldName="EntId" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="2" vlk=0    Cpre="="  value="','"/>','',1,-1,-1,-1,-1,0,'2019,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=2,[Form_EntId]=2019,[EntId]=2019,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[CompareOperatorType]='=',[FieldName]='EntId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=3,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="9" class="li-area w240 h32" style="width: 270px; height: 32px; position: static;" scroll="no"><label class="area-title pad7" fldid="2" istitle="1">应用ID</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
</div>
</li>
<li areaid="10" style="clear: right; float: none; position: static;" class="li-area w120 h32" scroll="no">
<div class="field-content pad4 search-btn-div">
  <a id="2019_searchBT" class="search-btn" href="javascript:void(0);" onclick="javascript:return VL_Search(2019);">
  开始搜索</a>
</div>
</li>
</ul>
</fieldset>
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2019_EntId"   type="text" class="form-txt"  style="width:150px;" EntId="2019" IsField=1 DBField=1 IsPost=1 FieldName="EntId" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="2" vlk=0    Cpre="="  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2019,' where  [FldUId]='16188e21-9983-aa5d-1b10-63a8819a13eb' 
      end



Delete from [Dcx_ListForm_Run]  where [EntId]=2019

--Dcx_ListForm_Run
      if (select count(1) from [Dcx_ListForm_Run] where  [EntId]=2019  )<1 
      begin 
           Insert into [Dcx_ListForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[OtherMsg],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[AccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime])values('d2684a12-ebf9-73c6-8272-0ae01bde0077','搜索项目',2019,-1,'','',0,'<script type="text/javascript" src="/js/module/Report/ReportRun.js"></script>
<script src="/Js/Control/LTreeRList/LTreeRList.js"></script>','','DcxRun.ListF_2019= {"MenuId":3294,"MEntId":2019,"EntName":"管理搜索项目","CtrlPrex":"ListF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2019":{"EntId":2019,"KeyFieldValue":"","DBTableName":"","KeyField":"SearchId","KeydtId":2,"JoinKeyField":"SearchId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}


if(runObj.NoInit)
{
   entMsg.E2019.FormData=null;
   mEntMsg.RowCount=0;mEntMsg.RecortCount=0;entMsg.E2019.RowCount=0;

}

 DcxForm.InitSheetForm(2019,''ListF_'',entMsg.E2019.FormData,entMsg.E2019.$listContainer);

 DcxForm.DealPage(2019,''ListF_'');

 DcxForm.SetPower(2019,''ListF_'');


}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":16,"Ent":[{"EntId":2019,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":2,"Vld":[{"Id":4,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":3,"Vld":[{"Id":6,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":7,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":4,"Vld":[{"Id":8,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":9,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":5,"Vld":[{"Id":10,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":11,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":6,"Vld":[{"Id":12,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":39,"Vld":[{"Id":13,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":14,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":90,"Vld":[{"id":15,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"id":16,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":99,"Vld":[]}]}]};
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.ListF_2019.EntMsg.E2019.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_SearchItem","EntId":2019,"KeyField":"SearchId","MKeyField":"SearchId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"MenuId":{"DtId":1,"DB":1,"CId":40,"FL":4},"Title":{"DtId":2,"DB":1,"CId":1,"FL":50},"EntId":{"DtId":1,"DB":1,"CId":3,"FL":4},"SortOrder":{"DtId":1,"DB":1,"CId":1,"FL":4},"FieldName":{"DtId":2,"DB":1,"CId":4,"FL":50},"FldId":{"DtId":1,"DB":1,"CId":3,"FL":4},"MenuName":{"DtId":2,"DB":1,"CId":1,"FL":50}},"Data":{"Row":[]}};
}
DcxRun.ListF_2019.EntMsg.E2019.GetDataRowModel=function()
{
    return {"MenuId":-1,"Title":"","EntId":-1,"SortOrder":1,"FieldName":"","FldId":-1,"MenuName":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"SearchId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_ListF_2019_501(obj,curFieldName){
 var EntId=2019;
 var FldId=2;
 var CtrlPrex=''ListF_'';
 var FieldName=''Title'';
 var $formContainer=DcxForm.GetRow(obj,2019,''ListF_'');
 var $ddlContainer=null;
var strCode="{@EntId&}" ;
var v_f1=null;
if(''EntId''==curFieldName)
  v_f1=$(obj).find(''option:selected'').text();
else 
  v_f1=DcxForm.GetDdlValue(null,2019,''ListF_'',''EntId'',$formContainer,true,true);
if(Dcx.IsNull(v_f1))
   v_f1=0;
strCode=strCode.replaceAll("{@EntId&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var rowindex=$formContainer.attr("rowix");
var Cur_ctrlId="d2019_Titlefrom_tr"+rowindex;
var $AcceptObj=$formContainer.find("#"+Cur_ctrlId);
$AcceptObj.val(myVal);
$AcceptObj.change();
}
function GetLinkCtrlData_ListF_2019_502(obj,curFieldName){
 var EntId=2019;
 var FldId=3;
 var CtrlPrex=''ListF_'';
 var FieldName=''EntId'';
 var $formContainer=DcxForm.GetRow(obj,2019,''ListF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(2019,''ListF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OptypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"EntId\",FldId:"+FldId+",EntId:2019,CtrlPrex:\"ListF_\",OpTypeId:"+OptypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"SearchId\",CtrlTypeId:3,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''MenuId''==curFieldName)
  v_f1=DcxForm.GetBindingVCtrlValue($(obj));
else 
  v_f1=DcxForm.GetDdlValue(null,2019,''ListF_'',''MenuId'',40,$formContainer,true,false);
if(Dcx.IsNull(v_f1))
   v_f1=0;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@MenuId}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var rowindex=$formContainer.attr("rowix");
var Cur_ctrlId="d2019_EntIdfrom_tr"+rowindex;
var $AcceptObj=$formContainer.find("#"+Cur_ctrlId);
$AcceptObj.html(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_ListF_2019_503(obj,curFieldName){
 var EntId=2019;
 var FldId=5;
 var CtrlPrex=''ListF_'';
 var FieldName=''FieldName'';
 var $formContainer=DcxForm.GetRow(obj,2019,''ListF_'');
 var $ddlContainer=null;
var strCode="{@FldId&}" ;
var v_f1=null;
if(''FldId''==curFieldName)
  v_f1=$(obj).find(''option:selected'').text();
else 
  v_f1=DcxForm.GetDdlValue(null,2019,''ListF_'',''FldId'',$formContainer,true,true);
if(Dcx.IsNull(v_f1))
   v_f1=0;
strCode=strCode.replaceAll("{@FldId&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var rowindex=$formContainer.attr("rowix");
var Cur_ctrlId="d2019_FieldNamefrom_tr"+rowindex;
var $AcceptObj=$formContainer.find("#"+Cur_ctrlId);
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
$AcceptObj.click();
}
function GetLinkCtrlData_ListF_2019_504(obj,curFieldName){
 var EntId=2019;
 var FldId=6;
 var CtrlPrex=''ListF_'';
 var FieldName=''FldId'';
 var $formContainer=DcxForm.GetRow(obj,2019,''ListF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(2019,''ListF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OptypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"FldId\",FldId:"+FldId+",EntId:2019,CtrlPrex:\"ListF_\",OpTypeId:"+OptypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"SearchId\",CtrlTypeId:3,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''EntId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,2019,''ListF_'',''EntId'',$formContainer,true,false);
if(Dcx.IsNull(v_f1))
   v_f1=0;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@EntId}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var rowindex=$formContainer.attr("rowix");
var Cur_ctrlId="d2019_FldIdfrom_tr"+rowindex;
var $AcceptObj=$formContainer.find("#"+Cur_ctrlId);
$AcceptObj.html(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_ListF_2019_505(obj,curFieldName){
 var EntId=2019;
 var FldId=39;
 var CtrlPrex=''ListF_'';
 var FieldName=''MenuName'';
 var $formContainer=DcxForm.GetRow(obj,2019,''ListF_'');
 var $ddlContainer=null;
var strCode="{@MenuId&}" ;
var v_f1=null;
if(''MenuId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,2019,''ListF_'',''MenuId'',40,$formContainer,true,true);
if(Dcx.IsNull(v_f1))
   v_f1=0;
strCode=strCode.replaceAll("{@MenuId&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var rowindex=$formContainer.attr("rowix");
var Cur_ctrlId="d2019_MenuNamefrom_tr"+rowindex;
var $AcceptObj=$formContainer.find("#"+Cur_ctrlId);
$AcceptObj.val(myVal);
$AcceptObj.change();
}



 function GetLinkCtrl_ListF_2019(obj,FieldName,EntId)
{

}
/****************上：AJAX回调函数******************/


DcxRun.ListF_2019.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitLf(2019,''ListF_'',buildNew,closeDlg);

}','<$2019$>select *  from (select row_number() over( order by [SearchId])as dcx_rowid,[SortOrder],[Title],[MenuId],[MenuName],[EntId],[FieldName],[FldId],[SearchId] from Dcx_SearchItem  where ([AccountId]={$AccountId}   or    [AccountId]=1) and {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$2019$><$2019:Count$>select count([SearchId]) from Dcx_SearchItem where ([AccountId]={$AccountId}   or    [AccountId]=1) and {$SearchArea}</$2019:Count$>','2019*SearchId*2*SearchId*2*Dcx_SearchItem*管理搜索项目',1000,'','','',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',1,3,'admin','2012-10-8 0:57:06',3,'admin','2013-11-24 4:04:34')
      end
      else 
      begin 
           update [Dcx_ListForm_Run] set [FormId]='d2684a12-ebf9-73c6-8272-0ae01bde0077',[FormName]='搜索项目',[ModuleId]=-1,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script type="text/javascript" src="/js/module/Report/ReportRun.js"></script>
<script src="/Js/Control/LTreeRList/LTreeRList.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.ListF_2019= {"MenuId":3294,"MEntId":2019,"EntName":"管理搜索项目","CtrlPrex":"ListF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2019":{"EntId":2019,"KeyFieldValue":"","DBTableName":"","KeyField":"SearchId","KeydtId":2,"JoinKeyField":"SearchId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}


if(runObj.NoInit)
{
   entMsg.E2019.FormData=null;
   mEntMsg.RowCount=0;mEntMsg.RecortCount=0;entMsg.E2019.RowCount=0;

}

 DcxForm.InitSheetForm(2019,''ListF_'',entMsg.E2019.FormData,entMsg.E2019.$listContainer);

 DcxForm.DealPage(2019,''ListF_'');

 DcxForm.SetPower(2019,''ListF_'');


}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":16,"Ent":[{"EntId":2019,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":2,"Vld":[{"Id":4,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":3,"Vld":[{"Id":6,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":7,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":4,"Vld":[{"Id":8,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":9,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":5,"Vld":[{"Id":10,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":11,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":6,"Vld":[{"Id":12,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":39,"Vld":[{"Id":13,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":14,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":90,"Vld":[{"id":15,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"id":16,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":99,"Vld":[]}]}]};
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.ListF_2019.EntMsg.E2019.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_SearchItem","EntId":2019,"KeyField":"SearchId","MKeyField":"SearchId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"MenuId":{"DtId":1,"DB":1,"CId":40,"FL":4},"Title":{"DtId":2,"DB":1,"CId":1,"FL":50},"EntId":{"DtId":1,"DB":1,"CId":3,"FL":4},"SortOrder":{"DtId":1,"DB":1,"CId":1,"FL":4},"FieldName":{"DtId":2,"DB":1,"CId":4,"FL":50},"FldId":{"DtId":1,"DB":1,"CId":3,"FL":4},"MenuName":{"DtId":2,"DB":1,"CId":1,"FL":50}},"Data":{"Row":[]}};
}
DcxRun.ListF_2019.EntMsg.E2019.GetDataRowModel=function()
{
    return {"MenuId":-1,"Title":"","EntId":-1,"SortOrder":1,"FieldName":"","FldId":-1,"MenuName":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"SearchId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_ListF_2019_501(obj,curFieldName){
 var EntId=2019;
 var FldId=2;
 var CtrlPrex=''ListF_'';
 var FieldName=''Title'';
 var $formContainer=DcxForm.GetRow(obj,2019,''ListF_'');
 var $ddlContainer=null;
var strCode="{@EntId&}" ;
var v_f1=null;
if(''EntId''==curFieldName)
  v_f1=$(obj).find(''option:selected'').text();
else 
  v_f1=DcxForm.GetDdlValue(null,2019,''ListF_'',''EntId'',$formContainer,true,true);
if(Dcx.IsNull(v_f1))
   v_f1=0;
strCode=strCode.replaceAll("{@EntId&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var rowindex=$formContainer.attr("rowix");
var Cur_ctrlId="d2019_Titlefrom_tr"+rowindex;
var $AcceptObj=$formContainer.find("#"+Cur_ctrlId);
$AcceptObj.val(myVal);
$AcceptObj.change();
}
function GetLinkCtrlData_ListF_2019_502(obj,curFieldName){
 var EntId=2019;
 var FldId=3;
 var CtrlPrex=''ListF_'';
 var FieldName=''EntId'';
 var $formContainer=DcxForm.GetRow(obj,2019,''ListF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(2019,''ListF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OptypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"EntId\",FldId:"+FldId+",EntId:2019,CtrlPrex:\"ListF_\",OpTypeId:"+OptypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"SearchId\",CtrlTypeId:3,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''MenuId''==curFieldName)
  v_f1=DcxForm.GetBindingVCtrlValue($(obj));
else 
  v_f1=DcxForm.GetDdlValue(null,2019,''ListF_'',''MenuId'',40,$formContainer,true,false);
if(Dcx.IsNull(v_f1))
   v_f1=0;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@MenuId}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var rowindex=$formContainer.attr("rowix");
var Cur_ctrlId="d2019_EntIdfrom_tr"+rowindex;
var $AcceptObj=$formContainer.find("#"+Cur_ctrlId);
$AcceptObj.html(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_ListF_2019_503(obj,curFieldName){
 var EntId=2019;
 var FldId=5;
 var CtrlPrex=''ListF_'';
 var FieldName=''FieldName'';
 var $formContainer=DcxForm.GetRow(obj,2019,''ListF_'');
 var $ddlContainer=null;
var strCode="{@FldId&}" ;
var v_f1=null;
if(''FldId''==curFieldName)
  v_f1=$(obj).find(''option:selected'').text();
else 
  v_f1=DcxForm.GetDdlValue(null,2019,''ListF_'',''FldId'',$formContainer,true,true);
if(Dcx.IsNull(v_f1))
   v_f1=0;
strCode=strCode.replaceAll("{@FldId&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var rowindex=$formContainer.attr("rowix");
var Cur_ctrlId="d2019_FieldNamefrom_tr"+rowindex;
var $AcceptObj=$formContainer.find("#"+Cur_ctrlId);
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
$AcceptObj.click();
}
function GetLinkCtrlData_ListF_2019_504(obj,curFieldName){
 var EntId=2019;
 var FldId=6;
 var CtrlPrex=''ListF_'';
 var FieldName=''FldId'';
 var $formContainer=DcxForm.GetRow(obj,2019,''ListF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(2019,''ListF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OptypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"FldId\",FldId:"+FldId+",EntId:2019,CtrlPrex:\"ListF_\",OpTypeId:"+OptypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"SearchId\",CtrlTypeId:3,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''EntId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,2019,''ListF_'',''EntId'',$formContainer,true,false);
if(Dcx.IsNull(v_f1))
   v_f1=0;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@EntId}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var rowindex=$formContainer.attr("rowix");
var Cur_ctrlId="d2019_FldIdfrom_tr"+rowindex;
var $AcceptObj=$formContainer.find("#"+Cur_ctrlId);
$AcceptObj.html(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_ListF_2019_505(obj,curFieldName){
 var EntId=2019;
 var FldId=39;
 var CtrlPrex=''ListF_'';
 var FieldName=''MenuName'';
 var $formContainer=DcxForm.GetRow(obj,2019,''ListF_'');
 var $ddlContainer=null;
var strCode="{@MenuId&}" ;
var v_f1=null;
if(''MenuId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,2019,''ListF_'',''MenuId'',40,$formContainer,true,true);
if(Dcx.IsNull(v_f1))
   v_f1=0;
strCode=strCode.replaceAll("{@MenuId&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var rowindex=$formContainer.attr("rowix");
var Cur_ctrlId="d2019_MenuNamefrom_tr"+rowindex;
var $AcceptObj=$formContainer.find("#"+Cur_ctrlId);
$AcceptObj.val(myVal);
$AcceptObj.change();
}



 function GetLinkCtrl_ListF_2019(obj,FieldName,EntId)
{

}
/****************上：AJAX回调函数******************/


DcxRun.ListF_2019.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitLf(2019,''ListF_'',buildNew,closeDlg);

}',[LoadingSql]='<$2019$>select *  from (select row_number() over( order by [SearchId])as dcx_rowid,[SortOrder],[Title],[MenuId],[MenuName],[EntId],[FieldName],[FldId],[SearchId] from Dcx_SearchItem  where ([AccountId]={$AccountId}   or    [AccountId]=1) and {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$2019$><$2019:Count$>select count([SearchId]) from Dcx_SearchItem where ([AccountId]={$AccountId}   or    [AccountId]=1) and {$SearchArea}</$2019:Count$>',[OtherMsg]='2019*SearchId*2*SearchId*2*Dcx_SearchItem*管理搜索项目',[PageSize]=1000,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[AccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-10-8 0:57:06',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-24 4:04:34' where  [EntId]=2019 
      end




--Dcx_ListFormField_Run
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='3d5b4921-e952-44ee-6ecb-9e3b3dcf1894'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(164,'3d5b4921-e952-44ee-6ecb-9e3b3dcf1894',2019,2019,'00000000-0000-0000-0000-000000000000',1,'MEntBegin',-1,2,-1,'',5,-1,1,0,-1,12,-1,-1,0,0,'','','','','<div class="listform toolbar-opt">
<ul style="width: 791px; height: 35px;line-height: 40px;" class="itemUl1 repUl1" entid="2019" groupid="1" isgroup="1" islonly="1" ctrlprex="ListF_" isrple="1">
<li class="putCont" scroll="no" style="width: 80px; height: 35px; position: static;"><input class="chPut" id="ckb_CheckAllListF_2019" onclick="javascript:DcxCom.CheckedAll(this,2019,''ListF_'');" rel="chkall" type="checkbox" value="on"> <label for="ckb_CheckAllListF_2019">全选</label></li>
<li style="width: 80px; height: 35px; position: static;" class="listTit" scroll="no" areaid="15"><a id="ListF_2019_btn_buildNew" class="playAll" title="保   存" onclick="javascript:DcxRun.ListF_2019.SubmitForm();" href="javascript:void(0);">保 存</a></li>
<li style="width: 80px; height: 35px; position: static;" class="listTit" scroll="no" areaid="16"><a class="lMdBtn" href="javascript:void(0);" id="ListF_2019_btn_buildNew" onclick="javascript:DcxForm.AddRow(this,1,2019,''ListF_'');" title="添加1行">添 加</a></li>
<li style="width: 789px; height: 35px; display: none; position: static;" class="listTit" scroll="no" areaid="17"><a id="ListF_2019_btn_buildNew" class="lMdBtn" title="添加5行" onclick="javascript:DcxForm.AddRow(this,5,2019,''ListF_'');" href="javascript:void(0);">添加5行</a></li>
<li style="height: 35px; width: 80px; position: static;" class="listTit" scroll="no" areaid="18"><a id="ListF_2019_deletebut" class="playAll" title="删   除" onclick="javascript:DcxForm.DeleteRow(this,2019,''ListF_'');" href="javascript:void(0);">删 除</a></li>
<li style="width: 789px; height: 16px; display: none; position: static;" class="listTit" scroll="no" areaid="19"><a id="ListF_2019_deletebut" class="lMdBtn" title="删除全部" onclick="javascript:DcxForm.DeleteAllRow(this,2019,''ListF_'');" href="javascript:void(0);">删除全部</a></li>
<li style="width: 70px; height: 30px; display: none; position: static;" class="listTit" scroll="no" areaid="21"><a class="lMdBtn" href="javascript:void(0);" id="ListF_2019_refreshbut" onclick="javascript:DcxCom.ReLoad(2019,''ListF_'');" title="刷   新">刷 新</a></li><!--分页栏-->
<li style="width: 280px; height: 30px; display: none; position: static;" id="li2_ListF_2019" class="listTit_page" scroll="no" areaid="22" ispage="1"><a class="btn_page firstpage" href="javascript:void(0);" id="ListF_2019_FirstPage" isfirstpage="1" onclick="javascript:DcxSch.GetHtml(2019,''ListF_'',''h'');" title="首页">首页</a> <a class="btn_page prvpage" href="javascript:void(0);" id="ListF_2019_PrevPage" isprevpage="1" onclick="javascript:DcxSch.GetHtml(2019,''ListF_'',''p'');" title="上一页">上一页</a> <span class="ddl_pageindex"><select id="ddl_ListF_2019_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(2019,''ListF_'',''a'',this);"></select> </span><a class="btn_page nextpage" href="javascript:void(0);" id="ListF_2019_NextPage" isnextpage="1" onclick="javascript:DcxSch.GetHtml(2019,''ListF_'',''n'');" title="下一页">下一页</a> <a class="btn_page lastpage" href="javascript:void(0);" id="ListF_2019_LastPage" islastpage="1" onclick="javascript:DcxSch.GetHtml(2019,''ListF_'',''t'');" title="最后一页">最后一页</a> <span class="page">第</span> <span class="page_data" id="ListF_2019_CurrentPage_lbl" iscurpage="1">0</span> <span class="page">页,共</span>&nbsp; <span class="page_data" id="ListF_2019_PageCount_lbl" ispagecount="1">0</span> <span class="page">页 </span><span class="page_data" id="ListF_2019_RecCount_lbl" isrecortcount="1">0</span> <span class="page">条记录</span> </li></ul></div>
<div class="listform listarea">
<div class="lf-head">
<ul style="width: 842px;" class="ul-listtitle" entid="2019" groupid="2" isgroup="1" islonly="1" islisthead="1" ctrlprex="ListF_" isrple="1">
<li style="width: 40px; float: left; height: 30px; clear: none; position: static;" class="li-head-item" scroll="no" areaid="23"></li><li style="width: 70px; float: left; height: 30px; clear: none; position: static;" class="li-head-item" scroll="no" areaid="37"><label class="head-label" istitle="1">序号</label></li>
<li style="width: 170px; float: left; height: 30px; clear: none; position: static;" class="li-head-item" scroll="no" areaid="24"><label class="head-label" istitle="1">标题 </label></li>
<li style="width: 220px; float: left; height: 30px; clear: none; position: static;" class="li-head-item" scroll="no" areaid="34"><label class="head-label" istitle="1">网页 </label></li>
<li style="width: 180px; float: left; height: 30px; clear: none; position: static;" class="li-head-item" scroll="no" areaid="33"><label class="head-label" istitle="1">应用</label></li>
<li style="width: 150px; float: left; height: 30px; clear: right; position: static;" class="li-head-item" scroll="no" areaid="32"><label class="head-label" istitle="1">搜索字段 </label></li></ul></div>
<div class="lf-body">','','','','','','',3,-1,-1,-1,1,'2019,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=164,[Form_EntId]=2019,[EntId]=2019,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[FieldName]='MEntBegin',[FieldDataTypeId]=-1,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=-1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=-1,[FieldTypeId]=12,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="listform toolbar-opt">
<ul style="width: 791px; height: 35px;line-height: 40px;" class="itemUl1 repUl1" entid="2019" groupid="1" isgroup="1" islonly="1" ctrlprex="ListF_" isrple="1">
<li class="putCont" scroll="no" style="width: 80px; height: 35px; position: static;"><input class="chPut" id="ckb_CheckAllListF_2019" onclick="javascript:DcxCom.CheckedAll(this,2019,''ListF_'');" rel="chkall" type="checkbox" value="on"> <label for="ckb_CheckAllListF_2019">全选</label></li>
<li style="width: 80px; height: 35px; position: static;" class="listTit" scroll="no" areaid="15"><a id="ListF_2019_btn_buildNew" class="playAll" title="保   存" onclick="javascript:DcxRun.ListF_2019.SubmitForm();" href="javascript:void(0);">保 存</a></li>
<li style="width: 80px; height: 35px; position: static;" class="listTit" scroll="no" areaid="16"><a class="lMdBtn" href="javascript:void(0);" id="ListF_2019_btn_buildNew" onclick="javascript:DcxForm.AddRow(this,1,2019,''ListF_'');" title="添加1行">添 加</a></li>
<li style="width: 789px; height: 35px; display: none; position: static;" class="listTit" scroll="no" areaid="17"><a id="ListF_2019_btn_buildNew" class="lMdBtn" title="添加5行" onclick="javascript:DcxForm.AddRow(this,5,2019,''ListF_'');" href="javascript:void(0);">添加5行</a></li>
<li style="height: 35px; width: 80px; position: static;" class="listTit" scroll="no" areaid="18"><a id="ListF_2019_deletebut" class="playAll" title="删   除" onclick="javascript:DcxForm.DeleteRow(this,2019,''ListF_'');" href="javascript:void(0);">删 除</a></li>
<li style="width: 789px; height: 16px; display: none; position: static;" class="listTit" scroll="no" areaid="19"><a id="ListF_2019_deletebut" class="lMdBtn" title="删除全部" onclick="javascript:DcxForm.DeleteAllRow(this,2019,''ListF_'');" href="javascript:void(0);">删除全部</a></li>
<li style="width: 70px; height: 30px; display: none; position: static;" class="listTit" scroll="no" areaid="21"><a class="lMdBtn" href="javascript:void(0);" id="ListF_2019_refreshbut" onclick="javascript:DcxCom.ReLoad(2019,''ListF_'');" title="刷   新">刷 新</a></li><!--分页栏-->
<li style="width: 280px; height: 30px; display: none; position: static;" id="li2_ListF_2019" class="listTit_page" scroll="no" areaid="22" ispage="1"><a class="btn_page firstpage" href="javascript:void(0);" id="ListF_2019_FirstPage" isfirstpage="1" onclick="javascript:DcxSch.GetHtml(2019,''ListF_'',''h'');" title="首页">首页</a> <a class="btn_page prvpage" href="javascript:void(0);" id="ListF_2019_PrevPage" isprevpage="1" onclick="javascript:DcxSch.GetHtml(2019,''ListF_'',''p'');" title="上一页">上一页</a> <span class="ddl_pageindex"><select id="ddl_ListF_2019_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(2019,''ListF_'',''a'',this);"></select> </span><a class="btn_page nextpage" href="javascript:void(0);" id="ListF_2019_NextPage" isnextpage="1" onclick="javascript:DcxSch.GetHtml(2019,''ListF_'',''n'');" title="下一页">下一页</a> <a class="btn_page lastpage" href="javascript:void(0);" id="ListF_2019_LastPage" islastpage="1" onclick="javascript:DcxSch.GetHtml(2019,''ListF_'',''t'');" title="最后一页">最后一页</a> <span class="page">第</span> <span class="page_data" id="ListF_2019_CurrentPage_lbl" iscurpage="1">0</span> <span class="page">页,共</span>&nbsp; <span class="page_data" id="ListF_2019_PageCount_lbl" ispagecount="1">0</span> <span class="page">页 </span><span class="page_data" id="ListF_2019_RecCount_lbl" isrecortcount="1">0</span> <span class="page">条记录</span> </li></ul></div>
<div class="listform listarea">
<div class="lf-head">
<ul style="width: 842px;" class="ul-listtitle" entid="2019" groupid="2" isgroup="1" islonly="1" islisthead="1" ctrlprex="ListF_" isrple="1">
<li style="width: 40px; float: left; height: 30px; clear: none; position: static;" class="li-head-item" scroll="no" areaid="23"></li><li style="width: 70px; float: left; height: 30px; clear: none; position: static;" class="li-head-item" scroll="no" areaid="37"><label class="head-label" istitle="1">序号</label></li>
<li style="width: 170px; float: left; height: 30px; clear: none; position: static;" class="li-head-item" scroll="no" areaid="24"><label class="head-label" istitle="1">标题 </label></li>
<li style="width: 220px; float: left; height: 30px; clear: none; position: static;" class="li-head-item" scroll="no" areaid="34"><label class="head-label" istitle="1">网页 </label></li>
<li style="width: 180px; float: left; height: 30px; clear: none; position: static;" class="li-head-item" scroll="no" areaid="33"><label class="head-label" istitle="1">应用</label></li>
<li style="width: 150px; float: left; height: 30px; clear: right; position: static;" class="li-head-item" scroll="no" areaid="32"><label class="head-label" istitle="1">搜索字段 </label></li></ul></div>
<div class="lf-body">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='',[CtrlbackHtml]='',[CtrlLastHtml]='',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2019,' where  [FldUId]='3d5b4921-e952-44ee-6ecb-9e3b3dcf1894' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='c73d1786-635a-af35-d57a-897a733887cd'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(99,'c73d1786-635a-af35-d57a-897a733887cd',2019,2019,'00000000-0000-0000-0000-000000000000',2,'KeyFieldValue',2,2,-1,'',5,1,1,0,1,21,-1,-1,0,0,'','','','','style="width: 842px;" class="ul-listfield" groupid="3" isgroup="1" isrple="1">
<li style="position: static; width: 40px; float: left; height: 40px; clear: none;" class="li-listfield" scroll="no" areaid="38"><div class="list-field" style="margin:0;padding: 7px 0px 0px 10px ;">
	<input class="ckb_del" ctrlprex="ListF_" entid="2019" issyscheck="1" keyvalue="','','','','','','',3,38,-1,-1,1,'2019,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=99,[Form_EntId]=2019,[EntId]=2019,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[FieldName]='KeyFieldValue',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=21,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='style="width: 842px;" class="ul-listfield" groupid="3" isgroup="1" isrple="1">
<li style="position: static; width: 40px; float: left; height: 40px; clear: none;" class="li-listfield" scroll="no" areaid="38"><div class="list-field" style="margin:0;padding: 7px 0px 0px 10px ;">
	<input class="ckb_del" ctrlprex="ListF_" entid="2019" issyscheck="1" keyvalue="',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='',[CtrlbackHtml]='',[CtrlLastHtml]='',[TableIndex]=3,[RowIndex]=38,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2019,' where  [FldUId]='c73d1786-635a-af35-d57a-897a733887cd' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='67b8da08-5bd3-4112-380c-25c96d5a35cf'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'67b8da08-5bd3-4112-380c-25c96d5a35cf',2019,2019,'00000000-0000-0000-0000-000000000000',3,'SortOrder',1,1,6,'1',5,1,1,0,1,1,-1,-1,1,0,'','','','','" type="checkbox"></div>
</li><li style="position: static; width: 70px; float: left; height: 40px; clear: none;" class="li-listfield" scroll="no" areaid="36"><div class="list-field" style="margin:0;padding: 7px 0px 0px 7px ;">
	<span class="form-ctr" isfcontain="1">','','','<input  id="d2019_SortOrder%trindex%" CtrlPrex="ListF_"','type="text" class="lt-txt"  style="width:50px;" AutoAddDigit=1 Digit="2" onchange ="javascript:DcxForm.ListTxtChange(this,2019,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2019,''ListF_'',2019,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2019,''ListF_'',2019,true);" EntId="2019" IsField=1 DBField=1 IsPost=1 FieldName="SortOrder" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="4" vlk=0    value="','" />','',3,-1,-1,-1,1,'2019,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=4,[Form_EntId]=2019,[EntId]=2019,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[FieldName]='SortOrder',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=6,[DefaultValue]='1',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='" type="checkbox"></div>
</li><li style="position: static; width: 70px; float: left; height: 40px; clear: none;" class="li-listfield" scroll="no" areaid="36"><div class="list-field" style="margin:0;padding: 7px 0px 0px 7px ;">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<input  id="d2019_SortOrder%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='type="text" class="lt-txt"  style="width:50px;" AutoAddDigit=1 Digit="2" onchange ="javascript:DcxForm.ListTxtChange(this,2019,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2019,''ListF_'',2019,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2019,''ListF_'',2019,true);" EntId="2019" IsField=1 DBField=1 IsPost=1 FieldName="SortOrder" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="4" vlk=0    value="',[CtrlbackHtml]='" />',[CtrlLastHtml]='',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2019,' where  [FldUId]='67b8da08-5bd3-4112-380c-25c96d5a35cf' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='e7a2056a-b9ee-3265-1995-71e836342d7e'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'e7a2056a-b9ee-3265-1995-71e836342d7e',2019,2019,'00000000-0000-0000-0000-000000000000',4,'Title',2,2,2,'',3,1,1,0,1,1,-1,-1,1,0,'','','','','</span>

</div>
</li>
<li style="width: 170px; float: left; height: 40px; clear: none; position: static;" class="li-listfield" scroll="no" areaid="26"><div class="list-field" style="margin:0;padding: 7px 0px 0px 7px ;">
	<span class="form-ctr" isfcontain="1">','','','<input  id="d2019_Title%trindex%" CtrlPrex="ListF_"','type="text" class="lt-txt"  style="width:150px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2019,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2019,''ListF_'',2019,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2019,''ListF_'',2019,true);" EntId="2019" IsField=1 DBField=1 IsPost=1 FieldName="Title" dType="2" Vtp="3" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    value="','" />','',3,-1,-1,-1,1,'2019,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=2,[Form_EntId]=2019,[EntId]=2019,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=4,[FieldName]='Title',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=2,[DefaultValue]='',[ValueType]=3,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

</div>
</li>
<li style="width: 170px; float: left; height: 40px; clear: none; position: static;" class="li-listfield" scroll="no" areaid="26"><div class="list-field" style="margin:0;padding: 7px 0px 0px 7px ;">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<input  id="d2019_Title%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='type="text" class="lt-txt"  style="width:150px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2019,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2019,''ListF_'',2019,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2019,''ListF_'',2019,true);" EntId="2019" IsField=1 DBField=1 IsPost=1 FieldName="Title" dType="2" Vtp="3" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    value="',[CtrlbackHtml]='" />',[CtrlLastHtml]='',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2019,' where  [FldUId]='e7a2056a-b9ee-3265-1995-71e836342d7e' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='6dd7e418-500a-3169-8307-59f922e72e13'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'6dd7e418-500a-3169-8307-59f922e72e13',2019,2019,'00000000-0000-0000-0000-000000000000',5,'MenuId',1,1,5,'',5,2,1,0,40,1,-1,14,1,0,'','','','','</span>
</div></li>
<li style="position: static; width: 220px; float: left; height: 40px; clear: none;" class="li-listfield" scroll="no" areaid="25"><div class="list-field" style="margin:0;padding: 7px 0px 0px 7px ;">
	<span class="form-ctr" isfcontain="1">','','','<div id="d2019_MenuId%trindex%" CtrlPrex="ListF_"','class="lt-ddl" style="-width:210px;" CBack=1  IsForField=1 EntId="2019" FId="1" Vtp="5" RId="2" Isc="1" CId="40" FieldName="MenuId" ><input  id="d2019_MenuId%trindex%_Text" type="text" class="lt-ddl-txt" readonly="readOnly"  CId="40" FId="1" Vtp="5"  RId="2" Isc="1"  style="width:180px;" onclick ="javascript:DcxTree.ShowDialogLf(this,14,2019,''MenuId'',false);" onchange ="javascript:GetLinkCtrlData_ListF_2019_502(this,''MenuId'');GetLinkCtrlData_ListF_2019_505(this,''MenuId'');if(!DcxVld.Validate(this,2019,''ListF_'',2019,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2019,''ListF_'',2019,true);" onkeyup ="javascript:DcxTree.ShowDialogLf(this,14,2019,''MenuId'',true);" onmouseover ="javascript:DcxForm.ListTxtMouseOver(this,2019,''MenuId'');" value="','" /><span class="lt-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2019_MenuId%trindex%_hid" CtrlPrex="ListF_" type="hidden"  CBack=1  EntId="2019" IsField=1 DBField=1 IsPost=1 FieldName="MenuId" dType="1" Vtp="5" RDT="1" Isc="1" RId="2" CId="40" FId="1" vlk=0   TId=14  TFN="MenuName"  value="','"/>',3,-1,-1,-1,1,'2019,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=1,[Form_EntId]=2019,[EntId]=2019,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=5,[FieldName]='MenuId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=5,[DefaultValue]='',[ValueType]=5,[RunValueType]=2,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=40,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=14,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div></li>
<li style="position: static; width: 220px; float: left; height: 40px; clear: none;" class="li-listfield" scroll="no" areaid="25"><div class="list-field" style="margin:0;padding: 7px 0px 0px 7px ;">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<div id="d2019_MenuId%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='class="lt-ddl" style="-width:210px;" CBack=1  IsForField=1 EntId="2019" FId="1" Vtp="5" RId="2" Isc="1" CId="40" FieldName="MenuId" ><input  id="d2019_MenuId%trindex%_Text" type="text" class="lt-ddl-txt" readonly="readOnly"  CId="40" FId="1" Vtp="5"  RId="2" Isc="1"  style="width:180px;" onclick ="javascript:DcxTree.ShowDialogLf(this,14,2019,''MenuId'',false);" onchange ="javascript:GetLinkCtrlData_ListF_2019_502(this,''MenuId'');GetLinkCtrlData_ListF_2019_505(this,''MenuId'');if(!DcxVld.Validate(this,2019,''ListF_'',2019,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2019,''ListF_'',2019,true);" onkeyup ="javascript:DcxTree.ShowDialogLf(this,14,2019,''MenuId'',true);" onmouseover ="javascript:DcxForm.ListTxtMouseOver(this,2019,''MenuId'');" value="',[CtrlbackHtml]='" /><span class="lt-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2019_MenuId%trindex%_hid" CtrlPrex="ListF_" type="hidden"  CBack=1  EntId="2019" IsField=1 DBField=1 IsPost=1 FieldName="MenuId" dType="1" Vtp="5" RDT="1" Isc="1" RId="2" CId="40" FId="1" vlk=0   TId=14  TFN="MenuName"  value="',[CtrlLastHtml]='"/>',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2019,' where  [FldUId]='6dd7e418-500a-3169-8307-59f922e72e13' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='9392a24d-3bf3-96e4-22f7-eaaaef1a9dd6'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(39,'9392a24d-3bf3-96e4-22f7-eaaaef1a9dd6',2019,2019,'00000000-0000-0000-0000-000000000000',6,'MenuName',2,2,4,'',3,1,1,0,1,1,-1,-1,1,0,'','','','','</span>

 <span class="form-ctr" isfcontain="1">','','','<input  id="d2019_MenuName%trindex%" CtrlPrex="ListF_"','type="text" class="lt-txt hide"  style="width:150px;display:none;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2019,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2019,''ListF_'',2019,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2019,''ListF_'',2019,true);" EntId="2019" IsField=1 DBField=1 IsPost=1 FieldName="MenuName" dType="2" Vtp="3" RDT="2" Isc="1" RId="1" CId="1" FId="39" vlk=0    value="','" />','',3,-1,-1,-1,1,'2019,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=39,[Form_EntId]=2019,[EntId]=2019,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=6,[FieldName]='MenuName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=4,[DefaultValue]='',[ValueType]=3,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

 <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<input  id="d2019_MenuName%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='type="text" class="lt-txt hide"  style="width:150px;display:none;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2019,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2019,''ListF_'',2019,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2019,''ListF_'',2019,true);" EntId="2019" IsField=1 DBField=1 IsPost=1 FieldName="MenuName" dType="2" Vtp="3" RDT="2" Isc="1" RId="1" CId="1" FId="39" vlk=0    value="',[CtrlbackHtml]='" />',[CtrlLastHtml]='',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2019,' where  [FldUId]='9392a24d-3bf3-96e4-22f7-eaaaef1a9dd6' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='dc934c76-9e5e-8541-902f-1a7154ac84e0'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'dc934c76-9e5e-8541-902f-1a7154ac84e0',2019,2019,'00000000-0000-0000-0000-000000000000',7,'EntId',1,1,3,'SELECT [EntName],[EntId] FROM [Dcx_Entity_Run] where [MenuId]={@MenuId} and [ParentId]<1',2,1,1,0,3,1,-1,-1,1,0,'','','MenuId,','','</span>

</div></li>
<li style="width: 180px; float: left; height: 40px; clear: none; position: static;" class="li-listfield" scroll="no" areaid="29"><div class="list-field" style="margin:0;padding: 7px 0px 0px 7px ;">
	<span class="form-ctr" isfcontain="1">','','','<select id="d2019_EntId%trindex%" CtrlPrex="ListF_"','class="form-select"  onclick ="javascript:DcxVld.ValidateFocus(this,2019,''ListF_'',2019,true);" onchange ="javascript:GetLinkCtrlData_ListF_2019_501(this,''EntId'');GetLinkCtrlData_ListF_2019_504(this,''EntId'');DcxForm.ListSelectChange(this,2019,''ListF_'');DcxVld.Validate(this,2019,''ListF_'',2019,true,$(this).val());" EntId="2019" IsField=1 DBField=1 IsPost=1 FieldName="EntId" dType="1" Vtp="2" RDT="1" Isc="1" RId="1" CId="3" FId="3" vlk=0    TFN="Title"  CBack=1  style="width:150px;">','</select>','',3,-1,-1,-1,1,'2019,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=3,[Form_EntId]=2019,[EntId]=2019,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=7,[FieldName]='EntId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=3,[DefaultValue]='SELECT [EntName],[EntId] FROM [Dcx_Entity_Run] where [MenuId]={@MenuId} and [ParentId]<1',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='MenuId,',[SystemVariables]='',[BeforeHtml]='</span>

</div></li>
<li style="width: 180px; float: left; height: 40px; clear: none; position: static;" class="li-listfield" scroll="no" areaid="29"><div class="list-field" style="margin:0;padding: 7px 0px 0px 7px ;">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<select id="d2019_EntId%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='class="form-select"  onclick ="javascript:DcxVld.ValidateFocus(this,2019,''ListF_'',2019,true);" onchange ="javascript:GetLinkCtrlData_ListF_2019_501(this,''EntId'');GetLinkCtrlData_ListF_2019_504(this,''EntId'');DcxForm.ListSelectChange(this,2019,''ListF_'');DcxVld.Validate(this,2019,''ListF_'',2019,true,$(this).val());" EntId="2019" IsField=1 DBField=1 IsPost=1 FieldName="EntId" dType="1" Vtp="2" RDT="1" Isc="1" RId="1" CId="3" FId="3" vlk=0    TFN="Title"  CBack=1  style="width:150px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2019,' where  [FldUId]='dc934c76-9e5e-8541-902f-1a7154ac84e0' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='d8b6ce56-7956-85be-603b-e28518676e95'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'d8b6ce56-7956-85be-603b-e28518676e95',2019,2019,'00000000-0000-0000-0000-000000000000',8,'FieldName',2,2,7,'',3,9,1,0,4,1,-1,-1,1,0,'','','','','</span>
</div>
</li>
<li style="width: 150px; float: left; height: 40px; clear: right; position: static;" class="li-listfield" scroll="no" areaid="35"><div class="list-field" style="margin:0;padding: 7px 0px 0px 7px ;">
	<span class="form-ctr" isfcontain="1">','','','<span id="d2019_FieldName%trindex%" CtrlPrex="ListF_"','class="form-lbl hide" style="width:150px;" IsForField=1 EntId="2019" CId="4" FId="5" Vtp="3"  >','</span><input id="d2019_FieldName%trindex%_hid" CtrlPrex="ListF_" type="hidden"  EntId="2019" IsField=1 DBField=1 IsPost=1 FieldName="FieldName" dType="2" Vtp="3" RDT="2" Isc="1" RId="9" CId="4" FId="5" vlk=0    Digit="-1" value="','" />',3,-1,-1,-1,1,'2019,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=5,[Form_EntId]=2019,[EntId]=2019,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=8,[FieldName]='FieldName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=7,[DefaultValue]='',[ValueType]=3,[RunValueType]=9,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li style="width: 150px; float: left; height: 40px; clear: right; position: static;" class="li-listfield" scroll="no" areaid="35"><div class="list-field" style="margin:0;padding: 7px 0px 0px 7px ;">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<span id="d2019_FieldName%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='class="form-lbl hide" style="width:150px;" IsForField=1 EntId="2019" CId="4" FId="5" Vtp="3"  >',[CtrlbackHtml]='</span><input id="d2019_FieldName%trindex%_hid" CtrlPrex="ListF_" type="hidden"  EntId="2019" IsField=1 DBField=1 IsPost=1 FieldName="FieldName" dType="2" Vtp="3" RDT="2" Isc="1" RId="9" CId="4" FId="5" vlk=0    Digit="-1" value="',[CtrlLastHtml]='" />',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2019,' where  [FldUId]='d8b6ce56-7956-85be-603b-e28518676e95' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='8cf0141b-9015-a92f-849b-7fd967af4ae3'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'8cf0141b-9015-a92f-849b-7fd967af4ae3',2019,2019,'00000000-0000-0000-0000-000000000000',9,'FldId',1,1,10,'select [FieldName],[FieldId] from [Dcx_DBTableField_Run] where [DBTableId]=(SELECT top 1 [DBTableId]  FROM [Dcx_Entity_Run] where EntId={@EntId}) and ([FieldDataTypeId]=2 or [FieldDataTypeId]=8 or [FieldDataTypeId]=6 )',2,1,1,0,3,1,-1,-1,1,0,'','','EntId,','','</span>
 <span class="form-ctr" isfcontain="1">','','','<select id="d2019_FldId%trindex%" CtrlPrex="ListF_"','class="form-select"  onclick ="javascript:DcxVld.ValidateFocus(this,2019,''ListF_'',2019,true);" onchange ="javascript:GetLinkCtrlData_ListF_2019_503(this,''FldId'');DcxForm.ListSelectChange(this,2019,''ListF_'');DcxVld.Validate(this,2019,''ListF_'',2019,true,$(this).val());" EntId="2019" IsField=1 DBField=1 IsPost=1 FieldName="FldId" dType="1" Vtp="2" RDT="1" Isc="1" RId="1" CId="3" FId="6" vlk=0    TFN="FieldName"  CBack=1  style="width:130px;">','</select>','',3,-1,-1,-1,1,'2019,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=6,[Form_EntId]=2019,[EntId]=2019,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=9,[FieldName]='FldId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=10,[DefaultValue]='select [FieldName],[FieldId] from [Dcx_DBTableField_Run] where [DBTableId]=(SELECT top 1 [DBTableId]  FROM [Dcx_Entity_Run] where EntId={@EntId}) and ([FieldDataTypeId]=2 or [FieldDataTypeId]=8 or [FieldDataTypeId]=6 )',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='EntId,',[SystemVariables]='',[BeforeHtml]='</span>
 <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<select id="d2019_FldId%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='class="form-select"  onclick ="javascript:DcxVld.ValidateFocus(this,2019,''ListF_'',2019,true);" onchange ="javascript:GetLinkCtrlData_ListF_2019_503(this,''FldId'');DcxForm.ListSelectChange(this,2019,''ListF_'');DcxVld.Validate(this,2019,''ListF_'',2019,true,$(this).val());" EntId="2019" IsField=1 DBField=1 IsPost=1 FieldName="FldId" dType="1" Vtp="2" RDT="1" Isc="1" RId="1" CId="3" FId="6" vlk=0    TFN="FieldName"  CBack=1  style="width:130px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2019,' where  [FldUId]='8cf0141b-9015-a92f-849b-7fd967af4ae3' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='28626658-482b-2800-2a46-79afe1599d83'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(165,'28626658-482b-2800-2a46-79afe1599d83',2019,2019,'00000000-0000-0000-0000-000000000000',10,'MEntEnd',-1,2,-1,'',5,-1,1,0,-1,13,-1,-1,0,0,'','','','','</span>
</div>
</li></ul>','</div></div><!-- 结束 -->','','','','','',3,-1,-1,-1,1,'2019,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=165,[Form_EntId]=2019,[EntId]=2019,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=10,[FieldName]='MEntEnd',[FieldDataTypeId]=-1,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=-1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=-1,[FieldTypeId]=13,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li></ul>',[LastHtml]='</div></div><!-- 结束 -->',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='',[CtrlbackHtml]='',[CtrlLastHtml]='',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2019,' where  [FldUId]='28626658-482b-2800-2a46-79afe1599d83' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=325

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=325  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(325,null,'Dcx_SearchItem','Dcx_SearchItem',1,0,0,0,0,0,29,1,3,'admin','2013-12-15 17:32:21',3,'admin','2013-12-15 17:32:21',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='Dcx_SearchItem',[DBTableByName]='Dcx_SearchItem',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=29,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:21',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:21',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=325 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=325  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17557,1,29,325,'int',1,1,1,'Dcx_SearchItem','SearchId','SearchId','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_SearchItem',[FieldName]='SearchId',[FieldByname]='SearchId',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=325  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=325  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17558,2,29,325,'varchar',2,1,1,'Dcx_SearchItem','Title','Title','',0,0,0,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_SearchItem',[FieldName]='Title',[FieldByname]='Title',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=325  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=325  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17559,3,29,325,'int',1,1,1,'Dcx_SearchItem','EntId','EntId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_SearchItem',[FieldName]='EntId',[FieldByname]='EntId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=325  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=325  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17560,4,29,325,'varchar',2,1,1,'Dcx_SearchItem','MenuName','MenuName','',0,0,0,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_SearchItem',[FieldName]='MenuName',[FieldByname]='MenuName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=325  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=325  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17561,5,29,325,'int',1,1,1,'Dcx_SearchItem','MenuId','MenuId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_SearchItem',[FieldName]='MenuId',[FieldByname]='MenuId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=325  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=325  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17562,6,29,325,'int',1,1,1,'Dcx_SearchItem','SortOrder','SortOrder','0',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_SearchItem',[FieldName]='SortOrder',[FieldByname]='SortOrder',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=325  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=325  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17563,7,29,325,'varchar',2,1,1,'Dcx_SearchItem','FieldName','FieldName','',0,0,0,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_SearchItem',[FieldName]='FieldName',[FieldByname]='FieldName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=325  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=325  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17564,8,29,325,'varchar',2,1,1,'Dcx_SearchItem','CompareOperatorType','CompareOperatorType','Like',0,0,0,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_SearchItem',[FieldName]='CompareOperatorType',[FieldByname]='CompareOperatorType',[DefaultValue]='Like',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=325  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=325  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17565,9,29,325,'tinyint',23,1,1,'Dcx_SearchItem','RunDataTypeId','RunDataTypeId','2',0,0,0,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_SearchItem',[FieldName]='RunDataTypeId',[FieldByname]='RunDataTypeId',[DefaultValue]='2',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=325  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=325  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17566,10,29,325,'int',1,1,1,'Dcx_SearchItem','FldId','FldId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_SearchItem',[FieldName]='FldId',[FieldByname]='FldId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=325  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=325  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17567,11,29,325,'tinyint',23,1,1,'Dcx_SearchItem','OpenMode','OpenMode','',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_SearchItem',[FieldName]='OpenMode',[FieldByname]='OpenMode',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=325  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=325  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17568,12,29,325,'bit',4,1,1,'Dcx_SearchItem','IsDefault','IsDefault','1',0,0,0,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_SearchItem',[FieldName]='IsDefault',[FieldByname]='IsDefault',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=325  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=325  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17569,13,29,325,'int',1,1,1,'Dcx_SearchItem','AccountId','AccountId','1',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_SearchItem',[FieldName]='AccountId',[FieldByname]='AccountId',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=325  and  [FieldId]=13 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 



Delete from [Dcx_EntityPrivilege]  where [EntId]=2022

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2022  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11059,3294,2022,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=3294,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2022  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2022

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2022  and  [ModuleTypeId]=17  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20454,29,3294,2022,66,17,15,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3294,[TemplateId]=66,[ModuleId]=15,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2022  and  [ModuleTypeId]=17 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_ListForm_Run]  where [EntId]=2022

--Dcx_ListForm_Run
      if (select count(1) from [Dcx_ListForm_Run] where  [EntId]=2022  )<1 
      begin 
           Insert into [Dcx_ListForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[OtherMsg],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[AccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime])values('2c5e9a4e-5e8f-4ab3-1abd-8f98180f9895','管理插件',2022,-1,'','',0,'<script type="text/javascript" src="/js/module/Report/ReportRun.js"></script>','','DcxRun.ListF_2022= {"MenuId":3294,"MEntId":2022,"EntName":"管理插件","CtrlPrex":"ListF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2022":{"EntId":2022,"KeyFieldValue":"","DBTableName":"","KeyField":"PlugId","KeydtId":2,"JoinKeyField":"PlugId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}


if(runObj.NoInit)
{
   entMsg.E2022.FormData=null;
   mEntMsg.RowCount=0;mEntMsg.RecortCount=0;entMsg.E2022.RowCount=0;

}

 DcxForm.InitSheetForm(2022,''ListF_'',entMsg.E2022.FormData,entMsg.E2022.$listContainer);

 DcxForm.DealPage(2022,''ListF_'');

 DcxForm.SetPower(2022,''ListF_'');


}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":13,"Ent":[{"EntId":2022,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":4,"Vld":[{"Id":4,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,150}$","err":"限制0-150个字符。","ok":"","warn":"","ovt":1}]},{"FldId":5,"Vld":[{"Id":6,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":7,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,150}$","err":"限制0-150个字符。","ok":"","warn":"","ovt":1}]},{"FldId":6,"Vld":[{"Id":8,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":9,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":7,"Vld":[{"Id":10,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":11,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":8,"Vld":[{"Id":12,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":13,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,150}$","err":"限制0-150个字符。","ok":"","warn":"","ovt":1}]}]}]};
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.ListF_2022.EntMsg.E2022.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_HomePagePlug","EntId":2022,"KeyField":"PlugId","MKeyField":"PlugId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"SortOrder":{"DtId":1,"DB":1,"CId":1,"FL":4},"PlugName":{"DtId":2,"DB":1,"CId":1,"FL":150},"PlugUrl":{"DtId":2,"DB":1,"CId":1,"FL":150},"WIdth":{"DtId":1,"DB":1,"CId":1,"FL":4},"Height":{"DtId":1,"DB":1,"CId":1,"FL":4},"Remark":{"DtId":2,"DB":1,"CId":1,"FL":150}},"Data":{"Row":[]}};
}
DcxRun.ListF_2022.EntMsg.E2022.GetDataRowModel=function()
{
    return {"SortOrder":1,"PlugName":"","PlugUrl":"","WIdth":0,"Height":0,"Remark":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"PlugId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/



 function GetLinkCtrl_ListF_2022(obj,FieldName,EntId)
{

}
/****************上：AJAX回调函数******************/


DcxRun.ListF_2022.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitLf(2022,''ListF_'',buildNew,closeDlg);

}','<$2022$>select *  from (select row_number() over( order by [PlugId])as dcx_rowid,[SortOrder],[PlugName],[PlugUrl],[WIdth],[Height],[Remark],[PlugId] from Dcx_HomePagePlug  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$2022$><$2022:Count$>select count([PlugId]) from Dcx_HomePagePlug where {$SearchArea}</$2022:Count$>','2022*PlugId*2*PlugId*2*Dcx_HomePagePlug*管理插件',10,'','','',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',1,3,'admin','2012-10-8 4:41:45',3,'admin','2013-10-2 18:14:20')
      end
      else 
      begin 
           update [Dcx_ListForm_Run] set [FormId]='2c5e9a4e-5e8f-4ab3-1abd-8f98180f9895',[FormName]='管理插件',[ModuleId]=-1,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script type="text/javascript" src="/js/module/Report/ReportRun.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.ListF_2022= {"MenuId":3294,"MEntId":2022,"EntName":"管理插件","CtrlPrex":"ListF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2022":{"EntId":2022,"KeyFieldValue":"","DBTableName":"","KeyField":"PlugId","KeydtId":2,"JoinKeyField":"PlugId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}


if(runObj.NoInit)
{
   entMsg.E2022.FormData=null;
   mEntMsg.RowCount=0;mEntMsg.RecortCount=0;entMsg.E2022.RowCount=0;

}

 DcxForm.InitSheetForm(2022,''ListF_'',entMsg.E2022.FormData,entMsg.E2022.$listContainer);

 DcxForm.DealPage(2022,''ListF_'');

 DcxForm.SetPower(2022,''ListF_'');


}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":13,"Ent":[{"EntId":2022,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":4,"Vld":[{"Id":4,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,150}$","err":"限制0-150个字符。","ok":"","warn":"","ovt":1}]},{"FldId":5,"Vld":[{"Id":6,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":7,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,150}$","err":"限制0-150个字符。","ok":"","warn":"","ovt":1}]},{"FldId":6,"Vld":[{"Id":8,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":9,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":7,"Vld":[{"Id":10,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":11,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":8,"Vld":[{"Id":12,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":13,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,150}$","err":"限制0-150个字符。","ok":"","warn":"","ovt":1}]}]}]};
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.ListF_2022.EntMsg.E2022.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_HomePagePlug","EntId":2022,"KeyField":"PlugId","MKeyField":"PlugId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"SortOrder":{"DtId":1,"DB":1,"CId":1,"FL":4},"PlugName":{"DtId":2,"DB":1,"CId":1,"FL":150},"PlugUrl":{"DtId":2,"DB":1,"CId":1,"FL":150},"WIdth":{"DtId":1,"DB":1,"CId":1,"FL":4},"Height":{"DtId":1,"DB":1,"CId":1,"FL":4},"Remark":{"DtId":2,"DB":1,"CId":1,"FL":150}},"Data":{"Row":[]}};
}
DcxRun.ListF_2022.EntMsg.E2022.GetDataRowModel=function()
{
    return {"SortOrder":1,"PlugName":"","PlugUrl":"","WIdth":0,"Height":0,"Remark":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"PlugId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/



 function GetLinkCtrl_ListF_2022(obj,FieldName,EntId)
{

}
/****************上：AJAX回调函数******************/


DcxRun.ListF_2022.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitLf(2022,''ListF_'',buildNew,closeDlg);

}',[LoadingSql]='<$2022$>select *  from (select row_number() over( order by [PlugId])as dcx_rowid,[SortOrder],[PlugName],[PlugUrl],[WIdth],[Height],[Remark],[PlugId] from Dcx_HomePagePlug  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$2022$><$2022:Count$>select count([PlugId]) from Dcx_HomePagePlug where {$SearchArea}</$2022:Count$>',[OtherMsg]='2022*PlugId*2*PlugId*2*Dcx_HomePagePlug*管理插件',[PageSize]=10,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[AccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-10-8 4:41:45',[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-2 18:14:20' where  [EntId]=2022 
      end




--Dcx_ListFormField_Run
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='729732f7-4ff2-60c6-dc90-19426b0e4b34'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(25,'729732f7-4ff2-60c6-dc90-19426b0e4b34',2022,2022,'00000000-0000-0000-0000-000000000000',1,'MEntBegin',-1,2,-1,'',5,-1,1,0,-1,12,-1,-1,0,0,'','','','','<!-- 开始 -->
<!-- 功能键栏 -->
<div class="listform toolbar-opt">
<!--功能键栏-->
<ul islonly="1" class="itemUl1 repUl1" isgroup="1" groupid="1" style="width: 1004px; " isrple="1"> <li class="putCont" scroll="no" style="position: static;">
 <input class="chPut" id="ckb_CheckAllListF_2022" onclick="javascript:DcxCom.CheckedAll(this,2022,''ListF_'');" type="checkbox" rel="chkall">
<label for="ckb_CheckAllListF_2022">全选</label></li>
<li areaid="15" class="listTit" style="position: static;" scroll="no"><a id="ListF_2022_btn_buildNew" class="playAll" title="保   存" href="javascript:void(0);" onclick="javascript:DcxRun.ListF_2022.SubmitForm();">保   存</a></li>
<li areaid="16" class="listTit" style="position: static;" scroll="no"><a id="ListF_2022_btn_buildNew" class="lMdBtn" title="添加1行" href="javascript:void(0);" onclick="javascript:DcxForm.AddRow(this,1,2022,''ListF_'');">添   加</a></li>
<li areaid="17" class="listTit" style="width: 70px; height: 30px; position: static;" scroll="no"><a id="ListF_2022_btn_buildNew" class="lMdBtn" title="添加5行" href="javascript:void(0);" onclick="javascript:DcxForm.AddRow(this,5,2022,''ListF_'');">添加5行</a></li>
<li areaid="18" class="listTit" style="position: static;" scroll="no"><a id="ListF_2022_deletebut" class="playAll" title="删   除" href="javascript:void(0);" onclick="javascript:DcxForm.DeleteRow(this,2022,''ListF_'');">删   除</a></li>
<li areaid="19" class="listTit" style="position: static;" scroll="no"><a id="ListF_2022_deletebut" class="lMdBtn" title="删除全部" href="javascript:void(0);" onclick="javascript:DcxForm.DeleteAllRow(this,2022,''ListF_'');">删除全部</a></li>

<li areaid="21" class="listTit" style="position: static;" scroll="no"><a id="ListF_2022_refreshbut" class="lMdBtn" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(2022,''ListF_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="22" class="listTit_page" style="width: 280px; height: 30px; position: static;" id="li2_ListF_2022" scroll="no"><a class="btn_page firstpage" href="javascript:void(0);" id="ListF_2022_FirstPage" isfirstpage="1" onclick="javascript:DcxSch.GetHtml(2022,''ListF_'',''h'');" title="首页">首页</a> <a class="btn_page prvpage" href="javascript:void(0);" id="ListF_2022_PrevPage" isprevpage="1" onclick="javascript:DcxSch.GetHtml(2022,''ListF_'',''p'');" title="上一页">上一页</a> <span class="ddl_pageindex"> <select id="ddl_ListF_2022_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(2022,''ListF_'',''a'',this);"> </select> </span> <a class="btn_page nextpage" href="javascript:void(0);" id="ListF_2022_NextPage" isnextpage="1" onclick="javascript:DcxSch.GetHtml(2022,''ListF_'',''n'');" title="下一页">下一页</a> <a class="btn_page lastpage" href="javascript:void(0);" id="ListF_2022_LastPage" islastpage="1" onclick="javascript:DcxSch.GetHtml(2022,''ListF_'',''t'');" title="最后一页">最后一页</a> <span class="page">第</span> <span class="page_data" id="ListF_2022_CurrentPage_lbl" iscurpage="1">0</span> <span class="page">页,共</span>&nbsp; <span class="page_data" id="ListF_2022_PageCount_lbl" ispagecount="1">0</span> <span class="page">页 </span> <span class="page_data" id="ListF_2022_RecCount_lbl" isrecortcount="1">0</span> <span class="page">条记录</span> </li>
</ul>
</div>
<div class="listform listarea">
<div class="lf-head">
<ul isgroup="1" islisthead="1" islonly="1" groupid="2" class="ul-listtitle" style="width: 1032px;" isrple="1">
<li areaid="23" class="li-head-item" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no">
<label class="head-label" istitle="1">序号 </label></li><li areaid="24" class="li-head-item" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><label class="head-label" istitle="1">名称</label></li><li areaid="32" class="li-head-item" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no">
<label class="head-label" istitle="1">插入件地址 </label></li><li areaid="31" class="li-head-item" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no">
<label class="head-label" istitle="1">宽度 </label></li><li areaid="30" class="li-head-item" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><label class="head-label" istitle="1">高度</label></li><li areaid="36" class="li-head-item" style="width: 170px; height: 30px; clear: right; float: left; position: static;" scroll="no"><label class="head-label" istitle="1">备注</label></li>    </ul>
</div>
<div class="lf-body">','','','','','','',3,-1,-1,-1,1,'2022,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=25,[Form_EntId]=2022,[EntId]=2022,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[FieldName]='MEntBegin',[FieldDataTypeId]=-1,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=-1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=-1,[FieldTypeId]=12,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<!-- 开始 -->
<!-- 功能键栏 -->
<div class="listform toolbar-opt">
<!--功能键栏-->
<ul islonly="1" class="itemUl1 repUl1" isgroup="1" groupid="1" style="width: 1004px; " isrple="1"> <li class="putCont" scroll="no" style="position: static;">
 <input class="chPut" id="ckb_CheckAllListF_2022" onclick="javascript:DcxCom.CheckedAll(this,2022,''ListF_'');" type="checkbox" rel="chkall">
<label for="ckb_CheckAllListF_2022">全选</label></li>
<li areaid="15" class="listTit" style="position: static;" scroll="no"><a id="ListF_2022_btn_buildNew" class="playAll" title="保   存" href="javascript:void(0);" onclick="javascript:DcxRun.ListF_2022.SubmitForm();">保   存</a></li>
<li areaid="16" class="listTit" style="position: static;" scroll="no"><a id="ListF_2022_btn_buildNew" class="lMdBtn" title="添加1行" href="javascript:void(0);" onclick="javascript:DcxForm.AddRow(this,1,2022,''ListF_'');">添   加</a></li>
<li areaid="17" class="listTit" style="width: 70px; height: 30px; position: static;" scroll="no"><a id="ListF_2022_btn_buildNew" class="lMdBtn" title="添加5行" href="javascript:void(0);" onclick="javascript:DcxForm.AddRow(this,5,2022,''ListF_'');">添加5行</a></li>
<li areaid="18" class="listTit" style="position: static;" scroll="no"><a id="ListF_2022_deletebut" class="playAll" title="删   除" href="javascript:void(0);" onclick="javascript:DcxForm.DeleteRow(this,2022,''ListF_'');">删   除</a></li>
<li areaid="19" class="listTit" style="position: static;" scroll="no"><a id="ListF_2022_deletebut" class="lMdBtn" title="删除全部" href="javascript:void(0);" onclick="javascript:DcxForm.DeleteAllRow(this,2022,''ListF_'');">删除全部</a></li>

<li areaid="21" class="listTit" style="position: static;" scroll="no"><a id="ListF_2022_refreshbut" class="lMdBtn" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(2022,''ListF_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="22" class="listTit_page" style="width: 280px; height: 30px; position: static;" id="li2_ListF_2022" scroll="no"><a class="btn_page firstpage" href="javascript:void(0);" id="ListF_2022_FirstPage" isfirstpage="1" onclick="javascript:DcxSch.GetHtml(2022,''ListF_'',''h'');" title="首页">首页</a> <a class="btn_page prvpage" href="javascript:void(0);" id="ListF_2022_PrevPage" isprevpage="1" onclick="javascript:DcxSch.GetHtml(2022,''ListF_'',''p'');" title="上一页">上一页</a> <span class="ddl_pageindex"> <select id="ddl_ListF_2022_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(2022,''ListF_'',''a'',this);"> </select> </span> <a class="btn_page nextpage" href="javascript:void(0);" id="ListF_2022_NextPage" isnextpage="1" onclick="javascript:DcxSch.GetHtml(2022,''ListF_'',''n'');" title="下一页">下一页</a> <a class="btn_page lastpage" href="javascript:void(0);" id="ListF_2022_LastPage" islastpage="1" onclick="javascript:DcxSch.GetHtml(2022,''ListF_'',''t'');" title="最后一页">最后一页</a> <span class="page">第</span> <span class="page_data" id="ListF_2022_CurrentPage_lbl" iscurpage="1">0</span> <span class="page">页,共</span>&nbsp; <span class="page_data" id="ListF_2022_PageCount_lbl" ispagecount="1">0</span> <span class="page">页 </span> <span class="page_data" id="ListF_2022_RecCount_lbl" isrecortcount="1">0</span> <span class="page">条记录</span> </li>
</ul>
</div>
<div class="listform listarea">
<div class="lf-head">
<ul isgroup="1" islisthead="1" islonly="1" groupid="2" class="ul-listtitle" style="width: 1032px;" isrple="1">
<li areaid="23" class="li-head-item" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no">
<label class="head-label" istitle="1">序号 </label></li><li areaid="24" class="li-head-item" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><label class="head-label" istitle="1">名称</label></li><li areaid="32" class="li-head-item" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no">
<label class="head-label" istitle="1">插入件地址 </label></li><li areaid="31" class="li-head-item" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no">
<label class="head-label" istitle="1">宽度 </label></li><li areaid="30" class="li-head-item" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><label class="head-label" istitle="1">高度</label></li><li areaid="36" class="li-head-item" style="width: 170px; height: 30px; clear: right; float: left; position: static;" scroll="no"><label class="head-label" istitle="1">备注</label></li>    </ul>
</div>
<div class="lf-body">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='',[CtrlbackHtml]='',[CtrlLastHtml]='',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2022,' where  [FldUId]='729732f7-4ff2-60c6-dc90-19426b0e4b34' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='cddbbc76-4d5c-e06e-6459-7219898b9808'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'cddbbc76-4d5c-e06e-6459-7219898b9808',2022,2022,'00000000-0000-0000-0000-000000000000',2,'SortOrder',1,1,6,'1',5,1,1,0,1,1,-1,-1,1,0,'','','','','isgroup="1" groupid="3" class="ul-listfield" style="width: 1032px;" isrple="1">
<li areaid="25" class="li-listfield" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><div class="list-field">
	<span class="form-ctr" isfcontain="1">','','','<input  id="d2022_SortOrder%trindex%" CtrlPrex="ListF_"','type="text" class="lt-txt"  style="width:150px;" AutoAddDigit=1 Digit="2" onchange ="javascript:DcxForm.ListTxtChange(this,2022,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2022,''ListF_'',2022,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2022,''ListF_'',2022,true);" EntId="2022" IsField=1 DBField=1 IsPost=1 FieldName="SortOrder" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="1" vlk=0    value="','" />','',3,-1,-1,-1,1,'2022,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=1,[Form_EntId]=2022,[EntId]=2022,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[FieldName]='SortOrder',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=6,[DefaultValue]='1',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='isgroup="1" groupid="3" class="ul-listfield" style="width: 1032px;" isrple="1">
<li areaid="25" class="li-listfield" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><div class="list-field">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<input  id="d2022_SortOrder%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='type="text" class="lt-txt"  style="width:150px;" AutoAddDigit=1 Digit="2" onchange ="javascript:DcxForm.ListTxtChange(this,2022,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2022,''ListF_'',2022,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2022,''ListF_'',2022,true);" EntId="2022" IsField=1 DBField=1 IsPost=1 FieldName="SortOrder" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="1" vlk=0    value="',[CtrlbackHtml]='" />',[CtrlLastHtml]='',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2022,' where  [FldUId]='cddbbc76-4d5c-e06e-6459-7219898b9808' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='62fade7a-b989-5781-d6f0-477f75ec55c4'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'62fade7a-b989-5781-d6f0-477f75ec55c4',2022,2022,'00000000-0000-0000-0000-000000000000',3,'PlugName',2,2,2,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
</div>
</li><li areaid="26" class="li-listfield" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><div class="list-field">
	<span class="form-ctr" isfcontain="1">','','','<input  id="d2022_PlugName%trindex%" CtrlPrex="ListF_"','type="text" class="lt-txt"  style="width:150px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2022,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2022,''ListF_'',2022,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2022,''ListF_'',2022,true);" EntId="2022" IsField=1 DBField=1 IsPost=1 FieldName="PlugName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="4" vlk=0    value="','" />','',3,-1,-1,-1,1,'2022,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=4,[Form_EntId]=2022,[EntId]=2022,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[FieldName]='PlugName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=2,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li areaid="26" class="li-listfield" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><div class="list-field">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<input  id="d2022_PlugName%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='type="text" class="lt-txt"  style="width:150px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2022,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2022,''ListF_'',2022,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2022,''ListF_'',2022,true);" EntId="2022" IsField=1 DBField=1 IsPost=1 FieldName="PlugName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="4" vlk=0    value="',[CtrlbackHtml]='" />',[CtrlLastHtml]='',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2022,' where  [FldUId]='62fade7a-b989-5781-d6f0-477f75ec55c4' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='9ea32463-b84c-2b93-5d93-9ac74ccdcdff'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'9ea32463-b84c-2b93-5d93-9ac74ccdcdff',2022,2022,'00000000-0000-0000-0000-000000000000',4,'PlugUrl',2,2,3,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>


</div>
</li><li areaid="29" class="li-listfield" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><div class="list-field">
	<span class="form-ctr" isfcontain="1">','','','<input  id="d2022_PlugUrl%trindex%" CtrlPrex="ListF_"','type="text" class="lt-txt"  style="width:150px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2022,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2022,''ListF_'',2022,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2022,''ListF_'',2022,true);" EntId="2022" IsField=1 DBField=1 IsPost=1 FieldName="PlugUrl" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="5" vlk=0    value="','" />','',3,-1,-1,-1,1,'2022,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=5,[Form_EntId]=2022,[EntId]=2022,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=4,[FieldName]='PlugUrl',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=3,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>


</div>
</li><li areaid="29" class="li-listfield" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><div class="list-field">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<input  id="d2022_PlugUrl%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='type="text" class="lt-txt"  style="width:150px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2022,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2022,''ListF_'',2022,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2022,''ListF_'',2022,true);" EntId="2022" IsField=1 DBField=1 IsPost=1 FieldName="PlugUrl" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="5" vlk=0    value="',[CtrlbackHtml]='" />',[CtrlLastHtml]='',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2022,' where  [FldUId]='9ea32463-b84c-2b93-5d93-9ac74ccdcdff' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='57c1c6be-db8c-1066-f994-52e562999040'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'57c1c6be-db8c-1066-f994-52e562999040',2022,2022,'00000000-0000-0000-0000-000000000000',5,'WIdth',1,1,4,'0',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>

</div>
</li><li areaid="28" class="li-listfield" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><div class="list-field">
	<span class="form-ctr" isfcontain="1">','','','<input  id="d2022_WIdth%trindex%" CtrlPrex="ListF_"','type="text" class="lt-txt"  style="width:150px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2022,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2022,''ListF_'',2022,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2022,''ListF_'',2022,true);" EntId="2022" IsField=1 DBField=1 IsPost=1 FieldName="WIdth" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="6" vlk=0    value="','" />','',3,-1,-1,-1,1,'2022,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=6,[Form_EntId]=2022,[EntId]=2022,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=5,[FieldName]='WIdth',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=4,[DefaultValue]='0',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

</div>
</li><li areaid="28" class="li-listfield" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><div class="list-field">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<input  id="d2022_WIdth%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='type="text" class="lt-txt"  style="width:150px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2022,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2022,''ListF_'',2022,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2022,''ListF_'',2022,true);" EntId="2022" IsField=1 DBField=1 IsPost=1 FieldName="WIdth" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="6" vlk=0    value="',[CtrlbackHtml]='" />',[CtrlLastHtml]='',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2022,' where  [FldUId]='57c1c6be-db8c-1066-f994-52e562999040' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='2d9d376a-600b-a007-4674-3bd049c60e1c'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'2d9d376a-600b-a007-4674-3bd049c60e1c',2022,2022,'00000000-0000-0000-0000-000000000000',6,'Height',1,1,5,'0',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
</div>
</li><li areaid="27" class="li-listfield" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><div class="list-field">
	<span class="form-ctr" isfcontain="1">','','','<input  id="d2022_Height%trindex%" CtrlPrex="ListF_"','type="text" class="lt-txt"  style="width:150px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2022,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2022,''ListF_'',2022,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2022,''ListF_'',2022,true);" EntId="2022" IsField=1 DBField=1 IsPost=1 FieldName="Height" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="7" vlk=0    value="','" />','',3,-1,-1,-1,1,'2022,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=7,[Form_EntId]=2022,[EntId]=2022,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=6,[FieldName]='Height',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=5,[DefaultValue]='0',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li areaid="27" class="li-listfield" style="width: 170px; height: 30px; clear: none; float: left; position: static;" scroll="no"><div class="list-field">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<input  id="d2022_Height%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='type="text" class="lt-txt"  style="width:150px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2022,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2022,''ListF_'',2022,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2022,''ListF_'',2022,true);" EntId="2022" IsField=1 DBField=1 IsPost=1 FieldName="Height" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="7" vlk=0    value="',[CtrlbackHtml]='" />',[CtrlLastHtml]='',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2022,' where  [FldUId]='2d9d376a-600b-a007-4674-3bd049c60e1c' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='49355de1-8649-854d-5eee-97f9d3bf8ce8'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'49355de1-8649-854d-5eee-97f9d3bf8ce8',2022,2022,'00000000-0000-0000-0000-000000000000',7,'Remark',2,2,7,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
</div>
</li><li areaid="35" class="li-listfield" style="width: 170px; height: 30px; clear: right; float: left; position: static;" scroll="no"><div class="list-field">
	<span class="form-ctr" isfcontain="1">','','','<input  id="d2022_Remark%trindex%" CtrlPrex="ListF_"','type="text" class="lt-txt"  style="width:150px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2022,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2022,''ListF_'',2022,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2022,''ListF_'',2022,true);" EntId="2022" IsField=1 DBField=1 IsPost=1 FieldName="Remark" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="8" vlk=0    value="','" />','',3,-1,-1,-1,1,'2022,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=8,[Form_EntId]=2022,[EntId]=2022,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=7,[FieldName]='Remark',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=7,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li areaid="35" class="li-listfield" style="width: 170px; height: 30px; clear: right; float: left; position: static;" scroll="no"><div class="list-field">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<input  id="d2022_Remark%trindex%" CtrlPrex="ListF_"',[CtrlfrontHtml]='type="text" class="lt-txt"  style="width:150px;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2022,''ListF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2022,''ListF_'',2022,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2022,''ListF_'',2022,true);" EntId="2022" IsField=1 DBField=1 IsPost=1 FieldName="Remark" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="8" vlk=0    value="',[CtrlbackHtml]='" />',[CtrlLastHtml]='',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2022,' where  [FldUId]='49355de1-8649-854d-5eee-97f9d3bf8ce8' 
      end
      if (select count(1) from [Dcx_ListFormField_Run] where  [FldUId]='bce2b0ec-02bc-9a47-0612-8ddcc9241d49'  )<1 
      begin 
           Insert into [Dcx_ListFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(26,'bce2b0ec-02bc-9a47-0612-8ddcc9241d49',2022,2022,'00000000-0000-0000-0000-000000000000',8,'MEntEnd',-1,2,-1,'',5,-1,1,0,-1,13,-1,-1,0,0,'','','','','</span>
</div>
</li>    </ul>','</div>
</div>
<!-- 结束 -->','','','','','',3,-1,-1,-1,1,'2022,')
      end
      else 
      begin 
           update [Dcx_ListFormField_Run] set [FldId]=26,[Form_EntId]=2022,[EntId]=2022,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=8,[FieldName]='MEntEnd',[FieldDataTypeId]=-1,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=-1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=-1,[FieldTypeId]=13,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>    </ul>',[LastHtml]='</div>
</div>
<!-- 结束 -->',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='',[CtrlbackHtml]='',[CtrlLastHtml]='',[TableIndex]=3,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2022,' where  [FldUId]='bce2b0ec-02bc-9a47-0612-8ddcc9241d49' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=201

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=201  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(201,null,'Dcx_HomePagePlug','Dcx_HomePagePlug',1,0,0,0,0,0,29,1,3,'admin','2013-12-15 17:32:16',3,'admin','2013-12-15 17:32:16',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='Dcx_HomePagePlug',[DBTableByName]='Dcx_HomePagePlug',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=29,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:16',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:16',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=201 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=201  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16911,1,29,201,'int',1,1,1,'Dcx_HomePagePlug','PlugId','PlugId','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_HomePagePlug',[FieldName]='PlugId',[FieldByname]='PlugId',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=201  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=201  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16912,2,29,201,'varchar',2,1,1,'Dcx_HomePagePlug','PlugName','PlugName','',0,0,0,150,150,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_HomePagePlug',[FieldName]='PlugName',[FieldByname]='PlugName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=150,[Precision]=150,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=201  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=201  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16913,3,29,201,'varchar',2,1,1,'Dcx_HomePagePlug','PlugUrl','PlugUrl','',0,0,0,150,150,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_HomePagePlug',[FieldName]='PlugUrl',[FieldByname]='PlugUrl',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=150,[Precision]=150,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=201  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=201  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16914,4,29,201,'int',1,1,1,'Dcx_HomePagePlug','Width','Width','0',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_HomePagePlug',[FieldName]='Width',[FieldByname]='Width',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=201  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=201  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16915,5,29,201,'int',1,1,1,'Dcx_HomePagePlug','Height','Height','0',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_HomePagePlug',[FieldName]='Height',[FieldByname]='Height',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=201  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=201  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16916,6,29,201,'int',1,1,1,'Dcx_HomePagePlug','SortOrder','SortOrder','0',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_HomePagePlug',[FieldName]='SortOrder',[FieldByname]='SortOrder',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=201  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=201  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16917,7,29,201,'varchar',2,1,1,'Dcx_HomePagePlug','Remark','Remark','',0,0,0,150,150,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_HomePagePlug',[FieldName]='Remark',[FieldByname]='Remark',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=150,[Precision]=150,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=201  and  [FieldId]=7 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=3295  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(3295,'d8756384-45e6-415a-a0ee-4fc0d2d84c6e','用户列表_批量选择',3279,'',1,'/images/default.gif','/images/default.gif',0,'rightFrame',0,1,'',29,-1,29,1,1,1,null,'',0,0,'',null,3,'admin','2013-9-3 6:59:11',1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='d8756384-45e6-415a-a0ee-4fc0d2d84c6e',[MenuName]='用户列表_批量选择',[ParentId]=3279,[ProPath]='',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=0,[Target]='rightFrame',[IsOpen]=0,[IsHidden]=1,[Remark]='',[SSystemId]=29,[SMenuId]=-1,[SystemId]=29,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=0,[Creator]='',[CreateTime]=null,[EditorId]=3,[Editor]='admin',[EditTime]='2013-9-3 6:59:11',[AccountId]=1 where  [MenuId]=3295 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3295  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(1054,3295,'用户列表_批量选择','Public',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='用户列表_批量选择',[RoleName]='Public',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3295  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3295  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(987,3295,'用户列表_批量选择','系统管理员',3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='用户列表_批量选择',[RoleName]='系统管理员',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3295  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2025  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2025,3295,'用户列表',1,1200,0,'Dcx_User',0,0,1,29,2025,null,null,29,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3295,[EntName]='用户列表',[MEnt]=1,[DBTableId]=1200,[DBConnectId]=0,[DBTableName]='Dcx_User',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2025,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2025 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=2025

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2025  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11062,3295,2025,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=3295,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2025  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2025

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2025  and  [ModuleTypeId]=5  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20457,29,3295,2025,13,5,25,1,3,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3295,[TemplateId]=13,[ModuleId]=25,[GroupId]=1,[AreaId]=3,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2025  and  [ModuleTypeId]=5 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2025  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20458,29,3295,2025,13,2,9,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3295,[TemplateId]=13,[ModuleId]=9,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2025  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2025  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20459,29,3295,2025,13,1,1,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3295,[TemplateId]=13,[ModuleId]=1,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2025  and  [ModuleTypeId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_SearchForm_Run]  where [EntId]=2025

--Dcx_SearchForm_Run
      if (select count(1) from [Dcx_SearchForm_Run] where  [EntId]=2025  )<1 
      begin 
           Insert into [Dcx_SearchForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('a573a3ec-7a45-7cdf-8eae-424c08be5031','用户列表',2025,9,'','',0,'<!--/Js/ui/jquery.ui.core.js-->
<!--/Js/ui/jquery.ui.widget.js-->
<!--/Js/ui/jquery.ui.mouse.js-->
<!--/Js/ui/jquery.ui.sortable.js-->
<script src="/Js/Control/LTreeRList/LTreeRList.js"></script>','','DcxRun.SearchF_2025= {"MenuId":3295,"MEntId":2025,"EntName":"用户列表","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2025":{"EntId":2025,"KeyFieldValue":"","DBTableName":"","KeyField":"UserId","KeydtId":2,"JoinKeyField":"UserId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_2025.EntMsg.E2025.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_User","EntId":2025,"KeyField":"UserId","MKeyField":"UserId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"UserName":{"DtId":2,"DB":1,"CId":1,"FL":20},"DeptId":{"DtId":1,"DB":1,"CId":40,"FL":4}},"Data":{"Row":[]}};
}
DcxRun.SearchF_2025.EntMsg.E2025.GetDataRowModel=function()
{
    return {"UserName":"","DeptId":-1,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"UserId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_2025.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2025,''SearchF_'',buildNew,closeDlg);

}','',10,'','','','2025*UserId*2*UserId*2*Dcx_User*用户列表',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-10-10 1:30:31',3,'admin','2013-8-22 5:58:41',1)
      end
      else 
      begin 
           update [Dcx_SearchForm_Run] set [FormId]='a573a3ec-7a45-7cdf-8eae-424c08be5031',[FormName]='用户列表',[ModuleId]=9,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<!--/Js/ui/jquery.ui.core.js-->
<!--/Js/ui/jquery.ui.widget.js-->
<!--/Js/ui/jquery.ui.mouse.js-->
<!--/Js/ui/jquery.ui.sortable.js-->
<script src="/Js/Control/LTreeRList/LTreeRList.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.SearchF_2025= {"MenuId":3295,"MEntId":2025,"EntName":"用户列表","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2025":{"EntId":2025,"KeyFieldValue":"","DBTableName":"","KeyField":"UserId","KeydtId":2,"JoinKeyField":"UserId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_2025.EntMsg.E2025.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_User","EntId":2025,"KeyField":"UserId","MKeyField":"UserId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"UserName":{"DtId":2,"DB":1,"CId":1,"FL":20},"DeptId":{"DtId":1,"DB":1,"CId":40,"FL":4}},"Data":{"Row":[]}};
}
DcxRun.SearchF_2025.EntMsg.E2025.GetDataRowModel=function()
{
    return {"UserName":"","DeptId":-1,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"UserId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_2025.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2025,''SearchF_'',buildNew,closeDlg);

}',[LoadingSql]='',[PageSize]=10,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='2025*UserId*2*UserId*2*Dcx_User*用户列表',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-10-10 1:30:31',[EditorId]=3,[Editor]='admin',[EditTime]='2013-8-22 5:58:41',[AccountId]=1 where  [EntId]=2025 
      end




--Dcx_SearchFormField_Run
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='50f2a63d-96b3-25ce-a53f-a06a4d7d41a4'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'50f2a63d-96b3-25ce-a53f-a06a4d7d41a4',2025,2025,'00000000-0000-0000-0000-000000000000',1,'Like','UserName',2,2,3,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','<div class="searchform">
<fieldset class="searchform-fieldset"><legend class="searchform-legend">
<ul class="ul-title" groupid="1" isgroup="1" isrple="1">
<li style="position: static;" class="li-title-area li-title-img" scroll="no" areaid="6"><img class="title-img" src="/css/style/default/module/search/images/gray/searchtitle.png"> </li>
<li style="position: static;" class="li-title-area li-title" scroll="no" areaid="7">快速搜索 </li></ul></legend>
<ul class="ul-group w720" groupid="2" isgroup="1" isrple="1">
<li style="width: 270px; height: 32px; position: static;" class="li-area w240 h32" scroll="no" areaid="8"><label class="area-title pad7" fldid="1" istitle="1">用户名</label> 
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">','','','','<input  id="d2025_UserName"   type="text" class="form-txt"  style="width:150px;" EntId="2025" IsField=1 DBField=1 IsPost=1 FieldName="UserName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'2025,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=1,[Form_EntId]=2025,[EntId]=2025,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[CompareOperatorType]='Like',[FieldName]='UserName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=3,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="searchform">
<fieldset class="searchform-fieldset"><legend class="searchform-legend">
<ul class="ul-title" groupid="1" isgroup="1" isrple="1">
<li style="position: static;" class="li-title-area li-title-img" scroll="no" areaid="6"><img class="title-img" src="/css/style/default/module/search/images/gray/searchtitle.png"> </li>
<li style="position: static;" class="li-title-area li-title" scroll="no" areaid="7">快速搜索 </li></ul></legend>
<ul class="ul-group w720" groupid="2" isgroup="1" isrple="1">
<li style="width: 270px; height: 32px; position: static;" class="li-area w240 h32" scroll="no" areaid="8"><label class="area-title pad7" fldid="1" istitle="1">用户名</label> 
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2025_UserName"   type="text" class="form-txt"  style="width:150px;" EntId="2025" IsField=1 DBField=1 IsPost=1 FieldName="UserName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2025,' where  [FldUId]='50f2a63d-96b3-25ce-a53f-a06a4d7d41a4' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='30bf4e26-418d-14c6-3ab4-a13d4c19b170'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'30bf4e26-418d-14c6-3ab4-a13d4c19b170',2025,2025,'00000000-0000-0000-0000-000000000000',2,'=','DeptId',1,1,14,'',5,2,1,0,40,1,-1,1,1,0,'','','','','</span> </div></li>
<li style="width: 270px; height: 32px; position: static;" class="li-area w240 h32" scroll="no" areaid="9"><label class="area-title pad7" fldid="2" istitle="1">部门</label> 
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">','</span> </div></li>
<li style="float: none; clear: right; position: static;" class="li-area w120 h32" scroll="no" areaid="10">
<div class="field-content pad4 search-btn-div"><a id="2025_searchBT" class="search-btn" onclick="javascript:return VL_Search(2025);" href="javascript:void(0);">开始搜索</a> </div></li></ul></fieldset> </div>','','','<div id="d2025_DeptId" class="form-ddl" style="" IsForField=1 EntId="2025" FId="2" Vtp="5" RId="2" Isc="1" CId="40" FieldName="DeptId" ><input  id="d2025_DeptId_Text" type="text" class="form-ddl-txt"  CId="40" FId="2" Vtp="5"  RId="2" Isc="1"  style="width:200px;" onclick ="javascript:DcxTree.ShowDialogAf(this,1,2025,''DeptId'',false);" onkeyup ="javascript:DcxTree.ShowDialogAf(this,1,2025,''DeptId'',true);" value="','" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2025_DeptId_hid" type="hidden"  EntId="2025" IsField=1 DBField=1 IsPost=1 FieldName="DeptId" dType="1" Vtp="5" RDT="1" Isc="1" RId="2" CId="40" FId="2" vlk=0   TId=1  Cpre="="  value="','" />',1,-1,-1,-1,-1,0,'2025,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=2,[Form_EntId]=2025,[EntId]=2025,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[CompareOperatorType]='=',[FieldName]='DeptId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=14,[DefaultValue]='',[ValueType]=5,[RunValueType]=2,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=40,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="width: 270px; height: 32px; position: static;" class="li-area w240 h32" scroll="no" areaid="9"><label class="area-title pad7" fldid="2" istitle="1">部门</label> 
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">',[LastHtml]='</span> </div></li>
<li style="float: none; clear: right; position: static;" class="li-area w120 h32" scroll="no" areaid="10">
<div class="field-content pad4 search-btn-div"><a id="2025_searchBT" class="search-btn" onclick="javascript:return VL_Search(2025);" href="javascript:void(0);">开始搜索</a> </div></li></ul></fieldset> </div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2025_DeptId" class="form-ddl" style="" IsForField=1 EntId="2025" FId="2" Vtp="5" RId="2" Isc="1" CId="40" FieldName="DeptId" ><input  id="d2025_DeptId_Text" type="text" class="form-ddl-txt"  CId="40" FId="2" Vtp="5"  RId="2" Isc="1"  style="width:200px;" onclick ="javascript:DcxTree.ShowDialogAf(this,1,2025,''DeptId'',false);" onkeyup ="javascript:DcxTree.ShowDialogAf(this,1,2025,''DeptId'',true);" value="',[CtrlbackHtml]='" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2025_DeptId_hid" type="hidden"  EntId="2025" IsField=1 DBField=1 IsPost=1 FieldName="DeptId" dType="1" Vtp="5" RDT="1" Isc="1" RId="2" CId="40" FId="2" vlk=0   TId=1  Cpre="="  value="',[CtrlLastHtml]='" />',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2025,' where  [FldUId]='30bf4e26-418d-14c6-3ab4-a13d4c19b170' 
      end



Delete from [Dcx_ListReport_Run]  where [EntId]=2025

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=2025  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('e86295c2-acb4-5386-a269-1c62c334e656','用户列表',2025,1,'','','<$2025$>select *  from (select row_number() over( order by [UserId])as dcx_rowid,[UserId],[UserName],[RealName],[Email] from Dcx_User  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$2025$><$2025:Count$>select count([UserId]) from Dcx_User where {$SearchArea}</$2025:Count$>',1,1,10,'DcxRun.ListR_2025= {"MenuId":3295,"MEntId":2025,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"用户列表","EntMsg":{"E2025":{"EntId":2025,"EntName":"用户列表","KeyFieldValue":"","DBTableName":"Dcx_User","KeyField":"UserId","KeydtId":2,"JoinKeyField":"UserId","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','2025*UserId*2*UserId*2*Dcx_User*用户列表',3,'','2012-10-10 1:30:49',3,'','2013-7-30 2:51:11',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='e86295c2-acb4-5386-a269-1c62c334e656',[ReportName]='用户列表',[ModuleId]=1,[StaticHtml]='',[DIYJsCss]='',[LoadingSql]='<$2025$>select *  from (select row_number() over( order by [UserId])as dcx_rowid,[UserId],[UserName],[RealName],[Email] from Dcx_User  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$2025$><$2025:Count$>select count([UserId]) from Dcx_User where {$SearchArea}</$2025:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=10,[AutoPublicJs]='DcxRun.ListR_2025= {"MenuId":3295,"MEntId":2025,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"用户列表","EntMsg":{"E2025":{"EntId":2025,"EntName":"用户列表","KeyFieldValue":"","DBTableName":"Dcx_User","KeyField":"UserId","KeydtId":2,"JoinKeyField":"UserId","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='2025*UserId*2*UserId*2*Dcx_User*用户列表',[CreatorId]=3,[Creator]='',[CreateTime]='2012-10-10 1:30:49',[EditorId]=3,[Editor]='',[EditTime]='2013-7-30 2:51:11',[AccountId]=1 where  [EntId]=2025 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='62d09e0a-fbf7-e8be-0f07-311c9f82d66b'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(17,'62d09e0a-fbf7-e8be-0f07-311c9f82d66b',2025,2025,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<div class="listreport toolbar-opt">
<ul style="WIdTH: 680px" class="itemUl1 repUl1" groupid="1" isgroup="1" istoolbar="1" islonly="1" isrple="1">
<li style="width: 1px; height: 30px; position: static;" class="putCont"><input id="ckb_CheckAllListR_2025" class="chPut" onclick="javascript:DcxCom.CheckedAll(this,2025,''ListR_'');" value="on" type="checkbox" rel="chkall"> <label for="ckb_CheckAllListR_2025">全选</label></li>
<li style="position: static;" class="listTit" areaid="12"></li>
<li style="width: 70px; height: 30px; position: static;" class="listTit" areaid="16"><a id="ListR_2025_refreshbut" class="lMdBtn" title="刷   新" onclick="javascript:DcxCom.ReLoad(2025,''ListR_'');" href="javascript:void(0);">刷 新</a></li><!--分页栏-->
<li style="width: 280px; height: 30px; position: static;" id="li2_ListR_2025" class="listTit_page" areaid="17" ispage="1"><a id="ListR_2025_FirstPage" class="btn_page firstpage" title="首页" onclick="javascript:DcxSch.GetHtml(2025,''ListR_'',''h'');" href="javascript:void(0);" isfirstpage="1">首页</a> <a id="ListR_2025_PrevPage" class="btn_page prvpage" title="上一页" onclick="javascript:DcxSch.GetHtml(2025,''ListR_'',''p'');" href="javascript:void(0);" isprevpage="1">上一页</a> <span class="ddl_pageindex"><select id="ddl_ListR_2025_PageIndex" onchange="javascript:DcxSch.GetHtml(2025,''ListR_'',''a'',this);" isddlpage="1"></select> </span><a id="ListR_2025_NextPage" class="btn_page nextpage" title="下一页" onclick="javascript:DcxSch.GetHtml(2025,''ListR_'',''n'');" href="javascript:void(0);" isnextpage="1">下一页</a> <a id="ListR_2025_LastPage" class="btn_page lastpage" title="最后一页" onclick="javascript:DcxSch.GetHtml(2025,''ListR_'',''t'');" href="javascript:void(0);" islastpage="1">最后一页</a> <span class="page">第</span> <span id="ListR_2025_CurrentPage_lbl" class="page_data" iscurpage="1">0</span> <span class="page">页,共</span>&nbsp; <span id="ListR_2025_PageCount_lbl" class="page_data" ispagecount="1">0</span> <span class="page">页 </span><span id="ListR_2025_RecCount_lbl" class="page_data" isrecortcount="1">0</span> <span class="page">条记录</span> </li></ul></div>
<div class="listreport listarea">
<div class="lf-head">
<ul style="width: 808px;" class="ul-listtitle" groupid="2" isgroup="1" islonly="1" islisthead="1" isrple="1">
<li style="width: 170px; float: left; height: 30px; clear: none; position: static;" class="li-head-item" areaid="18"><label class="head-label" istitle="1">编号</label></li>
<li style="width: 170px; float: left; height: 30px; clear: none; position: static;" class="li-head-item" areaid="19"><label class="head-label" istitle="1">用户名</label></li>
<li style="width: 190px; float: left; height: 30px; clear: none; position: static;" class="li-head-item" areaid="25"><label class="head-label" istitle="1">姓名 </label></li>
<li style="width: 270px; float: left; height: 30px; clear: right; position: static;" class="li-head-item" areaid="24"><label class="head-label" istitle="1">Email </label></li></ul></div>
<div class="lf-body">','',-1,3,-1,-1,1,'2025,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=17,[Report_EntId]=2025,[EntId]=2025,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="listreport toolbar-opt">
<ul style="WIdTH: 680px" class="itemUl1 repUl1" groupid="1" isgroup="1" istoolbar="1" islonly="1" isrple="1">
<li style="width: 1px; height: 30px; position: static;" class="putCont"><input id="ckb_CheckAllListR_2025" class="chPut" onclick="javascript:DcxCom.CheckedAll(this,2025,''ListR_'');" value="on" type="checkbox" rel="chkall"> <label for="ckb_CheckAllListR_2025">全选</label></li>
<li style="position: static;" class="listTit" areaid="12"></li>
<li style="width: 70px; height: 30px; position: static;" class="listTit" areaid="16"><a id="ListR_2025_refreshbut" class="lMdBtn" title="刷   新" onclick="javascript:DcxCom.ReLoad(2025,''ListR_'');" href="javascript:void(0);">刷 新</a></li><!--分页栏-->
<li style="width: 280px; height: 30px; position: static;" id="li2_ListR_2025" class="listTit_page" areaid="17" ispage="1"><a id="ListR_2025_FirstPage" class="btn_page firstpage" title="首页" onclick="javascript:DcxSch.GetHtml(2025,''ListR_'',''h'');" href="javascript:void(0);" isfirstpage="1">首页</a> <a id="ListR_2025_PrevPage" class="btn_page prvpage" title="上一页" onclick="javascript:DcxSch.GetHtml(2025,''ListR_'',''p'');" href="javascript:void(0);" isprevpage="1">上一页</a> <span class="ddl_pageindex"><select id="ddl_ListR_2025_PageIndex" onchange="javascript:DcxSch.GetHtml(2025,''ListR_'',''a'',this);" isddlpage="1"></select> </span><a id="ListR_2025_NextPage" class="btn_page nextpage" title="下一页" onclick="javascript:DcxSch.GetHtml(2025,''ListR_'',''n'');" href="javascript:void(0);" isnextpage="1">下一页</a> <a id="ListR_2025_LastPage" class="btn_page lastpage" title="最后一页" onclick="javascript:DcxSch.GetHtml(2025,''ListR_'',''t'');" href="javascript:void(0);" islastpage="1">最后一页</a> <span class="page">第</span> <span id="ListR_2025_CurrentPage_lbl" class="page_data" iscurpage="1">0</span> <span class="page">页,共</span>&nbsp; <span id="ListR_2025_PageCount_lbl" class="page_data" ispagecount="1">0</span> <span class="page">页 </span><span id="ListR_2025_RecCount_lbl" class="page_data" isrecortcount="1">0</span> <span class="page">条记录</span> </li></ul></div>
<div class="listreport listarea">
<div class="lf-head">
<ul style="width: 808px;" class="ul-listtitle" groupid="2" isgroup="1" islonly="1" islisthead="1" isrple="1">
<li style="width: 170px; float: left; height: 30px; clear: none; position: static;" class="li-head-item" areaid="18"><label class="head-label" istitle="1">编号</label></li>
<li style="width: 170px; float: left; height: 30px; clear: none; position: static;" class="li-head-item" areaid="19"><label class="head-label" istitle="1">用户名</label></li>
<li style="width: 190px; float: left; height: 30px; clear: none; position: static;" class="li-head-item" areaid="25"><label class="head-label" istitle="1">姓名 </label></li>
<li style="width: 270px; float: left; height: 30px; clear: right; position: static;" class="li-head-item" areaid="24"><label class="head-label" istitle="1">Email </label></li></ul></div>
<div class="lf-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=3,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2025,' where  [FldUId]='62d09e0a-fbf7-e8be-0f07-311c9f82d66b' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='78aeb023-0211-692c-f1f1-7595fbf1fba9'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'78aeb023-0211-692c-f1f1-7595fbf1fba9',2025,2025,'00000000-0000-0000-0000-000000000000',1,'UserId',2,1,'int',1,1,0,'','','','style="width: 808px;" class="ul-listfield" groupid="3" isgroup="1" islonly="1" isrple="1">
<li style="position: static; width: 170px; float: left; height: 30px; clear: none;" class="li-listfield" areaid="20">
<div class="list-field"><span columntypeid="1" fieldname="UserId" entid="2025" fldid="2" isfield="1" class="form-ctr">','',20,3,-1,-1,1,'2025,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=2,[Report_EntId]=2025,[EntId]=2025,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=1,[FieldName]='UserId',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='style="width: 808px;" class="ul-listfield" groupid="3" isgroup="1" islonly="1" isrple="1">
<li style="position: static; width: 170px; float: left; height: 30px; clear: none;" class="li-listfield" areaid="20">
<div class="list-field"><span columntypeid="1" fieldname="UserId" entid="2025" fldid="2" isfield="1" class="form-ctr">',[LastHtml]='',[RowIndex]=20,[TableIndex]=3,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2025,' where  [FldUId]='78aeb023-0211-692c-f1f1-7595fbf1fba9' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='8b5a65d0-8a10-26ec-a778-47526b64d5b8'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'8b5a65d0-8a10-26ec-a778-47526b64d5b8',2025,2025,'00000000-0000-0000-0000-000000000000',3,'UserName',3,1,'varchar',2,1,0,'','','','</span> </div></li>
<li style="width: 170px; float: left; height: 30px; clear: none; position: static;" class="li-listfield" areaid="21">
<div class="list-field"><span columntypeid="1" fieldname="UserName" entid="2025" fldid="1" isfield="1" class="form-ctr">','',-1,3,-1,-1,1,'2025,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=1,[Report_EntId]=2025,[EntId]=2025,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='UserName',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> </div></li>
<li style="width: 170px; float: left; height: 30px; clear: none; position: static;" class="li-listfield" areaid="21">
<div class="list-field"><span columntypeid="1" fieldname="UserName" entid="2025" fldid="1" isfield="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=3,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2025,' where  [FldUId]='8b5a65d0-8a10-26ec-a778-47526b64d5b8' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='d84d6b47-d64d-a4b7-21ce-903ada5691be'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'d84d6b47-d64d-a4b7-21ce-903ada5691be',2025,2025,'00000000-0000-0000-0000-000000000000',5,'RealName',4,1,'varchar',2,1,0,'','','','</span> </div></li>
<li style="position: static; width: 190px; float: left; height: 30px; clear: none;" class="li-listfield" areaid="23">
<div class="list-field"><span columntypeid="1" fieldname="RealName" entid="2025" fldid="3" isfield="1" class="form-ctr">','',-1,3,-1,-1,1,'2025,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=3,[Report_EntId]=2025,[EntId]=2025,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=5,[FieldName]='RealName',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> </div></li>
<li style="position: static; width: 190px; float: left; height: 30px; clear: none;" class="li-listfield" areaid="23">
<div class="list-field"><span columntypeid="1" fieldname="RealName" entid="2025" fldid="3" isfield="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=3,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2025,' where  [FldUId]='d84d6b47-d64d-a4b7-21ce-903ada5691be' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='8a5cf8e4-bb70-3a3d-7ded-4209678700aa'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'8a5cf8e4-bb70-3a3d-7ded-4209678700aa',2025,2025,'00000000-0000-0000-0000-000000000000',7,'Email',5,1,'varchar',2,1,0,'','','','</span> </div></li>
<li style="width: 270px; float: left; height: 30px; clear: right; position: static;" class="li-listfield" areaid="22">
<div class="list-field"><span columntypeid="1" fieldname="Email" entid="2025" fldid="4" isfield="1" class="form-ctr">','',-1,3,-1,-1,1,'2025,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=4,[Report_EntId]=2025,[EntId]=2025,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=7,[FieldName]='Email',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> </div></li>
<li style="width: 270px; float: left; height: 30px; clear: right; position: static;" class="li-listfield" areaid="22">
<div class="list-field"><span columntypeid="1" fieldname="Email" entid="2025" fldid="4" isfield="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=3,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2025,' where  [FldUId]='8a5cf8e4-bb70-3a3d-7ded-4209678700aa' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='db1da4cd-0ff1-d9ba-8f75-31d2db80f967'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(18,'db1da4cd-0ff1-d9ba-8f75-31d2db80f967',2025,2025,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',6,-1,'varchar',2,13,0,'','','','</span> </div></li></ul>','</div></div><!-- 结束 -->',-1,3,-1,-1,1,'2025,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=18,[Report_EntId]=2025,[EntId]=2025,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=6,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> </div></li></ul>',[LastHtml]='</div></div><!-- 结束 -->',[RowIndex]=-1,[TableIndex]=3,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2025,' where  [FldUId]='db1da4cd-0ff1-d9ba-8f75-31d2db80f967' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=1200

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=1200  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(1200,null,'Dcx_User','Dcx_User',1,0,0,0,0,0,29,1,3,'admin','2013-12-15 17:32:24',3,'admin','2013-12-15 17:32:24',null,null,27,418,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='Dcx_User',[DBTableByName]='Dcx_User',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=29,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:24',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:24',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=27,[SDbTableId]=418,[IsChange]=null,[IsSystem]=null where  [DBTableId]=1200 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=50  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17995,50,29,1200,'int',1,1,1,'Dcx_User','TopMenuId','TopMenuId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='TopMenuId',[FieldByname]='TopMenuId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=50 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=49  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17996,49,29,1200,'varchar',2,1,1,'Dcx_User','InviteCode','InviteCode','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='InviteCode',[FieldByname]='InviteCode',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=49 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=48  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17997,48,29,1200,'int',1,1,1,'Dcx_User','DiskSize','DiskSize','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='DiskSize',[FieldByname]='DiskSize',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=48 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=47  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17998,47,29,1200,'varchar',2,1,1,'Dcx_User','Remark','Remark','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Remark',[FieldByname]='Remark',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=47 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=46  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17999,46,29,1200,'bit',4,1,1,'Dcx_User','AcceptStrangerIM','AcceptStrangerIM','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='AcceptStrangerIM',[FieldByname]='AcceptStrangerIM',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=46 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=45  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18000,45,29,1200,'int',1,1,1,'Dcx_User','StyleId','StyleId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='StyleId',[FieldByname]='StyleId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=45 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=44  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18001,44,29,1200,'bit',4,1,1,'Dcx_User','SelftSearch','SelftSearch','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='SelftSearch',[FieldByname]='SelftSearch',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=44 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=43  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18002,43,29,1200,'bit',4,1,1,'Dcx_User','SelftNavMenu','SelftNavMenu','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='SelftNavMenu',[FieldByname]='SelftNavMenu',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=43 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=42  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18003,42,29,1200,'bit',4,1,1,'Dcx_User','SelftHomePage','SelftHomePage','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='SelftHomePage',[FieldByname]='SelftHomePage',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=42 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=41  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18004,41,29,1200,'datetime',3,1,1,'Dcx_User','EditTime','EditTime','getdate()',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='EditTime',[FieldByname]='EditTime',[DefaultValue]='getdate()',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=41 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=40  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18005,40,29,1200,'varchar',2,1,1,'Dcx_User','Editor','Editor','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Editor',[FieldByname]='Editor',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=40 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=39  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18006,39,29,1200,'int',1,1,1,'Dcx_User','EditorId','EditorId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='EditorId',[FieldByname]='EditorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=39 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=38  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18007,38,29,1200,'datetime',3,1,1,'Dcx_User','CreateTime','CreateTime','getdate()',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='CreateTime',[FieldByname]='CreateTime',[DefaultValue]='getdate()',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=38 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=37  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18008,37,29,1200,'varchar',2,1,1,'Dcx_User','Creator','Creator','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Creator',[FieldByname]='Creator',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=37 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=36  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18009,36,29,1200,'int',1,1,1,'Dcx_User','CreatorId','CreatorId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='CreatorId',[FieldByname]='CreatorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=36 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=35  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18010,35,29,1200,'varchar',2,1,1,'Dcx_User','IconPath','IconPath','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='IconPath',[FieldByname]='IconPath',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=35 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=34  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18011,34,29,1200,'varchar',2,1,1,'Dcx_User','Http','Http','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Http',[FieldByname]='Http',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=34 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=33  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18012,33,29,1200,'int',1,1,1,'Dcx_User','Caste','Caste','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Caste',[FieldByname]='Caste',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=33 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=32  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18013,32,29,1200,'bit',4,1,1,'Dcx_User','IsNeedKey','IsNeedKey','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='IsNeedKey',[FieldByname]='IsNeedKey',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=32 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=31  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18014,31,29,1200,'int',1,1,1,'Dcx_User','Style','Style','1',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Style',[FieldByname]='Style',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=31 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=30  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18015,30,29,1200,'datetime',3,1,1,'Dcx_User','Birthday','Birthday','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Birthday',[FieldByname]='Birthday',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=30 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=29  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18016,29,29,1200,'varchar',2,1,1,'Dcx_User','Phone','Phone','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Phone',[FieldByname]='Phone',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=29 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=28  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18017,28,29,1200,'datetime',3,1,1,'Dcx_User','RegistedDate','RegistedDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='RegistedDate',[FieldByname]='RegistedDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=28 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=27  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18018,27,29,1200,'varchar',2,1,1,'Dcx_User','Status','Status','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Status',[FieldByname]='Status',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=27 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18019,26,29,1200,'varchar',2,1,1,'Dcx_User','Telephone','Telephone','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Telephone',[FieldByname]='Telephone',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=26 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18020,25,29,1200,'varchar',2,1,1,'Dcx_User','Sex','Sex','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Sex',[FieldByname]='Sex',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18021,24,29,1200,'int',1,1,1,'Dcx_User','UserOrder','UserOrder','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='UserOrder',[FieldByname]='UserOrder',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18022,23,29,1200,'datetime',3,1,1,'Dcx_User','LoginDate','LoginDate','0',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='LoginDate',[FieldByname]='LoginDate',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18023,22,29,1200,'varchar',2,1,1,'Dcx_User','PWD','PWD','',0,0,0,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='PWD',[FieldByname]='PWD',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18024,21,29,1200,'bit',4,1,1,'Dcx_User','Online','Online','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Online',[FieldByname]='Online',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18025,20,29,1200,'int',1,1,1,'Dcx_User','VisitTime','VisitTime','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='VisitTime',[FieldByname]='VisitTime',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18026,19,29,1200,'bit',4,1,1,'Dcx_User','RestrictIp','RestrictIp','0',0,0,0,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='RestrictIp',[FieldByname]='RestrictIp',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18027,18,29,1200,'varchar',2,1,1,'Dcx_User','IP','IP','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='IP',[FieldByname]='IP',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18028,17,29,1200,'bit',4,1,1,'Dcx_User','CanLogin','CanLogin','1',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='CanLogin',[FieldByname]='CanLogin',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18029,16,29,1200,'bit',4,1,1,'Dcx_User','SuperAdmin','SuperAdmin','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='SuperAdmin',[FieldByname]='SuperAdmin',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18030,15,29,1200,'int',1,1,1,'Dcx_User','PositionId','PositionId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='PositionId',[FieldByname]='PositionId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18031,14,29,1200,'int',1,1,1,'Dcx_User','DeptId','DeptId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='DeptId',[FieldByname]='DeptId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18032,13,29,1200,'int',1,1,1,'Dcx_User','EmployeeId','EmployeeId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='EmployeeId',[FieldByname]='EmployeeId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18033,12,29,1200,'int',1,1,1,'Dcx_User','CurSystemId','CurSystemId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='CurSystemId',[FieldByname]='CurSystemId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18034,11,29,1200,'bit',4,1,1,'Dcx_User','IsAccountCreator','IsAccountCreator','0',0,0,0,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='IsAccountCreator',[FieldByname]='IsAccountCreator',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18035,10,29,1200,'int',1,1,1,'Dcx_User','AccountId','AccountId','1',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='AccountId',[FieldByname]='AccountId',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18036,9,29,1200,'int',1,1,1,'Dcx_User','GroupId','GroupId','0',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='GroupId',[FieldByname]='GroupId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18037,8,29,1200,'varchar',2,1,1,'Dcx_User','Address','Address','',0,0,1,150,150,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Address',[FieldByname]='Address',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=150,[Precision]=150,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18038,7,29,1200,'varchar',2,1,1,'Dcx_User','Email','Email','',0,0,0,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Email',[FieldByname]='Email',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18039,6,29,1200,'varchar',2,1,1,'Dcx_User','DcxUserName','DcxUserName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='DcxUserName',[FieldByname]='DcxUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18040,5,29,1200,'varchar',2,1,1,'Dcx_User','RealName','RealName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='RealName',[FieldByname]='RealName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18041,4,29,1200,'varchar',2,1,1,'Dcx_User','UpperName','UpperName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='UpperName',[FieldByname]='UpperName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18042,3,29,1200,'varchar',2,1,1,'Dcx_User','UserName','UserName','',0,0,0,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='UserName',[FieldByname]='UserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18043,2,29,1200,'uniqueidentifier',24,1,1,'Dcx_User','UserGuId','UserGuId','newid()',0,0,1,16,16,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='uniqueidentifier',[FieldDataTypeId]=24,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='UserGuId',[FieldByname]='UserGuId',[DefaultValue]='newid()',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=16,[Precision]=16,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18044,1,29,1200,'int',1,1,1,'Dcx_User','UserId','UserId','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='UserId',[FieldByname]='UserId',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=1 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=3300  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(3300,'b5d69e8b-183b-4596-a43b-2d2180fa2bf7','发布办理',3278,'/Template/default/form/AllForm_List_Tree_Tag.aspx',1,'/images/default.gif','/images/default.gif',0,'rightFrame',0,0,'',29,-1,29,2,1,1,null,'',0,0,'',null,3,'admin','2013-10-9 4:18:40',1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='b5d69e8b-183b-4596-a43b-2d2180fa2bf7',[MenuName]='发布办理',[ParentId]=3278,[ProPath]='/Template/default/form/AllForm_List_Tree_Tag.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=0,[Target]='rightFrame',[IsOpen]=0,[IsHidden]=0,[Remark]='',[SSystemId]=29,[SMenuId]=-1,[SystemId]=29,[EntityCount]=2,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=0,[Creator]='',[CreateTime]=null,[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-9 4:18:40',[AccountId]=1 where  [MenuId]=3300 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3300  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(1055,3300,'发布办理','Public',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='发布办理',[RoleName]='Public',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3300  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3300  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(995,3300,'发布','系统管理员',3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='发布',[RoleName]='系统管理员',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3300  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2035  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2035,3300,'最新发布',1,295,0,'Dcx_Publish',0,0,1,29,2035,null,null,29,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3300,[EntName]='最新发布',[MEnt]=1,[DBTableId]=295,[DBConnectId]=0,[DBTableName]='Dcx_Publish',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2035,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2035 
      end
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2036  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2036,3300,'配置发布',1,1205,0,'Dcx_Common',0,0,1,29,2036,null,null,29,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3300,[EntName]='配置发布',[MEnt]=1,[DBTableId]=1205,[DBConnectId]=0,[DBTableName]='Dcx_Common',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2036,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2036 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=2035

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2035  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11070,3300,2035,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=3300,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2035  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2035

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2035  and  [ModuleTypeId]=18  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20464,29,3300,2035,73,18,49,4,12,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3300,[TemplateId]=73,[ModuleId]=49,[GroupId]=4,[AreaId]=12,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2035  and  [ModuleTypeId]=18 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_DefaultForm_Run]  where [EntId]=2035

--Dcx_DefaultForm_Run
      if (select count(1) from [Dcx_DefaultForm_Run] where  [EntId]=2035  )<1 
      begin 
           Insert into [Dcx_DefaultForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[OtherMsg],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('fc4279b4-15b5-a05c-a93b-76a1b30df051','发布办理',2035,-1,'','',0,'','<script type="text/javascript" src="/js/System/Publish.js"></script>','DcxRun.DefaultF_2035= {"MenuId":3300,"MEntId":2035,"EntName":"最新发布","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2035":{"EntId":2035,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"Id","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":21,"Ent":[{"EntId":2035,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":2,"Vld":[{"Id":4,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":3,"Vld":[{"Id":6,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":4,"Vld":[{"Id":7,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":5,"Vld":[{"Id":8,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":6,"Vld":[{"Id":9,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":7,"Vld":[{"Id":10,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":8,"Vld":[{"Id":11,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":12,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"(\\d{2}|\\d{4})(?:\\-)?([0]{1}\\d{1}|[1]{1}[0-2]{1})(?:\\-)?([0-2]{1}\\d{1}|[3]{1}[0-1]{1})(?:\\s)?([0-1]{1}\\d{1}|[2]{1}[0-3]{1})(?::)?([0-5]{1}\\d{1})(?::)?([0-5]{1}\\d{1})","err":"格式要求为日期时间格式：yyyy-mm-dd  hh:mm:ss","ok":"","warn":"","ovt":1}]},{"FldId":9,"Vld":[{"Id":13,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":14,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":10,"Vld":[{"Id":15,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":11,"Vld":[{"Id":16,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":17,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":12,"Vld":[{"Id":18,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":19,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":13,"Vld":[{"Id":20,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":21,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,150}$","err":"限制0-150个字符。","ok":"","warn":"","ovt":1}]},{"FldId":14,"Vld":[]},{"FldId":15,"Vld":[]},{"FldId":16,"Vld":[]}]}]};
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2035.EntMsg.E2035.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_Publish","EntId":2035,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"ModuleTypeName":{"DtId":2,"DB":1,"CId":1,"FL":50},"ModuleTypeId":{"DtId":1,"DB":1,"CId":47,"FL":4},"ModuleName":{"DtId":2,"DB":1,"CId":1,"FL":50},"MenuName":{"DtId":2,"DB":1,"CId":1,"FL":50},"MenuId":{"DtId":1,"DB":1,"CId":47,"FL":4},"EntName":{"DtId":2,"DB":1,"CId":1,"FL":50},"EntId":{"DtId":1,"DB":1,"CId":47,"FL":4},"PublishTime":{"DtId":3,"DB":1,"CId":1,"FL":8},"ReceiveUserName":{"DtId":2,"DB":1,"CId":1,"FL":50},"Dcx_Email":{"DtId":2,"DB":1,"CId":1,"FL":50},"SystemId":{"DtId":1,"DB":1,"CId":47,"FL":4},"SystemName":{"DtId":2,"DB":1,"CId":1,"FL":50},"SendUrl":{"DtId":2,"DB":1,"CId":1,"FL":150}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2035.EntMsg.E2035.GetDataRowModel=function()
{
    return {"ModuleTypeName":"","ModuleTypeId":-1,"ModuleName":"","MenuName":"","MenuId":-1,"EntName":"","EntId":-1,"PublishTime":new Date(),"ReceiveUserName":"","Dcx_Email":"","SystemId":-1,"SystemName":"","SendUrl":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2035.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2035,''DefaultF_'',buildNew,closeDlg);

}','<$2035$>select [ModuleTypeName],[ModuleTypeId],[ModuleName],[MenuName],[MenuId],[EntName],[EntId],[PublishTime],[ReceiveUserName],[Dcx_Email],[SystemId],[SystemName],[SendUrl],[Remark],[Id] from Dcx_Publish where [Id]=''{$keyfieldvalue}''</$2035$>',10,'2035*Id*2*Id*2*Dcx_Publish*最新发布','','','',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-10-19 1:49:14',3,'admin','2013-10-2 18:34:12',1)
      end
      else 
      begin 
           update [Dcx_DefaultForm_Run] set [FormId]='fc4279b4-15b5-a05c-a93b-76a1b30df051',[FormName]='发布办理',[ModuleId]=-1,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='',[DIYJsCss2]='<script type="text/javascript" src="/js/System/Publish.js"></script>',[AutoPublicJs]='DcxRun.DefaultF_2035= {"MenuId":3300,"MEntId":2035,"EntName":"最新发布","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2035":{"EntId":2035,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"Id","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":21,"Ent":[{"EntId":2035,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":2,"Vld":[{"Id":4,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":3,"Vld":[{"Id":6,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":4,"Vld":[{"Id":7,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":5,"Vld":[{"Id":8,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":6,"Vld":[{"Id":9,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":7,"Vld":[{"Id":10,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":8,"Vld":[{"Id":11,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":12,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"(\\d{2}|\\d{4})(?:\\-)?([0]{1}\\d{1}|[1]{1}[0-2]{1})(?:\\-)?([0-2]{1}\\d{1}|[3]{1}[0-1]{1})(?:\\s)?([0-1]{1}\\d{1}|[2]{1}[0-3]{1})(?::)?([0-5]{1}\\d{1})(?::)?([0-5]{1}\\d{1})","err":"格式要求为日期时间格式：yyyy-mm-dd  hh:mm:ss","ok":"","warn":"","ovt":1}]},{"FldId":9,"Vld":[{"Id":13,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":14,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":10,"Vld":[{"Id":15,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":11,"Vld":[{"Id":16,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":17,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":12,"Vld":[{"Id":18,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":19,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":13,"Vld":[{"Id":20,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":21,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,150}$","err":"限制0-150个字符。","ok":"","warn":"","ovt":1}]},{"FldId":14,"Vld":[]},{"FldId":15,"Vld":[]},{"FldId":16,"Vld":[]}]}]};
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2035.EntMsg.E2035.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_Publish","EntId":2035,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"ModuleTypeName":{"DtId":2,"DB":1,"CId":1,"FL":50},"ModuleTypeId":{"DtId":1,"DB":1,"CId":47,"FL":4},"ModuleName":{"DtId":2,"DB":1,"CId":1,"FL":50},"MenuName":{"DtId":2,"DB":1,"CId":1,"FL":50},"MenuId":{"DtId":1,"DB":1,"CId":47,"FL":4},"EntName":{"DtId":2,"DB":1,"CId":1,"FL":50},"EntId":{"DtId":1,"DB":1,"CId":47,"FL":4},"PublishTime":{"DtId":3,"DB":1,"CId":1,"FL":8},"ReceiveUserName":{"DtId":2,"DB":1,"CId":1,"FL":50},"Dcx_Email":{"DtId":2,"DB":1,"CId":1,"FL":50},"SystemId":{"DtId":1,"DB":1,"CId":47,"FL":4},"SystemName":{"DtId":2,"DB":1,"CId":1,"FL":50},"SendUrl":{"DtId":2,"DB":1,"CId":1,"FL":150}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2035.EntMsg.E2035.GetDataRowModel=function()
{
    return {"ModuleTypeName":"","ModuleTypeId":-1,"ModuleName":"","MenuName":"","MenuId":-1,"EntName":"","EntId":-1,"PublishTime":new Date(),"ReceiveUserName":"","Dcx_Email":"","SystemId":-1,"SystemName":"","SendUrl":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2035.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2035,''DefaultF_'',buildNew,closeDlg);

}',[LoadingSql]='<$2035$>select [ModuleTypeName],[ModuleTypeId],[ModuleName],[MenuName],[MenuId],[EntName],[EntId],[PublishTime],[ReceiveUserName],[Dcx_Email],[SystemId],[SystemName],[SendUrl],[Remark],[Id] from Dcx_Publish where [Id]=''{$keyfieldvalue}''</$2035$>',[PageSize]=10,[OtherMsg]='2035*Id*2*Id*2*Dcx_Publish*最新发布',[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-10-19 1:49:14',[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-2 18:34:12',[AccountId]=1 where  [EntId]=2035 
      end




--Dcx_DefaultFormField_Run
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='b53b130c-f9c8-97a1-400c-5f224bbe09ff'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(16,'b53b130c-f9c8-97a1-400c-5f224bbe09ff',2035,2035,'00000000-0000-0000-0000-000000000000',1,'PublishList',2,2,-1,'',5,1,1,0,3,3,-1,-1,0,0,'','','','','<div class="ajaxfrom defaultform">
	<div class="div_top">
		<ul class="ul-group" groupid="1" isgroup="1" isrple="1">
			<li areaid="16" class="li-area" div="" fldid="-1" id="ul_Group4" istitle="1" label="" li="" scroll="no" style="width: 616px; height: 45px; position: static;" tabid="2" ul=""><label class="area-title pad7" fldid="16" istitle="1" style="width:143px;">待办发布</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<select id="d2035_PublishList" name="d2035_PublishList" class="form-select"  onchange ="javascript:DcxPls.GetOnePls();" EntId="2035" IsField=1 DBField=0 IsPost=0 FieldName="PublishList" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="3" FId="16" vlk=0    style="width:180px;">','</select>','',1,16,-1,-1,0,'2035,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=16,[Form_EntId]=2035,[EntId]=2035,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[FieldName]='PublishList',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="ajaxfrom defaultform">
	<div class="div_top">
		<ul class="ul-group" groupid="1" isgroup="1" isrple="1">
			<li areaid="16" class="li-area" div="" fldid="-1" id="ul_Group4" istitle="1" label="" li="" scroll="no" style="width: 616px; height: 45px; position: static;" tabid="2" ul=""><label class="area-title pad7" fldid="16" istitle="1" style="width:143px;">待办发布</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d2035_PublishList" name="d2035_PublishList" class="form-select"  onchange ="javascript:DcxPls.GetOnePls();" EntId="2035" IsField=1 DBField=0 IsPost=0 FieldName="PublishList" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="3" FId="16" vlk=0    style="width:180px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=16,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2035,' where  [FldUId]='b53b130c-f9c8-97a1-400c-5f224bbe09ff' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='57049a9e-29fe-50d4-5010-fbfe43915a4d'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'57049a9e-29fe-50d4-5010-fbfe43915a4d',2035,2035,'00000000-0000-0000-0000-000000000000',2,'ModuleTypeName',2,2,5,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
 <a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxPls.ReloadPls(this);" style="margin-left:30px;float:right;"><span class="op_bt_i">刷&nbsp;&nbsp;&nbsp;新</span></a> <span style="margin-left:10px;position: relative;top: 5px;"><input class="form-ckb" id="ckb_AutoHandle" name="ckb_AutoHandle" nov="false" onclick="javascript:DcxPls.AutoDealWith(this);" type="checkbox" yesv="true"> <label for="ckb_AutoHandle" style="top: 0px;">自动处理</label></span></div>
</li><li areaid="12" class="li-area" scroll="no" style="height: 55px; width: 596px; position: static;"><div class="form-title2" id="div_head1" style=" ">
	<div style="width:170px;float:left;clear:none;">
		<h2 id="h2_title">
			最新发布</h2>
	</div>
	<div style="width:365px;float:right;clear:none;">
		<a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxPls.CancelPls();" style="float:right;"><span class="op_bt_i">取消发布</span></a> <a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxPls.SumbitPls(2035,''DefaultF_'');" style="float:right;"><span class="op_bt_i">认真确认后，我提交</span></a></div>
</div></li>
			<li areaid="13" class="li-area" scroll="no" style="height: 45px; width: 576px; position: static;"><label class="area-title pad7" fldid="1" istitle="1">模块类别</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2035_ModuleTypeName"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2035,''DefaultF_'',2035,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2035,''DefaultF_'',2035);" EntId="2035" IsField=1 DBField=1 IsPost=1 FieldName="ModuleTypeName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2035,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=1,[Form_EntId]=2035,[EntId]=2035,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[FieldName]='ModuleTypeName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=5,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
 <a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxPls.ReloadPls(this);" style="margin-left:30px;float:right;"><span class="op_bt_i">刷&nbsp;&nbsp;&nbsp;新</span></a> <span style="margin-left:10px;position: relative;top: 5px;"><input class="form-ckb" id="ckb_AutoHandle" name="ckb_AutoHandle" nov="false" onclick="javascript:DcxPls.AutoDealWith(this);" type="checkbox" yesv="true"> <label for="ckb_AutoHandle" style="top: 0px;">自动处理</label></span></div>
</li><li areaid="12" class="li-area" scroll="no" style="height: 55px; width: 596px; position: static;"><div class="form-title2" id="div_head1" style=" ">
	<div style="width:170px;float:left;clear:none;">
		<h2 id="h2_title">
			最新发布</h2>
	</div>
	<div style="width:365px;float:right;clear:none;">
		<a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxPls.CancelPls();" style="float:right;"><span class="op_bt_i">取消发布</span></a> <a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxPls.SumbitPls(2035,''DefaultF_'');" style="float:right;"><span class="op_bt_i">认真确认后，我提交</span></a></div>
</div></li>
			<li areaid="13" class="li-area" scroll="no" style="height: 45px; width: 576px; position: static;"><label class="area-title pad7" fldid="1" istitle="1">模块类别</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2035_ModuleTypeName"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2035,''DefaultF_'',2035,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2035,''DefaultF_'',2035);" EntId="2035" IsField=1 DBField=1 IsPost=1 FieldName="ModuleTypeName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2035,' where  [FldUId]='57049a9e-29fe-50d4-5010-fbfe43915a4d' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='8ee1ede5-eaec-6b01-ebe8-664a37fbf5cf'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'8ee1ede5-eaec-6b01-ebe8-664a37fbf5cf',2035,2035,'00000000-0000-0000-0000-000000000000',3,'ModuleTypeId',1,1,4,'',5,10,1,0,47,1,-1,-1,1,0,'','','','','</span>

 <span class="form-ctr" isfcontain="1">','','','','<input  id="d2035_ModuleTypeId_hid"   type="hidden"  EntId="2035" IsField=1 DBField=1 IsPost=1 FieldName="ModuleTypeId" dType="1" Vtp="5" RDT="1" Isc="1" RId="10" CId="47" FId="2" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2035,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=2,[Form_EntId]=2035,[EntId]=2035,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[FieldName]='ModuleTypeId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=4,[DefaultValue]='',[ValueType]=5,[RunValueType]=10,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=47,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

 <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2035_ModuleTypeId_hid"   type="hidden"  EntId="2035" IsField=1 DBField=1 IsPost=1 FieldName="ModuleTypeId" dType="1" Vtp="5" RDT="1" Isc="1" RId="10" CId="47" FId="2" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2035,' where  [FldUId]='8ee1ede5-eaec-6b01-ebe8-664a37fbf5cf' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='3b7280c2-75a3-4097-3b06-55015302b5c7'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'3b7280c2-75a3-4097-3b06-55015302b5c7',2035,2035,'00000000-0000-0000-0000-000000000000',4,'ModuleName',2,2,6,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>

</div>
</li><li areaid="28" class="li-area" scroll="no" style="height: 45px; width: 576px; position: static;"><label class="area-title pad7" fldid="3" istitle="1">发布模块</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2035_ModuleName"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2035,''DefaultF_'',2035,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2035,''DefaultF_'',2035);" EntId="2035" IsField=1 DBField=1 IsPost=1 FieldName="ModuleName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="3" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2035,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=3,[Form_EntId]=2035,[EntId]=2035,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=4,[FieldName]='ModuleName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=6,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

</div>
</li><li areaid="28" class="li-area" scroll="no" style="height: 45px; width: 576px; position: static;"><label class="area-title pad7" fldid="3" istitle="1">发布模块</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2035_ModuleName"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2035,''DefaultF_'',2035,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2035,''DefaultF_'',2035);" EntId="2035" IsField=1 DBField=1 IsPost=1 FieldName="ModuleName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="3" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2035,' where  [FldUId]='3b7280c2-75a3-4097-3b06-55015302b5c7' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='c090593f-d480-e07c-ad07-09b7c9725897'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'c090593f-d480-e07c-ad07-09b7c9725897',2035,2035,'00000000-0000-0000-0000-000000000000',5,'MenuName',2,2,8,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>


</div>
</li><li areaid="27" class="li-area" scroll="no" style="height: 45px; width: 576px; position: static;"><label class="area-title pad7" fldid="4" istitle="1">网页名称</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2035_MenuName"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2035,''DefaultF_'',2035,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2035,''DefaultF_'',2035);" EntId="2035" IsField=1 DBField=1 IsPost=1 FieldName="MenuName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="4" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2035,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=4,[Form_EntId]=2035,[EntId]=2035,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=5,[FieldName]='MenuName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=8,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>


</div>
</li><li areaid="27" class="li-area" scroll="no" style="height: 45px; width: 576px; position: static;"><label class="area-title pad7" fldid="4" istitle="1">网页名称</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2035_MenuName"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2035,''DefaultF_'',2035,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2035,''DefaultF_'',2035);" EntId="2035" IsField=1 DBField=1 IsPost=1 FieldName="MenuName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="4" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2035,' where  [FldUId]='c090593f-d480-e07c-ad07-09b7c9725897' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='46b3ca9e-8085-65e8-b50e-89f6fd2858c8'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'46b3ca9e-8085-65e8-b50e-89f6fd2858c8',2035,2035,'00000000-0000-0000-0000-000000000000',6,'MenuId',1,1,7,'',5,10,1,0,47,1,-1,-1,1,0,'','','','','</span>

<span class="form-ctr" isfcontain="1">','','','','<input  id="d2035_MenuId_hid"   type="hidden"  EntId="2035" IsField=1 DBField=1 IsPost=1 FieldName="MenuId" dType="1" Vtp="5" RDT="1" Isc="1" RId="10" CId="47" FId="5" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2035,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=5,[Form_EntId]=2035,[EntId]=2035,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=6,[FieldName]='MenuId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=7,[DefaultValue]='',[ValueType]=5,[RunValueType]=10,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=47,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2035_MenuId_hid"   type="hidden"  EntId="2035" IsField=1 DBField=1 IsPost=1 FieldName="MenuId" dType="1" Vtp="5" RDT="1" Isc="1" RId="10" CId="47" FId="5" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2035,' where  [FldUId]='46b3ca9e-8085-65e8-b50e-89f6fd2858c8' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='a57475b6-8530-c76b-842d-0674fe84f497'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'a57475b6-8530-c76b-842d-0674fe84f497',2035,2035,'00000000-0000-0000-0000-000000000000',7,'EntName',2,2,10,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>

</div>
</li><li areaid="26" class="li-area" scroll="no" style="height: 45px; width: 576px; position: static;"><label class="area-title pad7" fldid="6" istitle="1">应用名称</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2035_EntName"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2035,''DefaultF_'',2035,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2035,''DefaultF_'',2035);" EntId="2035" IsField=1 DBField=1 IsPost=1 FieldName="EntName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="6" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2035,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=6,[Form_EntId]=2035,[EntId]=2035,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=7,[FieldName]='EntName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=10,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

</div>
</li><li areaid="26" class="li-area" scroll="no" style="height: 45px; width: 576px; position: static;"><label class="area-title pad7" fldid="6" istitle="1">应用名称</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2035_EntName"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2035,''DefaultF_'',2035,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2035,''DefaultF_'',2035);" EntId="2035" IsField=1 DBField=1 IsPost=1 FieldName="EntName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="6" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2035,' where  [FldUId]='a57475b6-8530-c76b-842d-0674fe84f497' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='bbf683f6-b918-86e8-f3fa-1b82b29ec02a'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'bbf683f6-b918-86e8-f3fa-1b82b29ec02a',2035,2035,'00000000-0000-0000-0000-000000000000',8,'EntId',1,1,9,'',5,10,1,0,47,1,-1,-1,1,0,'','','','','</span>
<span class="form-ctr" isfcontain="1">','','','','<input  id="d2035_EntId_hid"   type="hidden"  EntId="2035" IsField=1 DBField=1 IsPost=1 FieldName="EntId" dType="1" Vtp="5" RDT="1" Isc="1" RId="10" CId="47" FId="7" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2035,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=7,[Form_EntId]=2035,[EntId]=2035,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=8,[FieldName]='EntId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=9,[DefaultValue]='',[ValueType]=5,[RunValueType]=10,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=47,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2035_EntId_hid"   type="hidden"  EntId="2035" IsField=1 DBField=1 IsPost=1 FieldName="EntId" dType="1" Vtp="5" RDT="1" Isc="1" RId="10" CId="47" FId="7" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2035,' where  [FldUId]='bbf683f6-b918-86e8-f3fa-1b82b29ec02a' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='1197c6f7-3b56-5787-6bb5-04dc351aeb23'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'1197c6f7-3b56-5787-6bb5-04dc351aeb23',2035,2035,'00000000-0000-0000-0000-000000000000',9,'PublishTime',3,3,11,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
</div>
</li><li areaid="25" class="li-area" scroll="no" style="height: 45px; width: 576px; position: static;"><label class="area-title pad7" fldid="8" istitle="1">发布时间</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2035_PublishTime"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2035,''DefaultF_'',2035,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2035,''DefaultF_'',2035);" EntId="2035" IsField=1 DBField=1 IsPost=1 FieldName="PublishTime" dType="3" Vtp="5" RDT="3" Isc="1" RId="1" CId="1" FId="8" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2035,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=8,[Form_EntId]=2035,[EntId]=2035,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=9,[FieldName]='PublishTime',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=11,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li areaid="25" class="li-area" scroll="no" style="height: 45px; width: 576px; position: static;"><label class="area-title pad7" fldid="8" istitle="1">发布时间</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2035_PublishTime"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2035,''DefaultF_'',2035,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2035,''DefaultF_'',2035);" EntId="2035" IsField=1 DBField=1 IsPost=1 FieldName="PublishTime" dType="3" Vtp="5" RDT="3" Isc="1" RId="1" CId="1" FId="8" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2035,' where  [FldUId]='1197c6f7-3b56-5787-6bb5-04dc351aeb23' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='f8611a40-7a97-1b8b-48b7-e07b91bb2101'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'f8611a40-7a97-1b8b-48b7-e07b91bb2101',2035,2035,'00000000-0000-0000-0000-000000000000',10,'ReceiveUserName',2,2,22,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span><div iserr="1" class="form-vld"></div>
</div>
</li><li areaid="24" class="li-area" scroll="no" style="height: 45px; width: 576px; position: static;"><label class="area-title pad7" fldid="9" istitle="1">发布人</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2035_ReceiveUserName"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2035,''DefaultF_'',2035,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2035,''DefaultF_'',2035);" EntId="2035" IsField=1 DBField=1 IsPost=1 FieldName="ReceiveUserName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="9" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2035,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=9,[Form_EntId]=2035,[EntId]=2035,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=10,[FieldName]='ReceiveUserName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=22,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span><div iserr="1" class="form-vld"></div>
</div>
</li><li areaid="24" class="li-area" scroll="no" style="height: 45px; width: 576px; position: static;"><label class="area-title pad7" fldid="9" istitle="1">发布人</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2035_ReceiveUserName"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2035,''DefaultF_'',2035,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2035,''DefaultF_'',2035);" EntId="2035" IsField=1 DBField=1 IsPost=1 FieldName="ReceiveUserName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="9" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2035,' where  [FldUId]='f8611a40-7a97-1b8b-48b7-e07b91bb2101' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='741ca3d5-6ddc-034b-313b-64ae4daeec68'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'741ca3d5-6ddc-034b-313b-64ae4daeec68',2035,2035,'00000000-0000-0000-0000-000000000000',11,'Dcx_Email',2,2,15,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
</div>
</li><li areaid="23" class="li-area" scroll="no" style="height: 45px; width: 576px; position: static;"><label class="area-title pad7" fldid="10" istitle="1">发布人的邮箱</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2035_Dcx_Email"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2035,''DefaultF_'',2035,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2035,''DefaultF_'',2035);" EntId="2035" IsField=1 DBField=1 IsPost=1 FieldName="Dcx_Email" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="10" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2035,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=10,[Form_EntId]=2035,[EntId]=2035,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=11,[FieldName]='Dcx_Email',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=15,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li areaid="23" class="li-area" scroll="no" style="height: 45px; width: 576px; position: static;"><label class="area-title pad7" fldid="10" istitle="1">发布人的邮箱</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2035_Dcx_Email"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2035,''DefaultF_'',2035,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2035,''DefaultF_'',2035);" EntId="2035" IsField=1 DBField=1 IsPost=1 FieldName="Dcx_Email" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="10" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2035,' where  [FldUId]='741ca3d5-6ddc-034b-313b-64ae4daeec68' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='eaef0b30-f891-c117-e0a8-09d09ac9a086'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'eaef0b30-f891-c117-e0a8-09d09ac9a086',2035,2035,'00000000-0000-0000-0000-000000000000',12,'SystemId',1,1,18,'',5,10,1,0,47,1,-1,-1,1,0,'','','','','</span>
</div>
</li><li areaid="22" class="li-area" scroll="no" style="height: 45px; width: 576px; position: static;"><label class="area-title pad7" fldid="11" istitle="1">系统名称</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2035_SystemId_hid"   type="hidden"  EntId="2035" IsField=1 DBField=1 IsPost=1 FieldName="SystemId" dType="1" Vtp="5" RDT="1" Isc="1" RId="10" CId="47" FId="11" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2035,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=11,[Form_EntId]=2035,[EntId]=2035,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=12,[FieldName]='SystemId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=18,[DefaultValue]='',[ValueType]=5,[RunValueType]=10,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=47,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li areaid="22" class="li-area" scroll="no" style="height: 45px; width: 576px; position: static;"><label class="area-title pad7" fldid="11" istitle="1">系统名称</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2035_SystemId_hid"   type="hidden"  EntId="2035" IsField=1 DBField=1 IsPost=1 FieldName="SystemId" dType="1" Vtp="5" RDT="1" Isc="1" RId="10" CId="47" FId="11" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2035,' where  [FldUId]='eaef0b30-f891-c117-e0a8-09d09ac9a086' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='d1cd13fb-699d-6d17-ac2e-56797e90aad5'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(12,'d1cd13fb-699d-6d17-ac2e-56797e90aad5',2035,2035,'00000000-0000-0000-0000-000000000000',13,'SystemName',2,2,19,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
<span class="form-ctr" isfcontain="1">','','','','<input  id="d2035_SystemName"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2035,''DefaultF_'',2035,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2035,''DefaultF_'',2035);" EntId="2035" IsField=1 DBField=1 IsPost=1 FieldName="SystemName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="12" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2035,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=12,[Form_EntId]=2035,[EntId]=2035,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=13,[FieldName]='SystemName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=19,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2035_SystemName"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2035,''DefaultF_'',2035,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2035,''DefaultF_'',2035);" EntId="2035" IsField=1 DBField=1 IsPost=1 FieldName="SystemName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="12" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2035,' where  [FldUId]='d1cd13fb-699d-6d17-ac2e-56797e90aad5' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='e23fde37-5252-81f8-d9a1-5d8e42bda6b9'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(13,'e23fde37-5252-81f8-d9a1-5d8e42bda6b9',2035,2035,'00000000-0000-0000-0000-000000000000',14,'SendUrl',2,2,20,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
</div>
</li><li areaid="21" class="li-area" scroll="no" style="height: 45px; width: 576px; position: static;"><label class="area-title pad7" fldid="13" istitle="1">发布网址</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2035_SendUrl"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2035,''DefaultF_'',2035,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2035,''DefaultF_'',2035);" EntId="2035" IsField=1 DBField=1 IsPost=1 FieldName="SendUrl" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="13" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2035,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=13,[Form_EntId]=2035,[EntId]=2035,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=14,[FieldName]='SendUrl',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=20,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li areaid="21" class="li-area" scroll="no" style="height: 45px; width: 576px; position: static;"><label class="area-title pad7" fldid="13" istitle="1">发布网址</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2035_SendUrl"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2035,''DefaultF_'',2035,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2035,''DefaultF_'',2035);" EntId="2035" IsField=1 DBField=1 IsPost=1 FieldName="SendUrl" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="13" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2035,' where  [FldUId]='e23fde37-5252-81f8-d9a1-5d8e42bda6b9' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='db05bc04-bd5c-8d39-3042-9ab14187a18a'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(15,'db05bc04-bd5c-8d39-3042-9ab14187a18a',2035,2035,'00000000-0000-0000-0000-000000000000',15,'Remark',2,2,27,'',5,9,1,0,4,1,-1,-1,0,0,'','','','','</span>


</div>
</li><li areaid="19" class="li-area" scroll="no" style="height: 120px; width: 576px; position: static;"><label class="area-title pad7" fldid="15" istitle="1">说明</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','</span>
</div>
</li>
		</ul>
	</div>
	<div class="div_tabs">
		
		<div class="tabs-content" style="" tabid="1">
			<ul class="ul-group" groupid="3" isgroup="1" isrple="1">
				<li areaid="30" class="li-area" div="" fldid="-1" id="ul_Group4" istitle="1" label="" li="" scroll="no" style="width: 576px; height: 45px; display: none; position: static;" tabid="2" ul=""><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad7">
	请编辑..</div>
</li>
			</ul>
		</div>
	</div>
</div>
<br>','','','<span id="d2035_Remark" class="form-lbl" style="width:250px;" IsForField=1 EntId="2035" CId="4" FId="15" Vtp="5"  >','</span><input id="d2035_Remark_hid" type="hidden"  EntId="2035" IsField=1 DBField=1 IsPost=0 FieldName="Remark" dType="2" Vtp="5" RDT="2" Isc="1" RId="9" CId="4" FId="15" vlk=0    value="','" />',1,19,-1,-1,0,'2035,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=15,[Form_EntId]=2035,[EntId]=2035,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=15,[FieldName]='Remark',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=27,[DefaultValue]='',[ValueType]=5,[RunValueType]=9,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>


</div>
</li><li areaid="19" class="li-area" scroll="no" style="height: 120px; width: 576px; position: static;"><label class="area-title pad7" fldid="15" istitle="1">说明</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
</div>
</li>
		</ul>
	</div>
	<div class="div_tabs">
		
		<div class="tabs-content" style="" tabid="1">
			<ul class="ul-group" groupid="3" isgroup="1" isrple="1">
				<li areaid="30" class="li-area" div="" fldid="-1" id="ul_Group4" istitle="1" label="" li="" scroll="no" style="width: 576px; height: 45px; display: none; position: static;" tabid="2" ul=""><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad7">
	请编辑..</div>
</li>
			</ul>
		</div>
	</div>
</div>
<br>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d2035_Remark" class="form-lbl" style="width:250px;" IsForField=1 EntId="2035" CId="4" FId="15" Vtp="5"  >',[CtrlbackHtml]='</span><input id="d2035_Remark_hid" type="hidden"  EntId="2035" IsField=1 DBField=1 IsPost=0 FieldName="Remark" dType="2" Vtp="5" RDT="2" Isc="1" RId="9" CId="4" FId="15" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=1,[RowIndex]=19,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2035,' where  [FldUId]='db05bc04-bd5c-8d39-3042-9ab14187a18a' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=295

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=295  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(295,null,'Dcx_Publish','Dcx_Publish',1,0,0,0,0,0,29,1,3,'admin','2013-12-15 17:32:19',3,'admin','2013-12-15 17:32:19',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='Dcx_Publish',[DBTableByName]='Dcx_Publish',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=29,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:19',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:19',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=295 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=295  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17485,1,29,295,'int',1,1,1,'Dcx_Publish','Id','Id','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Publish',[FieldName]='Id',[FieldByname]='Id',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=295  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=295  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17486,2,29,295,'varchar',2,1,1,'Dcx_Publish','PublishId','PublishId','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Publish',[FieldName]='PublishId',[FieldByname]='PublishId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=295  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=295  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17487,3,29,295,'tinyint',23,1,1,'Dcx_Publish','KeyDataType','KeyDataType','',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Publish',[FieldName]='KeyDataType',[FieldByname]='KeyDataType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=295  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=295  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17488,4,29,295,'int',1,1,1,'Dcx_Publish','ModuleTypeId','ModuleTypeId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Publish',[FieldName]='ModuleTypeId',[FieldByname]='ModuleTypeId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=295  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=295  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17489,5,29,295,'varchar',2,1,1,'Dcx_Publish','ModuleTypeName','ModuleTypeName','',0,0,0,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Publish',[FieldName]='ModuleTypeName',[FieldByname]='ModuleTypeName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=295  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=295  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17490,6,29,295,'varchar',2,1,1,'Dcx_Publish','ModuleName','ModuleName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Publish',[FieldName]='ModuleName',[FieldByname]='ModuleName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=295  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=295  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17491,7,29,295,'int',1,1,1,'Dcx_Publish','MenuId','MenuId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Publish',[FieldName]='MenuId',[FieldByname]='MenuId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=295  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=295  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17492,8,29,295,'varchar',2,1,1,'Dcx_Publish','MenuName','MenuName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Publish',[FieldName]='MenuName',[FieldByname]='MenuName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=295  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=295  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17493,9,29,295,'int',1,1,1,'Dcx_Publish','EntId','EntId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Publish',[FieldName]='EntId',[FieldByname]='EntId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=295  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=295  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17494,10,29,295,'varchar',2,1,1,'Dcx_Publish','EntName','EntName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Publish',[FieldName]='EntName',[FieldByname]='EntName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=295  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=295  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17495,11,29,295,'datetime',3,1,1,'Dcx_Publish','PublishTime','PublishTime','',0,0,0,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Publish',[FieldName]='PublishTime',[FieldByname]='PublishTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=295  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=295  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17496,12,29,295,'datetime',3,1,1,'Dcx_Publish','ReceiveTime','ReceiveTime','',0,0,0,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Publish',[FieldName]='ReceiveTime',[FieldByname]='ReceiveTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=295  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=295  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17497,13,29,295,'int',1,1,1,'Dcx_Publish','Dcx_UserId','Dcx_UserId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Publish',[FieldName]='Dcx_UserId',[FieldByname]='Dcx_UserId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=295  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=295  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17498,14,29,295,'varchar',2,1,1,'Dcx_Publish','Dcx_UserName','Dcx_UserName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Publish',[FieldName]='Dcx_UserName',[FieldByname]='Dcx_UserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=295  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=295  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17499,15,29,295,'varchar',2,1,1,'Dcx_Publish','Dcx_Email','Dcx_Email','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Publish',[FieldName]='Dcx_Email',[FieldByname]='Dcx_Email',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=295  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=295  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17500,16,29,295,'int',1,1,1,'Dcx_Publish','CreatorId','CreatorId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Publish',[FieldName]='CreatorId',[FieldByname]='CreatorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=295  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=295  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17501,17,29,295,'varchar',2,1,1,'Dcx_Publish','Creator','Creator','',0,0,0,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Publish',[FieldName]='Creator',[FieldByname]='Creator',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=295  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=295  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17502,18,29,295,'int',1,1,1,'Dcx_Publish','SystemId','SystemId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Publish',[FieldName]='SystemId',[FieldByname]='SystemId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=295  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=295  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17503,19,29,295,'varchar',2,1,1,'Dcx_Publish','SystemName','SystemName','',0,0,0,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Publish',[FieldName]='SystemName',[FieldByname]='SystemName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=295  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=295  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17504,20,29,295,'varchar',2,1,1,'Dcx_Publish','SendUrl','SendUrl','',0,0,0,150,150,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Publish',[FieldName]='SendUrl',[FieldByname]='SendUrl',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=150,[Precision]=150,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=295  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=295  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17505,21,29,295,'varchar',2,1,1,'Dcx_Publish','SystemKey','SystemKey','',0,0,0,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Publish',[FieldName]='SystemKey',[FieldByname]='SystemKey',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=295  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=295  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17506,22,29,295,'varchar',2,1,1,'Dcx_Publish','ReceiveUserName','ReceiveUserName','',0,0,0,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Publish',[FieldName]='ReceiveUserName',[FieldByname]='ReceiveUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=295  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=295  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17507,23,29,295,'bit',4,1,1,'Dcx_Publish','IsPublish','IsPublish','0',0,0,0,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Publish',[FieldName]='IsPublish',[FieldByname]='IsPublish',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=295  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=295  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17508,24,29,295,'datetime',3,1,1,'Dcx_Publish','EditTime','EditTime','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Publish',[FieldName]='EditTime',[FieldByname]='EditTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=295  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=295  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17509,25,29,295,'varchar',2,1,1,'Dcx_Publish','Editor','Editor','0',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Publish',[FieldName]='Editor',[FieldByname]='Editor',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=295  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=295  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17510,26,29,295,'bit',4,1,1,'Dcx_Publish','IsSafe','IsSafe','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Publish',[FieldName]='IsSafe',[FieldByname]='IsSafe',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=295  and  [FieldId]=26 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=295  and  [FieldId]=27  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17511,27,29,295,'varchar',2,1,1,'Dcx_Publish','Remark','Remark','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Publish',[FieldName]='Remark',[FieldByname]='Remark',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=295  and  [FieldId]=27 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=295  and  [FieldId]=28  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17512,28,29,295,'varchar',2,1,1,'Dcx_Publish','PlsContent','PlsContent','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Publish',[FieldName]='PlsContent',[FieldByname]='PlsContent',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=295  and  [FieldId]=28 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=295  and  [FieldId]=29  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17513,29,29,295,'int',1,1,1,'Dcx_Publish','AccountId','AccountId','1',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Publish',[FieldName]='AccountId',[FieldByname]='AccountId',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=295  and  [FieldId]=29 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 



Delete from [Dcx_EntityPrivilege]  where [EntId]=2036

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2036  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11071,3300,2036,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=3300,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2036  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2036

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2036  and  [ModuleTypeId]=18  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20465,29,3300,2036,73,18,49,4,12,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3300,[TemplateId]=73,[ModuleId]=49,[GroupId]=4,[AreaId]=12,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2036  and  [ModuleTypeId]=18 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_DefaultForm_Run]  where [EntId]=2036

--Dcx_DefaultForm_Run
      if (select count(1) from [Dcx_DefaultForm_Run] where  [EntId]=2036  )<1 
      begin 
           Insert into [Dcx_DefaultForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[OtherMsg],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('516e19db-9403-4daa-82db-e7a4e15962f4','配置发布',2036,-1,'','',0,'','<script type="text/javascript" src="/js/System/SetPublish.js"></script>','DcxRun.DefaultF_2036= {"MenuId":3300,"MEntId":2036,"EntName":"配置发布","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2036":{"EntId":2036,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"Id","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":3,"Ent":[{"EntId":2036,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":2,"Vld":[{"Id":3,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]}]}]};
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2036.EntMsg.E2036.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_Common","EntId":2036,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"SystemKey":{"DtId":2,"DB":0,"CId":1,"FL":0},"DcxUserName":{"DtId":2,"DB":0,"CId":1,"FL":0}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2036.EntMsg.E2036.GetDataRowModel=function()
{
    return {"SystemKey":"","DcxUserName":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2036.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2036,''DefaultF_'',buildNew,closeDlg);

}','<$2036$>select [Id] from Dcx_Common where [Id]=''{$keyfieldvalue}''</$2036$>',10,'2036*Id*2*Id*2*Dcx_Common*配置发布','','','',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-10-31 0:57:48',3,'admin','2013-10-2 18:34:13',1)
      end
      else 
      begin 
           update [Dcx_DefaultForm_Run] set [FormId]='516e19db-9403-4daa-82db-e7a4e15962f4',[FormName]='配置发布',[ModuleId]=-1,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='',[DIYJsCss2]='<script type="text/javascript" src="/js/System/SetPublish.js"></script>',[AutoPublicJs]='DcxRun.DefaultF_2036= {"MenuId":3300,"MEntId":2036,"EntName":"配置发布","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2036":{"EntId":2036,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"Id","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":3,"Ent":[{"EntId":2036,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":2,"Vld":[{"Id":3,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]}]}]};
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2036.EntMsg.E2036.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_Common","EntId":2036,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"SystemKey":{"DtId":2,"DB":0,"CId":1,"FL":0},"DcxUserName":{"DtId":2,"DB":0,"CId":1,"FL":0}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2036.EntMsg.E2036.GetDataRowModel=function()
{
    return {"SystemKey":"","DcxUserName":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2036.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2036,''DefaultF_'',buildNew,closeDlg);

}',[LoadingSql]='<$2036$>select [Id] from Dcx_Common where [Id]=''{$keyfieldvalue}''</$2036$>',[PageSize]=10,[OtherMsg]='2036*Id*2*Id*2*Dcx_Common*配置发布',[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-10-31 0:57:48',[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-2 18:34:13',[AccountId]=1 where  [EntId]=2036 
      end




--Dcx_DefaultFormField_Run
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='76d60725-ae15-807c-6a4e-507849e48313'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'76d60725-ae15-807c-6a4e-507849e48313',2036,2036,'00000000-0000-0000-0000-000000000000',1,'SystemKey',2,2,-1,'',5,1,1,0,1,3,-1,-1,0,0,'','','','','<div class="ajaxfrom defaultform">
	<div class="div_top">
		<ul class="ul-group" groupid="1" isgroup="1" isrple="1">
			<li areaid="12" class="li-area" scroll="no" style="height: 55px; width: 636px; position: static;"><div class="form-title2" id="div_head1" style=" ">
	<div style="width:170px;float:left;clear:none;">
		<h2 id="h2_title">
			配置发布</h2>
	</div>
	<div style="width:465px;float:right;clear:none;">
		<a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();" style="float:right;"><span class="op_bt_i">关&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;闭</span></a> <a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" id="btn_UpdatePublish" style="float:right;"><span class="op_bt_i">保&nbsp;&nbsp;&nbsp;&nbsp;存</span></a> <a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:Pls.GoToMyDcxCreator(this);" style="float:right;"><span class="op_bt_i">进入dcxCreator获取</span></a></div>
</div>
<br>
</li>
			<li areaid="13" class="li-area" scroll="no" style="height: 45px; width: 576px; position: static;"><label class="area-title pad7" fldid="1" istitle="1" style="width:200px;">本系统在dcxCreator的ID</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2036_SystemKey"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2036,''DefaultF_'',2036,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2036,''DefaultF_'',2036);" EntId="2036" IsField=1 DBField=0 IsPost=1 FieldName="SystemKey" dType="2" Vtp="5" RDT="2" Isc="1" RId="-1" CId="1" FId="1" vlk=0    value="','"/>','',1,13,-1,-1,0,'2036,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=1,[Form_EntId]=2036,[EntId]=2036,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[FieldName]='SystemKey',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="ajaxfrom defaultform">
	<div class="div_top">
		<ul class="ul-group" groupid="1" isgroup="1" isrple="1">
			<li areaid="12" class="li-area" scroll="no" style="height: 55px; width: 636px; position: static;"><div class="form-title2" id="div_head1" style=" ">
	<div style="width:170px;float:left;clear:none;">
		<h2 id="h2_title">
			配置发布</h2>
	</div>
	<div style="width:465px;float:right;clear:none;">
		<a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();" style="float:right;"><span class="op_bt_i">关&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;闭</span></a> <a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" id="btn_UpdatePublish" style="float:right;"><span class="op_bt_i">保&nbsp;&nbsp;&nbsp;&nbsp;存</span></a> <a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:Pls.GoToMyDcxCreator(this);" style="float:right;"><span class="op_bt_i">进入dcxCreator获取</span></a></div>
</div>
<br>
</li>
			<li areaid="13" class="li-area" scroll="no" style="height: 45px; width: 576px; position: static;"><label class="area-title pad7" fldid="1" istitle="1" style="width:200px;">本系统在dcxCreator的ID</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2036_SystemKey"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2036,''DefaultF_'',2036,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2036,''DefaultF_'',2036);" EntId="2036" IsField=1 DBField=0 IsPost=1 FieldName="SystemKey" dType="2" Vtp="5" RDT="2" Isc="1" RId="-1" CId="1" FId="1" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=13,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2036,' where  [FldUId]='76d60725-ae15-807c-6a4e-507849e48313' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='06e691de-590a-2415-741a-5d4f12758b59'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'06e691de-590a-2415-741a-5d4f12758b59',2036,2036,'00000000-0000-0000-0000-000000000000',2,'DcxUserName',2,2,-1,'',5,1,1,0,1,3,-1,-1,0,0,'','','','','</span>

<div iserr="1" class="form-vld"></div></div>
</li><li areaid="18" class="li-area" scroll="no" style="height: 45px; width: 576px; position: static;"><label class="area-title pad7" fldid="2" istitle="1" style="width:200px;">你在dcxCreator的用户名</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','</span>
<div iserr="1" class="form-vld"></div></div></li><li areaid="17" class="li-area" scroll="no" style="height: 45px; width: 576px; display: none; position: static;"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad7">
	</div>
</li>
		</ul>
	</div>
	<div class="div_tabs">
		
		<div class="tabs-content" style="" tabid="1">
			
		</div>
	</div>
</div>
<br>','','','<input  id="d2036_DcxUserName"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2036,''DefaultF_'',2036,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2036,''DefaultF_'',2036);" EntId="2036" IsField=1 DBField=0 IsPost=1 FieldName="DcxUserName" dType="2" Vtp="5" RDT="2" Isc="1" RId="-1" CId="1" FId="2" vlk=0    value="','"/>','',1,18,-1,-1,0,'2036,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=2,[Form_EntId]=2036,[EntId]=2036,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[FieldName]='DcxUserName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

<div iserr="1" class="form-vld"></div></div>
</li><li areaid="18" class="li-area" scroll="no" style="height: 45px; width: 576px; position: static;"><label class="area-title pad7" fldid="2" istitle="1" style="width:200px;">你在dcxCreator的用户名</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
<div iserr="1" class="form-vld"></div></div></li><li areaid="17" class="li-area" scroll="no" style="height: 45px; width: 576px; display: none; position: static;"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad7">
	</div>
</li>
		</ul>
	</div>
	<div class="div_tabs">
		
		<div class="tabs-content" style="" tabid="1">
			
		</div>
	</div>
</div>
<br>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2036_DcxUserName"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2036,''DefaultF_'',2036,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2036,''DefaultF_'',2036);" EntId="2036" IsField=1 DBField=0 IsPost=1 FieldName="DcxUserName" dType="2" Vtp="5" RDT="2" Isc="1" RId="-1" CId="1" FId="2" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=18,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2036,' where  [FldUId]='06e691de-590a-2415-741a-5d4f12758b59' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=1205

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=1205  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(1205,null,'Dcx_Common','Dcx_Common',1,0,0,0,0,0,29,1,3,'admin','2013-12-15 17:32:10',3,'admin','2013-12-15 17:32:10',null,null,27,83,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='Dcx_Common',[DBTableByName]='Dcx_Common',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=29,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:10',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:10',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=27,[SDbTableId]=83,[IsChange]=null,[IsSystem]=null where  [DBTableId]=1205 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1205  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18182,5,29,1205,'bit',4,1,1,'Dcx_Common','ParentId1','ParentId1','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Common',[FieldName]='ParentId1',[FieldByname]='ParentId1',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1205  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1205  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18183,4,29,1205,'int',1,1,1,'Dcx_Common','ParentId','ParentId','2',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Common',[FieldName]='ParentId',[FieldByname]='ParentId',[DefaultValue]='2',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1205  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1205  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18184,3,29,1205,'varchar',2,1,1,'Dcx_Common','Name','Name','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Common',[FieldName]='Name',[FieldByname]='Name',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1205  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1205  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18185,2,29,1205,'varchar',2,1,1,'Dcx_Common','Value','Value','sss',0,0,1,30,30,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Common',[FieldName]='Value',[FieldByname]='Value',[DefaultValue]='sss',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=30,[Precision]=30,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1205  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1205  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18186,1,29,1205,'int',1,1,1,'Dcx_Common','Id','Id','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Common',[FieldName]='Id',[FieldByname]='Id',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1205  and  [FieldId]=1 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=3309  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(3309,'272a0e05-19ae-4b18-ac1f-7c52d356c4b3','流程节点设置',3278,'/Template/default/Form/defaultform008.aspx',37,'/images/default.gif','/images/default.gif',0,'rightFrame',0,1,'',29,-1,29,5,1,1,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='272a0e05-19ae-4b18-ac1f-7c52d356c4b3',[MenuName]='流程节点设置',[ParentId]=3278,[ProPath]='/Template/default/Form/defaultform008.aspx',[TemplateId]=37,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=0,[Target]='rightFrame',[IsOpen]=0,[IsHidden]=1,[Remark]='',[SSystemId]=29,[SMenuId]=-1,[SystemId]=29,[EntityCount]=5,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=3309 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3309  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(1056,3309,'流程节点设置','Public',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='流程节点设置',[RoleName]='Public',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3309  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3309  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(1004,3309,'流程节点设置','系统管理员',3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='流程节点设置',[RoleName]='系统管理员',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3309  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2064  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2064,3309,'节点配置',1,653,0,'WF_FlowNode',0,0,1,29,2064,null,null,29,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3309,[EntName]='节点配置',[MEnt]=1,[DBTableId]=653,[DBConnectId]=0,[DBTableName]='WF_FlowNode',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2064,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2064 
      end
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2065  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2065,3309,'可写字段',1,653,0,'WF_FlowNode',0,0,1,29,2065,null,null,29,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3309,[EntName]='可写字段',[MEnt]=1,[DBTableId]=653,[DBConnectId]=0,[DBTableName]='WF_FlowNode',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2065,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2065 
      end
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2066  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2066,3309,'节点条件',1,671,0,'WF_NodeCondition',0,0,1,29,2066,null,null,29,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3309,[EntName]='节点条件',[MEnt]=1,[DBTableId]=671,[DBConnectId]=0,[DBTableName]='WF_NodeCondition',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2066,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2066 
      end
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2067  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2067,3309,'经办权限',1,653,0,'WF_FlowNode',0,0,1,29,2067,null,null,29,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3309,[EntName]='经办权限',[MEnt]=1,[DBTableId]=653,[DBConnectId]=0,[DBTableName]='WF_FlowNode',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2067,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2067 
      end
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2068  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2068,3309,'归档与触发器',1,653,0,'WF_FlowNode',0,0,1,29,2068,null,null,29,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3309,[EntName]='归档与触发器',[MEnt]=1,[DBTableId]=653,[DBConnectId]=0,[DBTableName]='WF_FlowNode',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2068,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2068 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=2064

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2064  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11098,3309,2064,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=3309,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2064  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2064

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2064  and  [ModuleTypeId]=18  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20483,29,3309,2064,37,18,16,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3309,[TemplateId]=37,[ModuleId]=16,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2064  and  [ModuleTypeId]=18 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_DefaultForm_Run]  where [EntId]=2064

--Dcx_DefaultForm_Run
      if (select count(1) from [Dcx_DefaultForm_Run] where  [EntId]=2064  )<1 
      begin 
           Insert into [Dcx_DefaultForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[OtherMsg],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('5522646b-7f72-ee10-8ab1-6ca1ab025772','节点配置',2064,-1,'','',0,'<script src="/Js/control/LRList/LRList.js"></script>','','DcxRun.DefaultF_2064= {"MenuId":3309,"MEntId":2064,"EntName":"节点配置","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2064":{"EntId":2064,"KeyFieldValue":"","DBTableName":"","KeyField":"NodeId","KeydtId":2,"JoinKeyField":"NodeId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{
LrList.CreateHtml(2064,''DefaultF_'',''PrcsTo'',240,370,null,entMsg.E2064.FieldMsg.PrcsTo_Value,false);

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":14,"Ent":[{"EntId":2064,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,200}$","err":"限制0-200个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":13,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":2,"Vld":[{"Id":3,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":4,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":3,"Vld":[{"Id":6,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,500}$","err":"限制0-500个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":14,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":4,"Vld":[{"Id":7,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":8,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":9,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":5,"Vld":[{"Id":10,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":11,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":12,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":6,"Vld":[]}]}]};
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2064.EntMsg.E2064.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"WF_FlowNode","EntId":2064,"KeyField":"NodeId","MKeyField":"NodeId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"NodeName":{"DtId":2,"DB":1,"CId":1,"FL":200},"PrcsTo":{"DtId":2,"DB":1,"CId":30,"FL":500},"Step":{"DtId":1,"DB":1,"CId":1,"FL":4},"FlowId":{"DtId":1,"DB":1,"CId":1,"FL":4}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2064.EntMsg.E2064.GetDataRowModel=function()
{
    return {"NodeName":"","PrcsTo":"","Step":-1,"FlowId":-1,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"NodeId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_DefaultF_2064_275(obj,curFieldName){
 var EntId=2064;
 var FldId=3;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''PrcsTo'';
 var $formContainer=DcxForm.GetHtmlContainer(2064,''DefaultF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(2064,''DefaultF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"PrcsTo\",FldId:"+FldId+",EntId:2064,CtrlPrex:\"DefaultF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"NodeId\",CtrlTypeId:30,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''FlowId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2064,''DefaultF_'',''FlowId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@FlowId}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d2064_PrcsTo");
LrList.Init2(2064,''DefaultF_'', ''PrcsTo'', '''', myVal,  false,null, true);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_DefaultF_2064_276(obj,curFieldName){
 var EntId=2064;
 var FldId=4;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''Step'';
 var $formContainer=DcxForm.GetHtmlContainer(2064,''DefaultF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(2064,''DefaultF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"Step\",FldId:"+FldId+",EntId:2064,CtrlPrex:\"DefaultF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"NodeId\",CtrlTypeId:1,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''FlowId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2064,''DefaultF_'',''FlowId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@FlowId}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d2064_Step");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2064.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2064,''DefaultF_'',buildNew,closeDlg);

}','<$2064$>select [NodeName],[Step],[PrcsTo],[FlowId],[NodeId] from WF_FlowNode where [NodeId]=''{$keyfieldvalue}''</$2064$>',10,'2064*NodeId*2*NodeId*2*WF_FlowNode*节点配置','','','',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-16 1:44:54',3,'admin','2013-10-2 18:34:13',1)
      end
      else 
      begin 
           update [Dcx_DefaultForm_Run] set [FormId]='5522646b-7f72-ee10-8ab1-6ca1ab025772',[FormName]='节点配置',[ModuleId]=-1,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script src="/Js/control/LRList/LRList.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.DefaultF_2064= {"MenuId":3309,"MEntId":2064,"EntName":"节点配置","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2064":{"EntId":2064,"KeyFieldValue":"","DBTableName":"","KeyField":"NodeId","KeydtId":2,"JoinKeyField":"NodeId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{
LrList.CreateHtml(2064,''DefaultF_'',''PrcsTo'',240,370,null,entMsg.E2064.FieldMsg.PrcsTo_Value,false);

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":14,"Ent":[{"EntId":2064,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,200}$","err":"限制0-200个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":13,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":2,"Vld":[{"Id":3,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":4,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":3,"Vld":[{"Id":6,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,500}$","err":"限制0-500个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":14,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":4,"Vld":[{"Id":7,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":8,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":9,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":5,"Vld":[{"Id":10,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":11,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":12,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":6,"Vld":[]}]}]};
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2064.EntMsg.E2064.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"WF_FlowNode","EntId":2064,"KeyField":"NodeId","MKeyField":"NodeId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"NodeName":{"DtId":2,"DB":1,"CId":1,"FL":200},"PrcsTo":{"DtId":2,"DB":1,"CId":30,"FL":500},"Step":{"DtId":1,"DB":1,"CId":1,"FL":4},"FlowId":{"DtId":1,"DB":1,"CId":1,"FL":4}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2064.EntMsg.E2064.GetDataRowModel=function()
{
    return {"NodeName":"","PrcsTo":"","Step":-1,"FlowId":-1,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"NodeId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_DefaultF_2064_275(obj,curFieldName){
 var EntId=2064;
 var FldId=3;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''PrcsTo'';
 var $formContainer=DcxForm.GetHtmlContainer(2064,''DefaultF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(2064,''DefaultF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"PrcsTo\",FldId:"+FldId+",EntId:2064,CtrlPrex:\"DefaultF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"NodeId\",CtrlTypeId:30,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''FlowId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2064,''DefaultF_'',''FlowId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@FlowId}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d2064_PrcsTo");
LrList.Init2(2064,''DefaultF_'', ''PrcsTo'', '''', myVal,  false,null, true);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_DefaultF_2064_276(obj,curFieldName){
 var EntId=2064;
 var FldId=4;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''Step'';
 var $formContainer=DcxForm.GetHtmlContainer(2064,''DefaultF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(2064,''DefaultF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"Step\",FldId:"+FldId+",EntId:2064,CtrlPrex:\"DefaultF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"NodeId\",CtrlTypeId:1,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''FlowId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2064,''DefaultF_'',''FlowId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@FlowId}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d2064_Step");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2064.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2064,''DefaultF_'',buildNew,closeDlg);

}',[LoadingSql]='<$2064$>select [NodeName],[Step],[PrcsTo],[FlowId],[NodeId] from WF_FlowNode where [NodeId]=''{$keyfieldvalue}''</$2064$>',[PageSize]=10,[OtherMsg]='2064*NodeId*2*NodeId*2*WF_FlowNode*节点配置',[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-16 1:44:54',[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-2 18:34:13',[AccountId]=1 where  [EntId]=2064 
      end




--Dcx_DefaultFormField_Run
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='2120d30f-5914-a6d3-3019-fdc69b2555e0'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'2120d30f-5914-a6d3-3019-fdc69b2555e0',2064,2064,'00000000-0000-0000-0000-000000000000',1,'NodeName',2,2,3,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','<div class="defaultform" ctrlprex="DefaultF_" entid="2064">
	<div>
		<ul class="ul-title" groupid="1" isgroup="1" isrple="1">
			<li areaid="7" class="li-area-title" scroll="no" style="position: static;">
				<div class="form-title5" id="div_head1">
					<span class="title-name" id="h2_title">标准表单</span></div>
			</li>
			<li areaid="8" class="li-area1" scroll="no" style="position: static;">
				<a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关 闭</span> </a></li>
			<li areaid="9" class="li-area1" scroll="no" style="position: static;">
				<a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" onclick="javascript:DcxRun.DefaultF_2064.SubmitForm(false);"><span class="op_bt_i">保 存</span> </a></li>
			<li areaid="10" class="li-area1" scroll="no" style="width: 94px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt1" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(2064,''DefaultF_'');"><span class="op_bt_i">新 建</span> </a></li>
		</ul>
	</div>
	<div class="frame-div">
		<ul class="ul-group" groupid="2" isgroup="1" isrple="1">
			<li areaid="11" class="li-area  h55" scroll="no" style="width: 700px; height: 45px; position: static;"><label class="area-title pad16" fldid="1" istitle="1" style="text-align:center;width:100px;">节点名称</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2064_NodeName"   type="text" class="form-txt"  style="width:280px;" onblur ="javascript:if(!DcxVld.Validate(this,2064,''DefaultF_'',2064,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2064,''DefaultF_'',2064);" EntId="2064" IsField=1 DBField=1 IsPost=1 FieldName="NodeName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2064,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=1,[Form_EntId]=2064,[EntId]=2064,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[FieldName]='NodeName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=3,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="defaultform" ctrlprex="DefaultF_" entid="2064">
	<div>
		<ul class="ul-title" groupid="1" isgroup="1" isrple="1">
			<li areaid="7" class="li-area-title" scroll="no" style="position: static;">
				<div class="form-title5" id="div_head1">
					<span class="title-name" id="h2_title">标准表单</span></div>
			</li>
			<li areaid="8" class="li-area1" scroll="no" style="position: static;">
				<a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关 闭</span> </a></li>
			<li areaid="9" class="li-area1" scroll="no" style="position: static;">
				<a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" onclick="javascript:DcxRun.DefaultF_2064.SubmitForm(false);"><span class="op_bt_i">保 存</span> </a></li>
			<li areaid="10" class="li-area1" scroll="no" style="width: 94px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt1" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(2064,''DefaultF_'');"><span class="op_bt_i">新 建</span> </a></li>
		</ul>
	</div>
	<div class="frame-div">
		<ul class="ul-group" groupid="2" isgroup="1" isrple="1">
			<li areaid="11" class="li-area  h55" scroll="no" style="width: 700px; height: 45px; position: static;"><label class="area-title pad16" fldid="1" istitle="1" style="text-align:center;width:100px;">节点名称</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2064_NodeName"   type="text" class="form-txt"  style="width:280px;" onblur ="javascript:if(!DcxVld.Validate(this,2064,''DefaultF_'',2064,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2064,''DefaultF_'',2064);" EntId="2064" IsField=1 DBField=1 IsPost=1 FieldName="NodeName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2064,' where  [FldUId]='2120d30f-5914-a6d3-3019-fdc69b2555e0' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='cba41e54-73db-cad8-3c2b-6316aba65651'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'cba41e54-73db-cad8-3c2b-6316aba65651',2064,2064,'00000000-0000-0000-0000-000000000000',2,'Step',1,1,4,'SELECT isnull(max([Step]),0)+1   FROM [WF_FlowNode] where [FlowId]={@FlowId}',2,1,1,0,1,1,-1,-1,1,0,'','','FlowId,','','</span>



	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li>
			<li areaid="14" class="li-area  h55" scroll="no" style="width: 700px; height: 45px; position: static;"><label class="area-title pad16" fldid="4" istitle="1" style="text-align:center;width:100px;">节点序号</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2064_Step"   type="text" class="form-txt"  style="width:280px;" onblur ="javascript:if(!DcxVld.Validate(this,2064,''DefaultF_'',2064,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2064,''DefaultF_'',2064);" EntId="2064" IsField=1 DBField=1 IsPost=1 FieldName="Step" dType="1" Vtp="2" RDT="1" Isc="1" RId="1" CId="1" FId="4" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2064,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=4,[Form_EntId]=2064,[EntId]=2064,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[FieldName]='Step',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=4,[DefaultValue]='SELECT isnull(max([Step]),0)+1   FROM [WF_FlowNode] where [FlowId]={@FlowId}',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='FlowId,',[SystemVariables]='',[BeforeHtml]='</span>



	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li>
			<li areaid="14" class="li-area  h55" scroll="no" style="width: 700px; height: 45px; position: static;"><label class="area-title pad16" fldid="4" istitle="1" style="text-align:center;width:100px;">节点序号</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2064_Step"   type="text" class="form-txt"  style="width:280px;" onblur ="javascript:if(!DcxVld.Validate(this,2064,''DefaultF_'',2064,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2064,''DefaultF_'',2064);" EntId="2064" IsField=1 DBField=1 IsPost=1 FieldName="Step" dType="1" Vtp="2" RDT="1" Isc="1" RId="1" CId="1" FId="4" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2064,' where  [FldUId]='cba41e54-73db-cad8-3c2b-6316aba65651' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='d4113519-24eb-bbf1-1ab3-7a513deb248c'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'d4113519-24eb-bbf1-1ab3-7a513deb248c',2064,2064,'00000000-0000-0000-0000-000000000000',3,'PrcsTo',2,2,9,'select[NodeName],[NodeId] from (SELECT ''第''+cast([Step] as varchar) +''步：''+isnull([NodeName],''节点'') 
as [NodeName],[NodeId],[Step]   FROM [WF_FlowNode] where [FlowId]={@FlowId}
 union select ''结束'' as  [NodeName],-1 as [NodeId],123 as [Step]  )as A order by [Step]',2,10,1,0,30,1,-1,-1,1,0,'','','FlowId,','','</span>



</div></li><li areaid="12" class="li-area  h55" scroll="no" style="width: 700px; height: 392px; position: static;"><label class="area-title pad16" fldid="3" istitle="1" style="text-align:center;width:100px;">下一步骤</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">','','','','<div id="d2064_PrcsTo" class="form-lrlist" style="" IsForField=1 EntId="2064" FId="3" Vtp="2" RId="10" Isc="1" CId="30" FieldName="PrcsTo"  onclick ="javascript:DcxVld.Validate(this,2064,''DefaultF_'',2064);" onfocus ="javascript:DcxVld.ValidateFocus(this,2064,''DefaultF_'',2064);">','</div> <input id="d2064_PrcsTo_hid" type="hidden"  EntId="2064" IsField=1 DBField=1 IsPost=1 FieldName="PrcsTo" dType="2" Vtp="2" RDT="2" Isc="1" RId="10" CId="30" FId="3" vlk=0   />','',-1,-1,-1,-1,0,'2064,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=3,[Form_EntId]=2064,[EntId]=2064,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[FieldName]='PrcsTo',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=9,[DefaultValue]='select[NodeName],[NodeId] from (SELECT ''第''+cast([Step] as varchar) +''步：''+isnull([NodeName],''节点'') 
as [NodeName],[NodeId],[Step]   FROM [WF_FlowNode] where [FlowId]={@FlowId}
 union select ''结束'' as  [NodeName],-1 as [NodeId],123 as [Step]  )as A order by [Step]',[ValueType]=2,[RunValueType]=10,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=30,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='FlowId,',[SystemVariables]='',[BeforeHtml]='</span>



</div></li><li areaid="12" class="li-area  h55" scroll="no" style="width: 700px; height: 392px; position: static;"><label class="area-title pad16" fldid="3" istitle="1" style="text-align:center;width:100px;">下一步骤</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2064_PrcsTo" class="form-lrlist" style="" IsForField=1 EntId="2064" FId="3" Vtp="2" RId="10" Isc="1" CId="30" FieldName="PrcsTo"  onclick ="javascript:DcxVld.Validate(this,2064,''DefaultF_'',2064);" onfocus ="javascript:DcxVld.ValidateFocus(this,2064,''DefaultF_'',2064);">',[CtrlbackHtml]='</div> <input id="d2064_PrcsTo_hid" type="hidden"  EntId="2064" IsField=1 DBField=1 IsPost=1 FieldName="PrcsTo" dType="2" Vtp="2" RDT="2" Isc="1" RId="10" CId="30" FId="3" vlk=0   />',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2064,' where  [FldUId]='d4113519-24eb-bbf1-1ab3-7a513deb248c' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='fe0cf4cb-acc5-72d5-08fa-f4c315638c61'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'fe0cf4cb-acc5-72d5-08fa-f4c315638c61',2064,2064,'00000000-0000-0000-0000-000000000000',4,'FlowId',1,1,2,'FlowId',6,1,1,0,1,1,-1,-1,1,0,'','','','','</span>






	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div></li><li areaid="13" class="li-area  h55" scroll="no" style="width: 700px; height: 55px; display: none; position: static;"><label class="area-title pad16" fldid="5" istitle="1">流程ID</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">','</span>

	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li><li areaid="15" class="li-area  h55" scroll="no" style="width: 700px; height: 55px; display: none; position: static;"><label class="area-title pad16" fldid="-1" istitle="1">请编辑..</label>
<div class="field-content pad17">
	请编辑..</div>
</li>
		</ul>
	</div>
</div>','','','<input  id="d2064_FlowId"   type="text" class="form-txt"  style="width:200px;" onchange ="javascript:GetLinkCtrlData_DefaultF_2064_275(this,''FlowId'');GetLinkCtrlData_DefaultF_2064_276(this,''FlowId'');" onblur ="javascript:if(!DcxVld.Validate(this,2064,''DefaultF_'',2064,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2064,''DefaultF_'',2064);" EntId="2064" IsField=1 DBField=1 IsPost=1 FieldName="FlowId" dType="1" Vtp="6" RDT="1" Isc="1" RId="1" CId="1" FId="5" vlk=0    CBack=1  value="','"/>','',-1,-1,-1,-1,0,'2064,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=5,[Form_EntId]=2064,[EntId]=2064,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=4,[FieldName]='FlowId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=2,[DefaultValue]='FlowId',[ValueType]=6,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>






	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div></li><li areaid="13" class="li-area  h55" scroll="no" style="width: 700px; height: 55px; display: none; position: static;"><label class="area-title pad16" fldid="5" istitle="1">流程ID</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>

	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li><li areaid="15" class="li-area  h55" scroll="no" style="width: 700px; height: 55px; display: none; position: static;"><label class="area-title pad16" fldid="-1" istitle="1">请编辑..</label>
<div class="field-content pad17">
	请编辑..</div>
</li>
		</ul>
	</div>
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2064_FlowId"   type="text" class="form-txt"  style="width:200px;" onchange ="javascript:GetLinkCtrlData_DefaultF_2064_275(this,''FlowId'');GetLinkCtrlData_DefaultF_2064_276(this,''FlowId'');" onblur ="javascript:if(!DcxVld.Validate(this,2064,''DefaultF_'',2064,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2064,''DefaultF_'',2064);" EntId="2064" IsField=1 DBField=1 IsPost=1 FieldName="FlowId" dType="1" Vtp="6" RDT="1" Isc="1" RId="1" CId="1" FId="5" vlk=0    CBack=1  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2064,' where  [FldUId]='fe0cf4cb-acc5-72d5-08fa-f4c315638c61' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=653

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=653  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(653,null,'WF_FlowNode','WF_FlowNode',1,0,0,0,0,0,29,1,3,'admin','2013-12-15 17:32:35',3,'admin','2013-12-15 17:32:35',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='WF_FlowNode',[DBTableByName]='WF_FlowNode',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=29,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:35',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:35',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=653 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17710,1,29,653,'int',1,1,1,'WF_FlowNode','NodeId','NodeId','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='NodeId',[FieldByname]='NodeId',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17711,2,29,653,'int',1,1,1,'WF_FlowNode','FlowId','FlowId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='FlowId',[FieldByname]='FlowId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17712,3,29,653,'varchar',2,1,1,'WF_FlowNode','NodeName','NodeName','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='NodeName',[FieldByname]='NodeName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17713,4,29,653,'int',1,1,1,'WF_FlowNode','Step','Step','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='Step',[FieldByname]='Step',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17714,5,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsUsers','PrcsUsers','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsUsers',[FieldByname]='PrcsUsers',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17715,6,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsDepts','PrcsDepts','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsDepts',[FieldByname]='PrcsDepts',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17716,7,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsPositions','PrcsPositions','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsPositions',[FieldByname]='PrcsPositions',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17717,8,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsRoles','PrcsRoles','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsRoles',[FieldByname]='PrcsRoles',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17718,9,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsTo','PrcsTo','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsTo',[FieldByname]='PrcsTo',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17719,10,29,653,'bit',4,1,1,'WF_FlowNode','AllowLastNodeBoss','AllowLastNodeBoss','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='AllowLastNodeBoss',[FieldByname]='AllowLastNodeBoss',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17720,11,29,653,'bit',4,1,1,'WF_FlowNode','AllowWorkCreator','AllowWorkCreator','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='AllowWorkCreator',[FieldByname]='AllowWorkCreator',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17721,12,29,653,'varchar',2,1,1,'WF_FlowNode','NextNames','NextNames','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='NextNames',[FieldByname]='NextNames',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17722,13,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsUserNames','PrcsUserNames','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsUserNames',[FieldByname]='PrcsUserNames',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17723,14,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsDeptNames','PrcsDeptNames','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsDeptNames',[FieldByname]='PrcsDeptNames',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17724,15,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsRoleNames','PrcsRoleNames','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsRoleNames',[FieldByname]='PrcsRoleNames',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17725,16,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsPositionNames','PrcsPositionNames','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsPositionNames',[FieldByname]='PrcsPositionNames',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17726,17,29,653,'varchar',2,1,1,'WF_FlowNode','TriggerBefore','TriggerBefore','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='TriggerBefore',[FieldByname]='TriggerBefore',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17727,18,29,653,'varchar',2,1,1,'WF_FlowNode','TriggerAfter','TriggerAfter','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='TriggerAfter',[FieldByname]='TriggerAfter',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17728,19,29,653,'bit',4,1,1,'WF_FlowNode','CanReject','CanReject','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='CanReject',[FieldByname]='CanReject',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17729,20,29,653,'bit',4,1,1,'WF_FlowNode','CanPigeonhole','CanPigeonhole','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='CanPigeonhole',[FieldByname]='CanPigeonhole',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17730,21,29,653,'varchar',2,1,1,'WF_FlowNode','PigeonholedSQL','PigeonholedSQL','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PigeonholedSQL',[FieldByname]='PigeonholedSQL',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17731,22,29,653,'int',1,1,1,'WF_FlowNode','Pointx','Pointx','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='Pointx',[FieldByname]='Pointx',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17732,23,29,653,'int',1,1,1,'WF_FlowNode','Pointy','Pointy','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='Pointy',[FieldByname]='Pointy',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17733,24,29,653,'int',1,1,1,'WF_FlowNode','Width','Width','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='Width',[FieldByname]='Width',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17734,25,29,653,'int',1,1,1,'WF_FlowNode','Height','Height','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='Height',[FieldByname]='Height',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17735,26,29,653,'tinyint',23,1,1,'WF_FlowNode','NodeType','NodeType','',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='NodeType',[FieldByname]='NodeType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=26 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=27  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17736,27,29,653,'tinyint',23,1,1,'WF_FlowNode','ApproveType','ApproveType','',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='ApproveType',[FieldByname]='ApproveType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=27 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=28  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17737,28,29,653,'tinyint',23,1,1,'WF_FlowNode','ToNextType','ToNextType','',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='ToNextType',[FieldByname]='ToNextType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=28 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=29  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17738,29,29,653,'tinyint',23,1,1,'WF_FlowNode','ArriveType','ArriveType','',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='ArriveType',[FieldByname]='ArriveType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=29 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=30  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17739,30,29,653,'varchar',2,1,1,'WF_FlowNode','NotifyMode','NotifyMode','',0,0,1,80,80,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='NotifyMode',[FieldByname]='NotifyMode',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=80,[Precision]=80,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=30 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=31  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17740,31,29,653,'varchar',2,1,1,'WF_FlowNode','NotifyType','NotifyType','',0,0,1,80,80,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='NotifyType',[FieldByname]='NotifyType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=80,[Precision]=80,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=31 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=32  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17741,32,29,653,'varchar',2,1,1,'WF_FlowNode','NotifyContent','NotifyContent','',0,0,1,300,300,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='NotifyContent',[FieldByname]='NotifyContent',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=300,[Precision]=300,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=32 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=33  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17742,33,29,653,'int',1,1,1,'WF_FlowNode','TurnFlowId','TurnFlowId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='TurnFlowId',[FieldByname]='TurnFlowId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=33 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=34  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17743,34,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsItem','PrcsItem','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsItem',[FieldByname]='PrcsItem',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=34 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=35  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17744,35,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsItem2','PrcsItem2','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsItem2',[FieldByname]='PrcsItem2',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=35 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=36  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17745,36,29,653,'varchar',2,1,1,'WF_FlowNode','Json_Validate','Json_Validate','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='Json_Validate',[FieldByname]='Json_Validate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=36 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=37  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17746,37,29,653,'int',1,1,1,'WF_FlowNode','EntId','EntId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='EntId',[FieldByname]='EntId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=37 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=38  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17747,38,29,653,'varchar',2,1,1,'WF_FlowNode','PositionDept','PositionDept','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PositionDept',[FieldByname]='PositionDept',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=38 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=39  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17748,39,29,653,'varchar',2,1,1,'WF_FlowNode','PositionDeptNames','PositionDeptNames','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PositionDeptNames',[FieldByname]='PositionDeptNames',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=39 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=40  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17749,40,29,653,'tinyint',23,1,1,'WF_FlowNode','CountersignType','CountersignType','',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='CountersignType',[FieldByname]='CountersignType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=40 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=41  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17750,41,29,653,'tinyint',23,1,1,'WF_FlowNode','CountersignVisType','CountersignVisType','',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='CountersignVisType',[FieldByname]='CountersignVisType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=41 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=42  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17751,42,29,653,'tinyint',23,1,1,'WF_FlowNode','DeliverType','DeliverType','',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='DeliverType',[FieldByname]='DeliverType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=42 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=43  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17752,43,29,653,'bit',4,1,1,'WF_FlowNode','CanCircularize','CanCircularize','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='CanCircularize',[FieldByname]='CanCircularize',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=43 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=44  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17753,44,29,653,'tinyint',23,1,1,'WF_FlowNode','MainUserType','MainUserType','0',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='MainUserType',[FieldByname]='MainUserType',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=44 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=45  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17754,45,29,653,'tinyint',23,1,1,'WF_FlowNode','FilterUserType','FilterUserType','0',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='FilterUserType',[FieldByname]='FilterUserType',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=45 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=46  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17755,46,29,653,'tinyint',23,1,1,'WF_FlowNode','AutoSelectUserType','AutoSelectUserType','0',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='AutoSelectUserType',[FieldByname]='AutoSelectUserType',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=46 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=47  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17756,47,29,653,'tinyint',23,1,1,'WF_FlowNode','RebutType','RebutType','0',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='RebutType',[FieldByname]='RebutType',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=47 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=48  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17757,48,29,653,'int',1,1,1,'WF_FlowNode','LimitHour','LimitHour','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='LimitHour',[FieldByname]='LimitHour',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=48 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=49  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17758,49,29,653,'tinyint',23,1,1,'WF_FlowNode','CountTimeType','CountTimeType','0',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='CountTimeType',[FieldByname]='CountTimeType',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=49 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=50  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17759,50,29,653,'bit',4,1,1,'WF_FlowNode','CanSetLimitHour','CanSetLimitHour','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='CanSetLimitHour',[FieldByname]='CanSetLimitHour',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=50 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=51  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17760,51,29,653,'bit',4,1,1,'WF_FlowNode','OnlyCountWorkTime','OnlyCountWorkTime','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='OnlyCountWorkTime',[FieldByname]='OnlyCountWorkTime',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=51 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 



Delete from [Dcx_EntityPrivilege]  where [EntId]=2065

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2065  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11099,3309,2065,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=3309,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2065  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2065

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2065  and  [ModuleTypeId]=18  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20484,29,3309,2065,37,18,16,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3309,[TemplateId]=37,[ModuleId]=16,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2065  and  [ModuleTypeId]=18 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_DefaultForm_Run]  where [EntId]=2065

--Dcx_DefaultForm_Run
      if (select count(1) from [Dcx_DefaultForm_Run] where  [EntId]=2065  )<1 
      begin 
           Insert into [Dcx_DefaultForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[OtherMsg],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('f1613926-c242-bc07-b04a-3055a94a3885','可写字段',2065,-1,'','',0,'<script src="/Js/control/LRList/LRList.js"></script>','','DcxRun.DefaultF_2065= {"MenuId":3309,"MEntId":2065,"EntName":"可写字段","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2065":{"EntId":2065,"KeyFieldValue":"","DBTableName":"","KeyField":"NodeId","KeydtId":2,"JoinKeyField":"Id","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{
LrList.CreateHtml(2065,''DefaultF_'',''PrcsItem2'',200,130,null,entMsg.E2065.FieldMsg.PrcsItem2_Value,false);
LrList.CreateHtml(2065,''DefaultF_'',''PrcsItem'',200,380,null,entMsg.E2065.FieldMsg.PrcsItem_Value,false);

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":9,"Ent":[{"EntId":2065,"Fld":[{"FldId":1,"Vld":[]},{"FldId":2,"Vld":[{"Id":2,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":3,"Vld":[{"Id":4,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,100}$","err":"限制0-100个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":4,"Vld":[{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":6,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":5,"Vld":[{"Id":7,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,100}$","err":"限制0-100个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":6,"Vld":[{"Id":8,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":9,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":7,"Vld":[]},{"FldId":8,"Vld":[]},{"FldId":9,"Vld":[]},{"FldId":10,"Vld":[]},{"FldId":11,"Vld":[]},{"FldId":12,"Vld":[]},{"FldId":13,"Vld":[]}]}]};
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2065.EntMsg.E2065.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"WF_FlowNode","EntId":2065,"KeyField":"NodeId","MKeyField":"NodeId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"PrcsItem2":{"DtId":2,"DB":1,"CId":30,"FL":0},"EntId":{"DtId":1,"DB":1,"CId":1,"FL":4},"EntName":{"DtId":2,"DB":0,"CId":1,"FL":100},"FlowId":{"DtId":1,"DB":1,"CId":1,"FL":4},"FlowName":{"DtId":2,"DB":0,"CId":1,"FL":100},"PrcsItem":{"DtId":2,"DB":1,"CId":30,"FL":0}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2065.EntMsg.E2065.GetDataRowModel=function()
{
    return {"PrcsItem2":"","EntId":-1,"EntName":"","FlowId":-1,"FlowName":"","PrcsItem":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"NodeId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_DefaultF_2065_873(obj,curFieldName){
 var EntId=2065;
 var FldId=1;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''PrcsItem2'';
 var $formContainer=DcxForm.GetHtmlContainer(2065,''DefaultF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(2065,''DefaultF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"PrcsItem2\",FldId:"+FldId+",EntId:2065,CtrlPrex:\"DefaultF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"NodeId\",CtrlTypeId:30,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''EntId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2065,''DefaultF_'',''EntId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@EntId}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d2065_PrcsItem2");
LrList.Init2(2065,''DefaultF_'', ''PrcsItem2'', '''', myVal,  false,null, true);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_DefaultF_2065_874(obj,curFieldName){
 var EntId=2065;
 var FldId=2;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''EntId'';
 var $formContainer=DcxForm.GetHtmlContainer(2065,''DefaultF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(2065,''DefaultF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"EntId\",FldId:"+FldId+",EntId:2065,CtrlPrex:\"DefaultF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"NodeId\",CtrlTypeId:1,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''FlowId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2065,''DefaultF_'',''FlowId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@FlowId}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d2065_EntId");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_DefaultF_2065_875(obj,curFieldName){
 var EntId=2065;
 var FldId=3;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''EntName'';
 var $formContainer=DcxForm.GetHtmlContainer(2065,''DefaultF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(2065,''DefaultF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"EntName\",FldId:"+FldId+",EntId:2065,CtrlPrex:\"DefaultF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"NodeId\",CtrlTypeId:1,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''EntId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2065,''DefaultF_'',''EntId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@EntId}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d2065_EntName");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_DefaultF_2065_876(obj,curFieldName){
 var EntId=2065;
 var FldId=5;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''FlowName'';
 var $formContainer=DcxForm.GetHtmlContainer(2065,''DefaultF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(2065,''DefaultF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"FlowName\",FldId:"+FldId+",EntId:2065,CtrlPrex:\"DefaultF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"NodeId\",CtrlTypeId:1,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''FlowId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2065,''DefaultF_'',''FlowId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@FlowId}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d2065_FlowName");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_DefaultF_2065_877(obj,curFieldName){
 var EntId=2065;
 var FldId=11;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''PrcsItem'';
 var $formContainer=DcxForm.GetHtmlContainer(2065,''DefaultF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(2065,''DefaultF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"PrcsItem\",FldId:"+FldId+",EntId:2065,CtrlPrex:\"DefaultF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"NodeId\",CtrlTypeId:30,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''FlowId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2065,''DefaultF_'',''FlowId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@FlowId}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d2065_PrcsItem");
LrList.Init2(2065,''DefaultF_'', ''PrcsItem'', '''', myVal,  false,null, true);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2065.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2065,''DefaultF_'',buildNew,closeDlg);

}','<$2065$>select [PrcsItem2],[PrcsItem],[EntId],[NodeId],[FlowId] from WF_FlowNode where [NodeId]=''{$keyfieldvalue}''</$2065$>',10,'2065*NodeId*2*Id*2*WF_FlowNode*可写字段','','','',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-16 1:55:10',3,'admin','2013-10-2 18:34:14',1)
      end
      else 
      begin 
           update [Dcx_DefaultForm_Run] set [FormId]='f1613926-c242-bc07-b04a-3055a94a3885',[FormName]='可写字段',[ModuleId]=-1,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script src="/Js/control/LRList/LRList.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.DefaultF_2065= {"MenuId":3309,"MEntId":2065,"EntName":"可写字段","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2065":{"EntId":2065,"KeyFieldValue":"","DBTableName":"","KeyField":"NodeId","KeydtId":2,"JoinKeyField":"Id","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{
LrList.CreateHtml(2065,''DefaultF_'',''PrcsItem2'',200,130,null,entMsg.E2065.FieldMsg.PrcsItem2_Value,false);
LrList.CreateHtml(2065,''DefaultF_'',''PrcsItem'',200,380,null,entMsg.E2065.FieldMsg.PrcsItem_Value,false);

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":9,"Ent":[{"EntId":2065,"Fld":[{"FldId":1,"Vld":[]},{"FldId":2,"Vld":[{"Id":2,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":3,"Vld":[{"Id":4,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,100}$","err":"限制0-100个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":4,"Vld":[{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":6,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":5,"Vld":[{"Id":7,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,100}$","err":"限制0-100个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":6,"Vld":[{"Id":8,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":9,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":7,"Vld":[]},{"FldId":8,"Vld":[]},{"FldId":9,"Vld":[]},{"FldId":10,"Vld":[]},{"FldId":11,"Vld":[]},{"FldId":12,"Vld":[]},{"FldId":13,"Vld":[]}]}]};
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2065.EntMsg.E2065.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"WF_FlowNode","EntId":2065,"KeyField":"NodeId","MKeyField":"NodeId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"PrcsItem2":{"DtId":2,"DB":1,"CId":30,"FL":0},"EntId":{"DtId":1,"DB":1,"CId":1,"FL":4},"EntName":{"DtId":2,"DB":0,"CId":1,"FL":100},"FlowId":{"DtId":1,"DB":1,"CId":1,"FL":4},"FlowName":{"DtId":2,"DB":0,"CId":1,"FL":100},"PrcsItem":{"DtId":2,"DB":1,"CId":30,"FL":0}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2065.EntMsg.E2065.GetDataRowModel=function()
{
    return {"PrcsItem2":"","EntId":-1,"EntName":"","FlowId":-1,"FlowName":"","PrcsItem":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"NodeId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_DefaultF_2065_873(obj,curFieldName){
 var EntId=2065;
 var FldId=1;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''PrcsItem2'';
 var $formContainer=DcxForm.GetHtmlContainer(2065,''DefaultF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(2065,''DefaultF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"PrcsItem2\",FldId:"+FldId+",EntId:2065,CtrlPrex:\"DefaultF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"NodeId\",CtrlTypeId:30,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''EntId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2065,''DefaultF_'',''EntId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@EntId}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d2065_PrcsItem2");
LrList.Init2(2065,''DefaultF_'', ''PrcsItem2'', '''', myVal,  false,null, true);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_DefaultF_2065_874(obj,curFieldName){
 var EntId=2065;
 var FldId=2;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''EntId'';
 var $formContainer=DcxForm.GetHtmlContainer(2065,''DefaultF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(2065,''DefaultF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"EntId\",FldId:"+FldId+",EntId:2065,CtrlPrex:\"DefaultF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"NodeId\",CtrlTypeId:1,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''FlowId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2065,''DefaultF_'',''FlowId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@FlowId}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d2065_EntId");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_DefaultF_2065_875(obj,curFieldName){
 var EntId=2065;
 var FldId=3;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''EntName'';
 var $formContainer=DcxForm.GetHtmlContainer(2065,''DefaultF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(2065,''DefaultF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"EntName\",FldId:"+FldId+",EntId:2065,CtrlPrex:\"DefaultF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"NodeId\",CtrlTypeId:1,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''EntId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2065,''DefaultF_'',''EntId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@EntId}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d2065_EntName");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_DefaultF_2065_876(obj,curFieldName){
 var EntId=2065;
 var FldId=5;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''FlowName'';
 var $formContainer=DcxForm.GetHtmlContainer(2065,''DefaultF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(2065,''DefaultF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"FlowName\",FldId:"+FldId+",EntId:2065,CtrlPrex:\"DefaultF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"NodeId\",CtrlTypeId:1,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''FlowId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2065,''DefaultF_'',''FlowId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@FlowId}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d2065_FlowName");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_DefaultF_2065_877(obj,curFieldName){
 var EntId=2065;
 var FldId=11;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''PrcsItem'';
 var $formContainer=DcxForm.GetHtmlContainer(2065,''DefaultF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(2065,''DefaultF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"PrcsItem\",FldId:"+FldId+",EntId:2065,CtrlPrex:\"DefaultF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"NodeId\",CtrlTypeId:30,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''FlowId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2065,''DefaultF_'',''FlowId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@FlowId}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d2065_PrcsItem");
LrList.Init2(2065,''DefaultF_'', ''PrcsItem'', '''', myVal,  false,null, true);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2065.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2065,''DefaultF_'',buildNew,closeDlg);

}',[LoadingSql]='<$2065$>select [PrcsItem2],[PrcsItem],[EntId],[NodeId],[FlowId] from WF_FlowNode where [NodeId]=''{$keyfieldvalue}''</$2065$>',[PageSize]=10,[OtherMsg]='2065*NodeId*2*Id*2*WF_FlowNode*可写字段',[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-16 1:55:10',[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-2 18:34:14',[AccountId]=1 where  [EntId]=2065 
      end




--Dcx_DefaultFormField_Run
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='edd7eb89-552b-284e-2929-149f77d2a607'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'edd7eb89-552b-284e-2929-149f77d2a607',2065,2065,'00000000-0000-0000-0000-000000000000',1,'PrcsItem2',2,2,35,'select [EntName],[EntId] from [Dcx_Entity_Run] where [parentId]= {@EntId}',2,10,1,0,30,1,-1,-1,0,0,'','','EntId,','','<div class="defaultform" ctrlprex="DefaultF_" entid="2065">
	<div>
		<ul class="ul-title" groupid="1" isgroup="1" isrple="1">
			<li areaid="7" class="li-area-title" scroll="no" style="width: 76px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">标准表单</span></div>
</li>
			<li areaid="8" class="li-area1" scroll="no" style="position: static;">
				<a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关 闭</span> </a></li>
			<li areaid="9" class="li-area1" scroll="no" style="position: static;">
				<a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" onclick="javascript:DcxRun.DefaultF_2065.SubmitForm(false);"><span class="op_bt_i">保 存</span> </a></li>
			<li areaid="10" class="li-area1" scroll="no" style="width: 94px; height: 36px; position: static;">
				<a class="f_hot_op_bt f_hot_op_bt1" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(2065,''DefaultF_'');"><span class="op_bt_i">新 建</span> </a></li>
		</ul>
	</div>
	<div class="frame-div">
		<ul class="ul-group" groupid="2" isgroup="1" isrple="1">
			<li areaid="11" class="li-area  h55" scroll="no" style="width: 700px; height: 182px; position: static;"><label class="area-title pad16" fldid="1" istitle="1" style="margin-left:20px;margin-bottom:10px;width:100px;clear:both;">请选择从应用</label>
<div class="field-content pad17" style="margin-left:20px;clear:both;">
	<span class="form-ctr" isfcontain="1">','','','','<div id="d2065_PrcsItem2" class="form-lrlist" style="" IsForField=1 EntId="2065" FId="1" Vtp="2" RId="10" Isc="1" CId="30" FieldName="PrcsItem2" >','</div> <input id="d2065_PrcsItem2_hid" type="hidden"  EntId="2065" IsField=1 DBField=1 IsPost=1 FieldName="PrcsItem2" dType="2" Vtp="2" RDT="2" Isc="1" RId="10" CId="30" FId="1" vlk=0   />','',2,11,-1,-1,0,'2065,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=1,[Form_EntId]=2065,[EntId]=2065,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[FieldName]='PrcsItem2',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=35,[DefaultValue]='select [EntName],[EntId] from [Dcx_Entity_Run] where [parentId]= {@EntId}',[ValueType]=2,[RunValueType]=10,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=30,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='EntId,',[SystemVariables]='',[BeforeHtml]='<div class="defaultform" ctrlprex="DefaultF_" entid="2065">
	<div>
		<ul class="ul-title" groupid="1" isgroup="1" isrple="1">
			<li areaid="7" class="li-area-title" scroll="no" style="width: 76px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">标准表单</span></div>
</li>
			<li areaid="8" class="li-area1" scroll="no" style="position: static;">
				<a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关 闭</span> </a></li>
			<li areaid="9" class="li-area1" scroll="no" style="position: static;">
				<a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" onclick="javascript:DcxRun.DefaultF_2065.SubmitForm(false);"><span class="op_bt_i">保 存</span> </a></li>
			<li areaid="10" class="li-area1" scroll="no" style="width: 94px; height: 36px; position: static;">
				<a class="f_hot_op_bt f_hot_op_bt1" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(2065,''DefaultF_'');"><span class="op_bt_i">新 建</span> </a></li>
		</ul>
	</div>
	<div class="frame-div">
		<ul class="ul-group" groupid="2" isgroup="1" isrple="1">
			<li areaid="11" class="li-area  h55" scroll="no" style="width: 700px; height: 182px; position: static;"><label class="area-title pad16" fldid="1" istitle="1" style="margin-left:20px;margin-bottom:10px;width:100px;clear:both;">请选择从应用</label>
<div class="field-content pad17" style="margin-left:20px;clear:both;">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2065_PrcsItem2" class="form-lrlist" style="" IsForField=1 EntId="2065" FId="1" Vtp="2" RId="10" Isc="1" CId="30" FieldName="PrcsItem2" >',[CtrlbackHtml]='</div> <input id="d2065_PrcsItem2_hid" type="hidden"  EntId="2065" IsField=1 DBField=1 IsPost=1 FieldName="PrcsItem2" dType="2" Vtp="2" RDT="2" Isc="1" RId="10" CId="30" FId="1" vlk=0   />',[CtrlLastHtml]='',[TableIndex]=2,[RowIndex]=11,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2065,' where  [FldUId]='edd7eb89-552b-284e-2929-149f77d2a607' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='2c2ed72d-730f-529e-830b-98c3fad47ca1'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'2c2ed72d-730f-529e-830b-98c3fad47ca1',2065,2065,'00000000-0000-0000-0000-000000000000',2,'PrcsItem',2,2,34,'EXEC	[DcxRun_WF_GetFlowField]
		@FlowId = {@FlowId}',2,10,1,0,30,1,-1,-1,1,0,'','','FlowId,','','</span>
</div>
</li><li areaid="17" class="li-area  h55" scroll="no" style="width: 700px; height: 422px; position: static;"><label class="area-title pad16" fldid="11" istitle="1" style="margin-left:20px;margin-bottom:10px;width:80px;clear:both;">请选择字段</label>
<div class="field-content pad17" style="margin-left:20px;clear:both;">
	<span class="form-ctr" isfcontain="1">','','','','<div id="d2065_PrcsItem" class="form-lrlist" style="" IsForField=1 EntId="2065" FId="11" Vtp="2" RId="10" Isc="1" CId="30" FieldName="PrcsItem" >','</div> <input id="d2065_PrcsItem_hid" type="hidden"  EntId="2065" IsField=1 DBField=1 IsPost=1 FieldName="PrcsItem" dType="2" Vtp="2" RDT="2" Isc="1" RId="10" CId="30" FId="11" vlk=0   />','',-1,-1,-1,-1,0,'2065,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=11,[Form_EntId]=2065,[EntId]=2065,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[FieldName]='PrcsItem',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=34,[DefaultValue]='EXEC	[DcxRun_WF_GetFlowField]
		@FlowId = {@FlowId}',[ValueType]=2,[RunValueType]=10,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=30,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='FlowId,',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li areaid="17" class="li-area  h55" scroll="no" style="width: 700px; height: 422px; position: static;"><label class="area-title pad16" fldid="11" istitle="1" style="margin-left:20px;margin-bottom:10px;width:80px;clear:both;">请选择字段</label>
<div class="field-content pad17" style="margin-left:20px;clear:both;">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2065_PrcsItem" class="form-lrlist" style="" IsForField=1 EntId="2065" FId="11" Vtp="2" RId="10" Isc="1" CId="30" FieldName="PrcsItem" >',[CtrlbackHtml]='</div> <input id="d2065_PrcsItem_hid" type="hidden"  EntId="2065" IsField=1 DBField=1 IsPost=1 FieldName="PrcsItem" dType="2" Vtp="2" RDT="2" Isc="1" RId="10" CId="30" FId="11" vlk=0   />',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2065,' where  [FldUId]='2c2ed72d-730f-529e-830b-98c3fad47ca1' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='45874c60-63c5-81a7-a207-a0945bb9a3a8'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'45874c60-63c5-81a7-a207-a0945bb9a3a8',2065,2065,'00000000-0000-0000-0000-000000000000',3,'EntId',1,1,37,'SELECT [EntId] FROM [WF_FlowType] where [FlowId]={@FlowId}',2,1,1,0,1,1,-1,-1,1,1,'','','FlowId,','','</span>

</div>
</li>
			<li areaid="12" class="li-area  h55" scroll="no" style="width: 700px; height: 55px; display: none; position: static;"><label class="area-title pad16" fldid="2" istitle="1">EntId</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2065_EntId"   type="text" class="form-txt"  style="width:200px;" onchange ="javascript:GetLinkCtrlData_DefaultF_2065_873(this,''EntId'');GetLinkCtrlData_DefaultF_2065_875(this,''EntId'');" onblur ="javascript:if(!DcxVld.Validate(this,2065,''DefaultF_'',2065,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2065,''DefaultF_'',2065);" EntId="2065" IsField=1 DBField=1 IsPost=1 FieldName="EntId" dType="1" Vtp="2" RDT="1" Isc="1" RId="1" CId="1" FId="2" vlk=1   CBack=1  value="','"/>','',-1,-1,-1,-1,0,'2065,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=2,[Form_EntId]=2065,[EntId]=2065,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[FieldName]='EntId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=37,[DefaultValue]='SELECT [EntId] FROM [WF_FlowType] where [FlowId]={@FlowId}',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=1,[UploadPath]='',[UploadFileType]='',[ParentFields]='FlowId,',[SystemVariables]='',[BeforeHtml]='</span>

</div>
</li>
			<li areaid="12" class="li-area  h55" scroll="no" style="width: 700px; height: 55px; display: none; position: static;"><label class="area-title pad16" fldid="2" istitle="1">EntId</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2065_EntId"   type="text" class="form-txt"  style="width:200px;" onchange ="javascript:GetLinkCtrlData_DefaultF_2065_873(this,''EntId'');GetLinkCtrlData_DefaultF_2065_875(this,''EntId'');" onblur ="javascript:if(!DcxVld.Validate(this,2065,''DefaultF_'',2065,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2065,''DefaultF_'',2065);" EntId="2065" IsField=1 DBField=1 IsPost=1 FieldName="EntId" dType="1" Vtp="2" RDT="1" Isc="1" RId="1" CId="1" FId="2" vlk=1   CBack=1  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2065,' where  [FldUId]='45874c60-63c5-81a7-a207-a0945bb9a3a8' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='6ff3c3e0-b719-fa6d-bb39-8b988b45a717'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'6ff3c3e0-b719-fa6d-bb39-8b988b45a717',2065,2065,'00000000-0000-0000-0000-000000000000',4,'EntName',2,2,-1,'SELECT [EntName] FROM [Dcx_Entity_Run] where [EntId]={@EntId}',2,1,1,0,1,3,-1,-1,1,1,'','','EntId,','','</span>
 <span class="form-ctr" isfcontain="1">','','','','<input  id="d2065_EntName"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2065,''DefaultF_'',2065,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2065,''DefaultF_'',2065);" EntId="2065" IsField=1 DBField=0 IsPost=1 FieldName="EntName" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="1" FId="3" vlk=1   value="','"/>','',-1,-1,-1,-1,0,'2065,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=3,[Form_EntId]=2065,[EntId]=2065,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=4,[FieldName]='EntName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='SELECT [EntName] FROM [Dcx_Entity_Run] where [EntId]={@EntId}',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=1,[UploadPath]='',[UploadFileType]='',[ParentFields]='EntId,',[SystemVariables]='',[BeforeHtml]='</span>
 <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2065_EntName"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2065,''DefaultF_'',2065,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2065,''DefaultF_'',2065);" EntId="2065" IsField=1 DBField=0 IsPost=1 FieldName="EntName" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="1" FId="3" vlk=1   value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2065,' where  [FldUId]='6ff3c3e0-b719-fa6d-bb39-8b988b45a717' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='134f48ff-dfa2-6ffb-8c8d-6ce4300c4db2'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'134f48ff-dfa2-6ffb-8c8d-6ce4300c4db2',2065,2065,'00000000-0000-0000-0000-000000000000',5,'NodeId',1,1,1,'NodeId',6,1,1,0,1,1,-1,-1,1,1,'','','','','</span>
 <span class="form-ctr" isfcontain="1">','','','','<input  id="d2065_NodeId"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2065,''DefaultF_'',2065,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2065,''DefaultF_'',2065);" EntId="2065" IsField=1 DBField=1 IsPost=0 FieldName="NodeId" dType="1" Vtp="6" RDT="1" Isc="1" RId="1" CId="1" FId="6" vlk=1   value="','"/>','',-1,-1,-1,-1,0,'2065,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=6,[Form_EntId]=2065,[EntId]=2065,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=5,[FieldName]='NodeId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=1,[DefaultValue]='NodeId',[ValueType]=6,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=1,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
 <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2065_NodeId"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2065,''DefaultF_'',2065,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2065,''DefaultF_'',2065);" EntId="2065" IsField=1 DBField=1 IsPost=0 FieldName="NodeId" dType="1" Vtp="6" RDT="1" Isc="1" RId="1" CId="1" FId="6" vlk=1   value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2065,' where  [FldUId]='134f48ff-dfa2-6ffb-8c8d-6ce4300c4db2' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='daa2dac1-22cf-b8eb-2725-f25b26ddcb67'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'daa2dac1-22cf-b8eb-2725-f25b26ddcb67',2065,2065,'00000000-0000-0000-0000-000000000000',6,'FlowId',1,1,2,'FlowId',6,1,1,0,1,1,-1,-1,1,1,'','','','','</span>
</div>
</li><li areaid="16" class="li-area  h55" scroll="no" style="width: 700px; height: 55px; display: none; position: static;"><label class="area-title pad16" fldid="4" istitle="1">FlowId</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2065_FlowId"   type="text" class="form-txt"  style="width:200px;" onchange ="javascript:GetLinkCtrlData_DefaultF_2065_874(this,''FlowId'');GetLinkCtrlData_DefaultF_2065_876(this,''FlowId'');GetLinkCtrlData_DefaultF_2065_877(this,''FlowId'');" onblur ="javascript:if(!DcxVld.Validate(this,2065,''DefaultF_'',2065,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2065,''DefaultF_'',2065);" EntId="2065" IsField=1 DBField=1 IsPost=1 FieldName="FlowId" dType="1" Vtp="6" RDT="1" Isc="1" RId="1" CId="1" FId="4" vlk=1   CBack=1  value="','"/>','',-1,-1,-1,-1,0,'2065,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=4,[Form_EntId]=2065,[EntId]=2065,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=6,[FieldName]='FlowId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=2,[DefaultValue]='FlowId',[ValueType]=6,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=1,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li areaid="16" class="li-area  h55" scroll="no" style="width: 700px; height: 55px; display: none; position: static;"><label class="area-title pad16" fldid="4" istitle="1">FlowId</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2065_FlowId"   type="text" class="form-txt"  style="width:200px;" onchange ="javascript:GetLinkCtrlData_DefaultF_2065_874(this,''FlowId'');GetLinkCtrlData_DefaultF_2065_876(this,''FlowId'');GetLinkCtrlData_DefaultF_2065_877(this,''FlowId'');" onblur ="javascript:if(!DcxVld.Validate(this,2065,''DefaultF_'',2065,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2065,''DefaultF_'',2065);" EntId="2065" IsField=1 DBField=1 IsPost=1 FieldName="FlowId" dType="1" Vtp="6" RDT="1" Isc="1" RId="1" CId="1" FId="4" vlk=1   CBack=1  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2065,' where  [FldUId]='daa2dac1-22cf-b8eb-2725-f25b26ddcb67' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='a67dea54-9c44-9d92-4f25-3221f4313605'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'a67dea54-9c44-9d92-4f25-3221f4313605',2065,2065,'00000000-0000-0000-0000-000000000000',7,'FlowName',2,2,-1,'SELECT [FlowName] FROM [WF_FlowType] where [FlowId]={@FlowId}',2,1,1,0,1,3,-1,-1,1,1,'','','FlowId,','','</span>
 <span class="form-ctr" isfcontain="1">','</span>
</div>
</li><li areaid="13" class="li-area  h55" scroll="no" style="width: 700px; height: 55px; display: none; position: static;"><label class="area-title pad16" fldid="-1" istitle="1">请编辑..</label>
<div class="field-content pad17">
	请编辑..</div>
</li>
		</ul>
	</div>
</div>','','','<input  id="d2065_FlowName"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2065,''DefaultF_'',2065,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2065,''DefaultF_'',2065);" EntId="2065" IsField=1 DBField=0 IsPost=1 FieldName="FlowName" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="1" FId="5" vlk=1   value="','"/>','',-1,-1,-1,-1,0,'2065,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=5,[Form_EntId]=2065,[EntId]=2065,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=7,[FieldName]='FlowName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='SELECT [FlowName] FROM [WF_FlowType] where [FlowId]={@FlowId}',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=1,[UploadPath]='',[UploadFileType]='',[ParentFields]='FlowId,',[SystemVariables]='',[BeforeHtml]='</span>
 <span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
</div>
</li><li areaid="13" class="li-area  h55" scroll="no" style="width: 700px; height: 55px; display: none; position: static;"><label class="area-title pad16" fldid="-1" istitle="1">请编辑..</label>
<div class="field-content pad17">
	请编辑..</div>
</li>
		</ul>
	</div>
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2065_FlowName"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2065,''DefaultF_'',2065,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2065,''DefaultF_'',2065);" EntId="2065" IsField=1 DBField=0 IsPost=1 FieldName="FlowName" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="1" FId="5" vlk=1   value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2065,' where  [FldUId]='a67dea54-9c44-9d92-4f25-3221f4313605' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=653

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=653  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(653,null,'WF_FlowNode','WF_FlowNode',1,0,0,0,0,0,29,1,3,'admin','2013-12-15 17:32:35',3,'admin','2013-12-15 17:32:35',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='WF_FlowNode',[DBTableByName]='WF_FlowNode',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=29,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:35',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:35',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=653 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17710,1,29,653,'int',1,1,1,'WF_FlowNode','NodeId','NodeId','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='NodeId',[FieldByname]='NodeId',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17711,2,29,653,'int',1,1,1,'WF_FlowNode','FlowId','FlowId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='FlowId',[FieldByname]='FlowId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17712,3,29,653,'varchar',2,1,1,'WF_FlowNode','NodeName','NodeName','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='NodeName',[FieldByname]='NodeName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17713,4,29,653,'int',1,1,1,'WF_FlowNode','Step','Step','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='Step',[FieldByname]='Step',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17714,5,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsUsers','PrcsUsers','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsUsers',[FieldByname]='PrcsUsers',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17715,6,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsDepts','PrcsDepts','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsDepts',[FieldByname]='PrcsDepts',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17716,7,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsPositions','PrcsPositions','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsPositions',[FieldByname]='PrcsPositions',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17717,8,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsRoles','PrcsRoles','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsRoles',[FieldByname]='PrcsRoles',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17718,9,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsTo','PrcsTo','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsTo',[FieldByname]='PrcsTo',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17719,10,29,653,'bit',4,1,1,'WF_FlowNode','AllowLastNodeBoss','AllowLastNodeBoss','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='AllowLastNodeBoss',[FieldByname]='AllowLastNodeBoss',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17720,11,29,653,'bit',4,1,1,'WF_FlowNode','AllowWorkCreator','AllowWorkCreator','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='AllowWorkCreator',[FieldByname]='AllowWorkCreator',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17721,12,29,653,'varchar',2,1,1,'WF_FlowNode','NextNames','NextNames','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='NextNames',[FieldByname]='NextNames',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17722,13,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsUserNames','PrcsUserNames','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsUserNames',[FieldByname]='PrcsUserNames',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17723,14,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsDeptNames','PrcsDeptNames','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsDeptNames',[FieldByname]='PrcsDeptNames',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17724,15,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsRoleNames','PrcsRoleNames','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsRoleNames',[FieldByname]='PrcsRoleNames',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17725,16,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsPositionNames','PrcsPositionNames','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsPositionNames',[FieldByname]='PrcsPositionNames',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17726,17,29,653,'varchar',2,1,1,'WF_FlowNode','TriggerBefore','TriggerBefore','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='TriggerBefore',[FieldByname]='TriggerBefore',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17727,18,29,653,'varchar',2,1,1,'WF_FlowNode','TriggerAfter','TriggerAfter','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='TriggerAfter',[FieldByname]='TriggerAfter',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17728,19,29,653,'bit',4,1,1,'WF_FlowNode','CanReject','CanReject','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='CanReject',[FieldByname]='CanReject',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17729,20,29,653,'bit',4,1,1,'WF_FlowNode','CanPigeonhole','CanPigeonhole','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='CanPigeonhole',[FieldByname]='CanPigeonhole',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17730,21,29,653,'varchar',2,1,1,'WF_FlowNode','PigeonholedSQL','PigeonholedSQL','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PigeonholedSQL',[FieldByname]='PigeonholedSQL',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17731,22,29,653,'int',1,1,1,'WF_FlowNode','Pointx','Pointx','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='Pointx',[FieldByname]='Pointx',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17732,23,29,653,'int',1,1,1,'WF_FlowNode','Pointy','Pointy','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='Pointy',[FieldByname]='Pointy',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17733,24,29,653,'int',1,1,1,'WF_FlowNode','Width','Width','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='Width',[FieldByname]='Width',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17734,25,29,653,'int',1,1,1,'WF_FlowNode','Height','Height','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='Height',[FieldByname]='Height',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17735,26,29,653,'tinyint',23,1,1,'WF_FlowNode','NodeType','NodeType','',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='NodeType',[FieldByname]='NodeType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=26 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=27  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17736,27,29,653,'tinyint',23,1,1,'WF_FlowNode','ApproveType','ApproveType','',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='ApproveType',[FieldByname]='ApproveType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=27 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=28  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17737,28,29,653,'tinyint',23,1,1,'WF_FlowNode','ToNextType','ToNextType','',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='ToNextType',[FieldByname]='ToNextType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=28 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=29  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17738,29,29,653,'tinyint',23,1,1,'WF_FlowNode','ArriveType','ArriveType','',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='ArriveType',[FieldByname]='ArriveType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=29 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=30  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17739,30,29,653,'varchar',2,1,1,'WF_FlowNode','NotifyMode','NotifyMode','',0,0,1,80,80,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='NotifyMode',[FieldByname]='NotifyMode',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=80,[Precision]=80,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=30 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=31  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17740,31,29,653,'varchar',2,1,1,'WF_FlowNode','NotifyType','NotifyType','',0,0,1,80,80,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='NotifyType',[FieldByname]='NotifyType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=80,[Precision]=80,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=31 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=32  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17741,32,29,653,'varchar',2,1,1,'WF_FlowNode','NotifyContent','NotifyContent','',0,0,1,300,300,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='NotifyContent',[FieldByname]='NotifyContent',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=300,[Precision]=300,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=32 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=33  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17742,33,29,653,'int',1,1,1,'WF_FlowNode','TurnFlowId','TurnFlowId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='TurnFlowId',[FieldByname]='TurnFlowId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=33 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=34  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17743,34,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsItem','PrcsItem','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsItem',[FieldByname]='PrcsItem',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=34 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=35  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17744,35,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsItem2','PrcsItem2','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsItem2',[FieldByname]='PrcsItem2',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=35 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=36  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17745,36,29,653,'varchar',2,1,1,'WF_FlowNode','Json_Validate','Json_Validate','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='Json_Validate',[FieldByname]='Json_Validate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=36 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=37  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17746,37,29,653,'int',1,1,1,'WF_FlowNode','EntId','EntId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='EntId',[FieldByname]='EntId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=37 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=38  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17747,38,29,653,'varchar',2,1,1,'WF_FlowNode','PositionDept','PositionDept','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PositionDept',[FieldByname]='PositionDept',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=38 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=39  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17748,39,29,653,'varchar',2,1,1,'WF_FlowNode','PositionDeptNames','PositionDeptNames','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PositionDeptNames',[FieldByname]='PositionDeptNames',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=39 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=40  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17749,40,29,653,'tinyint',23,1,1,'WF_FlowNode','CountersignType','CountersignType','',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='CountersignType',[FieldByname]='CountersignType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=40 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=41  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17750,41,29,653,'tinyint',23,1,1,'WF_FlowNode','CountersignVisType','CountersignVisType','',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='CountersignVisType',[FieldByname]='CountersignVisType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=41 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=42  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17751,42,29,653,'tinyint',23,1,1,'WF_FlowNode','DeliverType','DeliverType','',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='DeliverType',[FieldByname]='DeliverType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=42 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=43  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17752,43,29,653,'bit',4,1,1,'WF_FlowNode','CanCircularize','CanCircularize','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='CanCircularize',[FieldByname]='CanCircularize',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=43 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=44  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17753,44,29,653,'tinyint',23,1,1,'WF_FlowNode','MainUserType','MainUserType','0',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='MainUserType',[FieldByname]='MainUserType',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=44 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=45  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17754,45,29,653,'tinyint',23,1,1,'WF_FlowNode','FilterUserType','FilterUserType','0',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='FilterUserType',[FieldByname]='FilterUserType',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=45 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=46  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17755,46,29,653,'tinyint',23,1,1,'WF_FlowNode','AutoSelectUserType','AutoSelectUserType','0',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='AutoSelectUserType',[FieldByname]='AutoSelectUserType',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=46 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=47  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17756,47,29,653,'tinyint',23,1,1,'WF_FlowNode','RebutType','RebutType','0',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='RebutType',[FieldByname]='RebutType',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=47 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=48  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17757,48,29,653,'int',1,1,1,'WF_FlowNode','LimitHour','LimitHour','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='LimitHour',[FieldByname]='LimitHour',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=48 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=49  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17758,49,29,653,'tinyint',23,1,1,'WF_FlowNode','CountTimeType','CountTimeType','0',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='CountTimeType',[FieldByname]='CountTimeType',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=49 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=50  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17759,50,29,653,'bit',4,1,1,'WF_FlowNode','CanSetLimitHour','CanSetLimitHour','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='CanSetLimitHour',[FieldByname]='CanSetLimitHour',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=50 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=51  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17760,51,29,653,'bit',4,1,1,'WF_FlowNode','OnlyCountWorkTime','OnlyCountWorkTime','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='OnlyCountWorkTime',[FieldByname]='OnlyCountWorkTime',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=51 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 



Delete from [Dcx_EntityPrivilege]  where [EntId]=2066

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2066  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11100,3309,2066,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=3309,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2066  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2066

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2066  and  [ModuleTypeId]=18  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20485,29,3309,2066,37,18,16,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3309,[TemplateId]=37,[ModuleId]=16,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2066  and  [ModuleTypeId]=18 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_DefaultForm_Run]  where [EntId]=2066

--Dcx_DefaultForm_Run
      if (select count(1) from [Dcx_DefaultForm_Run] where  [EntId]=2066  )<1 
      begin 
           Insert into [Dcx_DefaultForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[OtherMsg],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('0c3c7575-054c-12dc-d19f-2ae733c0c405','节点条件',2066,-1,'','',0,'','','DcxRun.DefaultF_2066= {"MenuId":3309,"MEntId":2066,"EntName":"节点条件","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2066":{"EntId":2066,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"Id","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":8,"Ent":[{"EntId":2066,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,100}$","err":"限制0-100个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":2,"Vld":[{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,100}$","err":"限制0-100个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":3,"Vld":[{"Id":4,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,100}$","err":"限制0-100个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":4,"Vld":[{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,500}$","err":"限制0-500个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":5,"Vld":[]},{"FldId":6,"Vld":[]},{"FldId":7,"Vld":[]},{"FldId":8,"Vld":[{"Id":6,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,500}$","err":"限制0-500个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":9,"Vld":[]},{"FldId":10,"Vld":[{"Id":7,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,500}$","err":"限制0-500个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":11,"Vld":[{"Id":8,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,100}$","err":"限制0-100个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":12,"Vld":[]}]}]};
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2066.EntMsg.E2066.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"WF_NodeCondition","EntId":2066,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"ConditionRelation":{"DtId":2,"DB":1,"CId":7,"FL":100},"FieldName":{"DtId":2,"DB":1,"CId":3,"FL":100},"CompareType":{"DtId":2,"DB":1,"CId":3,"FL":100},"CompareValue":{"DtId":2,"DB":1,"CId":1,"FL":500},"InOutType":{"DtId":2,"DB":1,"CId":7,"FL":100},"PromptContent":{"DtId":2,"DB":1,"CId":1,"FL":0}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2066.EntMsg.E2066.GetDataRowModel=function()
{
    return {"ConditionRelation":"","FieldName":"","CompareType":"","CompareValue":"","InOutType":"","PromptContent":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2066.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2066,''DefaultF_'',buildNew,closeDlg);

}','<$2066$>select [PromptContent],[InOutType],[ConditionRelation],[FieldName],[CompareType],[CompareValue],[Id] from WF_NodeCondition where [Id]=''{$keyfieldvalue}''</$2066$>',10,'2066*Id*2*Id*2*WF_NodeCondition*节点条件','','','',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-16 14:44:49',3,'admin','2013-10-2 18:34:14',1)
      end
      else 
      begin 
           update [Dcx_DefaultForm_Run] set [FormId]='0c3c7575-054c-12dc-d19f-2ae733c0c405',[FormName]='节点条件',[ModuleId]=-1,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.DefaultF_2066= {"MenuId":3309,"MEntId":2066,"EntName":"节点条件","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2066":{"EntId":2066,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"Id","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":8,"Ent":[{"EntId":2066,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,100}$","err":"限制0-100个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":2,"Vld":[{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,100}$","err":"限制0-100个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":3,"Vld":[{"Id":4,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,100}$","err":"限制0-100个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":4,"Vld":[{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,500}$","err":"限制0-500个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":5,"Vld":[]},{"FldId":6,"Vld":[]},{"FldId":7,"Vld":[]},{"FldId":8,"Vld":[{"Id":6,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,500}$","err":"限制0-500个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":9,"Vld":[]},{"FldId":10,"Vld":[{"Id":7,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,500}$","err":"限制0-500个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":11,"Vld":[{"Id":8,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,100}$","err":"限制0-100个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":12,"Vld":[]}]}]};
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2066.EntMsg.E2066.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"WF_NodeCondition","EntId":2066,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"ConditionRelation":{"DtId":2,"DB":1,"CId":7,"FL":100},"FieldName":{"DtId":2,"DB":1,"CId":3,"FL":100},"CompareType":{"DtId":2,"DB":1,"CId":3,"FL":100},"CompareValue":{"DtId":2,"DB":1,"CId":1,"FL":500},"InOutType":{"DtId":2,"DB":1,"CId":7,"FL":100},"PromptContent":{"DtId":2,"DB":1,"CId":1,"FL":0}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2066.EntMsg.E2066.GetDataRowModel=function()
{
    return {"ConditionRelation":"","FieldName":"","CompareType":"","CompareValue":"","InOutType":"","PromptContent":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2066.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2066,''DefaultF_'',buildNew,closeDlg);

}',[LoadingSql]='<$2066$>select [PromptContent],[InOutType],[ConditionRelation],[FieldName],[CompareType],[CompareValue],[Id] from WF_NodeCondition where [Id]=''{$keyfieldvalue}''</$2066$>',[PageSize]=10,[OtherMsg]='2066*Id*2*Id*2*WF_NodeCondition*节点条件',[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-16 14:44:49',[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-2 18:34:14',[AccountId]=1 where  [EntId]=2066 
      end




--Dcx_DefaultFormField_Run
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='907ee9dc-af6c-f79b-2223-ef795fd5e892'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(12,'907ee9dc-af6c-f79b-2223-ef795fd5e892',2066,2066,'00000000-0000-0000-0000-000000000000',1,'PromptContent',2,2,13,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','<div class="defaultform" ctrlprex="DefaultF_" entid="2066">
	<div>
		<ul class="ul-title" groupid="1" isgroup="1" isrple="1">
			<li areaid="7" class="li-area-title" scroll="no" style="position: static;">
				<div class="form-title5" id="div_head1">
					<span class="title-name" id="h2_title">标准表单</span></div>
			</li>
			<li areaid="8" class="li-area1" scroll="no" style="width: 94px; height: 36px; position: static;"><a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
			<li areaid="9" class="li-area1" scroll="no" style="width: 94px; height: 36px; position: static;"><a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:SubmitForm_DefaultF_2045(false);"><span class="op_bt_i">确定</span> </a></li>
			
		</ul>
	</div>
	<div class="frame-div">
		<ul class="ul-group" groupid="2" isgroup="1" isrple="1">
			<li areaid="20" class="li-area  h55" scroll="no" style="width: 700px; height: 35px; position: static;"><label class="area-title pad16" fldid="12" istitle="1">错误时的提示内容</label>
<div class="field-content pad17">
<span class="form-ctr" isfcontain="1">','','','','<input  id="d2066_PromptContent"   type="text" class="form-txt"  style="width:350px;" EntId="2066" IsField=1 DBField=1 IsPost=1 FieldName="PromptContent" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="12" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2066,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=12,[Form_EntId]=2066,[EntId]=2066,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[FieldName]='PromptContent',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=13,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="defaultform" ctrlprex="DefaultF_" entid="2066">
	<div>
		<ul class="ul-title" groupid="1" isgroup="1" isrple="1">
			<li areaid="7" class="li-area-title" scroll="no" style="position: static;">
				<div class="form-title5" id="div_head1">
					<span class="title-name" id="h2_title">标准表单</span></div>
			</li>
			<li areaid="8" class="li-area1" scroll="no" style="width: 94px; height: 36px; position: static;"><a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
			<li areaid="9" class="li-area1" scroll="no" style="width: 94px; height: 36px; position: static;"><a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:SubmitForm_DefaultF_2045(false);"><span class="op_bt_i">确定</span> </a></li>
			
		</ul>
	</div>
	<div class="frame-div">
		<ul class="ul-group" groupid="2" isgroup="1" isrple="1">
			<li areaid="20" class="li-area  h55" scroll="no" style="width: 700px; height: 35px; position: static;"><label class="area-title pad16" fldid="12" istitle="1">错误时的提示内容</label>
<div class="field-content pad17">
<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2066_PromptContent"   type="text" class="form-txt"  style="width:350px;" EntId="2066" IsField=1 DBField=1 IsPost=1 FieldName="PromptContent" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="12" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2066,' where  [FldUId]='907ee9dc-af6c-f79b-2223-ef795fd5e892' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='cc7cdee3-9aa8-07d5-3c01-be2e62293e30'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'cc7cdee3-9aa8-07d5-3c01-be2e62293e30',2066,2066,'00000000-0000-0000-0000-000000000000',2,'InOutType',2,2,6,'',1,7,1,0,7,1,-1,-1,1,0,'','','','','</span>


</div></li><li areaid="21" class="li-area  h55" scroll="no" style="width: 700px; height: 35px; position: static;"><label class="area-title pad16" fldid="11" istitle="1">条件何时发挥</label>
<div class="field-content pad17">
	



<span class="form-ctr" isfcontain="1">','','','','<div id="d2066_InOutType" class="form-radio" style="" EntId="2066" IsField=1 DBField=1 IsPost=1 FieldName="InOutType" dType="2" Vtp="1" RDT="2" Isc="1" RId="7" CId="7" FId="11" vlk=0    Type="1"  onclick ="javascript:DcxVld.Validate(this,2066,''DefaultF_'',2066);" onfocus ="javascript:DcxVld.ValidateFocus(this,2066,''DefaultF_'',2066);"><span class="form-radio-item"  >
<input id="ddcx_2066_InOutType_0"  name="ddcx_2066_InOutType"  type="radio"  text="从本节点流出时"  value="从本节点流出时"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2066_InOutType_0">从本节点流出时</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2066_InOutType_1"  name="ddcx_2066_InOutType"  type="radio"  text="流入本节点时"  value="流入本节点时"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2066_InOutType_1">流入本节点时</label></span>
<span class="clearfix"></span>','</div>','',-1,-1,-1,-1,0,'2066,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=11,[Form_EntId]=2066,[EntId]=2066,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[FieldName]='InOutType',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=6,[DefaultValue]='',[ValueType]=1,[RunValueType]=7,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=7,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>


</div></li><li areaid="21" class="li-area  h55" scroll="no" style="width: 700px; height: 35px; position: static;"><label class="area-title pad16" fldid="11" istitle="1">条件何时发挥</label>
<div class="field-content pad17">
	



<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2066_InOutType" class="form-radio" style="" EntId="2066" IsField=1 DBField=1 IsPost=1 FieldName="InOutType" dType="2" Vtp="1" RDT="2" Isc="1" RId="7" CId="7" FId="11" vlk=0    Type="1"  onclick ="javascript:DcxVld.Validate(this,2066,''DefaultF_'',2066);" onfocus ="javascript:DcxVld.ValidateFocus(this,2066,''DefaultF_'',2066);"><span class="form-radio-item"  >
<input id="ddcx_2066_InOutType_0"  name="ddcx_2066_InOutType"  type="radio"  text="从本节点流出时"  value="从本节点流出时"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2066_InOutType_0">从本节点流出时</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2066_InOutType_1"  name="ddcx_2066_InOutType"  type="radio"  text="流入本节点时"  value="流入本节点时"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2066_InOutType_1">流入本节点时</label></span>
<span class="clearfix"></span>',[CtrlbackHtml]='</div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2066,' where  [FldUId]='cc7cdee3-9aa8-07d5-3c01-be2e62293e30' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='1b04241e-fd3b-64e4-0018-f7190b37ba11'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'1b04241e-fd3b-64e4-0018-f7190b37ba11',2066,2066,'00000000-0000-0000-0000-000000000000',3,'ConditionRelation',2,2,8,'并且（and）|and',1,7,1,0,7,1,-1,-1,1,0,'','','','','</span>



</div></li><li areaid="11" class="li-area  h55" scroll="no" style="width: 700px; height: 35px; position: static;"><label class="area-title pad16" fldid="1" istitle="1">条件关系</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">','','','','<div id="d2066_ConditionRelation" class="form-radio" style="" EntId="2066" IsField=1 DBField=1 IsPost=1 FieldName="ConditionRelation" dType="2" Vtp="1" RDT="2" Isc="1" RId="7" CId="7" FId="1" vlk=0    Type="1"  onclick ="javascript:DcxVld.Validate(this,2066,''DefaultF_'',2066);" onfocus ="javascript:DcxVld.ValidateFocus(this,2066,''DefaultF_'',2066);"><span class="form-radio-item"  >
<input id="ddcx_2066_ConditionRelation_0"  name="ddcx_2066_ConditionRelation" checked ="checked" type="radio"  text="并且（and）"  value="and"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2066_ConditionRelation_0">并且（and）</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2066_ConditionRelation_1"  name="ddcx_2066_ConditionRelation"  type="radio"  text="或者（or）"  value="or"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2066_ConditionRelation_1">或者（or）</label></span>
<span class="clearfix"></span>','</div>','',-1,-1,-1,-1,0,'2066,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=1,[Form_EntId]=2066,[EntId]=2066,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[FieldName]='ConditionRelation',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=8,[DefaultValue]='并且（and）|and',[ValueType]=1,[RunValueType]=7,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=7,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>



</div></li><li areaid="11" class="li-area  h55" scroll="no" style="width: 700px; height: 35px; position: static;"><label class="area-title pad16" fldid="1" istitle="1">条件关系</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2066_ConditionRelation" class="form-radio" style="" EntId="2066" IsField=1 DBField=1 IsPost=1 FieldName="ConditionRelation" dType="2" Vtp="1" RDT="2" Isc="1" RId="7" CId="7" FId="1" vlk=0    Type="1"  onclick ="javascript:DcxVld.Validate(this,2066,''DefaultF_'',2066);" onfocus ="javascript:DcxVld.ValidateFocus(this,2066,''DefaultF_'',2066);"><span class="form-radio-item"  >
<input id="ddcx_2066_ConditionRelation_0"  name="ddcx_2066_ConditionRelation" checked ="checked" type="radio"  text="并且（and）"  value="and"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2066_ConditionRelation_0">并且（and）</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2066_ConditionRelation_1"  name="ddcx_2066_ConditionRelation"  type="radio"  text="或者（or）"  value="or"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2066_ConditionRelation_1">或者（or）</label></span>
<span class="clearfix"></span>',[CtrlbackHtml]='</div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2066,' where  [FldUId]='1b04241e-fd3b-64e4-0018-f7190b37ba11' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='7333a1b2-901e-413a-7fa3-7bf95d2d7616'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'7333a1b2-901e-413a-7fa3-7bf95d2d7616',2066,2066,'00000000-0000-0000-0000-000000000000',4,'FieldName',2,2,7,'',5,1,1,0,3,1,-1,-1,1,0,'','','','','</span>



</div>
</li>
			<li areaid="12" class="li-area  h55" scroll="no" style="width: 700px; height: 35px; position: static;"><label class="area-title pad16" fldid="2" istitle="1">比较的字段</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">','','','','<select id="d2066_FieldName" name="d2066_FieldName" class="form-select"  onchange ="javascript:DcxVld.Validate(this,2066,''DefaultF_'',2066,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,2066,''DefaultF_'',2066);" EntId="2066" IsField=1 DBField=1 IsPost=1 FieldName="FieldName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="3" FId="2" vlk=0    style="width:200px;">','</select>','',-1,-1,-1,-1,0,'2066,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=2,[Form_EntId]=2066,[EntId]=2066,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=4,[FieldName]='FieldName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=7,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>



</div>
</li>
			<li areaid="12" class="li-area  h55" scroll="no" style="width: 700px; height: 35px; position: static;"><label class="area-title pad16" fldid="2" istitle="1">比较的字段</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d2066_FieldName" name="d2066_FieldName" class="form-select"  onchange ="javascript:DcxVld.Validate(this,2066,''DefaultF_'',2066,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,2066,''DefaultF_'',2066);" EntId="2066" IsField=1 DBField=1 IsPost=1 FieldName="FieldName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="3" FId="2" vlk=0    style="width:200px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2066,' where  [FldUId]='7333a1b2-901e-413a-7fa3-7bf95d2d7616' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='f8443d70-0de9-54d0-84da-c3a749925b0c'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'f8443d70-0de9-54d0-84da-c3a749925b0c',2066,2066,'00000000-0000-0000-0000-000000000000',5,'DealWithField',2,2,-1,'',1,1,1,0,3,3,-1,-1,0,0,'','','','','</span>



</div>
</li><li areaid="13" class="li-area  h55" scroll="no" style="width: 700px; height: 35px; position: static;">
				<label class="area-title pad16" fldid="7" istitle="1">对字段处理</label>
				<div class="field-content pad17">
					<span class="form-ctr" isfcontain="1">','','','','<select id="d2066_DealWithField" name="d2066_DealWithField" class="form-select"  EntId="2066" IsField=1 DBField=0 IsPost=0 FieldName="DealWithField" dType="2" Vtp="1" RDT="2" Isc="1" RId="1" CId="3" FId="7" vlk=0    style="width:200px;">','<option  value=""  ></option>
<option  value="年"  >取年</option>
<option  value="月"  >取月</option>
<option  value="日"  >取日</option>
</select>','',2,13,-1,-1,0,'2066,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=7,[Form_EntId]=2066,[EntId]=2066,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=5,[FieldName]='DealWithField',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=1,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>



</div>
</li><li areaid="13" class="li-area  h55" scroll="no" style="width: 700px; height: 35px; position: static;">
				<label class="area-title pad16" fldid="7" istitle="1">对字段处理</label>
				<div class="field-content pad17">
					<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d2066_DealWithField" name="d2066_DealWithField" class="form-select"  EntId="2066" IsField=1 DBField=0 IsPost=0 FieldName="DealWithField" dType="2" Vtp="1" RDT="2" Isc="1" RId="1" CId="3" FId="7" vlk=0    style="width:200px;">',[CtrlbackHtml]='<option  value=""  ></option>
<option  value="年"  >取年</option>
<option  value="月"  >取月</option>
<option  value="日"  >取日</option>
</select>',[CtrlLastHtml]='',[TableIndex]=2,[RowIndex]=13,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2066,' where  [FldUId]='f8443d70-0de9-54d0-84da-c3a749925b0c' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='474046f6-1af3-ea91-3bc4-d79b827d1432'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'474046f6-1af3-ea91-3bc4-d79b827d1432',2066,2066,'00000000-0000-0000-0000-000000000000',6,'CompareType',2,2,9,'',5,1,1,0,3,1,-1,-1,1,0,'','','','','</span>




</div>
			</li><li areaid="19" class="li-area  h55" scroll="no" style="width: 700px; height: 35px; position: static;"><label class="area-title pad16" fldid="3" istitle="1">比较方式</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">','','','','<select id="d2066_CompareType" name="d2066_CompareType" class="form-select"  onchange ="javascript:DcxVld.Validate(this,2066,''DefaultF_'',2066,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,2066,''DefaultF_'',2066);" EntId="2066" IsField=1 DBField=1 IsPost=1 FieldName="CompareType" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="3" FId="3" vlk=0    style="width:200px;">','</select>','',-1,-1,-1,-1,0,'2066,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=3,[Form_EntId]=2066,[EntId]=2066,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=6,[FieldName]='CompareType',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=9,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>




</div>
			</li><li areaid="19" class="li-area  h55" scroll="no" style="width: 700px; height: 35px; position: static;"><label class="area-title pad16" fldid="3" istitle="1">比较方式</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d2066_CompareType" name="d2066_CompareType" class="form-select"  onchange ="javascript:DcxVld.Validate(this,2066,''DefaultF_'',2066,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,2066,''DefaultF_'',2066);" EntId="2066" IsField=1 DBField=1 IsPost=1 FieldName="CompareType" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="3" FId="3" vlk=0    style="width:200px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2066,' where  [FldUId]='474046f6-1af3-ea91-3bc4-d79b827d1432' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='f842fd9c-bda6-a0f2-3fd3-e700916bf834'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'f842fd9c-bda6-a0f2-3fd3-e700916bf834',2066,2066,'00000000-0000-0000-0000-000000000000',7,'ValueType',2,2,-1,'固定值|1',1,7,1,0,7,3,-1,-1,0,0,'','','','','</span>


</div>
</li><li areaid="14" class="li-area  h55" scroll="no" style="width: 700px; height: 35px; position: static;">
				<label class="area-title pad16" fldid="6" istitle="1">比较值类型</label>
				<div class="field-content pad17">
					<span class="form-ctr" isfcontain="1">','','','','<div id="d2066_ValueType" class="form-radio" style="" EntId="2066" IsField=1 DBField=0 IsPost=0 FieldName="ValueType" dType="2" Vtp="1" RDT="2" Isc="1" RId="7" CId="7" FId="6" vlk=0    Type="1" ><span class="form-radio-item"  >
<input id="ddcx_2066_ValueType_0"  name="ddcx_2066_ValueType" checked ="checked" type="radio"  text="固定值"  value="1"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2066_ValueType_0">固定值</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2066_ValueType_1"  name="ddcx_2066_ValueType"  type="radio"  text="变量值"  value="2"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2066_ValueType_1">变量值</label></span>
<span class="clearfix"></span>','</div>','',2,14,-1,-1,0,'2066,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=6,[Form_EntId]=2066,[EntId]=2066,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=7,[FieldName]='ValueType',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='固定值|1',[ValueType]=1,[RunValueType]=7,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=7,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>


</div>
</li><li areaid="14" class="li-area  h55" scroll="no" style="width: 700px; height: 35px; position: static;">
				<label class="area-title pad16" fldid="6" istitle="1">比较值类型</label>
				<div class="field-content pad17">
					<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2066_ValueType" class="form-radio" style="" EntId="2066" IsField=1 DBField=0 IsPost=0 FieldName="ValueType" dType="2" Vtp="1" RDT="2" Isc="1" RId="7" CId="7" FId="6" vlk=0    Type="1" ><span class="form-radio-item"  >
<input id="ddcx_2066_ValueType_0"  name="ddcx_2066_ValueType" checked ="checked" type="radio"  text="固定值"  value="1"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2066_ValueType_0">固定值</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2066_ValueType_1"  name="ddcx_2066_ValueType"  type="radio"  text="变量值"  value="2"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2066_ValueType_1">变量值</label></span>
<span class="clearfix"></span>',[CtrlbackHtml]='</div>',[CtrlLastHtml]='',[TableIndex]=2,[RowIndex]=14,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2066,' where  [FldUId]='f842fd9c-bda6-a0f2-3fd3-e700916bf834' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='a77a7ded-4ea9-cbdb-2d3a-d137afc2fd2a'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'a77a7ded-4ea9-cbdb-2d3a-d137afc2fd2a',2066,2066,'00000000-0000-0000-0000-000000000000',8,'SystemVariable',2,2,-1,'',5,1,1,0,3,3,-1,-1,0,0,'','','','','</span>


</div>
			</li><li areaid="15" class="li-area  h55" scroll="no" style="width: 700px; height: 35px; position: static;">
				<label class="area-title pad16" fldid="5" istitle="1">特殊比较值</label>
				<div class="field-content pad17">
					<span class="form-ctr" isfcontain="1">','','','','<select id="d2066_SystemVariable" name="d2066_SystemVariable" class="form-select"  EntId="2066" IsField=1 DBField=0 IsPost=0 FieldName="SystemVariable" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="3" FId="5" vlk=0    style="width:200px;">','</select>','',2,15,-1,-1,0,'2066,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=5,[Form_EntId]=2066,[EntId]=2066,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=8,[FieldName]='SystemVariable',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>


</div>
			</li><li areaid="15" class="li-area  h55" scroll="no" style="width: 700px; height: 35px; position: static;">
				<label class="area-title pad16" fldid="5" istitle="1">特殊比较值</label>
				<div class="field-content pad17">
					<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d2066_SystemVariable" name="d2066_SystemVariable" class="form-select"  EntId="2066" IsField=1 DBField=0 IsPost=0 FieldName="SystemVariable" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="3" FId="5" vlk=0    style="width:200px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[TableIndex]=2,[RowIndex]=15,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2066,' where  [FldUId]='a77a7ded-4ea9-cbdb-2d3a-d137afc2fd2a' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='d332be81-8d16-38c8-1147-cfd3533daac5'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'d332be81-8d16-38c8-1147-cfd3533daac5',2066,2066,'00000000-0000-0000-0000-000000000000',9,'CompareValue',2,2,11,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>



</div>
			</li><li areaid="18" class="li-area  h55" scroll="no" style="width: 700px; height: 35px; position: static;"><label class="area-title pad16" fldid="4" istitle="1">比较的值</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">','</span>



<div iserr="1" class="form-vld"></div>



</div>
</li><li areaid="17" class="li-area  h55" scroll="no" style="width: 700px; height: 40px; position: static;"><label class="area-title pad4" fldid="-1" istitle="1">&nbsp;</label>
<div class="field-content pad4">
	<a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(2045,''DefaultF_'');"><span class="op_bt_i">新建</span> </a><a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:AddNewCondition();"><span class="op_bt_i">加&nbsp;&nbsp;入</span> </a><a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:RemoveAllCondition();"><span class="op_bt_i">全部清空</span> </a></div>
</li><li areaid="16" class="li-area  h55" scroll="no" style="width: 700px; height: 55px; position: static;">
<div class="field-content pad4">
	<div id="div_Condition">
		暂无条件</div>
</div>
</li>
		</ul>
	</div>
</div>','','','<input  id="d2066_CompareValue"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2066,''DefaultF_'',2066,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2066,''DefaultF_'',2066);" EntId="2066" IsField=1 DBField=1 IsPost=1 FieldName="CompareValue" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="4" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2066,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=4,[Form_EntId]=2066,[EntId]=2066,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=9,[FieldName]='CompareValue',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=11,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>



</div>
			</li><li areaid="18" class="li-area  h55" scroll="no" style="width: 700px; height: 35px; position: static;"><label class="area-title pad16" fldid="4" istitle="1">比较的值</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>



<div iserr="1" class="form-vld"></div>



</div>
</li><li areaid="17" class="li-area  h55" scroll="no" style="width: 700px; height: 40px; position: static;"><label class="area-title pad4" fldid="-1" istitle="1">&nbsp;</label>
<div class="field-content pad4">
	<a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(2045,''DefaultF_'');"><span class="op_bt_i">新建</span> </a><a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:AddNewCondition();"><span class="op_bt_i">加&nbsp;&nbsp;入</span> </a><a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:RemoveAllCondition();"><span class="op_bt_i">全部清空</span> </a></div>
</li><li areaid="16" class="li-area  h55" scroll="no" style="width: 700px; height: 55px; position: static;">
<div class="field-content pad4">
	<div id="div_Condition">
		暂无条件</div>
</div>
</li>
		</ul>
	</div>
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2066_CompareValue"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2066,''DefaultF_'',2066,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2066,''DefaultF_'',2066);" EntId="2066" IsField=1 DBField=1 IsPost=1 FieldName="CompareValue" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="4" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2066,' where  [FldUId]='d332be81-8d16-38c8-1147-cfd3533daac5' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=671

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=671  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(671,null,'WF_NodeCondition','WF_NodeCondition',1,0,0,0,0,0,29,1,3,'admin','2013-12-15 17:32:36',3,'admin','2013-12-15 17:32:36',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='WF_NodeCondition',[DBTableByName]='WF_NodeCondition',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=29,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:36',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:36',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=671 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=671  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17862,1,29,671,'int',1,1,1,'WF_NodeCondition','Id','Id','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_NodeCondition',[FieldName]='Id',[FieldByname]='Id',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=671  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=671  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17863,2,29,671,'int',1,1,1,'WF_NodeCondition','NodeId','NodeId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_NodeCondition',[FieldName]='NodeId',[FieldByname]='NodeId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=671  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=671  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17864,3,29,671,'varchar',2,1,1,'WF_NodeCondition','NodeName','NodeName','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_NodeCondition',[FieldName]='NodeName',[FieldByname]='NodeName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=671  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=671  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17865,4,29,671,'int',1,1,1,'WF_NodeCondition','FlowId','FlowId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_NodeCondition',[FieldName]='FlowId',[FieldByname]='FlowId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=671  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=671  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17866,5,29,671,'varchar',2,1,1,'WF_NodeCondition','FlowName','FlowName','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_NodeCondition',[FieldName]='FlowName',[FieldByname]='FlowName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=671  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=671  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17867,6,29,671,'varchar',2,1,1,'WF_NodeCondition','InOutType','InOutType','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_NodeCondition',[FieldName]='InOutType',[FieldByname]='InOutType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=671  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=671  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17868,7,29,671,'varchar',2,1,1,'WF_NodeCondition','FieldName','FieldName','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_NodeCondition',[FieldName]='FieldName',[FieldByname]='FieldName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=671  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=671  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17869,8,29,671,'varchar',2,1,1,'WF_NodeCondition','ConditionRelation','ConditionRelation','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_NodeCondition',[FieldName]='ConditionRelation',[FieldByname]='ConditionRelation',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=671  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=671  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17870,9,29,671,'varchar',2,1,1,'WF_NodeCondition','CompareType','CompareType','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_NodeCondition',[FieldName]='CompareType',[FieldByname]='CompareType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=671  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=671  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17871,10,29,671,'varchar',2,1,1,'WF_NodeCondition','DataType','DataType','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_NodeCondition',[FieldName]='DataType',[FieldByname]='DataType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=671  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=671  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17872,11,29,671,'varchar',2,1,1,'WF_NodeCondition','CompareValue','CompareValue','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_NodeCondition',[FieldName]='CompareValue',[FieldByname]='CompareValue',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=671  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=671  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17873,12,29,671,'varchar',2,1,1,'WF_NodeCondition','SQLExpression','SQLExpression','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_NodeCondition',[FieldName]='SQLExpression',[FieldByname]='SQLExpression',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=671  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=671  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17874,13,29,671,'varchar',2,1,1,'WF_NodeCondition','PromptContent','PromptContent','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_NodeCondition',[FieldName]='PromptContent',[FieldByname]='PromptContent',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=671  and  [FieldId]=13 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 



Delete from [Dcx_EntityPrivilege]  where [EntId]=2067

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2067  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11101,3309,2067,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=3309,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2067  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2067

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2067  and  [ModuleTypeId]=18  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20486,29,3309,2067,37,18,16,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3309,[TemplateId]=37,[ModuleId]=16,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2067  and  [ModuleTypeId]=18 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_DefaultForm_Run]  where [EntId]=2067

--Dcx_DefaultForm_Run
      if (select count(1) from [Dcx_DefaultForm_Run] where  [EntId]=2067  )<1 
      begin 
           Insert into [Dcx_DefaultForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[OtherMsg],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('2195368d-8869-16a0-4287-016431c3084e','经办权限',2067,-1,'','',0,'<script src="/Js/Control/LTreeRList/LTreeRList.js"></script>','','DcxRun.DefaultF_2067= {"MenuId":3309,"MEntId":2067,"EntName":"经办权限","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2067":{"EntId":2067,"KeyFieldValue":"","DBTableName":"","KeyField":"NodeId","KeydtId":2,"JoinKeyField":"NodeId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
GetLinkCtrlData_DefaultF_2067_174(null,null);
GetLinkCtrlData_DefaultF_2067_175(null,null);
GetLinkCtrlData_DefaultF_2067_176(null,null);
GetLinkCtrlData_DefaultF_2067_177(null,null);
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":9,"Ent":[{"EntId":2067,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,200}$","err":"限制0-200个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":2,"Vld":[]},{"FldId":3,"Vld":[]},{"FldId":4,"Vld":[{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":4,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":5,"Vld":[{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":6,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":6,"Vld":[{"Id":7,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":7,"Vld":[]},{"FldId":8,"Vld":[]},{"FldId":9,"Vld":[]},{"FldId":10,"Vld":[]},{"FldId":11,"Vld":[]}]}]};
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2067.EntMsg.E2067.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"WF_FlowNode","EntId":2067,"KeyField":"NodeId","MKeyField":"NodeId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"NodeName":{"DtId":2,"DB":1,"CId":1,"FL":200},"PrcsUsers":{"DtId":2,"DB":1,"CId":40,"FL":0},"PrcsRoles":{"DtId":2,"DB":1,"CId":40,"FL":0},"AllowWorkCreator":{"DtId":1,"DB":1,"CId":13,"FL":4},"AllowLastNodeBoss":{"DtId":1,"DB":1,"CId":13,"FL":4},"PrcsDepts":{"DtId":2,"DB":1,"CId":40,"FL":50},"PrcsPositions":{"DtId":2,"DB":1,"CId":37,"FL":0},"PrcsUserNames":{"DtId":2,"DB":1,"CId":1,"FL":0},"PrcsRoleNames":{"DtId":2,"DB":1,"CId":1,"FL":0},"PrcsDeptNames":{"DtId":2,"DB":1,"CId":1,"FL":0},"PrcsPositionNames":{"DtId":2,"DB":1,"CId":1,"FL":0}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2067.EntMsg.E2067.GetDataRowModel=function()
{
    return {"NodeName":"","PrcsUsers":"","PrcsRoles":"","AllowWorkCreator":-1,"AllowLastNodeBoss":-1,"PrcsDepts":"","PrcsPositions":"","PrcsUserNames":"{@PrcsUsers*}","PrcsRoleNames":"{@PrcsRoles*}","PrcsDeptNames":"{@PrcsDepts*}","PrcsPositionNames":"{@PrcsPositions*}","Dcx_Keymsg":{"RowIx":-1,"KeyField":"NodeId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_DefaultF_2067_174(obj,curFieldName){
 var EntId=2067;
 var FldId=8;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''PrcsUserNames'';
 var $formContainer=DcxForm.GetHtmlContainer(2067,''DefaultF_'');
 var $ddlContainer=null;
var strCode="{@PrcsUsers&}" ;
var v_f1=null;
if(''PrcsUsers''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,2067,''DefaultF_'',''PrcsUsers'',40,$formContainer,false,true);
if(v_f1==null)
   v_f1='''';
strCode=strCode.replaceAll("{@PrcsUsers&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d2067_PrcsUserNames");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
function GetLinkCtrlData_DefaultF_2067_175(obj,curFieldName){
 var EntId=2067;
 var FldId=9;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''PrcsRoleNames'';
 var $formContainer=DcxForm.GetHtmlContainer(2067,''DefaultF_'');
 var $ddlContainer=null;
var strCode="{@PrcsRoles&}" ;
var v_f1=null;
if(''PrcsRoles''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,2067,''DefaultF_'',''PrcsRoles'',40,$formContainer,false,true);
if(v_f1==null)
   v_f1='''';
strCode=strCode.replaceAll("{@PrcsRoles&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d2067_PrcsRoleNames");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
function GetLinkCtrlData_DefaultF_2067_176(obj,curFieldName){
 var EntId=2067;
 var FldId=10;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''PrcsDeptNames'';
 var $formContainer=DcxForm.GetHtmlContainer(2067,''DefaultF_'');
 var $ddlContainer=null;
var strCode="{@PrcsDepts&}" ;
var v_f1=null;
if(''PrcsDepts''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,2067,''DefaultF_'',''PrcsDepts'',40,$formContainer,false,true);
if(v_f1==null)
   v_f1='''';
strCode=strCode.replaceAll("{@PrcsDepts&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d2067_PrcsDeptNames");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
function GetLinkCtrlData_DefaultF_2067_177(obj,curFieldName){
 var EntId=2067;
 var FldId=11;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''PrcsPositionNames'';
 var $formContainer=DcxForm.GetHtmlContainer(2067,''DefaultF_'');
 var $ddlContainer=null;
var strCode="{@PrcsPositions&}" ;
var v_f1=null;
if(''PrcsPositions''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,2067,''DefaultF_'',''PrcsPositions'',37,$formContainer,false,true);
if(v_f1==null)
   v_f1='''';
strCode=strCode.replaceAll("{@PrcsPositions&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d2067_PrcsPositionNames");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2067.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2067,''DefaultF_'',buildNew,closeDlg);

}','<$2067$>select [NodeName],[PrcsUsers],[PrcsUserNames],[PrcsRoles],[PrcsRoleNames],[PrcsDepts],[PrcsDeptNames],[PrcsPositions],[PrcsPositionNames],[AllowWorkCreator],[AllowLastNodeBoss],[NodeId] from WF_FlowNode where [NodeId]=''{$keyfieldvalue}''</$2067$>',10,'2067*NodeId*2*NodeId*2*WF_FlowNode*经办权限','','','',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-16 2:47:30',3,'admin','2013-10-2 18:34:15',1)
      end
      else 
      begin 
           update [Dcx_DefaultForm_Run] set [FormId]='2195368d-8869-16a0-4287-016431c3084e',[FormName]='经办权限',[ModuleId]=-1,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script src="/Js/Control/LTreeRList/LTreeRList.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.DefaultF_2067= {"MenuId":3309,"MEntId":2067,"EntName":"经办权限","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2067":{"EntId":2067,"KeyFieldValue":"","DBTableName":"","KeyField":"NodeId","KeydtId":2,"JoinKeyField":"NodeId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
GetLinkCtrlData_DefaultF_2067_174(null,null);
GetLinkCtrlData_DefaultF_2067_175(null,null);
GetLinkCtrlData_DefaultF_2067_176(null,null);
GetLinkCtrlData_DefaultF_2067_177(null,null);
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":9,"Ent":[{"EntId":2067,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,200}$","err":"限制0-200个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":2,"Vld":[]},{"FldId":3,"Vld":[]},{"FldId":4,"Vld":[{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":4,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":5,"Vld":[{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":6,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":6,"Vld":[{"Id":7,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":7,"Vld":[]},{"FldId":8,"Vld":[]},{"FldId":9,"Vld":[]},{"FldId":10,"Vld":[]},{"FldId":11,"Vld":[]}]}]};
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2067.EntMsg.E2067.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"WF_FlowNode","EntId":2067,"KeyField":"NodeId","MKeyField":"NodeId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"NodeName":{"DtId":2,"DB":1,"CId":1,"FL":200},"PrcsUsers":{"DtId":2,"DB":1,"CId":40,"FL":0},"PrcsRoles":{"DtId":2,"DB":1,"CId":40,"FL":0},"AllowWorkCreator":{"DtId":1,"DB":1,"CId":13,"FL":4},"AllowLastNodeBoss":{"DtId":1,"DB":1,"CId":13,"FL":4},"PrcsDepts":{"DtId":2,"DB":1,"CId":40,"FL":50},"PrcsPositions":{"DtId":2,"DB":1,"CId":37,"FL":0},"PrcsUserNames":{"DtId":2,"DB":1,"CId":1,"FL":0},"PrcsRoleNames":{"DtId":2,"DB":1,"CId":1,"FL":0},"PrcsDeptNames":{"DtId":2,"DB":1,"CId":1,"FL":0},"PrcsPositionNames":{"DtId":2,"DB":1,"CId":1,"FL":0}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2067.EntMsg.E2067.GetDataRowModel=function()
{
    return {"NodeName":"","PrcsUsers":"","PrcsRoles":"","AllowWorkCreator":-1,"AllowLastNodeBoss":-1,"PrcsDepts":"","PrcsPositions":"","PrcsUserNames":"{@PrcsUsers*}","PrcsRoleNames":"{@PrcsRoles*}","PrcsDeptNames":"{@PrcsDepts*}","PrcsPositionNames":"{@PrcsPositions*}","Dcx_Keymsg":{"RowIx":-1,"KeyField":"NodeId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_DefaultF_2067_174(obj,curFieldName){
 var EntId=2067;
 var FldId=8;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''PrcsUserNames'';
 var $formContainer=DcxForm.GetHtmlContainer(2067,''DefaultF_'');
 var $ddlContainer=null;
var strCode="{@PrcsUsers&}" ;
var v_f1=null;
if(''PrcsUsers''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,2067,''DefaultF_'',''PrcsUsers'',40,$formContainer,false,true);
if(v_f1==null)
   v_f1='''';
strCode=strCode.replaceAll("{@PrcsUsers&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d2067_PrcsUserNames");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
function GetLinkCtrlData_DefaultF_2067_175(obj,curFieldName){
 var EntId=2067;
 var FldId=9;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''PrcsRoleNames'';
 var $formContainer=DcxForm.GetHtmlContainer(2067,''DefaultF_'');
 var $ddlContainer=null;
var strCode="{@PrcsRoles&}" ;
var v_f1=null;
if(''PrcsRoles''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,2067,''DefaultF_'',''PrcsRoles'',40,$formContainer,false,true);
if(v_f1==null)
   v_f1='''';
strCode=strCode.replaceAll("{@PrcsRoles&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d2067_PrcsRoleNames");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
function GetLinkCtrlData_DefaultF_2067_176(obj,curFieldName){
 var EntId=2067;
 var FldId=10;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''PrcsDeptNames'';
 var $formContainer=DcxForm.GetHtmlContainer(2067,''DefaultF_'');
 var $ddlContainer=null;
var strCode="{@PrcsDepts&}" ;
var v_f1=null;
if(''PrcsDepts''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,2067,''DefaultF_'',''PrcsDepts'',40,$formContainer,false,true);
if(v_f1==null)
   v_f1='''';
strCode=strCode.replaceAll("{@PrcsDepts&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d2067_PrcsDeptNames");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
function GetLinkCtrlData_DefaultF_2067_177(obj,curFieldName){
 var EntId=2067;
 var FldId=11;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''PrcsPositionNames'';
 var $formContainer=DcxForm.GetHtmlContainer(2067,''DefaultF_'');
 var $ddlContainer=null;
var strCode="{@PrcsPositions&}" ;
var v_f1=null;
if(''PrcsPositions''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,2067,''DefaultF_'',''PrcsPositions'',37,$formContainer,false,true);
if(v_f1==null)
   v_f1='''';
strCode=strCode.replaceAll("{@PrcsPositions&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d2067_PrcsPositionNames");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2067.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2067,''DefaultF_'',buildNew,closeDlg);

}',[LoadingSql]='<$2067$>select [NodeName],[PrcsUsers],[PrcsUserNames],[PrcsRoles],[PrcsRoleNames],[PrcsDepts],[PrcsDeptNames],[PrcsPositions],[PrcsPositionNames],[AllowWorkCreator],[AllowLastNodeBoss],[NodeId] from WF_FlowNode where [NodeId]=''{$keyfieldvalue}''</$2067$>',[PageSize]=10,[OtherMsg]='2067*NodeId*2*NodeId*2*WF_FlowNode*经办权限',[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-16 2:47:30',[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-2 18:34:15',[AccountId]=1 where  [EntId]=2067 
      end




--Dcx_DefaultFormField_Run
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='ed72c6ac-9569-31fa-f279-63910c94f204'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'ed72c6ac-9569-31fa-f279-63910c94f204',2067,2067,'00000000-0000-0000-0000-000000000000',1,'NodeName',2,2,3,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','<div class="defaultform" ctrlprex="DefaultF_" entid="2067">
	<div>
		<ul class="ul-title" groupid="1" isgroup="1" style="width: 590px;" isrple="1">
			<li areaid="7" class="li-area-title" scroll="no" style="position: static;">
				<div class="form-title5" id="div_head1">
					<span class="title-name" id="h2_title">标准表单</span></div>
			</li>
			<li areaid="8" class="li-area1" scroll="no" style="position: static;">
				<a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关 闭</span> </a></li>
			<li areaid="9" class="li-area1" scroll="no" style="width: 94px; height: 36px; position: static;"><a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" onclick="javascript:DcxRun.DefaultF_2067.SubmitForm(false);"><span class="op_bt_i">保 存</span> </a></li>
			<li areaid="10" class="li-area1" scroll="no" style="width: 94px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt1" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(2067,''DefaultF_'');"><span class="op_bt_i">新 建</span> </a></li>
		</ul>
	</div>
	<div class="frame-div">
		<ul class="ul-group" groupid="2" isgroup="1" isrple="1">
			<li areaid="11" class="li-area  h55" scroll="no" style="width: 700px; height: 35px; position: static;"><label class="area-title pad16" fldid="1" istitle="1">节点名称</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2067_NodeName"   type="text" class="form-txt"  style="width:300px;" onblur ="javascript:if(!DcxVld.Validate(this,2067,''DefaultF_'',2067,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2067,''DefaultF_'',2067);" EntId="2067" IsField=1 DBField=1 IsPost=1 FieldName="NodeName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2067,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=1,[Form_EntId]=2067,[EntId]=2067,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[FieldName]='NodeName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=3,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="defaultform" ctrlprex="DefaultF_" entid="2067">
	<div>
		<ul class="ul-title" groupid="1" isgroup="1" style="width: 590px;" isrple="1">
			<li areaid="7" class="li-area-title" scroll="no" style="position: static;">
				<div class="form-title5" id="div_head1">
					<span class="title-name" id="h2_title">标准表单</span></div>
			</li>
			<li areaid="8" class="li-area1" scroll="no" style="position: static;">
				<a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关 闭</span> </a></li>
			<li areaid="9" class="li-area1" scroll="no" style="width: 94px; height: 36px; position: static;"><a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" onclick="javascript:DcxRun.DefaultF_2067.SubmitForm(false);"><span class="op_bt_i">保 存</span> </a></li>
			<li areaid="10" class="li-area1" scroll="no" style="width: 94px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt1" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(2067,''DefaultF_'');"><span class="op_bt_i">新 建</span> </a></li>
		</ul>
	</div>
	<div class="frame-div">
		<ul class="ul-group" groupid="2" isgroup="1" isrple="1">
			<li areaid="11" class="li-area  h55" scroll="no" style="width: 700px; height: 35px; position: static;"><label class="area-title pad16" fldid="1" istitle="1">节点名称</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2067_NodeName"   type="text" class="form-txt"  style="width:300px;" onblur ="javascript:if(!DcxVld.Validate(this,2067,''DefaultF_'',2067,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2067,''DefaultF_'',2067);" EntId="2067" IsField=1 DBField=1 IsPost=1 FieldName="NodeName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2067,' where  [FldUId]='ed72c6ac-9569-31fa-f279-63910c94f204' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='b9ce648f-048b-1a54-1192-6961d55e83b6'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'b9ce648f-048b-1a54-1192-6961d55e83b6',2067,2067,'00000000-0000-0000-0000-000000000000',2,'PrcsUsers',2,2,5,'',5,2,0,0,40,1,-1,27,1,0,'','','','','</span>
</div>
</li>
			<li areaid="12" class="li-area  h55" scroll="no" style="width: 700px; height: 65px; position: static;"><label class="area-title pad16" fldid="2" istitle="1">经办人员</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">','','','','<div id="d2067_PrcsUsers" class="form-ddl" style="" CBack=1  IsForField=1 EntId="2067" FId="2" Vtp="5" RId="2" Isc="0" CId="40" FieldName="PrcsUsers" ><textarea  id="d2067_PrcsUsers_Text" class="form-ddl-txts" readonly="readOnly"  CId="40" FId="2" Vtp="5"  RId="2" Isc="0"  style="width:350px;height:45px;" onclick ="javascript:DcxTree.ShowDialogAf(this,27,2067,''PrcsUsers'',false);" onchange ="javascript:GetLinkCtrlData_DefaultF_2067_174(this,''PrcsUsers'');" onkeyup ="javascript:DcxTree.ShowDialogAf(this,27,2067,''PrcsUsers'',true);" CBack=1  >','</textarea><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2067_PrcsUsers_hid" type="hidden"  EntId="2067" IsField=1 DBField=1 IsPost=1 FieldName="PrcsUsers" dType="2" Vtp="5" RDT="2" Isc="0" RId="2" CId="40" FId="2" vlk=0   TId=27  TFN="PrcsUserNames"  value="','" />',-1,-1,-1,-1,0,'2067,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=2,[Form_EntId]=2067,[EntId]=2067,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[FieldName]='PrcsUsers',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=5,[DefaultValue]='',[ValueType]=5,[RunValueType]=2,[IsSingleChoice]=0,[CtrlStyleId]=0,[CtrlTypeId]=40,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=27,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
			<li areaid="12" class="li-area  h55" scroll="no" style="width: 700px; height: 65px; position: static;"><label class="area-title pad16" fldid="2" istitle="1">经办人员</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2067_PrcsUsers" class="form-ddl" style="" CBack=1  IsForField=1 EntId="2067" FId="2" Vtp="5" RId="2" Isc="0" CId="40" FieldName="PrcsUsers" ><textarea  id="d2067_PrcsUsers_Text" class="form-ddl-txts" readonly="readOnly"  CId="40" FId="2" Vtp="5"  RId="2" Isc="0"  style="width:350px;height:45px;" onclick ="javascript:DcxTree.ShowDialogAf(this,27,2067,''PrcsUsers'',false);" onchange ="javascript:GetLinkCtrlData_DefaultF_2067_174(this,''PrcsUsers'');" onkeyup ="javascript:DcxTree.ShowDialogAf(this,27,2067,''PrcsUsers'',true);" CBack=1  >',[CtrlbackHtml]='</textarea><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2067_PrcsUsers_hid" type="hidden"  EntId="2067" IsField=1 DBField=1 IsPost=1 FieldName="PrcsUsers" dType="2" Vtp="5" RDT="2" Isc="0" RId="2" CId="40" FId="2" vlk=0   TId=27  TFN="PrcsUserNames"  value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2067,' where  [FldUId]='b9ce648f-048b-1a54-1192-6961d55e83b6' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='4bb13f5e-5395-e1fa-88bf-d5ee41c77874'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'4bb13f5e-5395-e1fa-88bf-d5ee41c77874',2067,2067,'00000000-0000-0000-0000-000000000000',3,'PrcsUserNames',2,2,13,'',5,1,1,0,1,1,-1,-1,1,0,'','','PrcsUsers,','','</span>

<span class="form-ctr" isfcontain="1">','','','','<input  id="d2067_PrcsUserNames"   type="text" class="form-txt hide"  style="width:200px;display:none;" onblur ="javascript:if(!DcxVld.Validate(this,2067,''DefaultF_'',2067,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2067,''DefaultF_'',2067);" EntId="2067" IsField=1 DBField=1 IsPost=1 FieldName="PrcsUserNames" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="8" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2067,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=8,[Form_EntId]=2067,[EntId]=2067,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[FieldName]='PrcsUserNames',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=13,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='PrcsUsers,',[SystemVariables]='',[BeforeHtml]='</span>

<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2067_PrcsUserNames"   type="text" class="form-txt hide"  style="width:200px;display:none;" onblur ="javascript:if(!DcxVld.Validate(this,2067,''DefaultF_'',2067,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2067,''DefaultF_'',2067);" EntId="2067" IsField=1 DBField=1 IsPost=1 FieldName="PrcsUserNames" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="8" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2067,' where  [FldUId]='4bb13f5e-5395-e1fa-88bf-d5ee41c77874' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='6b008194-daef-5a4e-b2eb-ccf0f6622c25'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'6b008194-daef-5a4e-b2eb-ccf0f6622c25',2067,2067,'00000000-0000-0000-0000-000000000000',4,'PrcsRoles',2,2,8,'',5,2,0,0,40,1,-1,28,1,0,'','','','','</span>
<div iserr="1" class="form-vld"></div>
</div>
</li><li areaid="15" class="li-area  h55" scroll="no" style="width: 700px; height: 65px; position: static;"><label class="area-title pad16" fldid="3" istitle="1">经办角色</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">','','','','<div id="d2067_PrcsRoles" class="form-ddl" style="" CBack=1  IsForField=1 EntId="2067" FId="3" Vtp="2" RId="2" Isc="0" CId="40" FieldName="PrcsRoles" ><textarea  id="d2067_PrcsRoles_Text" class="form-ddl-txts" readonly="readOnly"  CId="40" FId="3" Vtp="2"  RId="2" Isc="0"  style="width:350px;height:45px;" onclick ="javascript:DcxTree.ShowDialogAf(this,28,2067,''PrcsRoles'',false);" onchange ="javascript:GetLinkCtrlData_DefaultF_2067_175(this,''PrcsRoles'');" onkeyup ="javascript:DcxTree.ShowDialogAf(this,28,2067,''PrcsRoles'',true);" CBack=1  >','</textarea><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2067_PrcsRoles_hid" type="hidden"  EntId="2067" IsField=1 DBField=1 IsPost=1 FieldName="PrcsRoles" dType="2" Vtp="2" RDT="2" Isc="0" RId="2" CId="40" FId="3" vlk=0   TId=28  TFN="PrcsRoleNames"  value="','" />',-1,-1,-1,-1,0,'2067,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=3,[Form_EntId]=2067,[EntId]=2067,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=4,[FieldName]='PrcsRoles',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=8,[DefaultValue]='',[ValueType]=5,[RunValueType]=2,[IsSingleChoice]=0,[CtrlStyleId]=0,[CtrlTypeId]=40,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=28,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
<div iserr="1" class="form-vld"></div>
</div>
</li><li areaid="15" class="li-area  h55" scroll="no" style="width: 700px; height: 65px; position: static;"><label class="area-title pad16" fldid="3" istitle="1">经办角色</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2067_PrcsRoles" class="form-ddl" style="" CBack=1  IsForField=1 EntId="2067" FId="3" Vtp="2" RId="2" Isc="0" CId="40" FieldName="PrcsRoles" ><textarea  id="d2067_PrcsRoles_Text" class="form-ddl-txts" readonly="readOnly"  CId="40" FId="3" Vtp="2"  RId="2" Isc="0"  style="width:350px;height:45px;" onclick ="javascript:DcxTree.ShowDialogAf(this,28,2067,''PrcsRoles'',false);" onchange ="javascript:GetLinkCtrlData_DefaultF_2067_175(this,''PrcsRoles'');" onkeyup ="javascript:DcxTree.ShowDialogAf(this,28,2067,''PrcsRoles'',true);" CBack=1  >',[CtrlbackHtml]='</textarea><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2067_PrcsRoles_hid" type="hidden"  EntId="2067" IsField=1 DBField=1 IsPost=1 FieldName="PrcsRoles" dType="2" Vtp="2" RDT="2" Isc="0" RId="2" CId="40" FId="3" vlk=0   TId=28  TFN="PrcsRoleNames"  value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2067,' where  [FldUId]='6b008194-daef-5a4e-b2eb-ccf0f6622c25' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='373acb59-34fe-e8cf-4d9c-0c6e537f465d'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'373acb59-34fe-e8cf-4d9c-0c6e537f465d',2067,2067,'00000000-0000-0000-0000-000000000000',5,'PrcsRoleNames',2,2,15,'',5,1,1,0,1,1,-1,-1,1,0,'','','PrcsRoles,','','</span>

 <span class="form-ctr" isfcontain="1">','','','','<input  id="d2067_PrcsRoleNames"   type="text" class="form-txt hide"  style="width:200px;display:none;" onblur ="javascript:if(!DcxVld.Validate(this,2067,''DefaultF_'',2067,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2067,''DefaultF_'',2067);" EntId="2067" IsField=1 DBField=1 IsPost=1 FieldName="PrcsRoleNames" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="9" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2067,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=9,[Form_EntId]=2067,[EntId]=2067,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=5,[FieldName]='PrcsRoleNames',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=15,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='PrcsRoles,',[SystemVariables]='',[BeforeHtml]='</span>

 <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2067_PrcsRoleNames"   type="text" class="form-txt hide"  style="width:200px;display:none;" onblur ="javascript:if(!DcxVld.Validate(this,2067,''DefaultF_'',2067,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2067,''DefaultF_'',2067);" EntId="2067" IsField=1 DBField=1 IsPost=1 FieldName="PrcsRoleNames" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="9" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2067,' where  [FldUId]='373acb59-34fe-e8cf-4d9c-0c6e537f465d' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='0cd0b0bd-8cf8-fb47-4288-e1c0b13e3177'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'0cd0b0bd-8cf8-fb47-4288-e1c0b13e3177',2067,2067,'00000000-0000-0000-0000-000000000000',6,'PrcsDepts',2,2,6,'',5,2,0,0,40,1,-1,30,1,0,'','','','','</span>
<div iserr="1" class="form-vld"></div>
</div>
</li><li areaid="17" class="li-area  h55" scroll="no" style="width: 700px; height: 65px; position: static;"><label class="area-title pad16" fldid="6" istitle="1">经办部门</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">','','','','<div id="d2067_PrcsDepts" class="form-ddl" style="" CBack=1  IsForField=1 EntId="2067" FId="6" Vtp="5" RId="2" Isc="0" CId="40" FieldName="PrcsDepts" ><textarea  id="d2067_PrcsDepts_Text" class="form-ddl-txts" readonly="readOnly"  CId="40" FId="6" Vtp="5"  RId="2" Isc="0"  style="width:350px;height:45px;" onclick ="javascript:DcxTree.ShowDialogAf(this,30,2067,''PrcsDepts'',false);" onchange ="javascript:GetLinkCtrlData_DefaultF_2067_176(this,''PrcsDepts'');if(!DcxVld.Validate(this,2067,''DefaultF_'',2067,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2067,''DefaultF_'',2067);" onkeyup ="javascript:DcxTree.ShowDialogAf(this,30,2067,''PrcsDepts'',true);" CBack=1  >','</textarea><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2067_PrcsDepts_hid" type="hidden"  EntId="2067" IsField=1 DBField=1 IsPost=1 FieldName="PrcsDepts" dType="2" Vtp="5" RDT="2" Isc="0" RId="2" CId="40" FId="6" vlk=0   TId=30  TFN="PrcsDeptNames"  value="','" />',-1,-1,-1,-1,0,'2067,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=6,[Form_EntId]=2067,[EntId]=2067,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=6,[FieldName]='PrcsDepts',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=6,[DefaultValue]='',[ValueType]=5,[RunValueType]=2,[IsSingleChoice]=0,[CtrlStyleId]=0,[CtrlTypeId]=40,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=30,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
<div iserr="1" class="form-vld"></div>
</div>
</li><li areaid="17" class="li-area  h55" scroll="no" style="width: 700px; height: 65px; position: static;"><label class="area-title pad16" fldid="6" istitle="1">经办部门</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2067_PrcsDepts" class="form-ddl" style="" CBack=1  IsForField=1 EntId="2067" FId="6" Vtp="5" RId="2" Isc="0" CId="40" FieldName="PrcsDepts" ><textarea  id="d2067_PrcsDepts_Text" class="form-ddl-txts" readonly="readOnly"  CId="40" FId="6" Vtp="5"  RId="2" Isc="0"  style="width:350px;height:45px;" onclick ="javascript:DcxTree.ShowDialogAf(this,30,2067,''PrcsDepts'',false);" onchange ="javascript:GetLinkCtrlData_DefaultF_2067_176(this,''PrcsDepts'');if(!DcxVld.Validate(this,2067,''DefaultF_'',2067,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2067,''DefaultF_'',2067);" onkeyup ="javascript:DcxTree.ShowDialogAf(this,30,2067,''PrcsDepts'',true);" CBack=1  >',[CtrlbackHtml]='</textarea><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2067_PrcsDepts_hid" type="hidden"  EntId="2067" IsField=1 DBField=1 IsPost=1 FieldName="PrcsDepts" dType="2" Vtp="5" RDT="2" Isc="0" RId="2" CId="40" FId="6" vlk=0   TId=30  TFN="PrcsDeptNames"  value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2067,' where  [FldUId]='0cd0b0bd-8cf8-fb47-4288-e1c0b13e3177' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='f24cef0a-5f72-ad56-8199-ab8b0d1feb71'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'f24cef0a-5f72-ad56-8199-ab8b0d1feb71',2067,2067,'00000000-0000-0000-0000-000000000000',7,'PrcsDeptNames',2,2,14,'',5,1,1,0,1,1,-1,-1,1,0,'','','PrcsDepts,','','</span>
 <span class="form-ctr" isfcontain="1">','','','','<input  id="d2067_PrcsDeptNames"   type="text" class="form-txt hide"  style="width:200px;display:none;" EntId="2067" IsField=1 DBField=1 IsPost=1 FieldName="PrcsDeptNames" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="10" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2067,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=10,[Form_EntId]=2067,[EntId]=2067,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=7,[FieldName]='PrcsDeptNames',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=14,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='PrcsDepts,',[SystemVariables]='',[BeforeHtml]='</span>
 <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2067_PrcsDeptNames"   type="text" class="form-txt hide"  style="width:200px;display:none;" EntId="2067" IsField=1 DBField=1 IsPost=1 FieldName="PrcsDeptNames" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="10" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2067,' where  [FldUId]='f24cef0a-5f72-ad56-8199-ab8b0d1feb71' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='51b4d6fc-b046-e4cd-6f10-612b67ba9ae4'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'51b4d6fc-b046-e4cd-6f10-612b67ba9ae4',2067,2067,'00000000-0000-0000-0000-000000000000',8,'PrcsPositions',2,2,7,'SELECT [PositionName],[PositionId] FROM [Dcx_Position] order by [OrderNO]',2,2,0,0,37,1,-1,-1,1,0,'','','','','</span>
</div>
</li><li areaid="16" class="li-area  h55" scroll="no" style="width: 700px; height: 65px; position: static;"><label class="area-title pad16" fldid="7" istitle="1">经办职位</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">','','','','<div id="d2067_PrcsPositions" class="form-ddl" style="" CBack=1  IsForField=1 EntId="2067" FId="7" Vtp="2" RId="2" Isc="0" CId="37" FieldName="PrcsPositions" ><textarea  id="d2067_PrcsPositions_Text" class="form-ddl-txts" readonly="readOnly"  CId="37" FId="7" Vtp="2"  RId="2" Isc="0"  style="width:350px;height:45px;" onclick ="javascript:DcxCkb.ShowDialogAf(this,2067,''PrcsPositions'',false);" onchange ="javascript:GetLinkCtrlData_DefaultF_2067_177(this,''PrcsPositions'');" onkeyup ="javascript:DcxCkb.ShowDialogAf(this,2067,''PrcsPositions'',true);" CBack=1  >','</textarea><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2067_PrcsPositions_hid" type="hidden"  EntId="2067" IsField=1 DBField=1 IsPost=1 FieldName="PrcsPositions" dType="2" Vtp="2" RDT="2" Isc="0" RId="2" CId="37" FId="7" vlk=0   TId=30  TFN="PrcsPositionNames"  value="','"/>',-1,-1,-1,-1,0,'2067,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=7,[Form_EntId]=2067,[EntId]=2067,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=8,[FieldName]='PrcsPositions',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=7,[DefaultValue]='SELECT [PositionName],[PositionId] FROM [Dcx_Position] order by [OrderNO]',[ValueType]=2,[RunValueType]=2,[IsSingleChoice]=0,[CtrlStyleId]=0,[CtrlTypeId]=37,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li areaid="16" class="li-area  h55" scroll="no" style="width: 700px; height: 65px; position: static;"><label class="area-title pad16" fldid="7" istitle="1">经办职位</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2067_PrcsPositions" class="form-ddl" style="" CBack=1  IsForField=1 EntId="2067" FId="7" Vtp="2" RId="2" Isc="0" CId="37" FieldName="PrcsPositions" ><textarea  id="d2067_PrcsPositions_Text" class="form-ddl-txts" readonly="readOnly"  CId="37" FId="7" Vtp="2"  RId="2" Isc="0"  style="width:350px;height:45px;" onclick ="javascript:DcxCkb.ShowDialogAf(this,2067,''PrcsPositions'',false);" onchange ="javascript:GetLinkCtrlData_DefaultF_2067_177(this,''PrcsPositions'');" onkeyup ="javascript:DcxCkb.ShowDialogAf(this,2067,''PrcsPositions'',true);" CBack=1  >',[CtrlbackHtml]='</textarea><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2067_PrcsPositions_hid" type="hidden"  EntId="2067" IsField=1 DBField=1 IsPost=1 FieldName="PrcsPositions" dType="2" Vtp="2" RDT="2" Isc="0" RId="2" CId="37" FId="7" vlk=0   TId=30  TFN="PrcsPositionNames"  value="',[CtrlLastHtml]='"/>',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2067,' where  [FldUId]='51b4d6fc-b046-e4cd-6f10-612b67ba9ae4' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='acca8dbd-9a42-0f4f-640b-d175d3002605'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'acca8dbd-9a42-0f4f-640b-d175d3002605',2067,2067,'00000000-0000-0000-0000-000000000000',9,'PrcsPositionNames',2,2,16,'',5,1,1,0,1,1,-1,-1,1,0,'','','PrcsPositions,','','</span>
 <span class="form-ctr" isfcontain="1">','','','','<input  id="d2067_PrcsPositionNames"   type="text" class="form-txt hide"  style="width:200px;display:none;" EntId="2067" IsField=1 DBField=1 IsPost=1 FieldName="PrcsPositionNames" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="11" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2067,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=11,[Form_EntId]=2067,[EntId]=2067,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=9,[FieldName]='PrcsPositionNames',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=16,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='PrcsPositions,',[SystemVariables]='',[BeforeHtml]='</span>
 <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2067_PrcsPositionNames"   type="text" class="form-txt hide"  style="width:200px;display:none;" EntId="2067" IsField=1 DBField=1 IsPost=1 FieldName="PrcsPositionNames" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="11" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2067,' where  [FldUId]='acca8dbd-9a42-0f4f-640b-d175d3002605' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='59bbccda-49f1-ec76-f4e0-58f6886d0832'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'59bbccda-49f1-ec76-f4e0-58f6886d0832',2067,2067,'00000000-0000-0000-0000-000000000000',10,'AllowWorkCreator',1,1,11,'',1,6,1,0,13,1,-1,-1,1,0,'','','','','</span>
</div>
</li><li areaid="14" class="li-area  h55" scroll="no" style="width: 700px; height: 55px; position: static;"><label class="area-title pad16" fldid="4" istitle="1">工作的发起人</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">','','','','<div class="form-radio" ><span class="form-radio-item" ><input id="d2067_AllowWorkCreator"  name="d2067_AllowWorkCreator" type="checkbox" class="form-ckb" yesv=''1'' nov=''0''  EntId="2067" IsField=1 DBField=1 IsPost=1 FieldName="AllowWorkCreator" dType="1" Vtp="1" RDT="1" Isc="1" RId="6" CId="13" FId="4" vlk=0    onclick ="javascript:if(!DcxVld.Validate(this,2067,''DefaultF_'',2067))return false;"','/><label for="d2067_AllowWorkCreator">允许审批</label></span></div>','',-1,-1,-1,-1,0,'2067,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=4,[Form_EntId]=2067,[EntId]=2067,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=10,[FieldName]='AllowWorkCreator',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=11,[DefaultValue]='',[ValueType]=1,[RunValueType]=6,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=13,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li areaid="14" class="li-area  h55" scroll="no" style="width: 700px; height: 55px; position: static;"><label class="area-title pad16" fldid="4" istitle="1">工作的发起人</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-radio" ><span class="form-radio-item" ><input id="d2067_AllowWorkCreator"  name="d2067_AllowWorkCreator" type="checkbox" class="form-ckb" yesv=''1'' nov=''0''  EntId="2067" IsField=1 DBField=1 IsPost=1 FieldName="AllowWorkCreator" dType="1" Vtp="1" RDT="1" Isc="1" RId="6" CId="13" FId="4" vlk=0    onclick ="javascript:if(!DcxVld.Validate(this,2067,''DefaultF_'',2067))return false;"',[CtrlbackHtml]='/><label for="d2067_AllowWorkCreator">允许审批</label></span></div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2067,' where  [FldUId]='59bbccda-49f1-ec76-f4e0-58f6886d0832' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='b3ea93f2-dedd-baee-be30-73b382b571de'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'b3ea93f2-dedd-baee-be30-73b382b571de',2067,2067,'00000000-0000-0000-0000-000000000000',11,'AllowLastNodeBoss',1,1,10,'',1,6,1,0,13,1,-1,-1,1,0,'','','','','</span>

</div>
</li><li areaid="13" class="li-area  h55" scroll="no" style="width: 700px; height: 55px; position: static;"><label class="area-title pad16" fldid="5" istitle="1">上一节点审批人的上司</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">','</span>
</div>
</li><li areaid="18" class="li-area  h55" scroll="no" style="width: 700px; height: 55px; display: none; position: static;"><label class="area-title pad16" fldid="-1" istitle="1">请编辑..</label>
<div class="field-content pad17">
	请编辑..</div>
</li>
		</ul>
	</div>
</div>','','','<div class="form-radio" ><span class="form-radio-item" ><input id="d2067_AllowLastNodeBoss"  name="d2067_AllowLastNodeBoss" type="checkbox" class="form-ckb" yesv=''1'' nov=''0''  EntId="2067" IsField=1 DBField=1 IsPost=1 FieldName="AllowLastNodeBoss" dType="1" Vtp="1" RDT="1" Isc="1" RId="6" CId="13" FId="5" vlk=0    onclick ="javascript:if(!DcxVld.Validate(this,2067,''DefaultF_'',2067))return false;"','/><label for="d2067_AllowLastNodeBoss">允许审批</label></span></div>','',-1,-1,-1,-1,0,'2067,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=5,[Form_EntId]=2067,[EntId]=2067,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=11,[FieldName]='AllowLastNodeBoss',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=10,[DefaultValue]='',[ValueType]=1,[RunValueType]=6,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=13,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

</div>
</li><li areaid="13" class="li-area  h55" scroll="no" style="width: 700px; height: 55px; position: static;"><label class="area-title pad16" fldid="5" istitle="1">上一节点审批人的上司</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
</div>
</li><li areaid="18" class="li-area  h55" scroll="no" style="width: 700px; height: 55px; display: none; position: static;"><label class="area-title pad16" fldid="-1" istitle="1">请编辑..</label>
<div class="field-content pad17">
	请编辑..</div>
</li>
		</ul>
	</div>
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-radio" ><span class="form-radio-item" ><input id="d2067_AllowLastNodeBoss"  name="d2067_AllowLastNodeBoss" type="checkbox" class="form-ckb" yesv=''1'' nov=''0''  EntId="2067" IsField=1 DBField=1 IsPost=1 FieldName="AllowLastNodeBoss" dType="1" Vtp="1" RDT="1" Isc="1" RId="6" CId="13" FId="5" vlk=0    onclick ="javascript:if(!DcxVld.Validate(this,2067,''DefaultF_'',2067))return false;"',[CtrlbackHtml]='/><label for="d2067_AllowLastNodeBoss">允许审批</label></span></div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2067,' where  [FldUId]='b3ea93f2-dedd-baee-be30-73b382b571de' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=653

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=653  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(653,null,'WF_FlowNode','WF_FlowNode',1,0,0,0,0,0,29,1,3,'admin','2013-12-15 17:32:35',3,'admin','2013-12-15 17:32:35',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='WF_FlowNode',[DBTableByName]='WF_FlowNode',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=29,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:35',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:35',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=653 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17710,1,29,653,'int',1,1,1,'WF_FlowNode','NodeId','NodeId','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='NodeId',[FieldByname]='NodeId',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17711,2,29,653,'int',1,1,1,'WF_FlowNode','FlowId','FlowId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='FlowId',[FieldByname]='FlowId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17712,3,29,653,'varchar',2,1,1,'WF_FlowNode','NodeName','NodeName','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='NodeName',[FieldByname]='NodeName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17713,4,29,653,'int',1,1,1,'WF_FlowNode','Step','Step','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='Step',[FieldByname]='Step',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17714,5,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsUsers','PrcsUsers','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsUsers',[FieldByname]='PrcsUsers',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17715,6,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsDepts','PrcsDepts','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsDepts',[FieldByname]='PrcsDepts',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17716,7,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsPositions','PrcsPositions','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsPositions',[FieldByname]='PrcsPositions',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17717,8,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsRoles','PrcsRoles','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsRoles',[FieldByname]='PrcsRoles',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17718,9,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsTo','PrcsTo','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsTo',[FieldByname]='PrcsTo',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17719,10,29,653,'bit',4,1,1,'WF_FlowNode','AllowLastNodeBoss','AllowLastNodeBoss','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='AllowLastNodeBoss',[FieldByname]='AllowLastNodeBoss',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17720,11,29,653,'bit',4,1,1,'WF_FlowNode','AllowWorkCreator','AllowWorkCreator','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='AllowWorkCreator',[FieldByname]='AllowWorkCreator',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17721,12,29,653,'varchar',2,1,1,'WF_FlowNode','NextNames','NextNames','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='NextNames',[FieldByname]='NextNames',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17722,13,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsUserNames','PrcsUserNames','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsUserNames',[FieldByname]='PrcsUserNames',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17723,14,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsDeptNames','PrcsDeptNames','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsDeptNames',[FieldByname]='PrcsDeptNames',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17724,15,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsRoleNames','PrcsRoleNames','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsRoleNames',[FieldByname]='PrcsRoleNames',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17725,16,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsPositionNames','PrcsPositionNames','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsPositionNames',[FieldByname]='PrcsPositionNames',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17726,17,29,653,'varchar',2,1,1,'WF_FlowNode','TriggerBefore','TriggerBefore','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='TriggerBefore',[FieldByname]='TriggerBefore',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17727,18,29,653,'varchar',2,1,1,'WF_FlowNode','TriggerAfter','TriggerAfter','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='TriggerAfter',[FieldByname]='TriggerAfter',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17728,19,29,653,'bit',4,1,1,'WF_FlowNode','CanReject','CanReject','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='CanReject',[FieldByname]='CanReject',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17729,20,29,653,'bit',4,1,1,'WF_FlowNode','CanPigeonhole','CanPigeonhole','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='CanPigeonhole',[FieldByname]='CanPigeonhole',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17730,21,29,653,'varchar',2,1,1,'WF_FlowNode','PigeonholedSQL','PigeonholedSQL','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PigeonholedSQL',[FieldByname]='PigeonholedSQL',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17731,22,29,653,'int',1,1,1,'WF_FlowNode','Pointx','Pointx','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='Pointx',[FieldByname]='Pointx',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17732,23,29,653,'int',1,1,1,'WF_FlowNode','Pointy','Pointy','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='Pointy',[FieldByname]='Pointy',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17733,24,29,653,'int',1,1,1,'WF_FlowNode','Width','Width','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='Width',[FieldByname]='Width',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17734,25,29,653,'int',1,1,1,'WF_FlowNode','Height','Height','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='Height',[FieldByname]='Height',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17735,26,29,653,'tinyint',23,1,1,'WF_FlowNode','NodeType','NodeType','',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='NodeType',[FieldByname]='NodeType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=26 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=27  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17736,27,29,653,'tinyint',23,1,1,'WF_FlowNode','ApproveType','ApproveType','',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='ApproveType',[FieldByname]='ApproveType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=27 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=28  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17737,28,29,653,'tinyint',23,1,1,'WF_FlowNode','ToNextType','ToNextType','',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='ToNextType',[FieldByname]='ToNextType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=28 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=29  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17738,29,29,653,'tinyint',23,1,1,'WF_FlowNode','ArriveType','ArriveType','',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='ArriveType',[FieldByname]='ArriveType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=29 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=30  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17739,30,29,653,'varchar',2,1,1,'WF_FlowNode','NotifyMode','NotifyMode','',0,0,1,80,80,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='NotifyMode',[FieldByname]='NotifyMode',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=80,[Precision]=80,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=30 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=31  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17740,31,29,653,'varchar',2,1,1,'WF_FlowNode','NotifyType','NotifyType','',0,0,1,80,80,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='NotifyType',[FieldByname]='NotifyType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=80,[Precision]=80,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=31 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=32  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17741,32,29,653,'varchar',2,1,1,'WF_FlowNode','NotifyContent','NotifyContent','',0,0,1,300,300,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='NotifyContent',[FieldByname]='NotifyContent',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=300,[Precision]=300,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=32 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=33  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17742,33,29,653,'int',1,1,1,'WF_FlowNode','TurnFlowId','TurnFlowId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='TurnFlowId',[FieldByname]='TurnFlowId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=33 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=34  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17743,34,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsItem','PrcsItem','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsItem',[FieldByname]='PrcsItem',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=34 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=35  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17744,35,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsItem2','PrcsItem2','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsItem2',[FieldByname]='PrcsItem2',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=35 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=36  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17745,36,29,653,'varchar',2,1,1,'WF_FlowNode','Json_Validate','Json_Validate','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='Json_Validate',[FieldByname]='Json_Validate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=36 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=37  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17746,37,29,653,'int',1,1,1,'WF_FlowNode','EntId','EntId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='EntId',[FieldByname]='EntId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=37 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=38  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17747,38,29,653,'varchar',2,1,1,'WF_FlowNode','PositionDept','PositionDept','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PositionDept',[FieldByname]='PositionDept',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=38 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=39  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17748,39,29,653,'varchar',2,1,1,'WF_FlowNode','PositionDeptNames','PositionDeptNames','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PositionDeptNames',[FieldByname]='PositionDeptNames',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=39 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=40  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17749,40,29,653,'tinyint',23,1,1,'WF_FlowNode','CountersignType','CountersignType','',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='CountersignType',[FieldByname]='CountersignType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=40 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=41  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17750,41,29,653,'tinyint',23,1,1,'WF_FlowNode','CountersignVisType','CountersignVisType','',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='CountersignVisType',[FieldByname]='CountersignVisType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=41 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=42  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17751,42,29,653,'tinyint',23,1,1,'WF_FlowNode','DeliverType','DeliverType','',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='DeliverType',[FieldByname]='DeliverType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=42 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=43  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17752,43,29,653,'bit',4,1,1,'WF_FlowNode','CanCircularize','CanCircularize','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='CanCircularize',[FieldByname]='CanCircularize',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=43 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=44  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17753,44,29,653,'tinyint',23,1,1,'WF_FlowNode','MainUserType','MainUserType','0',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='MainUserType',[FieldByname]='MainUserType',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=44 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=45  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17754,45,29,653,'tinyint',23,1,1,'WF_FlowNode','FilterUserType','FilterUserType','0',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='FilterUserType',[FieldByname]='FilterUserType',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=45 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=46  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17755,46,29,653,'tinyint',23,1,1,'WF_FlowNode','AutoSelectUserType','AutoSelectUserType','0',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='AutoSelectUserType',[FieldByname]='AutoSelectUserType',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=46 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=47  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17756,47,29,653,'tinyint',23,1,1,'WF_FlowNode','RebutType','RebutType','0',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='RebutType',[FieldByname]='RebutType',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=47 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=48  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17757,48,29,653,'int',1,1,1,'WF_FlowNode','LimitHour','LimitHour','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='LimitHour',[FieldByname]='LimitHour',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=48 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=49  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17758,49,29,653,'tinyint',23,1,1,'WF_FlowNode','CountTimeType','CountTimeType','0',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='CountTimeType',[FieldByname]='CountTimeType',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=49 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=50  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17759,50,29,653,'bit',4,1,1,'WF_FlowNode','CanSetLimitHour','CanSetLimitHour','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='CanSetLimitHour',[FieldByname]='CanSetLimitHour',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=50 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=51  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17760,51,29,653,'bit',4,1,1,'WF_FlowNode','OnlyCountWorkTime','OnlyCountWorkTime','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='OnlyCountWorkTime',[FieldByname]='OnlyCountWorkTime',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=51 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 



Delete from [Dcx_EntityPrivilege]  where [EntId]=2068

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2068  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11102,3309,2068,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=3309,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2068  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2068

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2068  and  [ModuleTypeId]=18  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20487,29,3309,2068,37,18,16,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3309,[TemplateId]=37,[ModuleId]=16,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2068  and  [ModuleTypeId]=18 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_DefaultForm_Run]  where [EntId]=2068

--Dcx_DefaultForm_Run
      if (select count(1) from [Dcx_DefaultForm_Run] where  [EntId]=2068  )<1 
      begin 
           Insert into [Dcx_DefaultForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[OtherMsg],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('779e062d-e7bc-1045-db52-58516dee3a6d','归档与触发器',2068,-1,'','',0,'<script type="text/javascript" language="JavaScript" > 
function SetTriggerBefore(obj){
var Value=$(obj).val();
if(Value=="-2")
   Value="0";
var Text=$(obj).find("option:selected").text();
var str="<$"+Value+":Begin$>\n";
str+="--从节点<"+Text+">流入时 \n";
str+="\n</$"+Value+":End$>\n\n";
str+=GetCtrlValue_ByFieldName(2068,"DefaultF_","TriggerBefore");
SetCtrlValue_ByFieldName(2068,"DefaultF_","TriggerBefore",null,false,str,true);

} 

function SetTriggerAfter(obj){
var Value=$(obj).val();
if(Value=="-2")
   Value="0";
var Text=$(obj).find("option:selected").text();
var str="<$"+Value+":Begin$>\n";
str+="--流出到<"+Text+">节点时 \n";
str+="\n</$"+Value+":End$>\n\n";
str+=GetCtrlValue_ByFieldName(2068,"DefaultF_","TriggerAfter");
SetCtrlValue_ByFieldName(2068,"DefaultF_","TriggerAfter",null,false,str,true);

} 
</script>','','DcxRun.DefaultF_2068= {"MenuId":3309,"MEntId":2068,"EntName":"归档与触发器","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2068":{"EntId":2068,"KeyFieldValue":"","DBTableName":"","KeyField":"NodeId","KeydtId":2,"JoinKeyField":"NodeId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":9,"Ent":[{"EntId":2068,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,200}$","err":"限制0-200个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":2,"Vld":[]},{"FldId":3,"Vld":[]},{"FldId":4,"Vld":[]},{"FldId":5,"Vld":[]},{"FldId":6,"Vld":[]},{"FldId":7,"Vld":[]},{"FldId":8,"Vld":[]},{"FldId":9,"Vld":[{"Id":3,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":4,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":10,"Vld":[{"Id":6,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":7,"vlId":5,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"此值已存在,请重新输入","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":8,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":9,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]}]}]};
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2068.EntMsg.E2068.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"WF_FlowNode","EntId":2068,"KeyField":"NodeId","MKeyField":"NodeId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"PigeonholedSQL":{"DtId":2,"DB":1,"CId":2,"FL":0},"TriggerBefore":{"DtId":2,"DB":1,"CId":2,"FL":0},"TriggerAfter":{"DtId":2,"DB":1,"CId":2,"FL":0},"CanPigeonhole":{"DtId":4,"DB":1,"CId":13,"FL":1},"FlowId":{"DtId":1,"DB":1,"CId":1,"FL":4}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2068.EntMsg.E2068.GetDataRowModel=function()
{
    return {"PigeonholedSQL":"","TriggerBefore":"","TriggerAfter":"","CanPigeonhole":false,"FlowId":-1,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"NodeId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_DefaultF_2068_46(obj,curFieldName){
 var EntId=2068;
 var FldId=7;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''BeforeNode'';
 var $formContainer=DcxForm.GetHtmlContainer(2068,''DefaultF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(2068,''DefaultF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"BeforeNode\",FldId:"+FldId+",EntId:2068,CtrlPrex:\"DefaultF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"NodeId\",CtrlTypeId:3,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''FlowId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2068,''DefaultF_'',''FlowId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@FlowId}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d2068_BeforeNode");
$AcceptObj.html(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_DefaultF_2068_47(obj,curFieldName){
 var EntId=2068;
 var FldId=8;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''NextNode'';
 var $formContainer=DcxForm.GetHtmlContainer(2068,''DefaultF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(2068,''DefaultF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"NextNode\",FldId:"+FldId+",EntId:2068,CtrlPrex:\"DefaultF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"NodeId\",CtrlTypeId:3,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''NodeId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2068,''DefaultF_'',''NodeId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@NodeId}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d2068_NextNode");
$AcceptObj.html(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2068.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2068,''DefaultF_'',buildNew,closeDlg);

}','<$2068$>select [NodeName],[FlowId],[NodeId],[TriggerBefore],[TriggerAfter],[PigeonholedSQL],[CanPigeonhole] from WF_FlowNode where [NodeId]=''{$keyfieldvalue}''</$2068$>',10,'2068*NodeId*2*NodeId*2*WF_FlowNode*归档与触发器','','','',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-16 15:15:59',3,'admin','2013-10-2 18:34:15',1)
      end
      else 
      begin 
           update [Dcx_DefaultForm_Run] set [FormId]='779e062d-e7bc-1045-db52-58516dee3a6d',[FormName]='归档与触发器',[ModuleId]=-1,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script type="text/javascript" language="JavaScript" > 
function SetTriggerBefore(obj){
var Value=$(obj).val();
if(Value=="-2")
   Value="0";
var Text=$(obj).find("option:selected").text();
var str="<$"+Value+":Begin$>\n";
str+="--从节点<"+Text+">流入时 \n";
str+="\n</$"+Value+":End$>\n\n";
str+=GetCtrlValue_ByFieldName(2068,"DefaultF_","TriggerBefore");
SetCtrlValue_ByFieldName(2068,"DefaultF_","TriggerBefore",null,false,str,true);

} 

function SetTriggerAfter(obj){
var Value=$(obj).val();
if(Value=="-2")
   Value="0";
var Text=$(obj).find("option:selected").text();
var str="<$"+Value+":Begin$>\n";
str+="--流出到<"+Text+">节点时 \n";
str+="\n</$"+Value+":End$>\n\n";
str+=GetCtrlValue_ByFieldName(2068,"DefaultF_","TriggerAfter");
SetCtrlValue_ByFieldName(2068,"DefaultF_","TriggerAfter",null,false,str,true);

} 
</script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.DefaultF_2068= {"MenuId":3309,"MEntId":2068,"EntName":"归档与触发器","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2068":{"EntId":2068,"KeyFieldValue":"","DBTableName":"","KeyField":"NodeId","KeydtId":2,"JoinKeyField":"NodeId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":9,"Ent":[{"EntId":2068,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,200}$","err":"限制0-200个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":2,"Vld":[]},{"FldId":3,"Vld":[]},{"FldId":4,"Vld":[]},{"FldId":5,"Vld":[]},{"FldId":6,"Vld":[]},{"FldId":7,"Vld":[]},{"FldId":8,"Vld":[]},{"FldId":9,"Vld":[{"Id":3,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":4,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":10,"Vld":[{"Id":6,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":7,"vlId":5,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"此值已存在,请重新输入","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":8,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":9,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]}]}]};
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2068.EntMsg.E2068.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"WF_FlowNode","EntId":2068,"KeyField":"NodeId","MKeyField":"NodeId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"PigeonholedSQL":{"DtId":2,"DB":1,"CId":2,"FL":0},"TriggerBefore":{"DtId":2,"DB":1,"CId":2,"FL":0},"TriggerAfter":{"DtId":2,"DB":1,"CId":2,"FL":0},"CanPigeonhole":{"DtId":4,"DB":1,"CId":13,"FL":1},"FlowId":{"DtId":1,"DB":1,"CId":1,"FL":4}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2068.EntMsg.E2068.GetDataRowModel=function()
{
    return {"PigeonholedSQL":"","TriggerBefore":"","TriggerAfter":"","CanPigeonhole":false,"FlowId":-1,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"NodeId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_DefaultF_2068_46(obj,curFieldName){
 var EntId=2068;
 var FldId=7;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''BeforeNode'';
 var $formContainer=DcxForm.GetHtmlContainer(2068,''DefaultF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(2068,''DefaultF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"BeforeNode\",FldId:"+FldId+",EntId:2068,CtrlPrex:\"DefaultF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"NodeId\",CtrlTypeId:3,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''FlowId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2068,''DefaultF_'',''FlowId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@FlowId}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d2068_BeforeNode");
$AcceptObj.html(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_DefaultF_2068_47(obj,curFieldName){
 var EntId=2068;
 var FldId=8;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''NextNode'';
 var $formContainer=DcxForm.GetHtmlContainer(2068,''DefaultF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(2068,''DefaultF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"NextNode\",FldId:"+FldId+",EntId:2068,CtrlPrex:\"DefaultF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"NodeId\",CtrlTypeId:3,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''NodeId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2068,''DefaultF_'',''NodeId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@NodeId}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d2068_NextNode");
$AcceptObj.html(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2068.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2068,''DefaultF_'',buildNew,closeDlg);

}',[LoadingSql]='<$2068$>select [NodeName],[FlowId],[NodeId],[TriggerBefore],[TriggerAfter],[PigeonholedSQL],[CanPigeonhole] from WF_FlowNode where [NodeId]=''{$keyfieldvalue}''</$2068$>',[PageSize]=10,[OtherMsg]='2068*NodeId*2*NodeId*2*WF_FlowNode*归档与触发器',[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-16 15:15:59',[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-2 18:34:15',[AccountId]=1 where  [EntId]=2068 
      end




--Dcx_DefaultFormField_Run
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='476d6925-ca41-1ef7-2d9a-f426b882a97e'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'476d6925-ca41-1ef7-2d9a-f426b882a97e',2068,2068,'00000000-0000-0000-0000-000000000000',1,'NodeName',2,2,3,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','<div class="defaultform" ctrlprex="DefaultF_" entid="2068">
	<div>
		<ul class="ul-title" groupid="1" isgroup="1" isrple="1">
			<li areaid="7" class="li-area-title" scroll="no" style="position: static;">
				<div class="form-title5" id="div_head1">
					<span class="title-name" id="h2_title">标准表单</span></div>
			</li>
			<li areaid="8" class="li-area1" scroll="no" style="width: 94px; height: 36px; position: static;"><a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关 闭</span> </a></li>
			<li areaid="9" class="li-area1" scroll="no" style="width: 94px; height: 36px; position: static;"><a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" onclick="javascript:DcxRun.DefaultF_2068.SubmitForm(false);"><span class="op_bt_i">保 存</span> </a></li>
			
		</ul>
	</div>
	<div class="frame-div">
		<ul class="ul-group" groupid="2" isgroup="1" isrple="1">
			<li areaid="11" class="li-area  h55" scroll="no" style="width: 700px; height: 35px; display: none; position: static;"><label class="area-title pad16" fldid="1" istitle="1">节点名称</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2068_NodeName"   type="text" class="form-txt"  style="width:350px;" onblur ="javascript:if(!DcxVld.Validate(this,2068,''DefaultF_'',2068,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2068,''DefaultF_'',2068);" EntId="2068" IsField=1 DBField=1 IsPost=0 FieldName="NodeName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2068,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=1,[Form_EntId]=2068,[EntId]=2068,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[FieldName]='NodeName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=3,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="defaultform" ctrlprex="DefaultF_" entid="2068">
	<div>
		<ul class="ul-title" groupid="1" isgroup="1" isrple="1">
			<li areaid="7" class="li-area-title" scroll="no" style="position: static;">
				<div class="form-title5" id="div_head1">
					<span class="title-name" id="h2_title">标准表单</span></div>
			</li>
			<li areaid="8" class="li-area1" scroll="no" style="width: 94px; height: 36px; position: static;"><a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关 闭</span> </a></li>
			<li areaid="9" class="li-area1" scroll="no" style="width: 94px; height: 36px; position: static;"><a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" onclick="javascript:DcxRun.DefaultF_2068.SubmitForm(false);"><span class="op_bt_i">保 存</span> </a></li>
			
		</ul>
	</div>
	<div class="frame-div">
		<ul class="ul-group" groupid="2" isgroup="1" isrple="1">
			<li areaid="11" class="li-area  h55" scroll="no" style="width: 700px; height: 35px; display: none; position: static;"><label class="area-title pad16" fldid="1" istitle="1">节点名称</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2068_NodeName"   type="text" class="form-txt"  style="width:350px;" onblur ="javascript:if(!DcxVld.Validate(this,2068,''DefaultF_'',2068,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2068,''DefaultF_'',2068);" EntId="2068" IsField=1 DBField=1 IsPost=0 FieldName="NodeName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2068,' where  [FldUId]='476d6925-ca41-1ef7-2d9a-f426b882a97e' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='3236ce49-c883-03de-b247-d7008f7c0106'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'3236ce49-c883-03de-b247-d7008f7c0106',2068,2068,'00000000-0000-0000-0000-000000000000',2,'FlowId',1,1,2,'FlowId',6,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
 <span class="form-ctr" isfcontain="1">','','','','<input  id="d2068_FlowId"   type="text" class="form-txt hide"  style="width:40px;display:none;" onchange ="javascript:GetLinkCtrlData_DefaultF_2068_46(this,''FlowId'');" onblur ="javascript:if(!DcxVld.Validate(this,2068,''DefaultF_'',2068,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2068,''DefaultF_'',2068);" EntId="2068" IsField=1 DBField=1 IsPost=1 FieldName="FlowId" dType="1" Vtp="6" RDT="1" Isc="1" RId="1" CId="1" FId="9" vlk=0    CBack=1  value="','"/>','',-1,-1,-1,-1,0,'2068,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=9,[Form_EntId]=2068,[EntId]=2068,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[FieldName]='FlowId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=2,[DefaultValue]='FlowId',[ValueType]=6,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
 <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2068_FlowId"   type="text" class="form-txt hide"  style="width:40px;display:none;" onchange ="javascript:GetLinkCtrlData_DefaultF_2068_46(this,''FlowId'');" onblur ="javascript:if(!DcxVld.Validate(this,2068,''DefaultF_'',2068,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2068,''DefaultF_'',2068);" EntId="2068" IsField=1 DBField=1 IsPost=1 FieldName="FlowId" dType="1" Vtp="6" RDT="1" Isc="1" RId="1" CId="1" FId="9" vlk=0    CBack=1  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2068,' where  [FldUId]='3236ce49-c883-03de-b247-d7008f7c0106' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='5d653367-ddb3-2fe0-7604-a0dc98440516'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'5d653367-ddb3-2fe0-7604-a0dc98440516',2068,2068,'00000000-0000-0000-0000-000000000000',3,'NodeId',1,1,1,'NodeId',6,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
 <span class="form-ctr" isfcontain="1">','','','','<input  id="d2068_NodeId"   type="text" class="form-txt"  style="width:200px;" onchange ="javascript:GetLinkCtrlData_DefaultF_2068_47(this,''NodeId'');" onblur ="javascript:if(!DcxVld.Validate(this,2068,''DefaultF_'',2068,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2068,''DefaultF_'',2068);" EntId="2068" IsField=1 DBField=1 IsPost=0 FieldName="NodeId" dType="1" Vtp="6" RDT="1" Isc="1" RId="1" CId="1" FId="10" vlk=0    CBack=1  value="','"/>','',2,11,-1,-1,0,'2068,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=10,[Form_EntId]=2068,[EntId]=2068,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[FieldName]='NodeId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=1,[DefaultValue]='NodeId',[ValueType]=6,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
 <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2068_NodeId"   type="text" class="form-txt"  style="width:200px;" onchange ="javascript:GetLinkCtrlData_DefaultF_2068_47(this,''NodeId'');" onblur ="javascript:if(!DcxVld.Validate(this,2068,''DefaultF_'',2068,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2068,''DefaultF_'',2068);" EntId="2068" IsField=1 DBField=1 IsPost=0 FieldName="NodeId" dType="1" Vtp="6" RDT="1" Isc="1" RId="1" CId="1" FId="10" vlk=0    CBack=1  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=2,[RowIndex]=11,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2068,' where  [FldUId]='5d653367-ddb3-2fe0-7604-a0dc98440516' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='7f8bb36e-6fca-41b9-dfbd-18e12aa8a4e7'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'7f8bb36e-6fca-41b9-dfbd-18e12aa8a4e7',2068,2068,'00000000-0000-0000-0000-000000000000',4,'TriggerBefore',2,2,17,'',5,1,1,0,2,1,-1,-1,1,0,'','','','','</span>
</div>
</li>
			<li areaid="15" class="li-area  h55" scroll="no" style="width: 700px; height: 256px; position: static;"><label class="area-title pad16" fldid="4" istitle="1">流入本节点时的Sql事务</label>
<div class="field-content pad17">
	<table>
		<tbody>
			<tr>
				<td colspan="3">
					<span class="form-ctr" isfcontain="1">','','','','<textarea  id="d2068_TriggerBefore" class="form-txts"  style="width:480px;height:200px;" EntId="2068" IsField=1 DBField=1 IsPost=1 FieldName="TriggerBefore" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="4" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'2068,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=4,[Form_EntId]=2068,[EntId]=2068,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=4,[FieldName]='TriggerBefore',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=17,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
			<li areaid="15" class="li-area  h55" scroll="no" style="width: 700px; height: 256px; position: static;"><label class="area-title pad16" fldid="4" istitle="1">流入本节点时的Sql事务</label>
<div class="field-content pad17">
	<table>
		<tbody>
			<tr>
				<td colspan="3">
					<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d2068_TriggerBefore" class="form-txts"  style="width:480px;height:200px;" EntId="2068" IsField=1 DBField=1 IsPost=1 FieldName="TriggerBefore" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="4" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2068,' where  [FldUId]='7f8bb36e-6fca-41b9-dfbd-18e12aa8a4e7' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='465f787b-f6a0-ecd7-6653-f65c51686db7'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'465f787b-f6a0-ecd7-6653-f65c51686db7',2068,2068,'00000000-0000-0000-0000-000000000000',5,'BeforeNode',2,2,-1,'select ''从哪里流入本节点？'',0 union SELECT ltrim(rtrim([NodeName])) as NodeName,[NodeId]  FROM [WF_FlowNode] where [FlowId]={@FlowId}',2,1,1,0,3,3,-1,-1,0,0,'','','FlowId,','','</span>

					<div class="form-vld" iserr="1">
						&nbsp;</div>
				</td>
			</tr>
			<tr>
				<td>
					<a class="list-bt-add" href="javascript:void(0);" onclick="javascript:InsertSql_TableName(1,this);" title="使用Sql设计器">使用Sql设计器</a></td>
				<td>
					<a class="list-bt-other" href="javascript:void(0);" onclick="javascript:InsertSql_Field(1,this);" title="清空">清空</a></td>
				<td>
					<span class="form-ctr" isfcontain="1">','','','','<select id="d2068_BeforeNode" name="d2068_BeforeNode" class="form-select"  onchange ="javascript:SetTriggerBefore(this);" EntId="2068" IsField=1 DBField=0 IsPost=0 FieldName="BeforeNode" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="3" FId="7" vlk=0    style="width:200px;">','</select>','',2,15,-1,-1,0,'2068,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=7,[Form_EntId]=2068,[EntId]=2068,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=5,[FieldName]='BeforeNode',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='select ''从哪里流入本节点？'',0 union SELECT ltrim(rtrim([NodeName])) as NodeName,[NodeId]  FROM [WF_FlowNode] where [FlowId]={@FlowId}',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='FlowId,',[SystemVariables]='',[BeforeHtml]='</span>

					<div class="form-vld" iserr="1">
						&nbsp;</div>
				</td>
			</tr>
			<tr>
				<td>
					<a class="list-bt-add" href="javascript:void(0);" onclick="javascript:InsertSql_TableName(1,this);" title="使用Sql设计器">使用Sql设计器</a></td>
				<td>
					<a class="list-bt-other" href="javascript:void(0);" onclick="javascript:InsertSql_Field(1,this);" title="清空">清空</a></td>
				<td>
					<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d2068_BeforeNode" name="d2068_BeforeNode" class="form-select"  onchange ="javascript:SetTriggerBefore(this);" EntId="2068" IsField=1 DBField=0 IsPost=0 FieldName="BeforeNode" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="3" FId="7" vlk=0    style="width:200px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[TableIndex]=2,[RowIndex]=15,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2068,' where  [FldUId]='465f787b-f6a0-ecd7-6653-f65c51686db7' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='f4bbe227-2fe3-7115-9d00-b17691a72719'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'f4bbe227-2fe3-7115-9d00-b17691a72719',2068,2068,'00000000-0000-0000-0000-000000000000',6,'TriggerAfter',2,2,18,'',5,1,1,0,2,1,-1,-1,1,0,'','','','','</span>
</td>
			</tr>
		</tbody>
	</table>
</div>
<br>
</li><li areaid="14" class="li-area  h55" scroll="no" style="width: 700px; height: 256px; position: static;"><label class="area-title pad16" fldid="5" istitle="1">流出本节点时的Sql事务</label>
<div class="field-content pad17">
	<table>
		<tbody>
			<tr>
				<td colspan="3">
					<span class="form-ctr" isfcontain="1">','','','','<textarea  id="d2068_TriggerAfter" class="form-txts"  style="width:480px;height:200px;" EntId="2068" IsField=1 DBField=1 IsPost=1 FieldName="TriggerAfter" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="5" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'2068,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=5,[Form_EntId]=2068,[EntId]=2068,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=6,[FieldName]='TriggerAfter',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=18,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</td>
			</tr>
		</tbody>
	</table>
</div>
<br>
</li><li areaid="14" class="li-area  h55" scroll="no" style="width: 700px; height: 256px; position: static;"><label class="area-title pad16" fldid="5" istitle="1">流出本节点时的Sql事务</label>
<div class="field-content pad17">
	<table>
		<tbody>
			<tr>
				<td colspan="3">
					<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d2068_TriggerAfter" class="form-txts"  style="width:480px;height:200px;" EntId="2068" IsField=1 DBField=1 IsPost=1 FieldName="TriggerAfter" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="5" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2068,' where  [FldUId]='f4bbe227-2fe3-7115-9d00-b17691a72719' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='1833e029-5fbf-0958-7e48-a5bb168b4c0e'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'1833e029-5fbf-0958-7e48-a5bb168b4c0e',2068,2068,'00000000-0000-0000-0000-000000000000',7,'NextNode',2,2,-1,'declare @PrcsTo varchar(1000)
select @PrcsTo=B.PrcsTo from WF_FlowNode as B where B.NodeId={@NodeId}
set @PrcsTo='',''+isnull(@PrcsTo,'''')+'',''  
if  PATINDEX(''%-1%'', @PrcsTo)>0
select * from (select ''流出到哪个节点时？'' as NodeName,-2 as NodeId union 
SELECT ltrim(rtrim(A.[NodeName])) as NodeName, A.[NodeId]  FROM [WF_FlowNode] as A where   @PrcsTo like ''%,''+cast(A.[NodeId] as varchar(20))+'',%''   union select ''结束'' as NodeName,-1 as NodeId )  as A order by NodeId 
else 
select * from (select ''流出到哪个节点时？'' as NodeName,0 as NodeId  union 
SELECT ltrim(rtrim(A.[NodeName])) as NodeName, A.[NodeId]  FROM [WF_FlowNode] as A where   @PrcsTo like ''%,''+cast(A.[NodeId] as varchar(20))+'',%'')  as A  order by NodeId',2,1,1,0,3,3,-1,-1,0,0,'','','NodeId,','','</span>
</td>
			</tr>
			<tr>
				<td>
					<a class="list-bt-add" href="javascript:void(0);" onclick="javascript:InsertSql_TableName(1,this);" title="使用Sql设计器">使用Sql设计器</a></td>
				<td>
					<a class="list-bt-other" href="javascript:void(0);" onclick="javascript:InsertSql_Field(1,this);" title="清空">清空</a></td>
				<td>
	 
			<span class="form-ctr" isfcontain="1">','','','','<select id="d2068_NextNode" name="d2068_NextNode" class="form-select hide"  onchange ="javascript:SetTriggerAfter(this);" EntId="2068" IsField=1 DBField=0 IsPost=0 FieldName="NextNode" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="3" FId="8" vlk=0    style="width:200px;">','</select>','',2,14,-1,-1,0,'2068,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=8,[Form_EntId]=2068,[EntId]=2068,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=7,[FieldName]='NextNode',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='declare @PrcsTo varchar(1000)
select @PrcsTo=B.PrcsTo from WF_FlowNode as B where B.NodeId={@NodeId}
set @PrcsTo='',''+isnull(@PrcsTo,'''')+'',''  
if  PATINDEX(''%-1%'', @PrcsTo)>0
select * from (select ''流出到哪个节点时？'' as NodeName,-2 as NodeId union 
SELECT ltrim(rtrim(A.[NodeName])) as NodeName, A.[NodeId]  FROM [WF_FlowNode] as A where   @PrcsTo like ''%,''+cast(A.[NodeId] as varchar(20))+'',%''   union select ''结束'' as NodeName,-1 as NodeId )  as A order by NodeId 
else 
select * from (select ''流出到哪个节点时？'' as NodeName,0 as NodeId  union 
SELECT ltrim(rtrim(A.[NodeName])) as NodeName, A.[NodeId]  FROM [WF_FlowNode] as A where   @PrcsTo like ''%,''+cast(A.[NodeId] as varchar(20))+'',%'')  as A  order by NodeId',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='NodeId,',[SystemVariables]='',[BeforeHtml]='</span>
</td>
			</tr>
			<tr>
				<td>
					<a class="list-bt-add" href="javascript:void(0);" onclick="javascript:InsertSql_TableName(1,this);" title="使用Sql设计器">使用Sql设计器</a></td>
				<td>
					<a class="list-bt-other" href="javascript:void(0);" onclick="javascript:InsertSql_Field(1,this);" title="清空">清空</a></td>
				<td>
	 
			<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d2068_NextNode" name="d2068_NextNode" class="form-select hide"  onchange ="javascript:SetTriggerAfter(this);" EntId="2068" IsField=1 DBField=0 IsPost=0 FieldName="NextNode" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="3" FId="8" vlk=0    style="width:200px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[TableIndex]=2,[RowIndex]=14,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2068,' where  [FldUId]='1833e029-5fbf-0958-7e48-a5bb168b4c0e' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='9554adc8-3620-395d-d20a-763f0bea6d20'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'9554adc8-3620-395d-d20a-763f0bea6d20',2068,2068,'00000000-0000-0000-0000-000000000000',8,'PigeonholedSQL',2,2,21,'',5,1,1,0,2,1,-1,-1,1,0,'','','','','</span>
</td>
			</tr>
		</tbody>
	</table>
</div></li><li areaid="16" class="li-area  h55" scroll="no" style="width: 700px; height: 256px; position: static;"><label class="area-title pad16" fldid="3" istitle="1">归档时的Sql事务</label>
<div class="field-content pad17">
	<table>
		<tbody>
			<tr>
				<td colspan="3">
					<span class="form-ctr" isfcontain="1">','','','','<textarea  id="d2068_PigeonholedSQL" class="form-txts"  style="width:480px;height:200px;" EntId="2068" IsField=1 DBField=1 IsPost=1 FieldName="PigeonholedSQL" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="3" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'2068,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=3,[Form_EntId]=2068,[EntId]=2068,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=8,[FieldName]='PigeonholedSQL',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=21,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</td>
			</tr>
		</tbody>
	</table>
</div></li><li areaid="16" class="li-area  h55" scroll="no" style="width: 700px; height: 256px; position: static;"><label class="area-title pad16" fldid="3" istitle="1">归档时的Sql事务</label>
<div class="field-content pad17">
	<table>
		<tbody>
			<tr>
				<td colspan="3">
					<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d2068_PigeonholedSQL" class="form-txts"  style="width:480px;height:200px;" EntId="2068" IsField=1 DBField=1 IsPost=1 FieldName="PigeonholedSQL" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="3" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2068,' where  [FldUId]='9554adc8-3620-395d-d20a-763f0bea6d20' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='5cf52418-e043-1428-c427-2206363834ba'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'5cf52418-e043-1428-c427-2206363834ba',2068,2068,'00000000-0000-0000-0000-000000000000',9,'CanPigeonhole',4,4,20,'可归档/true/false/0',5,6,1,0,13,1,-1,-1,1,0,'','','','','</span>
</td>
			</tr>
			<tr>
				<td style="width: 160px;">
					<a class="list-bt-add" href="javascript:void(0);" onclick="javascript:InsertSql_TableName(1,this);" title="使用Sql设计器">使用Sql设计器</a></td>
				<td>
					<a class="list-bt-other" href="javascript:void(0);" onclick="javascript:InsertSql_Field(1,this);" title="清空">清空</a></td>
				<td>
					<span class="form-ctr" isfcontain="1">','</span>
</td>
			</tr>
		</tbody>
	</table>
</div>
<br>
</li><li areaid="17" class="li-area  h55" scroll="no" style="width: 700px; height: 55px; display: none; position: static;"><label class="area-title pad16" fldid="-1" istitle="1">请编辑..</label>
<div class="field-content pad17">
	请编辑..</div>
</li>
		</ul>
	</div>
</div>','','','<div class="form-radio" ><span class="form-radio-item" ><input id="d2068_CanPigeonhole"  name="d2068_CanPigeonhole" type="checkbox" class="form-ckb" yesv=''true'' nov=''false''  EntId="2068" IsField=1 DBField=1 IsPost=1 FieldName="CanPigeonhole" dType="4" Vtp="5" RDT="4" Isc="1" RId="6" CId="13" FId="6" vlk=0','/><label for="d2068_CanPigeonhole">可归档</label></span></div>','',-1,-1,-1,-1,0,'2068,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=6,[Form_EntId]=2068,[EntId]=2068,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=9,[FieldName]='CanPigeonhole',[FieldDataTypeId]=4,[RunDataTypeId]=4,[DBFieldId]=20,[DefaultValue]='可归档/true/false/0',[ValueType]=5,[RunValueType]=6,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=13,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</td>
			</tr>
			<tr>
				<td style="width: 160px;">
					<a class="list-bt-add" href="javascript:void(0);" onclick="javascript:InsertSql_TableName(1,this);" title="使用Sql设计器">使用Sql设计器</a></td>
				<td>
					<a class="list-bt-other" href="javascript:void(0);" onclick="javascript:InsertSql_Field(1,this);" title="清空">清空</a></td>
				<td>
					<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
</td>
			</tr>
		</tbody>
	</table>
</div>
<br>
</li><li areaid="17" class="li-area  h55" scroll="no" style="width: 700px; height: 55px; display: none; position: static;"><label class="area-title pad16" fldid="-1" istitle="1">请编辑..</label>
<div class="field-content pad17">
	请编辑..</div>
</li>
		</ul>
	</div>
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-radio" ><span class="form-radio-item" ><input id="d2068_CanPigeonhole"  name="d2068_CanPigeonhole" type="checkbox" class="form-ckb" yesv=''true'' nov=''false''  EntId="2068" IsField=1 DBField=1 IsPost=1 FieldName="CanPigeonhole" dType="4" Vtp="5" RDT="4" Isc="1" RId="6" CId="13" FId="6" vlk=0',[CtrlbackHtml]='/><label for="d2068_CanPigeonhole">可归档</label></span></div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2068,' where  [FldUId]='5cf52418-e043-1428-c427-2206363834ba' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=653

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=653  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(653,null,'WF_FlowNode','WF_FlowNode',1,0,0,0,0,0,29,1,3,'admin','2013-12-15 17:32:35',3,'admin','2013-12-15 17:32:35',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='WF_FlowNode',[DBTableByName]='WF_FlowNode',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=29,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:35',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:35',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=653 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17710,1,29,653,'int',1,1,1,'WF_FlowNode','NodeId','NodeId','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='NodeId',[FieldByname]='NodeId',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17711,2,29,653,'int',1,1,1,'WF_FlowNode','FlowId','FlowId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='FlowId',[FieldByname]='FlowId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17712,3,29,653,'varchar',2,1,1,'WF_FlowNode','NodeName','NodeName','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='NodeName',[FieldByname]='NodeName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17713,4,29,653,'int',1,1,1,'WF_FlowNode','Step','Step','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='Step',[FieldByname]='Step',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17714,5,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsUsers','PrcsUsers','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsUsers',[FieldByname]='PrcsUsers',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17715,6,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsDepts','PrcsDepts','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsDepts',[FieldByname]='PrcsDepts',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17716,7,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsPositions','PrcsPositions','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsPositions',[FieldByname]='PrcsPositions',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17717,8,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsRoles','PrcsRoles','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsRoles',[FieldByname]='PrcsRoles',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17718,9,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsTo','PrcsTo','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsTo',[FieldByname]='PrcsTo',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17719,10,29,653,'bit',4,1,1,'WF_FlowNode','AllowLastNodeBoss','AllowLastNodeBoss','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='AllowLastNodeBoss',[FieldByname]='AllowLastNodeBoss',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17720,11,29,653,'bit',4,1,1,'WF_FlowNode','AllowWorkCreator','AllowWorkCreator','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='AllowWorkCreator',[FieldByname]='AllowWorkCreator',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17721,12,29,653,'varchar',2,1,1,'WF_FlowNode','NextNames','NextNames','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='NextNames',[FieldByname]='NextNames',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17722,13,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsUserNames','PrcsUserNames','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsUserNames',[FieldByname]='PrcsUserNames',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17723,14,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsDeptNames','PrcsDeptNames','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsDeptNames',[FieldByname]='PrcsDeptNames',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17724,15,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsRoleNames','PrcsRoleNames','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsRoleNames',[FieldByname]='PrcsRoleNames',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17725,16,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsPositionNames','PrcsPositionNames','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsPositionNames',[FieldByname]='PrcsPositionNames',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17726,17,29,653,'varchar',2,1,1,'WF_FlowNode','TriggerBefore','TriggerBefore','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='TriggerBefore',[FieldByname]='TriggerBefore',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17727,18,29,653,'varchar',2,1,1,'WF_FlowNode','TriggerAfter','TriggerAfter','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='TriggerAfter',[FieldByname]='TriggerAfter',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17728,19,29,653,'bit',4,1,1,'WF_FlowNode','CanReject','CanReject','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='CanReject',[FieldByname]='CanReject',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17729,20,29,653,'bit',4,1,1,'WF_FlowNode','CanPigeonhole','CanPigeonhole','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='CanPigeonhole',[FieldByname]='CanPigeonhole',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17730,21,29,653,'varchar',2,1,1,'WF_FlowNode','PigeonholedSQL','PigeonholedSQL','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PigeonholedSQL',[FieldByname]='PigeonholedSQL',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17731,22,29,653,'int',1,1,1,'WF_FlowNode','Pointx','Pointx','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='Pointx',[FieldByname]='Pointx',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17732,23,29,653,'int',1,1,1,'WF_FlowNode','Pointy','Pointy','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='Pointy',[FieldByname]='Pointy',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17733,24,29,653,'int',1,1,1,'WF_FlowNode','Width','Width','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='Width',[FieldByname]='Width',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17734,25,29,653,'int',1,1,1,'WF_FlowNode','Height','Height','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='Height',[FieldByname]='Height',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17735,26,29,653,'tinyint',23,1,1,'WF_FlowNode','NodeType','NodeType','',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='NodeType',[FieldByname]='NodeType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=26 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=27  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17736,27,29,653,'tinyint',23,1,1,'WF_FlowNode','ApproveType','ApproveType','',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='ApproveType',[FieldByname]='ApproveType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=27 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=28  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17737,28,29,653,'tinyint',23,1,1,'WF_FlowNode','ToNextType','ToNextType','',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='ToNextType',[FieldByname]='ToNextType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=28 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=29  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17738,29,29,653,'tinyint',23,1,1,'WF_FlowNode','ArriveType','ArriveType','',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='ArriveType',[FieldByname]='ArriveType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=29 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=30  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17739,30,29,653,'varchar',2,1,1,'WF_FlowNode','NotifyMode','NotifyMode','',0,0,1,80,80,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='NotifyMode',[FieldByname]='NotifyMode',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=80,[Precision]=80,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=30 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=31  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17740,31,29,653,'varchar',2,1,1,'WF_FlowNode','NotifyType','NotifyType','',0,0,1,80,80,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='NotifyType',[FieldByname]='NotifyType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=80,[Precision]=80,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=31 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=32  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17741,32,29,653,'varchar',2,1,1,'WF_FlowNode','NotifyContent','NotifyContent','',0,0,1,300,300,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='NotifyContent',[FieldByname]='NotifyContent',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=300,[Precision]=300,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=32 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=33  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17742,33,29,653,'int',1,1,1,'WF_FlowNode','TurnFlowId','TurnFlowId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='TurnFlowId',[FieldByname]='TurnFlowId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=33 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=34  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17743,34,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsItem','PrcsItem','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsItem',[FieldByname]='PrcsItem',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=34 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=35  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17744,35,29,653,'varchar',2,1,1,'WF_FlowNode','PrcsItem2','PrcsItem2','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PrcsItem2',[FieldByname]='PrcsItem2',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=35 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=36  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17745,36,29,653,'varchar',2,1,1,'WF_FlowNode','Json_Validate','Json_Validate','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='Json_Validate',[FieldByname]='Json_Validate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=36 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=37  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17746,37,29,653,'int',1,1,1,'WF_FlowNode','EntId','EntId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='EntId',[FieldByname]='EntId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=37 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=38  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17747,38,29,653,'varchar',2,1,1,'WF_FlowNode','PositionDept','PositionDept','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PositionDept',[FieldByname]='PositionDept',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=38 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=39  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17748,39,29,653,'varchar',2,1,1,'WF_FlowNode','PositionDeptNames','PositionDeptNames','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='PositionDeptNames',[FieldByname]='PositionDeptNames',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=39 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=40  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17749,40,29,653,'tinyint',23,1,1,'WF_FlowNode','CountersignType','CountersignType','',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='CountersignType',[FieldByname]='CountersignType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=40 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=41  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17750,41,29,653,'tinyint',23,1,1,'WF_FlowNode','CountersignVisType','CountersignVisType','',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='CountersignVisType',[FieldByname]='CountersignVisType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=41 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=42  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17751,42,29,653,'tinyint',23,1,1,'WF_FlowNode','DeliverType','DeliverType','',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='DeliverType',[FieldByname]='DeliverType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=42 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=43  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17752,43,29,653,'bit',4,1,1,'WF_FlowNode','CanCircularize','CanCircularize','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='CanCircularize',[FieldByname]='CanCircularize',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=43 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=44  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17753,44,29,653,'tinyint',23,1,1,'WF_FlowNode','MainUserType','MainUserType','0',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='MainUserType',[FieldByname]='MainUserType',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=44 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=45  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17754,45,29,653,'tinyint',23,1,1,'WF_FlowNode','FilterUserType','FilterUserType','0',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='FilterUserType',[FieldByname]='FilterUserType',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=45 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=46  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17755,46,29,653,'tinyint',23,1,1,'WF_FlowNode','AutoSelectUserType','AutoSelectUserType','0',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='AutoSelectUserType',[FieldByname]='AutoSelectUserType',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=46 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=47  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17756,47,29,653,'tinyint',23,1,1,'WF_FlowNode','RebutType','RebutType','0',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='RebutType',[FieldByname]='RebutType',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=47 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=48  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17757,48,29,653,'int',1,1,1,'WF_FlowNode','LimitHour','LimitHour','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='LimitHour',[FieldByname]='LimitHour',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=48 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=49  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17758,49,29,653,'tinyint',23,1,1,'WF_FlowNode','CountTimeType','CountTimeType','0',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='CountTimeType',[FieldByname]='CountTimeType',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=49 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=50  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17759,50,29,653,'bit',4,1,1,'WF_FlowNode','CanSetLimitHour','CanSetLimitHour','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='CanSetLimitHour',[FieldByname]='CanSetLimitHour',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=50 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=653  and  [FieldId]=51  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17760,51,29,653,'bit',4,1,1,'WF_FlowNode','OnlyCountWorkTime','OnlyCountWorkTime','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowNode',[FieldName]='OnlyCountWorkTime',[FieldByname]='OnlyCountWorkTime',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=653  and  [FieldId]=51 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=3312  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(3312,'9b4d0727-702a-449c-b3d0-636de8a519f3','我要升级',3278,'/Template/default/ListReport/ListReport_Tree001.aspx',1,'/images/default.gif','/images/default.gif',0,'rightFrame',0,0,'',29,0,29,1,1,1,null,'',0,0,'',null,3,'admin','2013-10-9 4:17:20',1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='9b4d0727-702a-449c-b3d0-636de8a519f3',[MenuName]='我要升级',[ParentId]=3278,[ProPath]='/Template/default/ListReport/ListReport_Tree001.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=0,[Target]='rightFrame',[IsOpen]=0,[IsHidden]=0,[Remark]='',[SSystemId]=29,[SMenuId]=0,[SystemId]=29,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=0,[Creator]='',[CreateTime]=null,[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-9 4:17:20',[AccountId]=1 where  [MenuId]=3312 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3312  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(1057,3312,'我要升级','Public',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='我要升级',[RoleName]='Public',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3312  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3312  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(1013,3312,'我要升级','系统管理员',3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='我要升级',[RoleName]='系统管理员',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3312  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2084  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2084,3312,'我要升级',1,132,0,'Dcx_Entity_Run',0,0,1,29,2084,null,null,29,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3312,[EntName]='我要升级',[MEnt]=1,[DBTableId]=132,[DBConnectId]=0,[DBTableName]='Dcx_Entity_Run',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2084,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2084 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=2084

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2084  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11118,-1,2084,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2084  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2084

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2084  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20488,29,3312,2084,13,1,1,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3312,[TemplateId]=13,[ModuleId]=1,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2084  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2084  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20489,29,3312,2084,13,2,9,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3312,[TemplateId]=13,[ModuleId]=9,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2084  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2084  and  [ModuleTypeId]=5  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20490,29,3312,2084,13,5,25,1,3,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3312,[TemplateId]=13,[ModuleId]=25,[GroupId]=1,[AreaId]=3,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2084  and  [ModuleTypeId]=5 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2084  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20491,29,3312,2084,13,3,14,1,4,2,'/Template/Default/Form/AjaxForm/AjaxForm008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3312,[TemplateId]=13,[ModuleId]=14,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='/Template/Default/Form/AjaxForm/AjaxForm008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=2084  and  [ModuleTypeId]=3 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2084  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20492,29,3312,2084,13,16,31,1,5,2,'/Template/Default/Browse/Browse008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3312,[TemplateId]=13,[ModuleId]=31,[GroupId]=1,[AreaId]=5,[ShowMode]=2,[AreaUrl]='/Template/Default/Browse/Browse008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=2084  and  [ModuleTypeId]=16 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_SearchForm_Run]  where [EntId]=2084

--Dcx_SearchForm_Run
      if (select count(1) from [Dcx_SearchForm_Run] where  [EntId]=2084  )<1 
      begin 
           Insert into [Dcx_SearchForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('6ea6da85-b506-6f73-7174-43bc8a305717','我要升级',2084,0,'','',0,'','','DcxRun.SearchF_2084= {"MenuId":3312,"MEntId":2084,"EntName":"我要升级","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2084":{"EntId":2084,"KeyFieldValue":"","DBTableName":"","KeyField":"EntId","KeydtId":2,"JoinKeyField":"EntId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_2084.EntMsg.E2084.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_Entity_Run","EntId":2084,"KeyField":"EntId","MKeyField":"EntId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"EntId":{"DtId":1,"DB":1,"CId":1,"FL":4},"EntName":{"DtId":2,"DB":1,"CId":1,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.SearchF_2084.EntMsg.E2084.GetDataRowModel=function()
{
    return {"EntId":-1,"EntName":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"EntId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_2084.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2084,''SearchF_'',buildNew,closeDlg);

}','',10,'','','','2084*EntId*2*EntId*2*Dcx_Entity_Run*我要升级',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2013-1-27 4:23:22',3,'admin','2013-8-22 5:58:43',1)
      end
      else 
      begin 
           update [Dcx_SearchForm_Run] set [FormId]='6ea6da85-b506-6f73-7174-43bc8a305717',[FormName]='我要升级',[ModuleId]=0,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.SearchF_2084= {"MenuId":3312,"MEntId":2084,"EntName":"我要升级","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2084":{"EntId":2084,"KeyFieldValue":"","DBTableName":"","KeyField":"EntId","KeydtId":2,"JoinKeyField":"EntId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_2084.EntMsg.E2084.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_Entity_Run","EntId":2084,"KeyField":"EntId","MKeyField":"EntId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"EntId":{"DtId":1,"DB":1,"CId":1,"FL":4},"EntName":{"DtId":2,"DB":1,"CId":1,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.SearchF_2084.EntMsg.E2084.GetDataRowModel=function()
{
    return {"EntId":-1,"EntName":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"EntId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_2084.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2084,''SearchF_'',buildNew,closeDlg);

}',[LoadingSql]='',[PageSize]=10,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='2084*EntId*2*EntId*2*Dcx_Entity_Run*我要升级',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-1-27 4:23:22',[EditorId]=3,[Editor]='admin',[EditTime]='2013-8-22 5:58:43',[AccountId]=1 where  [EntId]=2084 
      end




--Dcx_SearchFormField_Run
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='473ee517-295e-e0fc-ce6c-c1ad24ab7c20'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'473ee517-295e-e0fc-ce6c-c1ad24ab7c20',2084,2084,'00000000-0000-0000-0000-000000000000',1,'=','EntId',1,1,1,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','<div class="searchform">
	<ul class="search-block" groupid="1" isgroup="1" isrple="1">
		<li areaid="5" class="search-li" scroll="no" style="width: 270px; height: 31px; position: static;"><label class="search-title pad7" fldid="1" istitle="1">编号</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2084_EntId"   type="text" class="form-txt"  style="width:150px;" EntId="2084" IsField=1 DBField=1 IsPost=1 FieldName="EntId" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="="  value="','"/>','',1,-1,-1,-1,-1,0,'2084,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=1,[Form_EntId]=2084,[EntId]=2084,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[CompareOperatorType]='=',[FieldName]='EntId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=1,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="searchform">
	<ul class="search-block" groupid="1" isgroup="1" isrple="1">
		<li areaid="5" class="search-li" scroll="no" style="width: 270px; height: 31px; position: static;"><label class="search-title pad7" fldid="1" istitle="1">编号</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2084_EntId"   type="text" class="form-txt"  style="width:150px;" EntId="2084" IsField=1 DBField=1 IsPost=1 FieldName="EntId" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="="  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2084,' where  [FldUId]='473ee517-295e-e0fc-ce6c-c1ad24ab7c20' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='6af9eb34-6b9f-2f60-c33a-3881b3e11358'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'6af9eb34-6b9f-2f60-c33a-3881b3e11358',2084,2084,'00000000-0000-0000-0000-000000000000',2,'Like','EntName',2,2,3,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
</div>
</li>
		<li areaid="6" class="search-li" scroll="no" style="width: 270px; height: 31px; position: static;"><label class="search-title pad7" fldid="2" istitle="1">应用名称</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">','</span>
</div>
</li>
		
		<li areaid="8" class="" scroll="no" style="position: static;">
			<div class="searchform-button " onclick="javascript:return VL_Search(2084);">
				<div class="search-btn">
					&nbsp;</div>
				<a href="javascript:void(0);" id="2084_searchBT">搜索</a></div>
		</li>
	</ul>
</div>
<br>','','','<input  id="d2084_EntName"   type="text" class="form-txt"  style="width:150px;" EntId="2084" IsField=1 DBField=1 IsPost=1 FieldName="EntName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'2084,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=2,[Form_EntId]=2084,[EntId]=2084,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[CompareOperatorType]='Like',[FieldName]='EntName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=3,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
		<li areaid="6" class="search-li" scroll="no" style="width: 270px; height: 31px; position: static;"><label class="search-title pad7" fldid="2" istitle="1">应用名称</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
</div>
</li>
		
		<li areaid="8" class="" scroll="no" style="position: static;">
			<div class="searchform-button " onclick="javascript:return VL_Search(2084);">
				<div class="search-btn">
					&nbsp;</div>
				<a href="javascript:void(0);" id="2084_searchBT">搜索</a></div>
		</li>
	</ul>
</div>
<br>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2084_EntName"   type="text" class="form-txt"  style="width:150px;" EntId="2084" IsField=1 DBField=1 IsPost=1 FieldName="EntName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2084,' where  [FldUId]='6af9eb34-6b9f-2f60-c33a-3881b3e11358' 
      end



Delete from [Dcx_ListReport_Run]  where [EntId]=2084

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=2084  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('ae1c4c08-d3e3-4bd7-9443-81667e149510','我要升级',2084,0,'','<script type="text/javascript" src="/js/System/Update.js"></script>','<$2084$>select *  from (select row_number() over( order by [EntId])as dcx_rowid,[EntId],[EntName],[IsFlow],[Remark],[MenuId],[IsDesigning] from Dcx_Entity_Run  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$2084$><$2084:Count$>select count([EntId]) from Dcx_Entity_Run where {$SearchArea}</$2084:Count$>',1,1,10,'DcxRun.ListR_2084= {"MenuId":3312,"MEntId":2084,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"我要升级","EntMsg":{"E2084":{"EntId":2084,"EntName":"我要升级","KeyFieldValue":"","DBTableName":"","KeyField":"EntId","KeydtId":2,"JoinKeyField":"EntId","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','try{
   runObj.FielDeal={"MaxDealId":9,"Ent":[{"EntId":2084,"Fld":[{"FldId":10,"Deal":[{"id":3,"cdn":[{"fid":10,"b":"''","l":"''==''True''"}],"typeId":6,"dlV":[{"fid":-1,"b":"<span style=\"color:#008000;\"><span style=\"font-size: 14px;\"><strong>支持</strong></span></span>","l":""}]},{"id":5,"cdn":[{"fid":10,"b":"''","l":""},{"fid":10,"b":"''==''False'' ||''","l":"''=='''' "}],"typeId":6,"dlV":[{"fid":-1,"b":"<strong><span style=\"color:#ff0000;\">不支持</span></strong>","l":""}]}]},{"FldId":179,"Deal":[{"cdn":[{"fid":179,"b":"''","l":"''==''True''"}],"typeId":6,"dlV":[{"fid":-1,"b":"<a class=\"f_hot_op_bt f_hot_op_bt1 \" onclick=\"javascript:UpdateToDcxCreator(-1,this,3);\" style=\"PADDING-BOTTOM: 0px; PADDING-LEFT: 15px; PADDING-RIGHT: 15px; FLOAT: left; PADDING-TOP: 0px\"><span class=\"op_bt_i\" style=\"LINE-HEIGHT: 25px\" title=\"修改此应用，满足个性化需求。\">编辑</span></a>","l":""}]},{"cdn":[{"fid":179,"b":"''","l":"''==''False''"}],"typeId":6,"dlV":[{"fid":-1,"b":"<a class=\"f_hot_op_bt f_hot_op_bt2\" id=\"btn_FlowMenu\" isclick=\"1\" onclick=\"javascript:UpdateToDcxCreator(-1,this,1);\" style=\"PADDING-BOTTOM: 0px; PADDING-LEFT: 15px; PADDING-RIGHT: 15px; FLOAT: left; PADDING-TOP: 0px\"><span class=\"op_bt_i\" style=\"LINE-HEIGHT: 25px\" title=\"把此应用加入dcxCreator进行编辑\">升级</span></a>","l":""}]}]}],"Deal":[]}]};
 DcxReport.DealField(2084,''ListR_'',true);}
catch(err){}','','2084*EntId*2*EntId*2*Dcx_Entity_Run*我要升级',3,'','2013-1-27 3:57:39',3,'','2013-10-14 9:04:18',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='ae1c4c08-d3e3-4bd7-9443-81667e149510',[ReportName]='我要升级',[ModuleId]=0,[StaticHtml]='',[DIYJsCss]='<script type="text/javascript" src="/js/System/Update.js"></script>',[LoadingSql]='<$2084$>select *  from (select row_number() over( order by [EntId])as dcx_rowid,[EntId],[EntName],[IsFlow],[Remark],[MenuId],[IsDesigning] from Dcx_Entity_Run  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$2084$><$2084:Count$>select count([EntId]) from Dcx_Entity_Run where {$SearchArea}</$2084:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=10,[AutoPublicJs]='DcxRun.ListR_2084= {"MenuId":3312,"MEntId":2084,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"我要升级","EntMsg":{"E2084":{"EntId":2084,"EntName":"我要升级","KeyFieldValue":"","DBTableName":"","KeyField":"EntId","KeydtId":2,"JoinKeyField":"EntId","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='try{
   runObj.FielDeal={"MaxDealId":9,"Ent":[{"EntId":2084,"Fld":[{"FldId":10,"Deal":[{"id":3,"cdn":[{"fid":10,"b":"''","l":"''==''True''"}],"typeId":6,"dlV":[{"fid":-1,"b":"<span style=\"color:#008000;\"><span style=\"font-size: 14px;\"><strong>支持</strong></span></span>","l":""}]},{"id":5,"cdn":[{"fid":10,"b":"''","l":""},{"fid":10,"b":"''==''False'' ||''","l":"''=='''' "}],"typeId":6,"dlV":[{"fid":-1,"b":"<strong><span style=\"color:#ff0000;\">不支持</span></strong>","l":""}]}]},{"FldId":179,"Deal":[{"cdn":[{"fid":179,"b":"''","l":"''==''True''"}],"typeId":6,"dlV":[{"fid":-1,"b":"<a class=\"f_hot_op_bt f_hot_op_bt1 \" onclick=\"javascript:UpdateToDcxCreator(-1,this,3);\" style=\"PADDING-BOTTOM: 0px; PADDING-LEFT: 15px; PADDING-RIGHT: 15px; FLOAT: left; PADDING-TOP: 0px\"><span class=\"op_bt_i\" style=\"LINE-HEIGHT: 25px\" title=\"修改此应用，满足个性化需求。\">编辑</span></a>","l":""}]},{"cdn":[{"fid":179,"b":"''","l":"''==''False''"}],"typeId":6,"dlV":[{"fid":-1,"b":"<a class=\"f_hot_op_bt f_hot_op_bt2\" id=\"btn_FlowMenu\" isclick=\"1\" onclick=\"javascript:UpdateToDcxCreator(-1,this,1);\" style=\"PADDING-BOTTOM: 0px; PADDING-LEFT: 15px; PADDING-RIGHT: 15px; FLOAT: left; PADDING-TOP: 0px\"><span class=\"op_bt_i\" style=\"LINE-HEIGHT: 25px\" title=\"把此应用加入dcxCreator进行编辑\">升级</span></a>","l":""}]}]}],"Deal":[]}]};
 DcxReport.DealField(2084,''ListR_'',true);}
catch(err){}',[AutoOtherJS]='',[OtherMsg]='2084*EntId*2*EntId*2*Dcx_Entity_Run*我要升级',[CreatorId]=3,[Creator]='',[CreateTime]='2013-1-27 3:57:39',[EditorId]=3,[Editor]='',[EditTime]='2013-10-14 9:04:18',[AccountId]=1 where  [EntId]=2084 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='f4a4e81d-ac0f-0990-0d1a-5961886ad8f6'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(244,'f4a4e81d-ac0f-0990-0d1a-5961886ad8f6',2084,2084,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<div class="listreport">
<div class="toolbar">
<ul style="WIdTH: 620px" class="tool-ul" istoolbar="1" isgroup="1" groupid="2" isrple="1">
<li style="width: 120px; height: 29px; position: static; text-align: left;" class="tool-li" areaid="58"><div style="margin-top:2px;font-size:16px;color:orange;">
	我的应用</div>
</li><li style="width: 70px; height: 29px; display: none; position: static;" class="tool-li" areaid="27"><a class="list-bt-other" href="javascript:void(0);" id="ListR_2084_btn_buildNew" onclick="javascript:UpdateToDcxCreator(-1,this,1);" title="设计所选的应用">设计</a></li><li style="width: 138px; height: 29px; display: none; position: static;" class="tool-li" areaid="55"><a class="list-bt-add" href="javascript:void(0);" id="ListR_2084_btn_buildNew" onclick="javascript:UpdateToDcxCreator(-1,this,2);" style="float:left;" title="复制并设计所选应用">复制并编辑</a></li><li style="width: 90px; height: 29px; position: static;" class="tool-li" areaid="54"><a class="list-bt-other" href="http://www.dcxcreator.com/designer/site/SystemList.html" id="ListR_2084_btn_buildNew" target="_blank" title="进入下载更多的应用">更多应用</a></li>
<li style="width: 64px; height: 29px; position: static;" class="tool-li" areaid="30"><a class="list-bt-other" href="javascript:void(0);" id="ListR_2084_refreshbut" onclick="javascript:DcxCom.ReLoad(2084,''ListR_'');" title="刷   新">刷 新</a></li><!--分页栏-->
<li style="width: 160px; height: 24px; position: static;" id="li2_ListR_2084" class="pages" areaid="31"><a class="list-pages list-prepage" href="javascript:void(0);" id="ListR_2084_PrevPage" isfirstpage="1" onclick="javascript:DcxSch.GetHtml(2084,''ListR_'',''p'');" title="上一页">上一页</a> <span class="ddl_pageindex list-pagesdown"><select id="ddl_ListR_2084_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(2084,''ListR_'',''a'',this);"></select> </span><a class="list-pages list-nextpage" href="javascript:void(0);" id="ListR_2084_NextPage" isnextpage="1" onclick="javascript:DcxSch.GetHtml(2084,''ListR_'',''n'');" title="下一页">下一页</a> <span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_2084_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">条记录</span></li></ul></div><!-- 列表主体-->
<div class="list-area dcx-scroll">
<div class="list-head">
<ul style="width: 676px;" class="list-head-ul" isgroup="1" groupid="3" isrple="1">
<li style="width: 40px; float: left; height: 30px; clear: none; position: static;" class="list-if-select" areaid="33"><div class="list-li-field">
	<input class="chPut ifselect" id="ckb_CheckAllListR_2084" onclick="javascript:DcxCom.CheckedAll(this,2084,''ListR_'');" rel="chkall" type="checkbox"></div></li><li style="width: 50px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="52"><div class="list-li-field">
	<label istitle="1">编号</label></div>
</li>
<li style="width: 160px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="34"><div class="list-li-field">
	<label istitle="1">应用名称</label></div>
</li>
<li style="width: 98px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="36"><div class="list-li-field">
	<label istitle="1">工作流</label></div>
</li><li style="width: 128px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="38"><div class="list-li-field">
	<label istitle="1">备注</label></div>
</li><li style="width: 158px; float: left; height: 30px; clear: right; position: static;" class="list-head-li" areaid="56"><div class="list-li-field">
	<label istitle="1">操作</label></div>
</li>

</ul></div>
<div class="list-body">','',-1,4,-1,-1,1,'2084,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=244,[Report_EntId]=2084,[EntId]=2084,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="listreport">
<div class="toolbar">
<ul style="WIdTH: 620px" class="tool-ul" istoolbar="1" isgroup="1" groupid="2" isrple="1">
<li style="width: 120px; height: 29px; position: static; text-align: left;" class="tool-li" areaid="58"><div style="margin-top:2px;font-size:16px;color:orange;">
	我的应用</div>
</li><li style="width: 70px; height: 29px; display: none; position: static;" class="tool-li" areaid="27"><a class="list-bt-other" href="javascript:void(0);" id="ListR_2084_btn_buildNew" onclick="javascript:UpdateToDcxCreator(-1,this,1);" title="设计所选的应用">设计</a></li><li style="width: 138px; height: 29px; display: none; position: static;" class="tool-li" areaid="55"><a class="list-bt-add" href="javascript:void(0);" id="ListR_2084_btn_buildNew" onclick="javascript:UpdateToDcxCreator(-1,this,2);" style="float:left;" title="复制并设计所选应用">复制并编辑</a></li><li style="width: 90px; height: 29px; position: static;" class="tool-li" areaid="54"><a class="list-bt-other" href="http://www.dcxcreator.com/designer/site/SystemList.html" id="ListR_2084_btn_buildNew" target="_blank" title="进入下载更多的应用">更多应用</a></li>
<li style="width: 64px; height: 29px; position: static;" class="tool-li" areaid="30"><a class="list-bt-other" href="javascript:void(0);" id="ListR_2084_refreshbut" onclick="javascript:DcxCom.ReLoad(2084,''ListR_'');" title="刷   新">刷 新</a></li><!--分页栏-->
<li style="width: 160px; height: 24px; position: static;" id="li2_ListR_2084" class="pages" areaid="31"><a class="list-pages list-prepage" href="javascript:void(0);" id="ListR_2084_PrevPage" isfirstpage="1" onclick="javascript:DcxSch.GetHtml(2084,''ListR_'',''p'');" title="上一页">上一页</a> <span class="ddl_pageindex list-pagesdown"><select id="ddl_ListR_2084_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(2084,''ListR_'',''a'',this);"></select> </span><a class="list-pages list-nextpage" href="javascript:void(0);" id="ListR_2084_NextPage" isnextpage="1" onclick="javascript:DcxSch.GetHtml(2084,''ListR_'',''n'');" title="下一页">下一页</a> <span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_2084_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">条记录</span></li></ul></div><!-- 列表主体-->
<div class="list-area dcx-scroll">
<div class="list-head">
<ul style="width: 676px;" class="list-head-ul" isgroup="1" groupid="3" isrple="1">
<li style="width: 40px; float: left; height: 30px; clear: none; position: static;" class="list-if-select" areaid="33"><div class="list-li-field">
	<input class="chPut ifselect" id="ckb_CheckAllListR_2084" onclick="javascript:DcxCom.CheckedAll(this,2084,''ListR_'');" rel="chkall" type="checkbox"></div></li><li style="width: 50px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="52"><div class="list-li-field">
	<label istitle="1">编号</label></div>
</li>
<li style="width: 160px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="34"><div class="list-li-field">
	<label istitle="1">应用名称</label></div>
</li>
<li style="width: 98px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="36"><div class="list-li-field">
	<label istitle="1">工作流</label></div>
</li><li style="width: 128px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="38"><div class="list-li-field">
	<label istitle="1">备注</label></div>
</li><li style="width: 158px; float: left; height: 30px; clear: right; position: static;" class="list-head-li" areaid="56"><div class="list-li-field">
	<label istitle="1">操作</label></div>
</li>

</ul></div>
<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2084,' where  [FldUId]='f4a4e81d-ac0f-0990-0d1a-5961886ad8f6' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='fa9dc3ec-00c4-4e22-fea2-65f47e53d6e6'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(139,'fa9dc3ec-00c4-4e22-fea2-65f47e53d6e6',2084,2084,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',2,1,'varchar',2,21,0,'','','','style="width: 676px;" class="list-body-ul" isgroup="1" groupid="4" isrple="1">
<li style="width: 40px; float: left; height: 42px; clear: none; position: static;" class="list-if-select" areaid="53"><input class="ckb_del" ctrlprex="ListR_" entid="2084" issyscheck="1" keyvalue="','',53,4,-1,-1,1,'2084,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=139,[Report_EntId]=2084,[EntId]=2084,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='style="width: 676px;" class="list-body-ul" isgroup="1" groupid="4" isrple="1">
<li style="width: 40px; float: left; height: 42px; clear: none; position: static;" class="list-if-select" areaid="53"><input class="ckb_del" ctrlprex="ListR_" entid="2084" issyscheck="1" keyvalue="',[LastHtml]='',[RowIndex]=53,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2084,' where  [FldUId]='fa9dc3ec-00c4-4e22-fea2-65f47e53d6e6' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='ab762e72-0dc8-8834-0ea2-69d550313679'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(175,'ab762e72-0dc8-8834-0ea2-69d550313679',2084,2084,'00000000-0000-0000-0000-000000000000',1,'EntId',3,1,'int',1,1,0,'','','','" type="checkbox"> </li><li style="width: 50px; float: left; height: 42px; clear: none; position: static;" class="list-body-li" areaid="42"><div class="list-li-field">
	<span isfield="1" entid="2084" fieldname="EntId" fldid="175" columntypeid="1" class="form-ctr">','',42,4,-1,-1,1,'2084,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=175,[Report_EntId]=2084,[EntId]=2084,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=1,[FieldName]='EntId',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='" type="checkbox"> </li><li style="width: 50px; float: left; height: 42px; clear: none; position: static;" class="list-body-li" areaid="42"><div class="list-li-field">
	<span isfield="1" entid="2084" fieldname="EntId" fldid="175" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=42,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2084,' where  [FldUId]='ab762e72-0dc8-8834-0ea2-69d550313679' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='28afd3b7-d99f-56d4-7979-26add64632de'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'28afd3b7-d99f-56d4-7979-26add64632de',2084,2084,'00000000-0000-0000-0000-000000000000',3,'EntName',4,1,'varchar',2,1,0,'','','','</span>
</div>
</li>
<li style="width: 160px; float: left; height: 42px; clear: none; position: static;" class="list-body-li" areaid="43"><div class="list-li-field">
	<span isfield="1" entid="2084" fieldname="EntName" fldid="7" columntypeid="1" class="form-ctr">','',-1,4,-1,-1,1,'2084,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=7,[Report_EntId]=2084,[EntId]=2084,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='EntName',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
</div>
</li>
<li style="width: 160px; float: left; height: 42px; clear: none; position: static;" class="list-body-li" areaid="43"><div class="list-li-field">
	<span isfield="1" entid="2084" fieldname="EntName" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2084,' where  [FldUId]='28afd3b7-d99f-56d4-7979-26add64632de' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='4782eaec-3c9c-b852-de96-643bea59e884'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'4782eaec-3c9c-b852-de96-643bea59e884',2084,2084,'00000000-0000-0000-0000-000000000000',17,'IsFlow',5,1,'bit',4,1,0,'','','','</span>

</div>
</li>
<li style="position: static; width: 98px; float: left; height: 42px; clear: none;" class="list-body-li" areaid="46"><div class="list-li-field">
	<span isfield="1" entid="2084" fieldname="IsFlow" fldid="10" columntypeid="1" class="form-ctr">','',-1,4,-1,-1,1,'2084,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=10,[Report_EntId]=2084,[EntId]=2084,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=17,[FieldName]='IsFlow',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='bit',[FieldDataTypeId]=4,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>

</div>
</li>
<li style="position: static; width: 98px; float: left; height: 42px; clear: none;" class="list-body-li" areaid="46"><div class="list-li-field">
	<span isfield="1" entid="2084" fieldname="IsFlow" fldid="10" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2084,' where  [FldUId]='4782eaec-3c9c-b852-de96-643bea59e884' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='616be7d1-ab72-a262-2f68-5b15eda6ab01'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'616be7d1-ab72-a262-2f68-5b15eda6ab01',2084,2084,'00000000-0000-0000-0000-000000000000',16,'Remark',6,1,'varchar',2,1,0,'','','','</span>
</div>
</li>
<li style="position: static; width: 128px; float: left; height: 42px; clear: none;" class="list-body-li" areaid="44"><div class="list-li-field">
	<span isfield="1" entid="2084" fieldname="Remark" fldid="8" columntypeid="1" class="form-ctr">','',-1,4,-1,-1,1,'2084,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=8,[Report_EntId]=2084,[EntId]=2084,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=16,[FieldName]='Remark',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
</div>
</li>
<li style="position: static; width: 128px; float: left; height: 42px; clear: none;" class="list-body-li" areaid="44"><div class="list-li-field">
	<span isfield="1" entid="2084" fieldname="Remark" fldid="8" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2084,' where  [FldUId]='616be7d1-ab72-a262-2f68-5b15eda6ab01' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='2888cb5a-83ef-ed6b-9c44-45377e700770'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(170,'2888cb5a-83ef-ed6b-9c44-45377e700770',2084,2084,'00000000-0000-0000-0000-000000000000',2,'MenuId',7,1,'varchar',2,1,0,'','','','</span>
 <span isfield="1" entid="2084" fieldname="MenuId" fldid="170" columntypeid="1" class="form-ctr" style="display: none;">','',44,4,-1,-1,1,'2084,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=170,[Report_EntId]=2084,[EntId]=2084,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='MenuId',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
 <span isfield="1" entid="2084" fieldname="MenuId" fldid="170" columntypeid="1" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=44,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2084,' where  [FldUId]='2888cb5a-83ef-ed6b-9c44-45377e700770' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='6d76127b-bf37-164f-dfd0-ede5ddce8006'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(179,'6d76127b-bf37-164f-dfd0-ede5ddce8006',2084,2084,'00000000-0000-0000-0000-000000000000',21,'IsDesigning',8,1,'bit',4,1,0,'','','','</span>
</div>
</li><li style="position: static; width: 158px; float: left; height: 42px; clear: right;" class="list-body-li" areaid="57"><div class="list-li-field" style="padding-left:20px;">
	<span isfield="1" entid="2084" fieldname="IsDesigning" fldid="179" columntypeid="1" class="form-ctr">','',-1,4,-1,-1,1,'2084,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=179,[Report_EntId]=2084,[EntId]=2084,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=21,[FieldName]='IsDesigning',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='bit',[FieldDataTypeId]=4,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
</div>
</li><li style="position: static; width: 158px; float: left; height: 42px; clear: right;" class="list-body-li" areaid="57"><div class="list-li-field" style="padding-left:20px;">
	<span isfield="1" entid="2084" fieldname="IsDesigning" fldid="179" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2084,' where  [FldUId]='6d76127b-bf37-164f-dfd0-ede5ddce8006' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='c99248f7-fb1a-c10c-4d1d-034804694ec9'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(245,'c99248f7-fb1a-c10c-4d1d-034804694ec9',2084,2084,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',9,-1,'varchar',2,13,0,'','','','</span>
</div>
</li>
</ul>','</div></div></div><br>
<div isbottomhtml="1"></div>',-1,4,-1,-1,1,'2084,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=245,[Report_EntId]=2084,[EntId]=2084,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=9,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
</div>
</li>
</ul>',[LastHtml]='</div></div></div><br>
<div isbottomhtml="1"></div>',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2084,' where  [FldUId]='c99248f7-fb1a-c10c-4d1d-034804694ec9' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=132

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=132  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(132,null,'Dcx_Entity_Run','Dcx_Entity_Run',1,0,0,0,0,0,29,1,3,'admin','2013-12-15 17:32:13',3,'admin','2013-12-15 17:32:13',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='Dcx_Entity_Run',[DBTableByName]='Dcx_Entity_Run',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=29,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:13',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:13',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=132 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16591,1,29,132,'int',1,1,1,'Dcx_Entity_Run','EntId','EntId','',0,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='EntId',[FieldByname]='EntId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16592,2,29,132,'int',1,1,1,'Dcx_Entity_Run','MenuId','MenuId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='MenuId',[FieldByname]='MenuId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16593,3,29,132,'varchar',2,1,1,'Dcx_Entity_Run','EntName','EntName','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='EntName',[FieldByname]='EntName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16594,4,29,132,'bit',4,1,1,'Dcx_Entity_Run','MEnt','MEnt','',0,0,0,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='MEnt',[FieldByname]='MEnt',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16595,5,29,132,'int',1,1,1,'Dcx_Entity_Run','DBTableId','DBTableId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='DBTableId',[FieldByname]='DBTableId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16596,6,29,132,'int',1,1,1,'Dcx_Entity_Run','DBConnectId','DBConnectId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='DBConnectId',[FieldByname]='DBConnectId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16597,7,29,132,'varchar',2,1,1,'Dcx_Entity_Run','DBTableName','DBTableName','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='DBTableName',[FieldByname]='DBTableName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16598,8,29,132,'int',1,1,1,'Dcx_Entity_Run','ParentId','ParentId','0',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='ParentId',[FieldByname]='ParentId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16599,9,29,132,'int',1,1,1,'Dcx_Entity_Run','OrderBy','OrderBy','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='OrderBy',[FieldByname]='OrderBy',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16600,10,29,132,'bit',4,1,1,'Dcx_Entity_Run','CheckPower','CheckPower','1',0,0,0,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='CheckPower',[FieldByname]='CheckPower',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16601,11,29,132,'int',1,1,1,'Dcx_Entity_Run','SSystemId','SSystemId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='SSystemId',[FieldByname]='SSystemId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16602,12,29,132,'int',1,1,1,'Dcx_Entity_Run','SEntId','SEntId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='SEntId',[FieldByname]='SEntId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16603,13,29,132,'int',1,1,1,'Dcx_Entity_Run','FSystemId','FSystemId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='FSystemId',[FieldByname]='FSystemId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16604,14,29,132,'int',1,1,1,'Dcx_Entity_Run','FEntId','FEntId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='FEntId',[FieldByname]='FEntId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16605,15,29,132,'int',1,1,1,'Dcx_Entity_Run','SystemId','SystemId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='SystemId',[FieldByname]='SystemId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16606,16,29,132,'varchar',2,1,1,'Dcx_Entity_Run','Remark','Remark','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='Remark',[FieldByname]='Remark',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16607,17,29,132,'bit',4,1,1,'Dcx_Entity_Run','IsFlow','IsFlow','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='IsFlow',[FieldByname]='IsFlow',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16608,18,29,132,'bit',4,1,1,'Dcx_Entity_Run','IsChecked','IsChecked','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='IsChecked',[FieldByname]='IsChecked',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16609,19,29,132,'int',1,1,1,'Dcx_Entity_Run','FlowId','FlowId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='FlowId',[FieldByname]='FlowId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16610,20,29,132,'int',1,1,1,'Dcx_Entity_Run','MaxCount','MaxCount','-1',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='MaxCount',[FieldByname]='MaxCount',[DefaultValue]='-1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16611,21,29,132,'bit',4,1,1,'Dcx_Entity_Run','IsDesigning','IsDesigning','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='IsDesigning',[FieldByname]='IsDesigning',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16612,22,29,132,'bit',4,1,1,'Dcx_Entity_Run','ShowTag','ShowTag','1',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='ShowTag',[FieldByname]='ShowTag',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16613,23,29,132,'datetime',3,1,1,'Dcx_Entity_Run','AddDcxTime','AddDcxTime','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='AddDcxTime',[FieldByname]='AddDcxTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16614,24,29,132,'varchar',2,1,1,'Dcx_Entity_Run','AddDcxUserName','AddDcxUserName','',0,0,1,40,40,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='AddDcxUserName',[FieldByname]='AddDcxUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=40,[Precision]=40,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16615,25,29,132,'int',1,1,1,'Dcx_Entity_Run','AddDcxUserId','AddDcxUserId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='AddDcxUserId',[FieldByname]='AddDcxUserId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16616,26,29,132,'varchar',2,1,1,'Dcx_Entity_Run','SqlDelete','SqlDelete','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='SqlDelete',[FieldByname]='SqlDelete',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=26 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=27  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16617,27,29,132,'varchar',2,1,1,'Dcx_Entity_Run','SqlInsert','SqlInsert','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='SqlInsert',[FieldByname]='SqlInsert',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=27 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=28  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16618,28,29,132,'varchar',2,1,1,'Dcx_Entity_Run','SqlUpdate','SqlUpdate','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='SqlUpdate',[FieldByname]='SqlUpdate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=28 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=29  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16619,29,29,132,'varchar',2,1,1,'Dcx_Entity_Run','SqlSelect','SqlSelect','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='SqlSelect',[FieldByname]='SqlSelect',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=29 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=30  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16620,30,29,132,'int',1,1,1,'Dcx_Entity_Run','CreatorId','CreatorId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='CreatorId',[FieldByname]='CreatorId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=30 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=31  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16621,31,29,132,'varchar',2,1,1,'Dcx_Entity_Run','Creator','Creator','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='Creator',[FieldByname]='Creator',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=31 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=32  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16622,32,29,132,'datetime',3,1,1,'Dcx_Entity_Run','CreateTime','CreateTime','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='CreateTime',[FieldByname]='CreateTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=32 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=33  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16623,33,29,132,'int',1,1,1,'Dcx_Entity_Run','EditorId','EditorId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='EditorId',[FieldByname]='EditorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=33 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=34  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16624,34,29,132,'varchar',2,1,1,'Dcx_Entity_Run','Editor','Editor','',0,0,1,40,40,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='Editor',[FieldByname]='Editor',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=40,[Precision]=40,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=34 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=35  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16625,35,29,132,'datetime',3,1,1,'Dcx_Entity_Run','EditTime','EditTime','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='EditTime',[FieldByname]='EditTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=35 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=132  and  [FieldId]=36  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(16626,36,29,132,'int',1,1,1,'Dcx_Entity_Run','AccountId','AccountId','1',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Entity_Run',[FieldName]='AccountId',[FieldByname]='AccountId',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=132  and  [FieldId]=36 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=3415  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(3415,'fc845e3a-9d09-44e7-affe-1f603c54a5de','我的资料（Run）',3279,'/Template/default/System/MenuForm.aspx',37,'/images/default.gif','/images/default.gif',0,'right_fram',0,1,'',29,3149,29,5,1,1,'2013-5-4 4:16:47','admin',3,0,'',null,3,'admin','2013-10-9 4:19:20',1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='fc845e3a-9d09-44e7-affe-1f603c54a5de',[MenuName]='我的资料（Run）',[ParentId]=3279,[ProPath]='/Template/default/System/MenuForm.aspx',[TemplateId]=37,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=0,[Target]='right_fram',[IsOpen]=0,[IsHidden]=1,[Remark]='',[SSystemId]=29,[SMenuId]=3149,[SystemId]=29,[EntityCount]=5,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]='2013-5-4 4:16:47',[AddDcxUserName]='admin',[AddDcxUserId]=3,[CreatorId]=0,[Creator]='',[CreateTime]=null,[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-9 4:19:20',[AccountId]=1 where  [MenuId]=3415 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3415  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(1058,3415,'我的资料（Run）','Public',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='我的资料（Run）',[RoleName]='Public',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3415  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3415  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(1027,3415,'我的资料','系统管理员',3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='我的资料',[RoleName]='系统管理员',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3415  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2274  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2274,3415,'基本资料',1,1200,0,'Dcx_User',0,0,1,29,2274,null,null,29,'',0,0,0,-1,1,1,'2013-5-4 4:16:47','admin',3,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3415,[EntName]='基本资料',[MEnt]=1,[DBTableId]=1200,[DBConnectId]=0,[DBTableName]='Dcx_User',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2274,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=0,[IsChecked]=0,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]='2013-5-4 4:16:47',[AddDcxUserName]='admin',[AddDcxUserId]=3,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2274 
      end
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2275  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2275,3415,'修改密码',1,1200,0,'Dcx_User',0,0,1,29,2275,null,null,29,'',0,0,0,-1,1,1,'2013-5-4 4:16:49','admin',3,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3415,[EntName]='修改密码',[MEnt]=1,[DBTableId]=1200,[DBConnectId]=0,[DBTableName]='Dcx_User',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2275,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=0,[IsChecked]=0,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]='2013-5-4 4:16:49',[AddDcxUserName]='admin',[AddDcxUserId]=3,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2275 
      end
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2276  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2276,3415,'修改邮箱',1,1200,0,'Dcx_User',0,0,1,29,2276,null,null,29,'',0,0,0,-1,1,1,'2013-5-4 4:16:49','admin',3,null,null,null,null,0,'',null,3,'admin','2013-9-2 9:03:05',1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3415,[EntName]='修改邮箱',[MEnt]=1,[DBTableId]=1200,[DBConnectId]=0,[DBTableName]='Dcx_User',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2276,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=0,[IsChecked]=0,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]='2013-5-4 4:16:49',[AddDcxUserName]='admin',[AddDcxUserId]=3,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=0,[Creator]='',[CreateTime]=null,[EditorId]=3,[Editor]='admin',[EditTime]='2013-9-2 9:03:05',[AccountId]=1 where  [EntId]=2276 
      end
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2277  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2277,3415,'允许的Ip',1,1205,0,'Dcx_Common',0,0,1,29,2277,null,null,29,'',0,0,0,-1,1,1,'2013-5-4 4:16:49','admin',3,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3415,[EntName]='允许的Ip',[MEnt]=1,[DBTableId]=1205,[DBConnectId]=0,[DBTableName]='Dcx_Common',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2277,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=0,[IsChecked]=0,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]='2013-5-4 4:16:49',[AddDcxUserName]='admin',[AddDcxUserId]=3,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2277 
      end
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2291  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2291,3415,'我的资料（初）',1,1200,0,'Dcx_User',0,0,1,29,2291,null,null,29,'',0,0,0,-1,1,1,'2013-8-21 4:25:07','admin',3,null,null,null,null,3,'admin','2013-8-21 4:25:07',3,'admin','2013-8-21 4:25:07',1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3415,[EntName]='我的资料（初）',[MEnt]=1,[DBTableId]=1200,[DBConnectId]=0,[DBTableName]='Dcx_User',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2291,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=0,[IsChecked]=0,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]='2013-8-21 4:25:07',[AddDcxUserName]='admin',[AddDcxUserId]=3,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-8-21 4:25:07',[EditorId]=3,[Editor]='admin',[EditTime]='2013-8-21 4:25:07',[AccountId]=1 where  [EntId]=2291 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=2274

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2274  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11145,3415,2274,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=3415,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2274  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2274

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2274  and  [ModuleTypeId]=18  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20493,29,3415,2274,41,18,39,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3415,[TemplateId]=41,[ModuleId]=39,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2274  and  [ModuleTypeId]=18 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_DefaultForm_Run]  where [EntId]=2274

--Dcx_DefaultForm_Run
      if (select count(1) from [Dcx_DefaultForm_Run] where  [EntId]=2274  )<1 
      begin 
           Insert into [Dcx_DefaultForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[OtherMsg],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('8e1493fa-6a23-4f35-a8e4-72be51cd0c8a','基本资料',2274,-1,'','',0,'','<script type="text/javascript" src="/js/System/AccountSystem/ChangeUserMsg.js"></script>
<script type="text/javascript" src="/js/System/AccountSystem/SystemCommon.js"></script>','DcxRun.DefaultF_2274= {"MenuId":3415,"MEntId":2274,"EntName":"基本资料","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2274":{"EntId":2274,"KeyFieldValue":"","DBTableName":"","KeyField":"UserId","KeydtId":2,"JoinKeyField":"UserId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{
InitCtrlHtml_DateYMD(null,2274,''DefaultF_'',''Birthday'',26,null,null,false);
InitCtrlHtml_Address(null,2274,''DefaultF_'',''Address'',38,null,null,false);

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":42,"Ent":[{"EntId":2274,"Fld":[{"FldId":1,"Vld":[]},{"FldId":2,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1},{"Id":32,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":3,"Vld":[{"Id":4,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":7,"Vld":[{"Id":7,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":10,"Vld":[{"Id":10,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1},{"Id":36,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1}]},{"FldId":20,"Vld":[{"Id":17,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":21,"Vld":[{"Id":18,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1},{"Id":33,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,100}$","err":"限制0-100个字符。","ok":"","warn":"","ovt":1}]},{"FldId":25,"Vld":[{"Id":22,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":26,"Vld":[{"Id":37,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":42,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))?$","err":"格式要求为日期格式：yyyy-mm-dd","ok":"","warn":"","ovt":1}]},{"FldId":30,"Vld":[{"Id":26,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,100}$","err":"限制0-100个字符。","ok":"","warn":"","ovt":1},{"Id":35,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,100}$","err":"限制0-100个字符。","ok":"","warn":"","ovt":1}]},{"FldId":38,"Vld":[{"Id":34,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,150}$","err":"限制0-150个字符。","ok":"","warn":"","ovt":1}]}]}]};
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2274.EntMsg.E2274.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_User","EntId":2274,"KeyField":"UserId","MKeyField":"UserId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"UserName":{"DtId":2,"DB":1,"CId":4,"FL":50},"RealName":{"DtId":2,"DB":1,"CId":1,"FL":50},"CurSystemId":{"DtId":1,"DB":1,"CId":4,"FL":4},"PositionId":{"DtId":1,"DB":1,"CId":3,"FL":4},"Sex":{"DtId":2,"DB":1,"CId":7,"FL":50},"Telephone":{"DtId":2,"DB":1,"CId":1,"FL":50},"Phone":{"DtId":2,"DB":1,"CId":1,"FL":50},"Birthday":{"DtId":3,"DB":1,"CId":48,"FL":8},"Http":{"DtId":2,"DB":1,"CId":1,"FL":100},"Email":{"DtId":2,"DB":1,"CId":4,"FL":100},"Address":{"DtId":2,"DB":1,"CId":46,"FL":150}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2274.EntMsg.E2274.GetDataRowModel=function()
{
    return {"UserName":"","RealName":"","CurSystemId":-1,"PositionId":-1,"Sex":"","Telephone":"","Phone":"","Birthday":new Date(),"Http":"","Email":"","Address":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"UserId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2274.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2274,''DefaultF_'',buildNew,closeDlg);

}','<$2274$>select [UserName],[RealName],[Sex],[Birthday],[PositionId],[CurSystemId],[Email],[Address],[Telephone],[Phone],[Http],[UserId] from Dcx_User where [UserId]=''{$keyfieldvalue}''</$2274$>',10,'2274*UserId*2*UserId*2*Dcx_User*基本资料','','','',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2013-5-4 4:16:45',3,'admin','2013-10-2 18:34:16',1)
      end
      else 
      begin 
           update [Dcx_DefaultForm_Run] set [FormId]='8e1493fa-6a23-4f35-a8e4-72be51cd0c8a',[FormName]='基本资料',[ModuleId]=-1,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='',[DIYJsCss2]='<script type="text/javascript" src="/js/System/AccountSystem/ChangeUserMsg.js"></script>
<script type="text/javascript" src="/js/System/AccountSystem/SystemCommon.js"></script>',[AutoPublicJs]='DcxRun.DefaultF_2274= {"MenuId":3415,"MEntId":2274,"EntName":"基本资料","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2274":{"EntId":2274,"KeyFieldValue":"","DBTableName":"","KeyField":"UserId","KeydtId":2,"JoinKeyField":"UserId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{
InitCtrlHtml_DateYMD(null,2274,''DefaultF_'',''Birthday'',26,null,null,false);
InitCtrlHtml_Address(null,2274,''DefaultF_'',''Address'',38,null,null,false);

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":42,"Ent":[{"EntId":2274,"Fld":[{"FldId":1,"Vld":[]},{"FldId":2,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1},{"Id":32,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":3,"Vld":[{"Id":4,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":7,"Vld":[{"Id":7,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1}]},{"FldId":10,"Vld":[{"Id":10,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1},{"Id":36,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1}]},{"FldId":20,"Vld":[{"Id":17,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":21,"Vld":[{"Id":18,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1},{"Id":33,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,100}$","err":"限制0-100个字符。","ok":"","warn":"","ovt":1}]},{"FldId":25,"Vld":[{"Id":22,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":26,"Vld":[{"Id":37,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1},{"Id":42,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))?$","err":"格式要求为日期格式：yyyy-mm-dd","ok":"","warn":"","ovt":1}]},{"FldId":30,"Vld":[{"Id":26,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,100}$","err":"限制0-100个字符。","ok":"","warn":"","ovt":1},{"Id":35,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,100}$","err":"限制0-100个字符。","ok":"","warn":"","ovt":1}]},{"FldId":38,"Vld":[{"Id":34,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,150}$","err":"限制0-150个字符。","ok":"","warn":"","ovt":1}]}]}]};
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2274.EntMsg.E2274.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_User","EntId":2274,"KeyField":"UserId","MKeyField":"UserId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"UserName":{"DtId":2,"DB":1,"CId":4,"FL":50},"RealName":{"DtId":2,"DB":1,"CId":1,"FL":50},"CurSystemId":{"DtId":1,"DB":1,"CId":4,"FL":4},"PositionId":{"DtId":1,"DB":1,"CId":3,"FL":4},"Sex":{"DtId":2,"DB":1,"CId":7,"FL":50},"Telephone":{"DtId":2,"DB":1,"CId":1,"FL":50},"Phone":{"DtId":2,"DB":1,"CId":1,"FL":50},"Birthday":{"DtId":3,"DB":1,"CId":48,"FL":8},"Http":{"DtId":2,"DB":1,"CId":1,"FL":100},"Email":{"DtId":2,"DB":1,"CId":4,"FL":100},"Address":{"DtId":2,"DB":1,"CId":46,"FL":150}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2274.EntMsg.E2274.GetDataRowModel=function()
{
    return {"UserName":"","RealName":"","CurSystemId":-1,"PositionId":-1,"Sex":"","Telephone":"","Phone":"","Birthday":new Date(),"Http":"","Email":"","Address":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"UserId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2274.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2274,''DefaultF_'',buildNew,closeDlg);

}',[LoadingSql]='<$2274$>select [UserName],[RealName],[Sex],[Birthday],[PositionId],[CurSystemId],[Email],[Address],[Telephone],[Phone],[Http],[UserId] from Dcx_User where [UserId]=''{$keyfieldvalue}''</$2274$>',[PageSize]=10,[OtherMsg]='2274*UserId*2*UserId*2*Dcx_User*基本资料',[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-5-4 4:16:45',[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-2 18:34:16',[AccountId]=1 where  [EntId]=2274 
      end




--Dcx_DefaultFormField_Run
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='9776dcd7-eac4-4505-ba08-713ef55bc868'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'9776dcd7-eac4-4505-ba08-713ef55bc868',2274,2274,'00000000-0000-0000-0000-000000000000',1,'UserName',2,2,3,'',5,9,1,0,4,1,-1,-1,1,0,'','','','','<div class="defaultform" entid="2274" ctrlprex="DefaultF_">
<ul isgroup="1" groupid="1" class="ul-group" isrple="1">

<li areaid="71" class="li-area" scroll="no" style="position: static; width: 596px; height: 35px;"><div class="form-title2">
	
	<h2 style="FONT-SIZE: 15px">
		基本资料</h2>
</div>
<br>
</li><li areaid="37" class="li-area" scroll="no" style="width: 596px; height: 35px; position: static;"><label class="area-title pad7" fldid="2" istitle="1">用户名</label>
<div class="field-content pad12">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d2274_UserName" class="form-lbl" style="width:250px;" IsForField=1 EntId="2274" CId="4" FId="2" Vtp="5"  >','</span><input id="d2274_UserName_hid" type="hidden"  EntId="2274" IsField=1 DBField=1 IsPost=1 FieldName="UserName" dType="2" Vtp="5" RDT="2" Isc="1" RId="9" CId="4" FId="2" vlk=0    value="','" />',1,-1,-1,-1,0,'')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=2,[Form_EntId]=2274,[EntId]=2274,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[FieldName]='UserName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=3,[DefaultValue]='',[ValueType]=5,[RunValueType]=9,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="defaultform" entid="2274" ctrlprex="DefaultF_">
<ul isgroup="1" groupid="1" class="ul-group" isrple="1">

<li areaid="71" class="li-area" scroll="no" style="position: static; width: 596px; height: 35px;"><div class="form-title2">
	
	<h2 style="FONT-SIZE: 15px">
		基本资料</h2>
</div>
<br>
</li><li areaid="37" class="li-area" scroll="no" style="width: 596px; height: 35px; position: static;"><label class="area-title pad7" fldid="2" istitle="1">用户名</label>
<div class="field-content pad12">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d2274_UserName" class="form-lbl" style="width:250px;" IsForField=1 EntId="2274" CId="4" FId="2" Vtp="5"  >',[CtrlbackHtml]='</span><input id="d2274_UserName_hid" type="hidden"  EntId="2274" IsField=1 DBField=1 IsPost=1 FieldName="UserName" dType="2" Vtp="5" RDT="2" Isc="1" RId="9" CId="4" FId="2" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='' where  [FldUId]='9776dcd7-eac4-4505-ba08-713ef55bc868' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='044b9716-1fd7-40a7-a9f3-41dc391a22d6'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'044b9716-1fd7-40a7-a9f3-41dc391a22d6',2274,2274,'00000000-0000-0000-0000-000000000000',2,'RealName',2,2,5,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>



<a href="javascript:void(0);" onclick="javascript:changeUserName();" style="margin-left:15px;display:none;text-decoration :underline;color:orange;">修改</a>
	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div></li>
<li areaid="38" class="li-area" scroll="no" style="width: 596px; height: 42px; position: static;">
  <label class="area-title pad7" istitle="1" fldid="3">姓名</label>
  <div class="field-content pad7">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d2274_RealName"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2274,''DefaultF_'',2274,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2274,''DefaultF_'',2274);" EntId="2274" IsField=1 DBField=1 IsPost=1 FieldName="RealName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="3" vlk=0    value="','"/>','',1,-1,-1,-1,0,'')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=3,[Form_EntId]=2274,[EntId]=2274,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[FieldName]='RealName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=5,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>



<a href="javascript:void(0);" onclick="javascript:changeUserName();" style="margin-left:15px;display:none;text-decoration :underline;color:orange;">修改</a>
	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div></li>
<li areaid="38" class="li-area" scroll="no" style="width: 596px; height: 42px; position: static;">
  <label class="area-title pad7" istitle="1" fldid="3">姓名</label>
  <div class="field-content pad7">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2274_RealName"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2274,''DefaultF_'',2274,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2274,''DefaultF_'',2274);" EntId="2274" IsField=1 DBField=1 IsPost=1 FieldName="RealName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="3" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='' where  [FldUId]='044b9716-1fd7-40a7-a9f3-41dc391a22d6' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='321bd28d-dd2f-4f11-82a8-7264e5aecd17'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(20,'321bd28d-dd2f-4f11-82a8-7264e5aecd17',2274,2274,'00000000-0000-0000-0000-000000000000',3,'Sex',2,2,25,'',1,7,1,0,7,1,-1,-1,1,0,'','','','','</span>








<div iserr="1" class="form-vld"></div>
  </div>
</li>
<li areaid="55" class="li-area" scroll="no" style="position: static; width: 596px; height: 37px;">
  <label class="area-title pad7" istitle="1" fldid="20">性别</label>
  <div class="field-content pad7">
   <span class="form-ctr" isfcontain="1">','','','','<div id="d2274_Sex" class="form-radio" style="" EntId="2274" IsField=1 DBField=1 IsPost=1 FieldName="Sex" dType="2" Vtp="1" RDT="2" Isc="1" RId="1" CId="7" FId="20" vlk=0    Type="1"  onclick ="javascript:DcxVld.Validate(this,2274,''DefaultF_'',2274);" onfocus ="javascript:DcxVld.ValidateFocus(this,2274,''DefaultF_'',2274);"><span class="form-radio-item"  >
<input id="ddcx_2274_Sex_0"  name="ddcx_2274_Sex"  type="radio"  text="男"  value="男"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2274_Sex_0">男</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2274_Sex_1"  name="ddcx_2274_Sex"  type="radio"  text="女"  value="女"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2274_Sex_1">女</label></span>
<span class="clearfix"></span>','</div>','',1,-1,-1,-1,0,'')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=20,[Form_EntId]=2274,[EntId]=2274,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[FieldName]='Sex',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=25,[DefaultValue]='',[ValueType]=1,[RunValueType]=7,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=7,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>








<div iserr="1" class="form-vld"></div>
  </div>
</li>
<li areaid="55" class="li-area" scroll="no" style="position: static; width: 596px; height: 37px;">
  <label class="area-title pad7" istitle="1" fldid="20">性别</label>
  <div class="field-content pad7">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2274_Sex" class="form-radio" style="" EntId="2274" IsField=1 DBField=1 IsPost=1 FieldName="Sex" dType="2" Vtp="1" RDT="2" Isc="1" RId="1" CId="7" FId="20" vlk=0    Type="1"  onclick ="javascript:DcxVld.Validate(this,2274,''DefaultF_'',2274);" onfocus ="javascript:DcxVld.ValidateFocus(this,2274,''DefaultF_'',2274);"><span class="form-radio-item"  >
<input id="ddcx_2274_Sex_0"  name="ddcx_2274_Sex"  type="radio"  text="男"  value="男"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2274_Sex_0">男</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2274_Sex_1"  name="ddcx_2274_Sex"  type="radio"  text="女"  value="女"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2274_Sex_1">女</label></span>
<span class="clearfix"></span>',[CtrlbackHtml]='</div>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='' where  [FldUId]='321bd28d-dd2f-4f11-82a8-7264e5aecd17' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='09ee8a1f-93e1-4f83-abdf-97b62361276e'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(26,'09ee8a1f-93e1-4f83-abdf-97b62361276e',2274,2274,'00000000-0000-0000-0000-000000000000',4,'Birthday',3,3,30,'',5,10,1,0,48,1,-1,-1,1,0,'','','','','</span>


<div iserr="1" class="form-vld"></div>
  </div>
</li><li areaid="61" class="li-area" scroll="no" style="position: static; width: 596px; height: 41px;">
  <label class="area-title pad7" istitle="1" fldid="26">生日</label>
  <div class="field-content pad7">
   <span class="form-ctr" isfcontain="1"><div id="d2274_Birthday" ctrlprex="DefaultF_" class="form-dateymd" style="" isforfield="1" entid="2274" fid="26" rid="1" cid="48" fieldname="Birthday"><table><tbody><tr>
<td><select id="d2274_Birthday_1" onchange="javascript:GetChildOption_DateYMD(this);" class="form-select" style="width:100px;" vlabel="1" isyear="1"><option selected="" vid="0" value="0">年份</option></select>年</td><td><select id="d2274_Birthday_2" onchange="javascript:GetChildOption_DateYMD(this);" class="form-select" style="width:60px;" vlabel="2" ismonth="1"><option selected="" vid="0" value="0">月份</option></select>月</td><td><select id="d2274_Birthday_3" onchange="javascript:GetChildOption_DateYMD(this);" class="form-select" style="width:60px;" vlabel="3" isday="1"><option selected="" vid="0" value="0">日</option></select>日</td></tr></tbody></table>
</div>','','','','<input  id="d2274_Birthday_hid"   type="hidden"  EntId="2274" IsField=1 DBField=1 IsPost=1 FieldName="Birthday" dType="3" Vtp="5" RDT="3" Isc="1" RId="1" CId="48" FId="26" vlk=0    value="','"/>','',1,-1,-1,-1,0,'')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=26,[Form_EntId]=2274,[EntId]=2274,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=4,[FieldName]='Birthday',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=30,[DefaultValue]='',[ValueType]=5,[RunValueType]=10,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=48,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>


<div iserr="1" class="form-vld"></div>
  </div>
</li><li areaid="61" class="li-area" scroll="no" style="position: static; width: 596px; height: 41px;">
  <label class="area-title pad7" istitle="1" fldid="26">生日</label>
  <div class="field-content pad7">
   <span class="form-ctr" isfcontain="1"><div id="d2274_Birthday" ctrlprex="DefaultF_" class="form-dateymd" style="" isforfield="1" entid="2274" fid="26" rid="1" cid="48" fieldname="Birthday"><table><tbody><tr>
<td><select id="d2274_Birthday_1" onchange="javascript:GetChildOption_DateYMD(this);" class="form-select" style="width:100px;" vlabel="1" isyear="1"><option selected="" vid="0" value="0">年份</option></select>年</td><td><select id="d2274_Birthday_2" onchange="javascript:GetChildOption_DateYMD(this);" class="form-select" style="width:60px;" vlabel="2" ismonth="1"><option selected="" vid="0" value="0">月份</option></select>月</td><td><select id="d2274_Birthday_3" onchange="javascript:GetChildOption_DateYMD(this);" class="form-select" style="width:60px;" vlabel="3" isday="1"><option selected="" vid="0" value="0">日</option></select>日</td></tr></tbody></table>
</div>',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2274_Birthday_hid"   type="hidden"  EntId="2274" IsField=1 DBField=1 IsPost=1 FieldName="Birthday" dType="3" Vtp="5" RDT="3" Isc="1" RId="1" CId="48" FId="26" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='' where  [FldUId]='09ee8a1f-93e1-4f83-abdf-97b62361276e' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='d4118e4e-7856-46c5-8115-eda1469bc33d'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'d4118e4e-7856-46c5-8115-eda1469bc33d',2274,2274,'00000000-0000-0000-0000-000000000000',5,'PositionId',1,1,15,'SELECT [PositionName],[PositionId] FROM [Dcx_Position] order by [OrderNO]',2,1,1,0,3,1,-1,-1,1,0,'','','','','</span>

<div iserr="1" class="form-vld"></div>
  </div>
</li>





<li areaid="45" class="li-area" scroll="no" style="height: 40px; position: static;">
  <label class="area-title pad7" istitle="1" fldid="10">职位</label>
  <div class="field-content pad7">
   <span class="form-ctr" isfcontain="1">','','','','<select id="d2274_PositionId" name="d2274_PositionId" class="form-select"  onchange ="javascript:DcxVld.Validate(this,2274,''DefaultF_'',2274,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,2274,''DefaultF_'',2274);" EntId="2274" IsField=1 DBField=1 IsPost=1 FieldName="PositionId" dType="1" Vtp="2" RDT="1" Isc="1" RId="1" CId="3" FId="10" vlk=0    style="width:250px;">','</select>','',1,-1,-1,-1,0,'')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=10,[Form_EntId]=2274,[EntId]=2274,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=5,[FieldName]='PositionId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=15,[DefaultValue]='SELECT [PositionName],[PositionId] FROM [Dcx_Position] order by [OrderNO]',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

<div iserr="1" class="form-vld"></div>
  </div>
</li>





<li areaid="45" class="li-area" scroll="no" style="height: 40px; position: static;">
  <label class="area-title pad7" istitle="1" fldid="10">职位</label>
  <div class="field-content pad7">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d2274_PositionId" name="d2274_PositionId" class="form-select"  onchange ="javascript:DcxVld.Validate(this,2274,''DefaultF_'',2274,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,2274,''DefaultF_'',2274);" EntId="2274" IsField=1 DBField=1 IsPost=1 FieldName="PositionId" dType="1" Vtp="2" RDT="1" Isc="1" RId="1" CId="3" FId="10" vlk=0    style="width:250px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='' where  [FldUId]='d4118e4e-7856-46c5-8115-eda1469bc33d' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='86607cfb-ff18-481c-a682-8602233934d4'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'86607cfb-ff18-481c-a682-8602233934d4',2274,2274,'00000000-0000-0000-0000-000000000000',6,'CurSystemId',1,1,12,'',5,9,1,0,4,1,-1,-1,1,0,'','','','','</span><div iserr="1" class="form-vld"></div>
  </div>
</li><li areaid="42" class="li-area" scroll="no" style="position: static; width: 596px; height: 35px; display: none;"><label class="area-title pad7" fldid="7" istitle="1">当前系统</label>
<div class="field-content pad12">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d2274_CurSystemId" class="form-lbl" style="width:250px;" IsForField=1 EntId="2274" CId="4" FId="7" Vtp="5"  >','</span><input id="d2274_CurSystemId_hid" type="hidden"  EntId="2274" IsField=1 DBField=1 IsPost=1 FieldName="CurSystemId" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="4" FId="7" vlk=0    value="','" />',1,-1,-1,-1,0,'')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=7,[Form_EntId]=2274,[EntId]=2274,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=6,[FieldName]='CurSystemId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=12,[DefaultValue]='',[ValueType]=5,[RunValueType]=9,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span><div iserr="1" class="form-vld"></div>
  </div>
</li><li areaid="42" class="li-area" scroll="no" style="position: static; width: 596px; height: 35px; display: none;"><label class="area-title pad7" fldid="7" istitle="1">当前系统</label>
<div class="field-content pad12">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d2274_CurSystemId" class="form-lbl" style="width:250px;" IsForField=1 EntId="2274" CId="4" FId="7" Vtp="5"  >',[CtrlbackHtml]='</span><input id="d2274_CurSystemId_hid" type="hidden"  EntId="2274" IsField=1 DBField=1 IsPost=1 FieldName="CurSystemId" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="4" FId="7" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='' where  [FldUId]='86607cfb-ff18-481c-a682-8602233934d4' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='c33592bb-1801-4e07-83c9-da9887651002'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(37,'c33592bb-1801-4e07-83c9-da9887651002',2274,2274,'00000000-0000-0000-0000-000000000000',7,'Email',2,2,7,'',5,9,1,0,4,1,-1,-1,1,0,'','','','','</span>
 <a href="javascript:void(0);" onclick="javascript:changeSystem();" style="margin-left:15px;text-decoration :underline;color:orange;">切换</a>
	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li><li areaid="73" class="li-area" scroll="no" style="position: static; width: 596px; height: 35px;"><div class="form-title2">	<h2 style="FONT-SIZE: 15px">
		联系方式</h2>
</div>
<br></li><li class="li-area" dbfieldid="6743" columntype="" areaid="74" scroll="no" style="position: static; width: 596px; height: 35px;"><label class="area-title pad7" fldid="37" istitle="1">邮箱地址</label>
<div class="field-content pad12">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d2274_Email" class="form-lbl" style="width:250px;" IsForField=1 EntId="2274" CId="4" FId="37" Vtp="5"  >','</span><input id="d2274_Email_hid" type="hidden"  EntId="2274" IsField=1 DBField=1 IsPost=1 FieldName="Email" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="4" FId="37" vlk=0    value="','" />',-1,-1,-1,-1,0,'')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=37,[Form_EntId]=2274,[EntId]=2274,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=7,[FieldName]='Email',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=7,[DefaultValue]='',[ValueType]=5,[RunValueType]=9,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
 <a href="javascript:void(0);" onclick="javascript:changeSystem();" style="margin-left:15px;text-decoration :underline;color:orange;">切换</a>
	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li><li areaid="73" class="li-area" scroll="no" style="position: static; width: 596px; height: 35px;"><div class="form-title2">	<h2 style="FONT-SIZE: 15px">
		联系方式</h2>
</div>
<br></li><li class="li-area" dbfieldid="6743" columntype="" areaid="74" scroll="no" style="position: static; width: 596px; height: 35px;"><label class="area-title pad7" fldid="37" istitle="1">邮箱地址</label>
<div class="field-content pad12">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d2274_Email" class="form-lbl" style="width:250px;" IsForField=1 EntId="2274" CId="4" FId="37" Vtp="5"  >',[CtrlbackHtml]='</span><input id="d2274_Email_hid" type="hidden"  EntId="2274" IsField=1 DBField=1 IsPost=1 FieldName="Email" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="4" FId="37" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='' where  [FldUId]='c33592bb-1801-4e07-83c9-da9887651002' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='6b104daf-cec6-4493-8d99-408e3bab635d'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(38,'6b104daf-cec6-4493-8d99-408e3bab635d',2274,2274,'00000000-0000-0000-0000-000000000000',8,'Address',2,2,8,'',5,10,1,0,46,1,-1,-1,1,0,'','','','','</span>
 <a href="javascript:void(0);" onclick="javascript:J2_changeEmail(this);" style="margin-left:15px;text-decoration :underline;color:orange;">修改</a></div>
</li><li class="li-area" dbfieldid="6726" columntype="" areaid="75" scroll="no" style="position: static;"><label class="area-title pad7" istitle="1" fldid="38">所在地区</label>
<div class="field-content pad7">
<span class="form-ctr" isfcontain="1"><div id="d2274_Address" ctrlprex="DefaultF_" class="form-address" style="" isforfield="1" entid="2274" fid="38" rid="1" cid="46" fieldname="Address"><table><tbody><tr>
<td><select id="d2274_Address_1" class="form-select" onchange="javascript:GetChildOption_Address(this);" style="width:130px;" vlabel="1"><option selected="" vid="0" value="0">选择国家</option></select></td><td><select id="d2274_Address_2" class="form-select" onchange="javascript:GetChildOption_Address(this);" style="width:90px;" vlabel="2"><option selected="" vid="0" value="0">选择省</option></select></td><td><select id="d2274_Address_3" class="form-select" onchange="javascript:GetChildOption_Address(this);" style="width:90px;" vlabel="3"><option selected="" vid="0" value="0">选择市</option></select></td></tr></tbody></table>
</div>','','','','<input  id="d2274_Address_hid"   type="hidden"  EntId="2274" IsField=1 DBField=1 IsPost=1 FieldName="Address" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="46" FId="38" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=38,[Form_EntId]=2274,[EntId]=2274,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=8,[FieldName]='Address',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=8,[DefaultValue]='',[ValueType]=5,[RunValueType]=10,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=46,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
 <a href="javascript:void(0);" onclick="javascript:J2_changeEmail(this);" style="margin-left:15px;text-decoration :underline;color:orange;">修改</a></div>
</li><li class="li-area" dbfieldid="6726" columntype="" areaid="75" scroll="no" style="position: static;"><label class="area-title pad7" istitle="1" fldid="38">所在地区</label>
<div class="field-content pad7">
<span class="form-ctr" isfcontain="1"><div id="d2274_Address" ctrlprex="DefaultF_" class="form-address" style="" isforfield="1" entid="2274" fid="38" rid="1" cid="46" fieldname="Address"><table><tbody><tr>
<td><select id="d2274_Address_1" class="form-select" onchange="javascript:GetChildOption_Address(this);" style="width:130px;" vlabel="1"><option selected="" vid="0" value="0">选择国家</option></select></td><td><select id="d2274_Address_2" class="form-select" onchange="javascript:GetChildOption_Address(this);" style="width:90px;" vlabel="2"><option selected="" vid="0" value="0">选择省</option></select></td><td><select id="d2274_Address_3" class="form-select" onchange="javascript:GetChildOption_Address(this);" style="width:90px;" vlabel="3"><option selected="" vid="0" value="0">选择市</option></select></td></tr></tbody></table>
</div>',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2274_Address_hid"   type="hidden"  EntId="2274" IsField=1 DBField=1 IsPost=1 FieldName="Address" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="46" FId="38" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='' where  [FldUId]='6b104daf-cec6-4493-8d99-408e3bab635d' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='04acf2d8-84d7-4f51-b175-197e4d5b7988'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(21,'04acf2d8-84d7-4f51-b175-197e4d5b7988',2274,2274,'00000000-0000-0000-0000-000000000000',9,'Telephone',2,2,26,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
</div>
</li>




<li areaid="56" class="li-area" scroll="no" style="position: static; width: 596px; height: 42px;"><label class="area-title pad7" fldid="21" istitle="1">电话</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2274_Telephone"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2274,''DefaultF_'',2274,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2274,''DefaultF_'',2274);" EntId="2274" IsField=1 DBField=1 IsPost=1 FieldName="Telephone" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="21" vlk=0    value="','"/>','',1,-1,-1,-1,0,'')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=21,[Form_EntId]=2274,[EntId]=2274,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=9,[FieldName]='Telephone',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=26,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>




<li areaid="56" class="li-area" scroll="no" style="position: static; width: 596px; height: 42px;"><label class="area-title pad7" fldid="21" istitle="1">电话</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2274_Telephone"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2274,''DefaultF_'',2274,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2274,''DefaultF_'',2274);" EntId="2274" IsField=1 DBField=1 IsPost=1 FieldName="Telephone" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="21" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='' where  [FldUId]='04acf2d8-84d7-4f51-b175-197e4d5b7988' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='a9de8e9b-0e96-4e2b-aab5-1fb6e58b80f8'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(25,'a9de8e9b-0e96-4e2b-aab5-1fb6e58b80f8',2274,2274,'00000000-0000-0000-0000-000000000000',10,'Phone',2,2,29,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>



	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li><li areaid="60" class="li-area" scroll="no" style="position: static;">
  <label class="area-title pad7" istitle="1" fldid="25">手机号码</label>
  <div class="field-content pad7">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d2274_Phone"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2274,''DefaultF_'',2274,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2274,''DefaultF_'',2274);" EntId="2274" IsField=1 DBField=1 IsPost=1 FieldName="Phone" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="25" vlk=0    value="','"/>','',1,-1,-1,-1,0,'')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=25,[Form_EntId]=2274,[EntId]=2274,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=10,[FieldName]='Phone',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=29,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>



	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li><li areaid="60" class="li-area" scroll="no" style="position: static;">
  <label class="area-title pad7" istitle="1" fldid="25">手机号码</label>
  <div class="field-content pad7">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2274_Phone"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2274,''DefaultF_'',2274,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2274,''DefaultF_'',2274);" EntId="2274" IsField=1 DBField=1 IsPost=1 FieldName="Phone" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="25" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='' where  [FldUId]='a9de8e9b-0e96-4e2b-aab5-1fb6e58b80f8' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='4b85ea35-0745-477e-9b45-4ddfa2dab4ce'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(30,'4b85ea35-0745-477e-9b45-4ddfa2dab4ce',2274,2274,'00000000-0000-0000-0000-000000000000',11,'Http',2,2,34,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span><div iserr="1" class="form-vld"></div>
  </div>
</li><li areaid="65" class="li-area" scroll="no" style="position: static; width: 596px; height: 42px;"><label class="area-title pad7" fldid="30" istitle="1">个人主页</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','</span>







	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li><li areaid="76" class="li-area" scroll="no" style="position: static; width: 596px; height: 42px;"><label class="area-title pad7" fldid="30" istitle="1">&nbsp;</label><div class="form-buttons" style="">
	<button id="btn_updateUserMsg" class="form-buttons-highlight" type="button">修改资料</button></div></li>




















</ul>
</div>','','','<input  id="d2274_Http"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2274,''DefaultF_'',2274,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2274,''DefaultF_'',2274);" EntId="2274" IsField=1 DBField=1 IsPost=1 FieldName="Http" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="30" vlk=0    value="','"/>','',1,-1,-1,-1,0,'')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=30,[Form_EntId]=2274,[EntId]=2274,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=11,[FieldName]='Http',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=34,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span><div iserr="1" class="form-vld"></div>
  </div>
</li><li areaid="65" class="li-area" scroll="no" style="position: static; width: 596px; height: 42px;"><label class="area-title pad7" fldid="30" istitle="1">个人主页</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>







	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li><li areaid="76" class="li-area" scroll="no" style="position: static; width: 596px; height: 42px;"><label class="area-title pad7" fldid="30" istitle="1">&nbsp;</label><div class="form-buttons" style="">
	<button id="btn_updateUserMsg" class="form-buttons-highlight" type="button">修改资料</button></div></li>




















</ul>
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2274_Http"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2274,''DefaultF_'',2274,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2274,''DefaultF_'',2274);" EntId="2274" IsField=1 DBField=1 IsPost=1 FieldName="Http" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="30" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='' where  [FldUId]='4b85ea35-0745-477e-9b45-4ddfa2dab4ce' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=1200

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=1200  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(1200,null,'Dcx_User','Dcx_User',1,0,0,0,0,0,29,1,3,'admin','2013-12-15 17:32:24',3,'admin','2013-12-15 17:32:24',null,null,27,418,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='Dcx_User',[DBTableByName]='Dcx_User',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=29,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:24',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:24',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=27,[SDbTableId]=418,[IsChange]=null,[IsSystem]=null where  [DBTableId]=1200 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=50  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17995,50,29,1200,'int',1,1,1,'Dcx_User','TopMenuId','TopMenuId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='TopMenuId',[FieldByname]='TopMenuId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=50 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=49  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17996,49,29,1200,'varchar',2,1,1,'Dcx_User','InviteCode','InviteCode','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='InviteCode',[FieldByname]='InviteCode',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=49 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=48  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17997,48,29,1200,'int',1,1,1,'Dcx_User','DiskSize','DiskSize','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='DiskSize',[FieldByname]='DiskSize',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=48 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=47  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17998,47,29,1200,'varchar',2,1,1,'Dcx_User','Remark','Remark','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Remark',[FieldByname]='Remark',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=47 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=46  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17999,46,29,1200,'bit',4,1,1,'Dcx_User','AcceptStrangerIM','AcceptStrangerIM','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='AcceptStrangerIM',[FieldByname]='AcceptStrangerIM',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=46 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=45  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18000,45,29,1200,'int',1,1,1,'Dcx_User','StyleId','StyleId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='StyleId',[FieldByname]='StyleId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=45 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=44  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18001,44,29,1200,'bit',4,1,1,'Dcx_User','SelftSearch','SelftSearch','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='SelftSearch',[FieldByname]='SelftSearch',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=44 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=43  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18002,43,29,1200,'bit',4,1,1,'Dcx_User','SelftNavMenu','SelftNavMenu','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='SelftNavMenu',[FieldByname]='SelftNavMenu',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=43 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=42  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18003,42,29,1200,'bit',4,1,1,'Dcx_User','SelftHomePage','SelftHomePage','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='SelftHomePage',[FieldByname]='SelftHomePage',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=42 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=41  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18004,41,29,1200,'datetime',3,1,1,'Dcx_User','EditTime','EditTime','getdate()',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='EditTime',[FieldByname]='EditTime',[DefaultValue]='getdate()',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=41 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=40  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18005,40,29,1200,'varchar',2,1,1,'Dcx_User','Editor','Editor','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Editor',[FieldByname]='Editor',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=40 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=39  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18006,39,29,1200,'int',1,1,1,'Dcx_User','EditorId','EditorId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='EditorId',[FieldByname]='EditorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=39 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=38  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18007,38,29,1200,'datetime',3,1,1,'Dcx_User','CreateTime','CreateTime','getdate()',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='CreateTime',[FieldByname]='CreateTime',[DefaultValue]='getdate()',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=38 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=37  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18008,37,29,1200,'varchar',2,1,1,'Dcx_User','Creator','Creator','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Creator',[FieldByname]='Creator',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=37 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=36  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18009,36,29,1200,'int',1,1,1,'Dcx_User','CreatorId','CreatorId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='CreatorId',[FieldByname]='CreatorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=36 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=35  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18010,35,29,1200,'varchar',2,1,1,'Dcx_User','IconPath','IconPath','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='IconPath',[FieldByname]='IconPath',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=35 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=34  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18011,34,29,1200,'varchar',2,1,1,'Dcx_User','Http','Http','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Http',[FieldByname]='Http',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=34 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=33  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18012,33,29,1200,'int',1,1,1,'Dcx_User','Caste','Caste','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Caste',[FieldByname]='Caste',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=33 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=32  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18013,32,29,1200,'bit',4,1,1,'Dcx_User','IsNeedKey','IsNeedKey','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='IsNeedKey',[FieldByname]='IsNeedKey',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=32 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=31  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18014,31,29,1200,'int',1,1,1,'Dcx_User','Style','Style','1',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Style',[FieldByname]='Style',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=31 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=30  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18015,30,29,1200,'datetime',3,1,1,'Dcx_User','Birthday','Birthday','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Birthday',[FieldByname]='Birthday',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=30 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=29  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18016,29,29,1200,'varchar',2,1,1,'Dcx_User','Phone','Phone','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Phone',[FieldByname]='Phone',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=29 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=28  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18017,28,29,1200,'datetime',3,1,1,'Dcx_User','RegistedDate','RegistedDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='RegistedDate',[FieldByname]='RegistedDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=28 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=27  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18018,27,29,1200,'varchar',2,1,1,'Dcx_User','Status','Status','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Status',[FieldByname]='Status',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=27 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18019,26,29,1200,'varchar',2,1,1,'Dcx_User','Telephone','Telephone','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Telephone',[FieldByname]='Telephone',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=26 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18020,25,29,1200,'varchar',2,1,1,'Dcx_User','Sex','Sex','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Sex',[FieldByname]='Sex',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18021,24,29,1200,'int',1,1,1,'Dcx_User','UserOrder','UserOrder','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='UserOrder',[FieldByname]='UserOrder',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18022,23,29,1200,'datetime',3,1,1,'Dcx_User','LoginDate','LoginDate','0',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='LoginDate',[FieldByname]='LoginDate',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18023,22,29,1200,'varchar',2,1,1,'Dcx_User','PWD','PWD','',0,0,0,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='PWD',[FieldByname]='PWD',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18024,21,29,1200,'bit',4,1,1,'Dcx_User','Online','Online','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Online',[FieldByname]='Online',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18025,20,29,1200,'int',1,1,1,'Dcx_User','VisitTime','VisitTime','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='VisitTime',[FieldByname]='VisitTime',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18026,19,29,1200,'bit',4,1,1,'Dcx_User','RestrictIp','RestrictIp','0',0,0,0,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='RestrictIp',[FieldByname]='RestrictIp',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18027,18,29,1200,'varchar',2,1,1,'Dcx_User','IP','IP','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='IP',[FieldByname]='IP',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18028,17,29,1200,'bit',4,1,1,'Dcx_User','CanLogin','CanLogin','1',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='CanLogin',[FieldByname]='CanLogin',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18029,16,29,1200,'bit',4,1,1,'Dcx_User','SuperAdmin','SuperAdmin','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='SuperAdmin',[FieldByname]='SuperAdmin',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18030,15,29,1200,'int',1,1,1,'Dcx_User','PositionId','PositionId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='PositionId',[FieldByname]='PositionId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18031,14,29,1200,'int',1,1,1,'Dcx_User','DeptId','DeptId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='DeptId',[FieldByname]='DeptId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18032,13,29,1200,'int',1,1,1,'Dcx_User','EmployeeId','EmployeeId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='EmployeeId',[FieldByname]='EmployeeId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18033,12,29,1200,'int',1,1,1,'Dcx_User','CurSystemId','CurSystemId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='CurSystemId',[FieldByname]='CurSystemId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18034,11,29,1200,'bit',4,1,1,'Dcx_User','IsAccountCreator','IsAccountCreator','0',0,0,0,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='IsAccountCreator',[FieldByname]='IsAccountCreator',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18035,10,29,1200,'int',1,1,1,'Dcx_User','AccountId','AccountId','1',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='AccountId',[FieldByname]='AccountId',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18036,9,29,1200,'int',1,1,1,'Dcx_User','GroupId','GroupId','0',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='GroupId',[FieldByname]='GroupId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18037,8,29,1200,'varchar',2,1,1,'Dcx_User','Address','Address','',0,0,1,150,150,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Address',[FieldByname]='Address',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=150,[Precision]=150,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18038,7,29,1200,'varchar',2,1,1,'Dcx_User','Email','Email','',0,0,0,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Email',[FieldByname]='Email',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18039,6,29,1200,'varchar',2,1,1,'Dcx_User','DcxUserName','DcxUserName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='DcxUserName',[FieldByname]='DcxUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18040,5,29,1200,'varchar',2,1,1,'Dcx_User','RealName','RealName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='RealName',[FieldByname]='RealName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18041,4,29,1200,'varchar',2,1,1,'Dcx_User','UpperName','UpperName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='UpperName',[FieldByname]='UpperName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18042,3,29,1200,'varchar',2,1,1,'Dcx_User','UserName','UserName','',0,0,0,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='UserName',[FieldByname]='UserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18043,2,29,1200,'uniqueidentifier',24,1,1,'Dcx_User','UserGuId','UserGuId','newid()',0,0,1,16,16,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='uniqueidentifier',[FieldDataTypeId]=24,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='UserGuId',[FieldByname]='UserGuId',[DefaultValue]='newid()',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=16,[Precision]=16,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18044,1,29,1200,'int',1,1,1,'Dcx_User','UserId','UserId','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='UserId',[FieldByname]='UserId',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=1 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 



Delete from [Dcx_EntityPrivilege]  where [EntId]=2275

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2275  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11146,3415,2275,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=3415,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2275  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2275

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2275  and  [ModuleTypeId]=18  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20494,29,3415,2275,41,18,39,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3415,[TemplateId]=41,[ModuleId]=39,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2275  and  [ModuleTypeId]=18 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_DefaultForm_Run]  where [EntId]=2275

--Dcx_DefaultForm_Run
      if (select count(1) from [Dcx_DefaultForm_Run] where  [EntId]=2275  )<1 
      begin 
           Insert into [Dcx_DefaultForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[OtherMsg],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('e31b2f91-b55e-47a9-9ada-b7d567918317','修改密码',2275,-1,'','',0,'','<script type="text/javascript" src="/js/System/AccountSystem/ChangePassWord.js"></script><script type="text/javascript" src="/js/System/AccountSystem/SystemCommon.js"></script>','DcxRun.DefaultF_2275= {"MenuId":3415,"MEntId":2275,"EntName":"修改密码","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2275":{"EntId":2275,"KeyFieldValue":"","DBTableName":"","KeyField":"UserId","KeydtId":2,"JoinKeyField":"UserId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":12,"Ent":[{"EntId":2275,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"","ovt":1},{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{6,16}$","err":"限制6-16个字符","ok":"","warn":"","ovt":1}]},{"FldId":3,"Vld":[]},{"FldId":5,"Vld":[{"Id":6,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"请输入新密码","ok":"","warn":"由6~16个字母（区分大小写），数字，符号组成","ovt":1},{"Id":8,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{6,16}$","err":"长度要求在6~16之间","ok":"","warn":"","ovt":1}]},{"FldId":6,"Vld":[{"Id":10,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"请输入确认密码","ok":"","warn":"","ovt":1},{"Id":12,"vlId":2,"cdn":"","compT":1,"compV":"{@newPwd}","minV":"","maxV":"","rExp":"","err":"确认密码要求与新密码相等","ok":"","warn":"","ovt":1}]}]}]};
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2275.EntMsg.E2275.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_User","EntId":2275,"KeyField":"UserId","MKeyField":"UserId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2275.EntMsg.E2275.GetDataRowModel=function()
{
    return {"Dcx_Keymsg":{"RowIx":-1,"KeyField":"UserId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2275.SubmitForm=function(buildNew,closeDlg){
UpdatePassWord();
}','<$2275$>select [UserId] from Dcx_User where [UserId]=''{$keyfieldvalue}''</$2275$>',10,'2275*UserId*2*UserId*2*Dcx_User*修改密码','','','',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2013-5-4 4:16:45',3,'admin','2013-10-2 18:34:18',1)
      end
      else 
      begin 
           update [Dcx_DefaultForm_Run] set [FormId]='e31b2f91-b55e-47a9-9ada-b7d567918317',[FormName]='修改密码',[ModuleId]=-1,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='',[DIYJsCss2]='<script type="text/javascript" src="/js/System/AccountSystem/ChangePassWord.js"></script><script type="text/javascript" src="/js/System/AccountSystem/SystemCommon.js"></script>',[AutoPublicJs]='DcxRun.DefaultF_2275= {"MenuId":3415,"MEntId":2275,"EntName":"修改密码","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2275":{"EntId":2275,"KeyFieldValue":"","DBTableName":"","KeyField":"UserId","KeydtId":2,"JoinKeyField":"UserId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":12,"Ent":[{"EntId":2275,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"","ovt":1},{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{6,16}$","err":"限制6-16个字符","ok":"","warn":"","ovt":1}]},{"FldId":3,"Vld":[]},{"FldId":5,"Vld":[{"Id":6,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"请输入新密码","ok":"","warn":"由6~16个字母（区分大小写），数字，符号组成","ovt":1},{"Id":8,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{6,16}$","err":"长度要求在6~16之间","ok":"","warn":"","ovt":1}]},{"FldId":6,"Vld":[{"Id":10,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"请输入确认密码","ok":"","warn":"","ovt":1},{"Id":12,"vlId":2,"cdn":"","compT":1,"compV":"{@newPwd}","minV":"","maxV":"","rExp":"","err":"确认密码要求与新密码相等","ok":"","warn":"","ovt":1}]}]}]};
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2275.EntMsg.E2275.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_User","EntId":2275,"KeyField":"UserId","MKeyField":"UserId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2275.EntMsg.E2275.GetDataRowModel=function()
{
    return {"Dcx_Keymsg":{"RowIx":-1,"KeyField":"UserId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2275.SubmitForm=function(buildNew,closeDlg){
UpdatePassWord();
}',[LoadingSql]='<$2275$>select [UserId] from Dcx_User where [UserId]=''{$keyfieldvalue}''</$2275$>',[PageSize]=10,[OtherMsg]='2275*UserId*2*UserId*2*Dcx_User*修改密码',[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-5-4 4:16:45',[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-2 18:34:18',[AccountId]=1 where  [EntId]=2275 
      end




--Dcx_DefaultFormField_Run
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='5339b292-5a30-4a32-a502-2a17b7d5c234'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'5339b292-5a30-4a32-a502-2a17b7d5c234',2275,2275,'00000000-0000-0000-0000-000000000000',1,'oldPwd',2,2,-1,'',5,1,1,0,17,3,-1,-1,0,0,'','','','','<div class="defaultform" entid="2275" ctrlprex="DefaultF_">
<ul isgroup="1" groupid="1" class="ul-group" isrple="1">
<li areaid="7" class="li-area" scroll="no" style="width: 596px; height: 50px; position: static;"><div class="form-title2">
	
	<h2 style="FONT-SIZE: 15px">
		修改密码</h2>
</div>
<br>
</li><li areaid="3" class="li-area" scroll="no" style="width: 596px; height: 35px; position: static;"><label class="area-title pad7" fldid="1" istitle="1" style="width:150px;">旧密码：</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2275_oldPwd"   type="password" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2275,''DefaultF_'',2275,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2275,''DefaultF_'',2275);" EntId="2275" IsField=1 DBField=0 IsPost=0 FieldName="oldPwd" dType="2" Vtp="5" RDT="2" Isc="1" RId="-1" CId="17" FId="1" vlk=0    value="','"/>','',1,3,-1,-1,0,'')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=1,[Form_EntId]=2275,[EntId]=2275,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[FieldName]='oldPwd',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=17,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="defaultform" entid="2275" ctrlprex="DefaultF_">
<ul isgroup="1" groupid="1" class="ul-group" isrple="1">
<li areaid="7" class="li-area" scroll="no" style="width: 596px; height: 50px; position: static;"><div class="form-title2">
	
	<h2 style="FONT-SIZE: 15px">
		修改密码</h2>
</div>
<br>
</li><li areaid="3" class="li-area" scroll="no" style="width: 596px; height: 35px; position: static;"><label class="area-title pad7" fldid="1" istitle="1" style="width:150px;">旧密码：</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2275_oldPwd"   type="password" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2275,''DefaultF_'',2275,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2275,''DefaultF_'',2275);" EntId="2275" IsField=1 DBField=0 IsPost=0 FieldName="oldPwd" dType="2" Vtp="5" RDT="2" Isc="1" RId="-1" CId="17" FId="1" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=3,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='' where  [FldUId]='5339b292-5a30-4a32-a502-2a17b7d5c234' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='54305d29-93aa-4111-a330-889441ecfd87'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'54305d29-93aa-4111-a330-889441ecfd87',2275,2275,'00000000-0000-0000-0000-000000000000',2,'newPwd',2,2,-1,'',5,1,1,0,17,3,-1,-1,0,0,'','','','','</span>


	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li><li areaid="6" class="li-area" scroll="no" style="width: 596px; height: 35px; position: static;"><label class="area-title pad7" fldid="5" istitle="1" style="width:150px;">新密码：</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2275_newPwd"   type="password" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2275,''DefaultF_'',2275,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2275,''DefaultF_'',2275);" EntId="2275" IsField=1 DBField=0 IsPost=0 FieldName="newPwd" dType="2" Vtp="5" RDT="2" Isc="1" RId="-1" CId="17" FId="5" vlk=0    value="','"/>','',1,6,-1,-1,0,'')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=5,[Form_EntId]=2275,[EntId]=2275,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[FieldName]='newPwd',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=17,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>


	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li><li areaid="6" class="li-area" scroll="no" style="width: 596px; height: 35px; position: static;"><label class="area-title pad7" fldid="5" istitle="1" style="width:150px;">新密码：</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2275_newPwd"   type="password" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2275,''DefaultF_'',2275,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2275,''DefaultF_'',2275);" EntId="2275" IsField=1 DBField=0 IsPost=0 FieldName="newPwd" dType="2" Vtp="5" RDT="2" Isc="1" RId="-1" CId="17" FId="5" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=6,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='' where  [FldUId]='54305d29-93aa-4111-a330-889441ecfd87' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='43292fcf-5aec-4397-8cdc-b15cac40fb94'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'43292fcf-5aec-4397-8cdc-b15cac40fb94',2275,2275,'00000000-0000-0000-0000-000000000000',3,'newPwd2',2,2,-1,'',5,1,1,0,17,3,-1,-1,0,0,'','','','','</span>

















<div iserr="1" class="form-vld"></div>
</div></li><li areaid="5" class="li-area" scroll="no" style="width: 596px; height: 35px; position: static;"><label class="area-title pad7" fldid="6" istitle="1" style="width:150px;">确认新密码：</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','</span>






















	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div></li><li areaid="8" class="li-area" scroll="no" style="width: 596px; height: 80px; position: static;">
<label class="area-title pad7" fldid="6" istitle="1" style="width:35%;">&nbsp;</label>
<div class="field-content pad7">
	<a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);"><span class="op_bt_i">修改密码</span></a>
</div>
</li>

</ul>
</div>','','','<input  id="d2275_newPwd2"   type="password" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2275,''DefaultF_'',2275,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2275,''DefaultF_'',2275);" EntId="2275" IsField=1 DBField=0 IsPost=0 FieldName="newPwd2" dType="2" Vtp="5" RDT="2" Isc="1" RId="-1" CId="17" FId="6" vlk=0    value="','"/>','',1,5,-1,-1,0,'')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=6,[Form_EntId]=2275,[EntId]=2275,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[FieldName]='newPwd2',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=17,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

















<div iserr="1" class="form-vld"></div>
</div></li><li areaid="5" class="li-area" scroll="no" style="width: 596px; height: 35px; position: static;"><label class="area-title pad7" fldid="6" istitle="1" style="width:150px;">确认新密码：</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>






















	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div></li><li areaid="8" class="li-area" scroll="no" style="width: 596px; height: 80px; position: static;">
<label class="area-title pad7" fldid="6" istitle="1" style="width:35%;">&nbsp;</label>
<div class="field-content pad7">
	<a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);"><span class="op_bt_i">修改密码</span></a>
</div>
</li>

</ul>
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2275_newPwd2"   type="password" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2275,''DefaultF_'',2275,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2275,''DefaultF_'',2275);" EntId="2275" IsField=1 DBField=0 IsPost=0 FieldName="newPwd2" dType="2" Vtp="5" RDT="2" Isc="1" RId="-1" CId="17" FId="6" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=5,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='' where  [FldUId]='43292fcf-5aec-4397-8cdc-b15cac40fb94' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=1200

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=1200  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(1200,null,'Dcx_User','Dcx_User',1,0,0,0,0,0,29,1,3,'admin','2013-12-15 17:32:24',3,'admin','2013-12-15 17:32:24',null,null,27,418,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='Dcx_User',[DBTableByName]='Dcx_User',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=29,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:24',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:24',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=27,[SDbTableId]=418,[IsChange]=null,[IsSystem]=null where  [DBTableId]=1200 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=50  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17995,50,29,1200,'int',1,1,1,'Dcx_User','TopMenuId','TopMenuId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='TopMenuId',[FieldByname]='TopMenuId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=50 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=49  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17996,49,29,1200,'varchar',2,1,1,'Dcx_User','InviteCode','InviteCode','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='InviteCode',[FieldByname]='InviteCode',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=49 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=48  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17997,48,29,1200,'int',1,1,1,'Dcx_User','DiskSize','DiskSize','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='DiskSize',[FieldByname]='DiskSize',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=48 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=47  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17998,47,29,1200,'varchar',2,1,1,'Dcx_User','Remark','Remark','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Remark',[FieldByname]='Remark',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=47 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=46  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17999,46,29,1200,'bit',4,1,1,'Dcx_User','AcceptStrangerIM','AcceptStrangerIM','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='AcceptStrangerIM',[FieldByname]='AcceptStrangerIM',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=46 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=45  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18000,45,29,1200,'int',1,1,1,'Dcx_User','StyleId','StyleId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='StyleId',[FieldByname]='StyleId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=45 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=44  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18001,44,29,1200,'bit',4,1,1,'Dcx_User','SelftSearch','SelftSearch','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='SelftSearch',[FieldByname]='SelftSearch',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=44 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=43  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18002,43,29,1200,'bit',4,1,1,'Dcx_User','SelftNavMenu','SelftNavMenu','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='SelftNavMenu',[FieldByname]='SelftNavMenu',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=43 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=42  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18003,42,29,1200,'bit',4,1,1,'Dcx_User','SelftHomePage','SelftHomePage','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='SelftHomePage',[FieldByname]='SelftHomePage',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=42 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=41  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18004,41,29,1200,'datetime',3,1,1,'Dcx_User','EditTime','EditTime','getdate()',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='EditTime',[FieldByname]='EditTime',[DefaultValue]='getdate()',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=41 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=40  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18005,40,29,1200,'varchar',2,1,1,'Dcx_User','Editor','Editor','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Editor',[FieldByname]='Editor',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=40 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=39  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18006,39,29,1200,'int',1,1,1,'Dcx_User','EditorId','EditorId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='EditorId',[FieldByname]='EditorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=39 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=38  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18007,38,29,1200,'datetime',3,1,1,'Dcx_User','CreateTime','CreateTime','getdate()',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='CreateTime',[FieldByname]='CreateTime',[DefaultValue]='getdate()',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=38 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=37  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18008,37,29,1200,'varchar',2,1,1,'Dcx_User','Creator','Creator','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Creator',[FieldByname]='Creator',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=37 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=36  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18009,36,29,1200,'int',1,1,1,'Dcx_User','CreatorId','CreatorId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='CreatorId',[FieldByname]='CreatorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=36 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=35  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18010,35,29,1200,'varchar',2,1,1,'Dcx_User','IconPath','IconPath','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='IconPath',[FieldByname]='IconPath',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=35 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=34  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18011,34,29,1200,'varchar',2,1,1,'Dcx_User','Http','Http','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Http',[FieldByname]='Http',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=34 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=33  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18012,33,29,1200,'int',1,1,1,'Dcx_User','Caste','Caste','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Caste',[FieldByname]='Caste',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=33 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=32  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18013,32,29,1200,'bit',4,1,1,'Dcx_User','IsNeedKey','IsNeedKey','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='IsNeedKey',[FieldByname]='IsNeedKey',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=32 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=31  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18014,31,29,1200,'int',1,1,1,'Dcx_User','Style','Style','1',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Style',[FieldByname]='Style',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=31 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=30  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18015,30,29,1200,'datetime',3,1,1,'Dcx_User','Birthday','Birthday','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Birthday',[FieldByname]='Birthday',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=30 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=29  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18016,29,29,1200,'varchar',2,1,1,'Dcx_User','Phone','Phone','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Phone',[FieldByname]='Phone',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=29 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=28  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18017,28,29,1200,'datetime',3,1,1,'Dcx_User','RegistedDate','RegistedDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='RegistedDate',[FieldByname]='RegistedDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=28 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=27  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18018,27,29,1200,'varchar',2,1,1,'Dcx_User','Status','Status','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Status',[FieldByname]='Status',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=27 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18019,26,29,1200,'varchar',2,1,1,'Dcx_User','Telephone','Telephone','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Telephone',[FieldByname]='Telephone',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=26 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18020,25,29,1200,'varchar',2,1,1,'Dcx_User','Sex','Sex','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Sex',[FieldByname]='Sex',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18021,24,29,1200,'int',1,1,1,'Dcx_User','UserOrder','UserOrder','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='UserOrder',[FieldByname]='UserOrder',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18022,23,29,1200,'datetime',3,1,1,'Dcx_User','LoginDate','LoginDate','0',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='LoginDate',[FieldByname]='LoginDate',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18023,22,29,1200,'varchar',2,1,1,'Dcx_User','PWD','PWD','',0,0,0,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='PWD',[FieldByname]='PWD',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18024,21,29,1200,'bit',4,1,1,'Dcx_User','Online','Online','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Online',[FieldByname]='Online',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18025,20,29,1200,'int',1,1,1,'Dcx_User','VisitTime','VisitTime','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='VisitTime',[FieldByname]='VisitTime',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18026,19,29,1200,'bit',4,1,1,'Dcx_User','RestrictIp','RestrictIp','0',0,0,0,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='RestrictIp',[FieldByname]='RestrictIp',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18027,18,29,1200,'varchar',2,1,1,'Dcx_User','IP','IP','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='IP',[FieldByname]='IP',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18028,17,29,1200,'bit',4,1,1,'Dcx_User','CanLogin','CanLogin','1',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='CanLogin',[FieldByname]='CanLogin',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18029,16,29,1200,'bit',4,1,1,'Dcx_User','SuperAdmin','SuperAdmin','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='SuperAdmin',[FieldByname]='SuperAdmin',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18030,15,29,1200,'int',1,1,1,'Dcx_User','PositionId','PositionId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='PositionId',[FieldByname]='PositionId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18031,14,29,1200,'int',1,1,1,'Dcx_User','DeptId','DeptId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='DeptId',[FieldByname]='DeptId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18032,13,29,1200,'int',1,1,1,'Dcx_User','EmployeeId','EmployeeId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='EmployeeId',[FieldByname]='EmployeeId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18033,12,29,1200,'int',1,1,1,'Dcx_User','CurSystemId','CurSystemId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='CurSystemId',[FieldByname]='CurSystemId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18034,11,29,1200,'bit',4,1,1,'Dcx_User','IsAccountCreator','IsAccountCreator','0',0,0,0,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='IsAccountCreator',[FieldByname]='IsAccountCreator',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18035,10,29,1200,'int',1,1,1,'Dcx_User','AccountId','AccountId','1',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='AccountId',[FieldByname]='AccountId',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18036,9,29,1200,'int',1,1,1,'Dcx_User','GroupId','GroupId','0',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='GroupId',[FieldByname]='GroupId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18037,8,29,1200,'varchar',2,1,1,'Dcx_User','Address','Address','',0,0,1,150,150,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Address',[FieldByname]='Address',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=150,[Precision]=150,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18038,7,29,1200,'varchar',2,1,1,'Dcx_User','Email','Email','',0,0,0,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Email',[FieldByname]='Email',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18039,6,29,1200,'varchar',2,1,1,'Dcx_User','DcxUserName','DcxUserName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='DcxUserName',[FieldByname]='DcxUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18040,5,29,1200,'varchar',2,1,1,'Dcx_User','RealName','RealName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='RealName',[FieldByname]='RealName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18041,4,29,1200,'varchar',2,1,1,'Dcx_User','UpperName','UpperName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='UpperName',[FieldByname]='UpperName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18042,3,29,1200,'varchar',2,1,1,'Dcx_User','UserName','UserName','',0,0,0,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='UserName',[FieldByname]='UserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18043,2,29,1200,'uniqueidentifier',24,1,1,'Dcx_User','UserGuId','UserGuId','newid()',0,0,1,16,16,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='uniqueidentifier',[FieldDataTypeId]=24,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='UserGuId',[FieldByname]='UserGuId',[DefaultValue]='newid()',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=16,[Precision]=16,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18044,1,29,1200,'int',1,1,1,'Dcx_User','UserId','UserId','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='UserId',[FieldByname]='UserId',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=1 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 



Delete from [Dcx_EntityPrivilege]  where [EntId]=2276

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2276  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11147,3415,2276,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=3415,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2276  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2276

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2276  and  [ModuleTypeId]=18  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20495,29,3415,2276,41,18,39,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3415,[TemplateId]=41,[ModuleId]=39,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2276  and  [ModuleTypeId]=18 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_DefaultForm_Run]  where [EntId]=2276

--Dcx_DefaultForm_Run
      if (select count(1) from [Dcx_DefaultForm_Run] where  [EntId]=2276  )<1 
      begin 
           Insert into [Dcx_DefaultForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[OtherMsg],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('7c324494-76e6-41f3-9dbb-610b7470a74d','修改邮箱',2276,-1,'','',0,'','<script type="text/javascript" src="/js/System/AccountSystem/ChangeEmail.js"></script>
<script type="text/javascript" src="/js/System/AccountSystem/SystemCommon.js"></script>','DcxRun.DefaultF_2276= {"MenuId":3415,"MEntId":2276,"EntName":"修改邮箱","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2276":{"EntId":2276,"KeyFieldValue":"","DBTableName":"","KeyField":"UserId","KeydtId":2,"JoinKeyField":"UserId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":14,"Ent":[{"EntId":2276,"Fld":[{"FldId":1,"Vld":[{"Id":12,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"请输入系统的密码","ok":"","warn":"*必填","ovt":1},{"Id":14,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{6,16}$","err":"密码长度为6~16个字符","ok":"","warn":"","ovt":1}]},{"FldId":3,"Vld":[{"Id":7,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"请输入当前的邮箱地址","ok":"","warn":"*必填","ovt":1},{"Id":9,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^\\w+((-\\w+)|(\\.\\w+))*\\@[A-Za-z0-9]+((\\.|-)[A-Za-z0-9]+)*\\.[A-Za-z0-9]+$","err":"格式要求为电子邮箱格式，例如dcxCreator@qq.com","ok":"","warn":"","ovt":1}]},{"FldId":5,"Vld":[{"Id":3,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"请输入新邮箱地址","ok":"","warn":"*必填","ovt":1},{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^\\w+((-\\w+)|(\\.\\w+))*\\@[A-Za-z0-9]+((\\.|-)[A-Za-z0-9]+)*\\.[A-Za-z0-9]+$","err":"格式要求为电子邮箱格式，例如dcxCreator@qq.com","ok":"","warn":"","ovt":1}]}]}]};
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2276.EntMsg.E2276.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_User","EntId":2276,"KeyField":"UserId","MKeyField":"UserId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2276.EntMsg.E2276.GetDataRowModel=function()
{
    return {"Dcx_Keymsg":{"RowIx":-1,"KeyField":"UserId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2276.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2276,''DefaultF_'',buildNew,closeDlg);

}','<$2276$>select [UserId] from Dcx_User where [UserId]=''{$keyfieldvalue}''</$2276$>',10,'2276*UserId*2*UserId*2*Dcx_User*修改邮箱','','','',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2013-5-4 4:16:45',3,'admin','2013-10-2 18:34:18',1)
      end
      else 
      begin 
           update [Dcx_DefaultForm_Run] set [FormId]='7c324494-76e6-41f3-9dbb-610b7470a74d',[FormName]='修改邮箱',[ModuleId]=-1,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='',[DIYJsCss2]='<script type="text/javascript" src="/js/System/AccountSystem/ChangeEmail.js"></script>
<script type="text/javascript" src="/js/System/AccountSystem/SystemCommon.js"></script>',[AutoPublicJs]='DcxRun.DefaultF_2276= {"MenuId":3415,"MEntId":2276,"EntName":"修改邮箱","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2276":{"EntId":2276,"KeyFieldValue":"","DBTableName":"","KeyField":"UserId","KeydtId":2,"JoinKeyField":"UserId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":14,"Ent":[{"EntId":2276,"Fld":[{"FldId":1,"Vld":[{"Id":12,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"请输入系统的密码","ok":"","warn":"*必填","ovt":1},{"Id":14,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{6,16}$","err":"密码长度为6~16个字符","ok":"","warn":"","ovt":1}]},{"FldId":3,"Vld":[{"Id":7,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"请输入当前的邮箱地址","ok":"","warn":"*必填","ovt":1},{"Id":9,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^\\w+((-\\w+)|(\\.\\w+))*\\@[A-Za-z0-9]+((\\.|-)[A-Za-z0-9]+)*\\.[A-Za-z0-9]+$","err":"格式要求为电子邮箱格式，例如dcxCreator@qq.com","ok":"","warn":"","ovt":1}]},{"FldId":5,"Vld":[{"Id":3,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"请输入新邮箱地址","ok":"","warn":"*必填","ovt":1},{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^\\w+((-\\w+)|(\\.\\w+))*\\@[A-Za-z0-9]+((\\.|-)[A-Za-z0-9]+)*\\.[A-Za-z0-9]+$","err":"格式要求为电子邮箱格式，例如dcxCreator@qq.com","ok":"","warn":"","ovt":1}]}]}]};
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2276.EntMsg.E2276.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_User","EntId":2276,"KeyField":"UserId","MKeyField":"UserId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2276.EntMsg.E2276.GetDataRowModel=function()
{
    return {"Dcx_Keymsg":{"RowIx":-1,"KeyField":"UserId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2276.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2276,''DefaultF_'',buildNew,closeDlg);

}',[LoadingSql]='<$2276$>select [UserId] from Dcx_User where [UserId]=''{$keyfieldvalue}''</$2276$>',[PageSize]=10,[OtherMsg]='2276*UserId*2*UserId*2*Dcx_User*修改邮箱',[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-5-4 4:16:45',[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-2 18:34:18',[AccountId]=1 where  [EntId]=2276 
      end




--Dcx_DefaultFormField_Run
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='e43e222f-92da-4d16-8979-1556df15fdf9'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'e43e222f-92da-4d16-8979-1556df15fdf9',2276,2276,'00000000-0000-0000-0000-000000000000',1,'oldEmail',2,2,-1,'',5,1,1,0,1,3,-1,-1,0,0,'','','','','<div class="defaultform" entid="2276" ctrlprex="DefaultF_">
<ul isgroup="1" groupid="1" class="ul-group" isrple="1">
<li areaid="3" class="li-area" scroll="no" style="width: 596px; height: 50px; position: static;"><div class="form-title2"> 
	<h2 style="FONT-SIZE: 15px">
		修改邮箱</h2>
</div>
<br>
</li>
<li areaid="5" class="li-area" scroll="no" style="width: 596px; height: 35px; position: static;">
  <label class="area-title pad7" istitle="1" fldid="-1" style="width:150px;">旧邮箱地址： </label>
  <div class="field-content pad7"><span class="form-ctr" isfcontain="1">','','','','<input  id="d2276_oldEmail"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2276,''DefaultF_'',2276,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2276,''DefaultF_'',2276);" EntId="2276" IsField=1 DBField=0 IsPost=0 FieldName="oldEmail" dType="2" Vtp="5" RDT="2" Isc="1" RId="-1" CId="1" FId="3" vlk=0    value="','"/>','',1,5,-1,-1,0,'')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=3,[Form_EntId]=2276,[EntId]=2276,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[FieldName]='oldEmail',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="defaultform" entid="2276" ctrlprex="DefaultF_">
<ul isgroup="1" groupid="1" class="ul-group" isrple="1">
<li areaid="3" class="li-area" scroll="no" style="width: 596px; height: 50px; position: static;"><div class="form-title2"> 
	<h2 style="FONT-SIZE: 15px">
		修改邮箱</h2>
</div>
<br>
</li>
<li areaid="5" class="li-area" scroll="no" style="width: 596px; height: 35px; position: static;">
  <label class="area-title pad7" istitle="1" fldid="-1" style="width:150px;">旧邮箱地址： </label>
  <div class="field-content pad7"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2276_oldEmail"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2276,''DefaultF_'',2276,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2276,''DefaultF_'',2276);" EntId="2276" IsField=1 DBField=0 IsPost=0 FieldName="oldEmail" dType="2" Vtp="5" RDT="2" Isc="1" RId="-1" CId="1" FId="3" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=5,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='' where  [FldUId]='e43e222f-92da-4d16-8979-1556df15fdf9' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='d87d165b-2845-425c-bf0d-364435da6129'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'d87d165b-2845-425c-bf0d-364435da6129',2276,2276,'00000000-0000-0000-0000-000000000000',2,'newEmail',2,2,-1,'',5,1,1,0,1,3,-1,-1,0,0,'','','','','</span>

<div iserr="1" class="form-vld"></div>  </div></li><li areaid="6" class="li-area" scroll="no" style="width: 596px; height: 35px; position: static;">
  <label class="area-title pad7" istitle="1" fldid="-1" style="width:150px;">新邮箱地址： </label>
  <div class="field-content pad7"><span class="form-ctr" isfcontain="1">','','','','<input  id="d2276_newEmail"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2276,''DefaultF_'',2276,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2276,''DefaultF_'',2276);" EntId="2276" IsField=1 DBField=0 IsPost=0 FieldName="newEmail" dType="2" Vtp="5" RDT="2" Isc="1" RId="-1" CId="1" FId="5" vlk=0    value="','"/>','',1,6,-1,-1,0,'')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=5,[Form_EntId]=2276,[EntId]=2276,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[FieldName]='newEmail',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

<div iserr="1" class="form-vld"></div>  </div></li><li areaid="6" class="li-area" scroll="no" style="width: 596px; height: 35px; position: static;">
  <label class="area-title pad7" istitle="1" fldid="-1" style="width:150px;">新邮箱地址： </label>
  <div class="field-content pad7"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2276_newEmail"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2276,''DefaultF_'',2276,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2276,''DefaultF_'',2276);" EntId="2276" IsField=1 DBField=0 IsPost=0 FieldName="newEmail" dType="2" Vtp="5" RDT="2" Isc="1" RId="-1" CId="1" FId="5" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=6,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='' where  [FldUId]='d87d165b-2845-425c-bf0d-364435da6129' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='bc2bba44-4096-4878-a4e9-f5094d7b6c33'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'bc2bba44-4096-4878-a4e9-f5094d7b6c33',2276,2276,'00000000-0000-0000-0000-000000000000',3,'dcxPwd',2,2,-1,'',5,1,1,0,17,3,-1,-1,0,0,'','','','','</span>

<div iserr="1" class="form-vld"></div>  </div></li><li areaid="4" class="li-area" scroll="no" style="width: 596px; height: 35px; position: static;"><label class="area-title pad7" fldid="-1" istitle="1" style="width:150px;">密码： </label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','</span>
	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li><li areaid="7" class="li-area" scroll="no" style="width: 596px; height: 35px; position: static;"><label class="area-title pad7" fldid="-1" istitle="1" style="width:35%;">&nbsp;</label><div class="form-buttons" style="">
	<button class="form-buttons-highlight" type="button">修改邮箱</button></div></li>
</ul>
</div>','','','<input  id="d2276_dcxPwd"   type="password" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2276,''DefaultF_'',2276,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2276,''DefaultF_'',2276);" EntId="2276" IsField=1 DBField=0 IsPost=0 FieldName="dcxPwd" dType="2" Vtp="5" RDT="2" Isc="1" RId="-1" CId="17" FId="1" vlk=0    value="','"/>','',1,4,-1,-1,0,'')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=1,[Form_EntId]=2276,[EntId]=2276,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[FieldName]='dcxPwd',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=17,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

<div iserr="1" class="form-vld"></div>  </div></li><li areaid="4" class="li-area" scroll="no" style="width: 596px; height: 35px; position: static;"><label class="area-title pad7" fldid="-1" istitle="1" style="width:150px;">密码： </label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li><li areaid="7" class="li-area" scroll="no" style="width: 596px; height: 35px; position: static;"><label class="area-title pad7" fldid="-1" istitle="1" style="width:35%;">&nbsp;</label><div class="form-buttons" style="">
	<button class="form-buttons-highlight" type="button">修改邮箱</button></div></li>
</ul>
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2276_dcxPwd"   type="password" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2276,''DefaultF_'',2276,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2276,''DefaultF_'',2276);" EntId="2276" IsField=1 DBField=0 IsPost=0 FieldName="dcxPwd" dType="2" Vtp="5" RDT="2" Isc="1" RId="-1" CId="17" FId="1" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=4,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='' where  [FldUId]='bc2bba44-4096-4878-a4e9-f5094d7b6c33' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=1200

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=1200  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(1200,null,'Dcx_User','Dcx_User',1,0,0,0,0,0,29,1,3,'admin','2013-12-15 17:32:24',3,'admin','2013-12-15 17:32:24',null,null,27,418,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='Dcx_User',[DBTableByName]='Dcx_User',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=29,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:24',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:24',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=27,[SDbTableId]=418,[IsChange]=null,[IsSystem]=null where  [DBTableId]=1200 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=50  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17995,50,29,1200,'int',1,1,1,'Dcx_User','TopMenuId','TopMenuId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='TopMenuId',[FieldByname]='TopMenuId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=50 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=49  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17996,49,29,1200,'varchar',2,1,1,'Dcx_User','InviteCode','InviteCode','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='InviteCode',[FieldByname]='InviteCode',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=49 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=48  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17997,48,29,1200,'int',1,1,1,'Dcx_User','DiskSize','DiskSize','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='DiskSize',[FieldByname]='DiskSize',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=48 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=47  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17998,47,29,1200,'varchar',2,1,1,'Dcx_User','Remark','Remark','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Remark',[FieldByname]='Remark',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=47 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=46  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17999,46,29,1200,'bit',4,1,1,'Dcx_User','AcceptStrangerIM','AcceptStrangerIM','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='AcceptStrangerIM',[FieldByname]='AcceptStrangerIM',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=46 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=45  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18000,45,29,1200,'int',1,1,1,'Dcx_User','StyleId','StyleId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='StyleId',[FieldByname]='StyleId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=45 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=44  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18001,44,29,1200,'bit',4,1,1,'Dcx_User','SelftSearch','SelftSearch','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='SelftSearch',[FieldByname]='SelftSearch',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=44 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=43  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18002,43,29,1200,'bit',4,1,1,'Dcx_User','SelftNavMenu','SelftNavMenu','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='SelftNavMenu',[FieldByname]='SelftNavMenu',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=43 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=42  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18003,42,29,1200,'bit',4,1,1,'Dcx_User','SelftHomePage','SelftHomePage','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='SelftHomePage',[FieldByname]='SelftHomePage',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=42 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=41  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18004,41,29,1200,'datetime',3,1,1,'Dcx_User','EditTime','EditTime','getdate()',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='EditTime',[FieldByname]='EditTime',[DefaultValue]='getdate()',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=41 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=40  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18005,40,29,1200,'varchar',2,1,1,'Dcx_User','Editor','Editor','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Editor',[FieldByname]='Editor',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=40 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=39  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18006,39,29,1200,'int',1,1,1,'Dcx_User','EditorId','EditorId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='EditorId',[FieldByname]='EditorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=39 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=38  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18007,38,29,1200,'datetime',3,1,1,'Dcx_User','CreateTime','CreateTime','getdate()',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='CreateTime',[FieldByname]='CreateTime',[DefaultValue]='getdate()',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=38 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=37  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18008,37,29,1200,'varchar',2,1,1,'Dcx_User','Creator','Creator','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Creator',[FieldByname]='Creator',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=37 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=36  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18009,36,29,1200,'int',1,1,1,'Dcx_User','CreatorId','CreatorId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='CreatorId',[FieldByname]='CreatorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=36 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=35  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18010,35,29,1200,'varchar',2,1,1,'Dcx_User','IconPath','IconPath','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='IconPath',[FieldByname]='IconPath',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=35 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=34  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18011,34,29,1200,'varchar',2,1,1,'Dcx_User','Http','Http','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Http',[FieldByname]='Http',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=34 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=33  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18012,33,29,1200,'int',1,1,1,'Dcx_User','Caste','Caste','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Caste',[FieldByname]='Caste',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=33 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=32  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18013,32,29,1200,'bit',4,1,1,'Dcx_User','IsNeedKey','IsNeedKey','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='IsNeedKey',[FieldByname]='IsNeedKey',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=32 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=31  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18014,31,29,1200,'int',1,1,1,'Dcx_User','Style','Style','1',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Style',[FieldByname]='Style',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=31 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=30  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18015,30,29,1200,'datetime',3,1,1,'Dcx_User','Birthday','Birthday','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Birthday',[FieldByname]='Birthday',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=30 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=29  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18016,29,29,1200,'varchar',2,1,1,'Dcx_User','Phone','Phone','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Phone',[FieldByname]='Phone',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=29 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=28  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18017,28,29,1200,'datetime',3,1,1,'Dcx_User','RegistedDate','RegistedDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='RegistedDate',[FieldByname]='RegistedDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=28 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=27  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18018,27,29,1200,'varchar',2,1,1,'Dcx_User','Status','Status','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Status',[FieldByname]='Status',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=27 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18019,26,29,1200,'varchar',2,1,1,'Dcx_User','Telephone','Telephone','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Telephone',[FieldByname]='Telephone',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=26 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18020,25,29,1200,'varchar',2,1,1,'Dcx_User','Sex','Sex','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Sex',[FieldByname]='Sex',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18021,24,29,1200,'int',1,1,1,'Dcx_User','UserOrder','UserOrder','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='UserOrder',[FieldByname]='UserOrder',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18022,23,29,1200,'datetime',3,1,1,'Dcx_User','LoginDate','LoginDate','0',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='LoginDate',[FieldByname]='LoginDate',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18023,22,29,1200,'varchar',2,1,1,'Dcx_User','PWD','PWD','',0,0,0,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='PWD',[FieldByname]='PWD',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18024,21,29,1200,'bit',4,1,1,'Dcx_User','Online','Online','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Online',[FieldByname]='Online',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18025,20,29,1200,'int',1,1,1,'Dcx_User','VisitTime','VisitTime','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='VisitTime',[FieldByname]='VisitTime',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18026,19,29,1200,'bit',4,1,1,'Dcx_User','RestrictIp','RestrictIp','0',0,0,0,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='RestrictIp',[FieldByname]='RestrictIp',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18027,18,29,1200,'varchar',2,1,1,'Dcx_User','IP','IP','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='IP',[FieldByname]='IP',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18028,17,29,1200,'bit',4,1,1,'Dcx_User','CanLogin','CanLogin','1',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='CanLogin',[FieldByname]='CanLogin',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18029,16,29,1200,'bit',4,1,1,'Dcx_User','SuperAdmin','SuperAdmin','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='SuperAdmin',[FieldByname]='SuperAdmin',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18030,15,29,1200,'int',1,1,1,'Dcx_User','PositionId','PositionId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='PositionId',[FieldByname]='PositionId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18031,14,29,1200,'int',1,1,1,'Dcx_User','DeptId','DeptId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='DeptId',[FieldByname]='DeptId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18032,13,29,1200,'int',1,1,1,'Dcx_User','EmployeeId','EmployeeId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='EmployeeId',[FieldByname]='EmployeeId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18033,12,29,1200,'int',1,1,1,'Dcx_User','CurSystemId','CurSystemId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='CurSystemId',[FieldByname]='CurSystemId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18034,11,29,1200,'bit',4,1,1,'Dcx_User','IsAccountCreator','IsAccountCreator','0',0,0,0,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='IsAccountCreator',[FieldByname]='IsAccountCreator',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18035,10,29,1200,'int',1,1,1,'Dcx_User','AccountId','AccountId','1',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='AccountId',[FieldByname]='AccountId',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18036,9,29,1200,'int',1,1,1,'Dcx_User','GroupId','GroupId','0',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='GroupId',[FieldByname]='GroupId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18037,8,29,1200,'varchar',2,1,1,'Dcx_User','Address','Address','',0,0,1,150,150,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Address',[FieldByname]='Address',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=150,[Precision]=150,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18038,7,29,1200,'varchar',2,1,1,'Dcx_User','Email','Email','',0,0,0,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Email',[FieldByname]='Email',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18039,6,29,1200,'varchar',2,1,1,'Dcx_User','DcxUserName','DcxUserName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='DcxUserName',[FieldByname]='DcxUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18040,5,29,1200,'varchar',2,1,1,'Dcx_User','RealName','RealName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='RealName',[FieldByname]='RealName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18041,4,29,1200,'varchar',2,1,1,'Dcx_User','UpperName','UpperName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='UpperName',[FieldByname]='UpperName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18042,3,29,1200,'varchar',2,1,1,'Dcx_User','UserName','UserName','',0,0,0,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='UserName',[FieldByname]='UserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18043,2,29,1200,'uniqueidentifier',24,1,1,'Dcx_User','UserGuId','UserGuId','newid()',0,0,1,16,16,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='uniqueidentifier',[FieldDataTypeId]=24,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='UserGuId',[FieldByname]='UserGuId',[DefaultValue]='newid()',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=16,[Precision]=16,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18044,1,29,1200,'int',1,1,1,'Dcx_User','UserId','UserId','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='UserId',[FieldByname]='UserId',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=1 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 



Delete from [Dcx_EntityPrivilege]  where [EntId]=2277

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2277  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11148,3415,2277,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=3415,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2277  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2277

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2277  and  [ModuleTypeId]=18  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20496,29,3415,2277,41,18,39,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3415,[TemplateId]=41,[ModuleId]=39,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2277  and  [ModuleTypeId]=18 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_DefaultForm_Run]  where [EntId]=2277

--Dcx_DefaultForm_Run
      if (select count(1) from [Dcx_DefaultForm_Run] where  [EntId]=2277  )<1 
      begin 
           Insert into [Dcx_DefaultForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[OtherMsg],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('63cad282-912d-4481-9d1f-65466cc12bf0','允许的Ip',2277,-1,'','',0,'','<script type="text/javascript" src="/js/System/AccountSystem/ManageIp.js"></script><script type="text/javascript" src="/js/System/AccountSystem/SystemCommon.js"></script>','DcxRun.DefaultF_2277= {"MenuId":3415,"MEntId":2277,"EntName":"允许的Ip","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2277":{"EntId":2277,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"Id","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":7,"Ent":[{"EntId":2277,"Fld":[{"FldId":1,"Vld":[]},{"FldId":2,"Vld":[]},{"FldId":9,"Vld":[{"Id":2,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":6,"Vld":[]},{"FldId":17,"Vld":[{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":18,"Vld":[]},{"FldId":16,"Vld":[{"Id":5,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"请输入Ip","ok":"","warn":"","ovt":1},{"Id":7,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9])\\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])$","err":"请输入正确的Ip地址，格式为：192.168.1.100","ok":"","warn":"","ovt":1}]}]}]};
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2277.EntMsg.E2277.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_Common","EntId":2277,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"Value":{"DtId":2,"DB":1,"CId":1,"FL":50}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2277.EntMsg.E2277.GetDataRowModel=function()
{
    return {"Value":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2277.SubmitForm=function(buildNew,closeDlg){
AddNewIp();
}','<$2277$>select [Value],[Id] from Dcx_Common where [Id]=''{$keyfieldvalue}''</$2277$>',10,'2277*Id*2*Id*2*Dcx_Common*允许的Ip','','','',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2013-5-4 4:16:45',3,'admin','2013-10-2 18:34:18',1)
      end
      else 
      begin 
           update [Dcx_DefaultForm_Run] set [FormId]='63cad282-912d-4481-9d1f-65466cc12bf0',[FormName]='允许的Ip',[ModuleId]=-1,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='',[DIYJsCss2]='<script type="text/javascript" src="/js/System/AccountSystem/ManageIp.js"></script><script type="text/javascript" src="/js/System/AccountSystem/SystemCommon.js"></script>',[AutoPublicJs]='DcxRun.DefaultF_2277= {"MenuId":3415,"MEntId":2277,"EntName":"允许的Ip","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2277":{"EntId":2277,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"Id","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":7,"Ent":[{"EntId":2277,"Fld":[{"FldId":1,"Vld":[]},{"FldId":2,"Vld":[]},{"FldId":9,"Vld":[{"Id":2,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":6,"Vld":[]},{"FldId":17,"Vld":[{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1}]},{"FldId":18,"Vld":[]},{"FldId":16,"Vld":[{"Id":5,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"请输入Ip","ok":"","warn":"","ovt":1},{"Id":7,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9])\\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])$","err":"请输入正确的Ip地址，格式为：192.168.1.100","ok":"","warn":"","ovt":1}]}]}]};
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2277.EntMsg.E2277.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_Common","EntId":2277,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"Value":{"DtId":2,"DB":1,"CId":1,"FL":50}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2277.EntMsg.E2277.GetDataRowModel=function()
{
    return {"Value":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2277.SubmitForm=function(buildNew,closeDlg){
AddNewIp();
}',[LoadingSql]='<$2277$>select [Value],[Id] from Dcx_Common where [Id]=''{$keyfieldvalue}''</$2277$>',[PageSize]=10,[OtherMsg]='2277*Id*2*Id*2*Dcx_Common*允许的Ip',[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-5-4 4:16:45',[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-2 18:34:18',[AccountId]=1 where  [EntId]=2277 
      end




--Dcx_DefaultFormField_Run
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='6d52293a-e825-4edc-a5cf-850af16a6e95'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(18,'6d52293a-e825-4edc-a5cf-850af16a6e95',2277,2277,'00000000-0000-0000-0000-000000000000',1,'RestrictIp',2,2,-1,'启用/true/false/1',5,6,1,0,13,3,-1,-1,0,0,'','','','','<div class="defaultform" entid="2277" ctrlprex="DefaultF_">
<ul isgroup="1" groupid="1" class="ul-group" isrple="1">
<li areaid="3" class="li-area" scroll="no" style="width: 596px; height: 50px; position: static;"><div class="form-title2"> 
	<h2 style="FONT-SIZE: 15px">
		设置允许的Ip</h2>
</div>
<br>
</li>
<li areaid="7" class="li-area" scroll="no" style="position: static; width: 596px; height: 35px;"><label class="area-title pad7" fldid="7" istitle="1" style="width:150px;">是否启用Ip限制</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<div class="form-radio" ><span class="form-radio-item" ><input id="d2277_RestrictIp"  name="d2277_RestrictIp" type="checkbox" class="form-ckb" yesv=''true'' nov=''false'' checked=''checked''  EntId="2277" IsField=1 DBField=0 IsPost=0 FieldName="RestrictIp" dType="2" Vtp="5" RDT="2" Isc="1" RId="-1" CId="13" FId="18" vlk=0','/><label for="d2277_RestrictIp">启用</label></span></div>','',1,7,-1,-1,0,'')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=18,[Form_EntId]=2277,[EntId]=2277,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[FieldName]='RestrictIp',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='启用/true/false/1',[ValueType]=5,[RunValueType]=6,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=13,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="defaultform" entid="2277" ctrlprex="DefaultF_">
<ul isgroup="1" groupid="1" class="ul-group" isrple="1">
<li areaid="3" class="li-area" scroll="no" style="width: 596px; height: 50px; position: static;"><div class="form-title2"> 
	<h2 style="FONT-SIZE: 15px">
		设置允许的Ip</h2>
</div>
<br>
</li>
<li areaid="7" class="li-area" scroll="no" style="position: static; width: 596px; height: 35px;"><label class="area-title pad7" fldid="7" istitle="1" style="width:150px;">是否启用Ip限制</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-radio" ><span class="form-radio-item" ><input id="d2277_RestrictIp"  name="d2277_RestrictIp" type="checkbox" class="form-ckb" yesv=''true'' nov=''false'' checked=''checked''  EntId="2277" IsField=1 DBField=0 IsPost=0 FieldName="RestrictIp" dType="2" Vtp="5" RDT="2" Isc="1" RId="-1" CId="13" FId="18" vlk=0',[CtrlbackHtml]='/><label for="d2277_RestrictIp">启用</label></span></div>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=7,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='' where  [FldUId]='6d52293a-e825-4edc-a5cf-850af16a6e95' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='43ff316e-809c-484d-aad7-89055974ce00'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(19,'43ff316e-809c-484d-aad7-89055974ce00',2277,2277,'00000000-0000-0000-0000-000000000000',2,'ComIp',2,2,-1,'',5,9,1,0,4,3,-1,-1,0,0,'','','','','</span>




<div class="form-vld" iserr="1">
		&nbsp;</div>
	</div>
<br>
</li><li areaid="9" class="li-area" scroll="no" style="position: static; width: 596px; height: 45px;"><label class="area-title pad7" fldid="4" istitle="1" style="width:150px;">您当前电脑的 Ip</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d2277_ComIp" class="form-lbl" style="width:250px;" IsForField=1 EntId="2277" CId="4" FId="19" Vtp="5"  >','</span><input id="d2277_ComIp_hid" type="hidden"  EntId="2277" IsField=1 DBField=0 IsPost=0 FieldName="ComIp" dType="2" Vtp="5" RDT="2" Isc="1" RId="-1" CId="4" FId="19" vlk=0    value="','" />',1,9,-1,-1,0,'')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=19,[Form_EntId]=2277,[EntId]=2277,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[FieldName]='ComIp',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=9,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>




<div class="form-vld" iserr="1">
		&nbsp;</div>
	</div>
<br>
</li><li areaid="9" class="li-area" scroll="no" style="position: static; width: 596px; height: 45px;"><label class="area-title pad7" fldid="4" istitle="1" style="width:150px;">您当前电脑的 Ip</label>
<div class="field-content pad7">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d2277_ComIp" class="form-lbl" style="width:250px;" IsForField=1 EntId="2277" CId="4" FId="19" Vtp="5"  >',[CtrlbackHtml]='</span><input id="d2277_ComIp_hid" type="hidden"  EntId="2277" IsField=1 DBField=0 IsPost=0 FieldName="ComIp" dType="2" Vtp="5" RDT="2" Isc="1" RId="-1" CId="4" FId="19" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=1,[RowIndex]=9,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='' where  [FldUId]='43ff316e-809c-484d-aad7-89055974ce00' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='6f27ea8c-ce92-4db3-81df-b9730140eb22'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(20,'6f27ea8c-ce92-4db3-81df-b9730140eb22',2277,2277,'00000000-0000-0000-0000-000000000000',3,'AllIp',2,2,-1,'',5,1,1,0,3,3,-1,-1,0,0,'','','','','</span>










	
	<a href="javascript:void(0);" id="btn_AllowCurIp" onclick="javascript:AllowCurIp(this);" style="margin-left:10px;"><span class="op_bt_i">允许本Ip访问</span></a>
<div class="form-rmk" isrmk="1" style="clear: left;width:400px; padding-left: 0px; ">
		注意：如果不允许本Ip访问，您退出系统后，将无法在本电脑上登陆。</div>
	<div class="form-vld" iserr="1">
		&nbsp;</div></div></li><li areaid="10" class="li-area" scroll="no" style="position: static; width: 596px; height: 35px;"><div class="form-title">
	<br>
	<h2 style="FONT-SIZE: 15px">
		管理Ip地址</h2>
</div>
<br>
</li><li areaid="8" class="li-area" scroll="no" style="position: static; width: 596px; height: 35px;"><label class="area-title pad7" fldid="1" istitle="1" style="width:150px;">全部Ip</label>
<div class="field-content pad7">
  <span class="form-ctr" isfcontain="1">','','','','<select id="d2277_AllIp" name="d2277_AllIp" class="form-select"  EntId="2277" IsField=1 DBField=0 IsPost=0 FieldName="AllIp" dType="2" Vtp="5" RDT="2" Isc="1" RId="-1" CId="3" FId="20" vlk=0    style="width:250px;">','</select>','',1,8,-1,-1,0,'')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=20,[Form_EntId]=2277,[EntId]=2277,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[FieldName]='AllIp',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>










	
	<a href="javascript:void(0);" id="btn_AllowCurIp" onclick="javascript:AllowCurIp(this);" style="margin-left:10px;"><span class="op_bt_i">允许本Ip访问</span></a>
<div class="form-rmk" isrmk="1" style="clear: left;width:400px; padding-left: 0px; ">
		注意：如果不允许本Ip访问，您退出系统后，将无法在本电脑上登陆。</div>
	<div class="form-vld" iserr="1">
		&nbsp;</div></div></li><li areaid="10" class="li-area" scroll="no" style="position: static; width: 596px; height: 35px;"><div class="form-title">
	<br>
	<h2 style="FONT-SIZE: 15px">
		管理Ip地址</h2>
</div>
<br>
</li><li areaid="8" class="li-area" scroll="no" style="position: static; width: 596px; height: 35px;"><label class="area-title pad7" fldid="1" istitle="1" style="width:150px;">全部Ip</label>
<div class="field-content pad7">
  <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d2277_AllIp" name="d2277_AllIp" class="form-select"  EntId="2277" IsField=1 DBField=0 IsPost=0 FieldName="AllIp" dType="2" Vtp="5" RDT="2" Isc="1" RId="-1" CId="3" FId="20" vlk=0    style="width:250px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=8,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='' where  [FldUId]='6f27ea8c-ce92-4db3-81df-b9730140eb22' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='8f9876d9-70ce-4ca6-8629-2ff5656da6ff'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(16,'8f9876d9-70ce-4ca6-8629-2ff5656da6ff',2277,2277,'00000000-0000-0000-0000-000000000000',4,'Value',2,2,2,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>














<a id="btn_RemoveIp" class="" style="margin-left:10px;margin-top:10px;color:red;" href="javascript:void(0);" onclick="javascript:RemoveIp(this);"><span class="op_bt_i">删除</span></a>
<div class="form-vld" iserr="1">
</div>
</div>
 </li><li areaid="6" class="li-area" scroll="no" style="position: static; width: 596px; height: 35px;">
  <label class="area-title pad7" istitle="1" fldid="-1" style="width:150px%;">Ip  </label>
  <div class="field-content pad7">
 




<div iserr="1" class="form-vld"></div>















  <span class="form-ctr" isfcontain="1">','</span>





</div></li><li areaid="5" class="li-area" scroll="no" style="position: static; width: 596px; height: 35px;"><label class="area-title pad7" fldid="6" istitle="1" style="width:35%;">&nbsp;</label>
<div class="field-content pad7">
	<a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" id="btn_NewIp"><span class="op_bt_i">新&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;建</span></a></div>
</li>
</ul>
</div>','','','<input  id="d2277_Value"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2277,''DefaultF_'',2277,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2277,''DefaultF_'',2277);" EntId="2277" IsField=1 DBField=1 IsPost=1 FieldName="Value" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="16" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=16,[Form_EntId]=2277,[EntId]=2277,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=4,[FieldName]='Value',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=2,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>














<a id="btn_RemoveIp" class="" style="margin-left:10px;margin-top:10px;color:red;" href="javascript:void(0);" onclick="javascript:RemoveIp(this);"><span class="op_bt_i">删除</span></a>
<div class="form-vld" iserr="1">
</div>
</div>
 </li><li areaid="6" class="li-area" scroll="no" style="position: static; width: 596px; height: 35px;">
  <label class="area-title pad7" istitle="1" fldid="-1" style="width:150px%;">Ip  </label>
  <div class="field-content pad7">
 




<div iserr="1" class="form-vld"></div>















  <span class="form-ctr" isfcontain="1">',[LastHtml]='</span>





</div></li><li areaid="5" class="li-area" scroll="no" style="position: static; width: 596px; height: 35px;"><label class="area-title pad7" fldid="6" istitle="1" style="width:35%;">&nbsp;</label>
<div class="field-content pad7">
	<a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" id="btn_NewIp"><span class="op_bt_i">新&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;建</span></a></div>
</li>
</ul>
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2277_Value"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2277,''DefaultF_'',2277,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2277,''DefaultF_'',2277);" EntId="2277" IsField=1 DBField=1 IsPost=1 FieldName="Value" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="16" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='' where  [FldUId]='8f9876d9-70ce-4ca6-8629-2ff5656da6ff' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=1205

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=1205  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(1205,null,'Dcx_Common','Dcx_Common',1,0,0,0,0,0,29,1,3,'admin','2013-12-15 17:32:10',3,'admin','2013-12-15 17:32:10',null,null,27,83,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='Dcx_Common',[DBTableByName]='Dcx_Common',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=29,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:10',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:10',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=27,[SDbTableId]=83,[IsChange]=null,[IsSystem]=null where  [DBTableId]=1205 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1205  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18182,5,29,1205,'bit',4,1,1,'Dcx_Common','ParentId1','ParentId1','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Common',[FieldName]='ParentId1',[FieldByname]='ParentId1',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1205  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1205  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18183,4,29,1205,'int',1,1,1,'Dcx_Common','ParentId','ParentId','2',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Common',[FieldName]='ParentId',[FieldByname]='ParentId',[DefaultValue]='2',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1205  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1205  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18184,3,29,1205,'varchar',2,1,1,'Dcx_Common','Name','Name','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Common',[FieldName]='Name',[FieldByname]='Name',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1205  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1205  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18185,2,29,1205,'varchar',2,1,1,'Dcx_Common','Value','Value','sss',0,0,1,30,30,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Common',[FieldName]='Value',[FieldByname]='Value',[DefaultValue]='sss',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=30,[Precision]=30,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1205  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1205  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18186,1,29,1205,'int',1,1,1,'Dcx_Common','Id','Id','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Common',[FieldName]='Id',[FieldByname]='Id',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1205  and  [FieldId]=1 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 



Delete from [Dcx_EntityPrivilege]  where [EntId]=2291

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2291  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11155,-1,2291,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2291  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2291

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2291  and  [ModuleTypeId]=18  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20501,29,3415,2291,41,18,39,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3415,[TemplateId]=41,[ModuleId]=39,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2291  and  [ModuleTypeId]=18 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_DefaultForm_Run]  where [EntId]=2291

--Dcx_DefaultForm_Run
      if (select count(1) from [Dcx_DefaultForm_Run] where  [EntId]=2291  )<1 
      begin 
           Insert into [Dcx_DefaultForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[OtherMsg],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('1e0360ff-fa9e-4cc9-d15e-74a5ba5ec164','我的资料（初）',2291,0,'','',0,'<script src="/Js/Control/LTreeRList/LTreeRList.js"></script>','<script type="text/javascript" src="/js/System/AccountSystem/InitUserMsg.js"></script>','DcxRun.DefaultF_2291= {"MenuId":3415,"MEntId":2291,"EntName":"我的资料（初）","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2291":{"EntId":2291,"KeyFieldValue":"","DBTableName":"","KeyField":"UserId","KeydtId":2,"JoinKeyField":"UserId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{
InitCtrlHtml_DateYMD(null,2291,''DefaultF_'',''Birthday'',5,null,null,false);

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":31,"Ent":[{"EntId":2291,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{2,26}$","err":"用户名长度在2-26个字符之间","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":15,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[-_a-zA-Z0-9\\u4e00-\\u9fa5]+$","err":"格式要求为汉字+英文+数字+下划线","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":17,"vlId":5,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"该用户名已被注册，请使用其他用户名注册。如果您是该用户名的主人，请<a href=\"/login.html\">登陆</a>。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":2,"Vld":[{"Id":4,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{1,50}$","err":"限制1-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":23,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"请输入姓名。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":3,"Vld":[{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":4,"Vld":[{"Id":6,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":7,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{6,100}$","err":"限制6-100个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":19,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^\\w+((-\\w+)|(\\.\\w+))*\\@[A-Za-z0-9]+((\\.|-)[A-Za-z0-9]+)*\\.[A-Za-z0-9]+$","err":"格式要求为电子邮箱格式，例如xx@qq.com","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":21,"vlId":5,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"Email已被占用！","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":5,"Vld":[{"Id":8,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-)) (20|21|22|23|[0-1]?\\d):[0-5]?\\d:[0-5]?\\d|((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))","err":"格式要求为日期时间格式：yyyy-mm-dd  hh:mm:ss","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":6,"Vld":[{"Id":9,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":7,"Vld":[{"Id":10,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":8,"Vld":[]},{"FldId":9,"Vld":[{"Id":11,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"您还没有输入密码","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":12,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{6,25}$","err":"密码由6-25个字符组成。","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":25,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[-!-~]+$","err":"密码仅能含有：字母，数字，符号，不能输入汉字，全角字符，空格等其他字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":10,"Vld":[{"Id":27,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"请输入确认密码","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":29,"vlId":2,"cdn":"","compT":1,"compV":"{@PWD}","minV":"","maxV":"","rExp":"","err":"密码不一致，请再次确认。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":11,"Vld":[{"Id":13,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":31,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"请选择部门","ok":"","warn":"","ovt":1,"jsFun":""}]}]}]};
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2291.EntMsg.E2291.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_User","EntId":2291,"KeyField":"UserId","MKeyField":"UserId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"UserName":{"DtId":2,"DB":1,"CId":1,"FL":50},"RealName":{"DtId":2,"DB":1,"CId":1,"FL":50},"Sex":{"DtId":2,"DB":1,"CId":7,"FL":50},"Email":{"DtId":2,"DB":1,"CId":1,"FL":50},"Birthday":{"DtId":3,"DB":1,"CId":48,"FL":8},"Telephone":{"DtId":2,"DB":1,"CId":1,"FL":50},"PositionId":{"DtId":1,"DB":1,"CId":3,"FL":4},"PWD":{"DtId":2,"DB":1,"CId":17,"FL":100},"DeptId":{"DtId":1,"DB":1,"CId":40,"FL":4}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2291.EntMsg.E2291.GetDataRowModel=function()
{
    return {"UserName":"","RealName":"","Sex":"","Email":"","Birthday":new Date(),"Telephone":"","PositionId":-1,"PWD":"","DeptId":-1,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"UserId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2291.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2291,''DefaultF_'',buildNew,closeDlg);

}','<$2291$>select [UserName],[Email],[RealName],[PWD],[Sex],[DeptId],[PositionId],[Birthday],[Telephone],[UserId] from Dcx_User where [UserId]=''{$keyfieldvalue}''</$2291$>',10,'2291*UserId*2*UserId*2*Dcx_User*我的资料（初）','','','',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2013-8-21 4:45:05',3,'admin','2013-10-2 18:34:19',1)
      end
      else 
      begin 
           update [Dcx_DefaultForm_Run] set [FormId]='1e0360ff-fa9e-4cc9-d15e-74a5ba5ec164',[FormName]='我的资料（初）',[ModuleId]=0,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script src="/Js/Control/LTreeRList/LTreeRList.js"></script>',[DIYJsCss2]='<script type="text/javascript" src="/js/System/AccountSystem/InitUserMsg.js"></script>',[AutoPublicJs]='DcxRun.DefaultF_2291= {"MenuId":3415,"MEntId":2291,"EntName":"我的资料（初）","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2291":{"EntId":2291,"KeyFieldValue":"","DBTableName":"","KeyField":"UserId","KeydtId":2,"JoinKeyField":"UserId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{
InitCtrlHtml_DateYMD(null,2291,''DefaultF_'',''Birthday'',5,null,null,false);

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":31,"Ent":[{"EntId":2291,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{2,26}$","err":"用户名长度在2-26个字符之间","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":15,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[-_a-zA-Z0-9\\u4e00-\\u9fa5]+$","err":"格式要求为汉字+英文+数字+下划线","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":17,"vlId":5,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"该用户名已被注册，请使用其他用户名注册。如果您是该用户名的主人，请<a href=\"/login.html\">登陆</a>。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":2,"Vld":[{"Id":4,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{1,50}$","err":"限制1-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":23,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"请输入姓名。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":3,"Vld":[{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":4,"Vld":[{"Id":6,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":7,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{6,100}$","err":"限制6-100个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":19,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^\\w+((-\\w+)|(\\.\\w+))*\\@[A-Za-z0-9]+((\\.|-)[A-Za-z0-9]+)*\\.[A-Za-z0-9]+$","err":"格式要求为电子邮箱格式，例如xx@qq.com","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":21,"vlId":5,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"Email已被占用！","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":5,"Vld":[{"Id":8,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-)) (20|21|22|23|[0-1]?\\d):[0-5]?\\d:[0-5]?\\d|((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))","err":"格式要求为日期时间格式：yyyy-mm-dd  hh:mm:ss","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":6,"Vld":[{"Id":9,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":7,"Vld":[{"Id":10,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":8,"Vld":[]},{"FldId":9,"Vld":[{"Id":11,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"您还没有输入密码","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":12,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{6,25}$","err":"密码由6-25个字符组成。","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":25,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[-!-~]+$","err":"密码仅能含有：字母，数字，符号，不能输入汉字，全角字符，空格等其他字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":10,"Vld":[{"Id":27,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"请输入确认密码","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":29,"vlId":2,"cdn":"","compT":1,"compV":"{@PWD}","minV":"","maxV":"","rExp":"","err":"密码不一致，请再次确认。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":11,"Vld":[{"Id":13,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":31,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"请选择部门","ok":"","warn":"","ovt":1,"jsFun":""}]}]}]};
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2291.EntMsg.E2291.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_User","EntId":2291,"KeyField":"UserId","MKeyField":"UserId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"UserName":{"DtId":2,"DB":1,"CId":1,"FL":50},"RealName":{"DtId":2,"DB":1,"CId":1,"FL":50},"Sex":{"DtId":2,"DB":1,"CId":7,"FL":50},"Email":{"DtId":2,"DB":1,"CId":1,"FL":50},"Birthday":{"DtId":3,"DB":1,"CId":48,"FL":8},"Telephone":{"DtId":2,"DB":1,"CId":1,"FL":50},"PositionId":{"DtId":1,"DB":1,"CId":3,"FL":4},"PWD":{"DtId":2,"DB":1,"CId":17,"FL":100},"DeptId":{"DtId":1,"DB":1,"CId":40,"FL":4}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2291.EntMsg.E2291.GetDataRowModel=function()
{
    return {"UserName":"","RealName":"","Sex":"","Email":"","Birthday":new Date(),"Telephone":"","PositionId":-1,"PWD":"","DeptId":-1,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"UserId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2291.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2291,''DefaultF_'',buildNew,closeDlg);

}',[LoadingSql]='<$2291$>select [UserName],[Email],[RealName],[PWD],[Sex],[DeptId],[PositionId],[Birthday],[Telephone],[UserId] from Dcx_User where [UserId]=''{$keyfieldvalue}''</$2291$>',[PageSize]=10,[OtherMsg]='2291*UserId*2*UserId*2*Dcx_User*我的资料（初）',[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-8-21 4:45:05',[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-2 18:34:19',[AccountId]=1 where  [EntId]=2291 
      end




--Dcx_DefaultFormField_Run
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='b291f543-8a1c-4e40-1d69-4df02db311ba'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'b291f543-8a1c-4e40-1d69-4df02db311ba',2291,2291,'00000000-0000-0000-0000-000000000000',1,'UserName',2,2,3,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','<div class="defaultform" ctrlprex="DefaultF_" entid="2291">
	<div>
		<ul class="ul-title" groupid="1" isgroup="1" style="display: none;" isrple="1">
			<li areaid="7" class="li-area-title" scroll="no" style="width: 77px; height: 34px; display: none; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">
		基本资料</span></div>
</li>
			<li areaid="8" class="li-area1" scroll="no" style="width: 94px; height: 36px; display: none; position: static;">
				<a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关 闭</span> </a></li>
			<li areaid="9" class="li-area1" scroll="no" style="width: 95px; height: 36px; display: none; position: static;">
				<a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" onclick="javascript:SubmitForm_DefaultF_2291(false);"><span class="op_bt_i">保 存</span> </a></li>
			<li areaid="10" class="li-area1" scroll="no" style="width: 94px; height: 36px; display: none; position: static;">
				<a class="f_hot_op_bt f_hot_op_bt1" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(2291,''DefaultF_'');"><span class="op_bt_i">新 建</span> </a></li>
		</ul>
	</div>
	<div class="frame-div">
		<ul class="ul-group" groupid="2" isgroup="1" isrple="1">
			<li areaid="21" class="li-area  h55" scroll="no" style="width: 596px; height: 45px; position: static;">
<div class="field-content pad17" style="font-size :14px; font-weight :bolder ; margin-left :99px;">
	Hi，请完善以下信息，立即开始使用：</div></li><li areaid="11" class="li-area  h55" scroll="no" style="width: 596px; height: 40px; position: static;"><label class="area-title pad16" fldid="1" istitle="1"><span style="color:red;margin-right:2px;">*</span>用户名</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2291_UserName"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2291,''DefaultF_'',2291,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2291,''DefaultF_'',2291);" EntId="2291" IsField=1 DBField=1 IsPost=1 FieldName="UserName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2291,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=1,[Form_EntId]=2291,[EntId]=2291,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[FieldName]='UserName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=3,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="defaultform" ctrlprex="DefaultF_" entid="2291">
	<div>
		<ul class="ul-title" groupid="1" isgroup="1" style="display: none;" isrple="1">
			<li areaid="7" class="li-area-title" scroll="no" style="width: 77px; height: 34px; display: none; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">
		基本资料</span></div>
</li>
			<li areaid="8" class="li-area1" scroll="no" style="width: 94px; height: 36px; display: none; position: static;">
				<a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关 闭</span> </a></li>
			<li areaid="9" class="li-area1" scroll="no" style="width: 95px; height: 36px; display: none; position: static;">
				<a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" onclick="javascript:SubmitForm_DefaultF_2291(false);"><span class="op_bt_i">保 存</span> </a></li>
			<li areaid="10" class="li-area1" scroll="no" style="width: 94px; height: 36px; display: none; position: static;">
				<a class="f_hot_op_bt f_hot_op_bt1" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(2291,''DefaultF_'');"><span class="op_bt_i">新 建</span> </a></li>
		</ul>
	</div>
	<div class="frame-div">
		<ul class="ul-group" groupid="2" isgroup="1" isrple="1">
			<li areaid="21" class="li-area  h55" scroll="no" style="width: 596px; height: 45px; position: static;">
<div class="field-content pad17" style="font-size :14px; font-weight :bolder ; margin-left :99px;">
	Hi，请完善以下信息，立即开始使用：</div></li><li areaid="11" class="li-area  h55" scroll="no" style="width: 596px; height: 40px; position: static;"><label class="area-title pad16" fldid="1" istitle="1"><span style="color:red;margin-right:2px;">*</span>用户名</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2291_UserName"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2291,''DefaultF_'',2291,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2291,''DefaultF_'',2291);" EntId="2291" IsField=1 DBField=1 IsPost=1 FieldName="UserName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2291,' where  [FldUId]='b291f543-8a1c-4e40-1d69-4df02db311ba' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='b643ff84-aa4d-5034-0cbd-54fb16c2798a'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'b643ff84-aa4d-5034-0cbd-54fb16c2798a',2291,2291,'00000000-0000-0000-0000-000000000000',2,'Email',2,2,7,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>

<div iserr="1" class="form-vld"></div></div>
</li>
			<li areaid="16" class="li-area  h55" scroll="no" style="width: 596px; height: 40px; position: static;">
				<label class="area-title pad16" fldid="4" istitle="1"><span style="color:red;margin-right:2px;">*</span>Email</label>
				<div class="field-content pad17">
					<span class="form-ctr" isfcontain="1">','','','','<input  id="d2291_Email"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2291,''DefaultF_'',2291,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2291,''DefaultF_'',2291);" EntId="2291" IsField=1 DBField=1 IsPost=1 FieldName="Email" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="4" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2291,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=4,[Form_EntId]=2291,[EntId]=2291,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[FieldName]='Email',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=7,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

<div iserr="1" class="form-vld"></div></div>
</li>
			<li areaid="16" class="li-area  h55" scroll="no" style="width: 596px; height: 40px; position: static;">
				<label class="area-title pad16" fldid="4" istitle="1"><span style="color:red;margin-right:2px;">*</span>Email</label>
				<div class="field-content pad17">
					<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2291_Email"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2291,''DefaultF_'',2291,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2291,''DefaultF_'',2291);" EntId="2291" IsField=1 DBField=1 IsPost=1 FieldName="Email" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="4" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2291,' where  [FldUId]='b643ff84-aa4d-5034-0cbd-54fb16c2798a' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='485f7818-eb6e-d0cb-2747-f6fc6b37451a'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'485f7818-eb6e-d0cb-2747-f6fc6b37451a',2291,2291,'00000000-0000-0000-0000-000000000000',3,'RealName',2,2,5,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>

<div iserr="1" class="form-vld"></div>
</div>
			</li><li areaid="12" class="li-area  h55" scroll="no" style="width: 596px; height: 40px; position: static;">
				<label class="area-title pad16" fldid="2" istitle="1"><span style="margin-right:2px;color:red;">*</span>姓名</label>
				<div class="field-content pad17">
					<span class="form-ctr" isfcontain="1">','','','','<input  id="d2291_RealName"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2291,''DefaultF_'',2291,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2291,''DefaultF_'',2291);" EntId="2291" IsField=1 DBField=1 IsPost=1 FieldName="RealName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2291,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=2,[Form_EntId]=2291,[EntId]=2291,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[FieldName]='RealName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=5,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

<div iserr="1" class="form-vld"></div>
</div>
			</li><li areaid="12" class="li-area  h55" scroll="no" style="width: 596px; height: 40px; position: static;">
				<label class="area-title pad16" fldid="2" istitle="1"><span style="margin-right:2px;color:red;">*</span>姓名</label>
				<div class="field-content pad17">
					<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2291_RealName"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2291,''DefaultF_'',2291,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2291,''DefaultF_'',2291);" EntId="2291" IsField=1 DBField=1 IsPost=1 FieldName="RealName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2291,' where  [FldUId]='485f7818-eb6e-d0cb-2747-f6fc6b37451a' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='7dde0261-5040-a18a-82eb-6969e2714bac'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'7dde0261-5040-a18a-82eb-6969e2714bac',2291,2291,'00000000-0000-0000-0000-000000000000',4,'PWD',2,2,22,'',5,1,1,0,17,1,-1,-1,1,0,'','','','','</span>

<div iserr="1" class="form-vld"></div></div>
			</li><li areaid="18" class="li-area  h55" scroll="no" style="width: 596px; height: 40px; position: static;"><label class="area-title pad16" fldid="9" istitle="1">密码</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2291_PWD"   type="password" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2291,''DefaultF_'',2291,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2291,''DefaultF_'',2291);" EntId="2291" IsField=1 DBField=1 IsPost=1 FieldName="PWD" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="17" FId="9" vlk=0    value="','"/>','',2,18,-1,-1,0,'2291,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=9,[Form_EntId]=2291,[EntId]=2291,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=4,[FieldName]='PWD',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=22,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=17,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

<div iserr="1" class="form-vld"></div></div>
			</li><li areaid="18" class="li-area  h55" scroll="no" style="width: 596px; height: 40px; position: static;"><label class="area-title pad16" fldid="9" istitle="1">密码</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2291_PWD"   type="password" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2291,''DefaultF_'',2291,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2291,''DefaultF_'',2291);" EntId="2291" IsField=1 DBField=1 IsPost=1 FieldName="PWD" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="17" FId="9" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=2,[RowIndex]=18,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2291,' where  [FldUId]='7dde0261-5040-a18a-82eb-6969e2714bac' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='3ba18fd1-9ac1-1fc9-668f-9b9adce02a6a'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'3ba18fd1-9ac1-1fc9-668f-9b9adce02a6a',2291,2291,'00000000-0000-0000-0000-000000000000',5,'newPwd2',2,2,-1,'',5,1,1,0,17,3,-1,-1,0,0,'','','','','</span>

<div iserr="1" class="form-vld"></div></div></li><li areaid="20" class="li-area  h55" scroll="no" style="width: 596px; height: 40px; position: static;"><label class="area-title pad16" fldid="10" istitle="1">确认密码</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2291_newPwd2"   type="password" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2291,''DefaultF_'',2291,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2291,''DefaultF_'',2291);" EntId="2291" IsField=1 DBField=0 IsPost=0 FieldName="newPwd2" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="17" FId="10" vlk=0    value="','"/>','',2,20,-1,-1,0,'2291,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=10,[Form_EntId]=2291,[EntId]=2291,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=5,[FieldName]='newPwd2',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=17,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

<div iserr="1" class="form-vld"></div></div></li><li areaid="20" class="li-area  h55" scroll="no" style="width: 596px; height: 40px; position: static;"><label class="area-title pad16" fldid="10" istitle="1">确认密码</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2291_newPwd2"   type="password" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2291,''DefaultF_'',2291,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2291,''DefaultF_'',2291);" EntId="2291" IsField=1 DBField=0 IsPost=0 FieldName="newPwd2" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="17" FId="10" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=2,[RowIndex]=20,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2291,' where  [FldUId]='3ba18fd1-9ac1-1fc9-668f-9b9adce02a6a' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='1f0fa7ba-ac23-55a8-4a35-619932febbc4'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'1f0fa7ba-ac23-55a8-4a35-619932febbc4',2291,2291,'00000000-0000-0000-0000-000000000000',6,'Sex',2,2,25,'男|男',1,7,1,0,7,1,-1,-1,1,0,'','','','','</span>

	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li><li areaid="17" class="li-area  h55" scroll="no" style="width: 596px; height: 40px; position: static;">
				<label class="area-title pad16" fldid="3" istitle="1"><span style="margin-right:2px;color:red;">*</span>性别</label>
				<div class="field-content pad17">
					<span class="form-ctr" isfcontain="1">','','','','<div id="d2291_Sex" class="form-radio" style="" EntId="2291" IsField=1 DBField=1 IsPost=1 FieldName="Sex" dType="2" Vtp="1" RDT="2" Isc="1" RId="7" CId="7" FId="3" vlk=0    Type="1"  onclick ="javascript:DcxVld.Validate(this,2291,''DefaultF_'',2291);" onfocus ="javascript:DcxVld.ValidateFocus(this,2291,''DefaultF_'',2291);"><span class="form-radio-item"  >
<input id="ddcx_2291_Sex_0"  name="ddcx_2291_Sex" checked ="checked" type="radio"  text="男"  value="男"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2291_Sex_0">男</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2291_Sex_1"  name="ddcx_2291_Sex"  type="radio"  text="女"  value="女"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2291_Sex_1">女</label></span>
<span class="clearfix"></span>','</div>','',-1,-1,-1,-1,0,'2291,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=3,[Form_EntId]=2291,[EntId]=2291,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=6,[FieldName]='Sex',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=25,[DefaultValue]='男|男',[ValueType]=1,[RunValueType]=7,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=7,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li><li areaid="17" class="li-area  h55" scroll="no" style="width: 596px; height: 40px; position: static;">
				<label class="area-title pad16" fldid="3" istitle="1"><span style="margin-right:2px;color:red;">*</span>性别</label>
				<div class="field-content pad17">
					<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2291_Sex" class="form-radio" style="" EntId="2291" IsField=1 DBField=1 IsPost=1 FieldName="Sex" dType="2" Vtp="1" RDT="2" Isc="1" RId="7" CId="7" FId="3" vlk=0    Type="1"  onclick ="javascript:DcxVld.Validate(this,2291,''DefaultF_'',2291);" onfocus ="javascript:DcxVld.ValidateFocus(this,2291,''DefaultF_'',2291);"><span class="form-radio-item"  >
<input id="ddcx_2291_Sex_0"  name="ddcx_2291_Sex" checked ="checked" type="radio"  text="男"  value="男"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2291_Sex_0">男</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2291_Sex_1"  name="ddcx_2291_Sex"  type="radio"  text="女"  value="女"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2291_Sex_1">女</label></span>
<span class="clearfix"></span>',[CtrlbackHtml]='</div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2291,' where  [FldUId]='1f0fa7ba-ac23-55a8-4a35-619932febbc4' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='87b4f21c-45d7-e571-0b89-20f849328d03'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'87b4f21c-45d7-e571-0b89-20f849328d03',2291,2291,'00000000-0000-0000-0000-000000000000',7,'DeptId',1,1,14,'',1,2,1,0,40,1,-1,22,1,0,'','','','','</span>
</div>
			</li><li areaid="19" class="li-area  h55" scroll="no" style="width: 596px; height: 40px; position: static;"><label class="area-title pad16" fldid="11" istitle="1"><span style="color:red;margin-right:2px;">*</span>所属部门</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">','','','','<div id="d2291_DeptId" class="form-ddl" style="" IsForField=1 EntId="2291" FId="11" Vtp="1" RId="2" Isc="1" CId="40" FieldName="DeptId" ><input  id="d2291_DeptId_Text" type="text" class="form-ddl-txt" readonly="readOnly"  CId="40" FId="11" Vtp="1"  RId="2" Isc="1"  style="width:200px;" onclick ="javascript:DcxTree.ShowDialogAf(this,22,2291,''DeptId'',false);" onchange ="javascript:if(!DcxVld.Validate(this,2291,''DefaultF_'',2291,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2291,''DefaultF_'',2291);" onkeyup ="javascript:DcxTree.ShowDialogAf(this,22,2291,''DeptId'',true);" value="','" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2291_DeptId_hid" type="hidden"  EntId="2291" IsField=1 DBField=1 IsPost=1 FieldName="DeptId" dType="1" Vtp="1" RDT="1" Isc="1" RId="2" CId="40" FId="11" vlk=0   TId=22  value="','" />',2,19,-1,-1,0,'2291,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=11,[Form_EntId]=2291,[EntId]=2291,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=7,[FieldName]='DeptId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=14,[DefaultValue]='',[ValueType]=1,[RunValueType]=2,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=40,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=22,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
			</li><li areaid="19" class="li-area  h55" scroll="no" style="width: 596px; height: 40px; position: static;"><label class="area-title pad16" fldid="11" istitle="1"><span style="color:red;margin-right:2px;">*</span>所属部门</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2291_DeptId" class="form-ddl" style="" IsForField=1 EntId="2291" FId="11" Vtp="1" RId="2" Isc="1" CId="40" FieldName="DeptId" ><input  id="d2291_DeptId_Text" type="text" class="form-ddl-txt" readonly="readOnly"  CId="40" FId="11" Vtp="1"  RId="2" Isc="1"  style="width:200px;" onclick ="javascript:DcxTree.ShowDialogAf(this,22,2291,''DeptId'',false);" onchange ="javascript:if(!DcxVld.Validate(this,2291,''DefaultF_'',2291,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2291,''DefaultF_'',2291);" onkeyup ="javascript:DcxTree.ShowDialogAf(this,22,2291,''DeptId'',true);" value="',[CtrlbackHtml]='" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2291_DeptId_hid" type="hidden"  EntId="2291" IsField=1 DBField=1 IsPost=1 FieldName="DeptId" dType="1" Vtp="1" RDT="1" Isc="1" RId="2" CId="40" FId="11" vlk=0   TId=22  value="',[CtrlLastHtml]='" />',[TableIndex]=2,[RowIndex]=19,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2291,' where  [FldUId]='87b4f21c-45d7-e571-0b89-20f849328d03' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='b1d9105e-1dfd-0f83-4fd7-b7a52a7ed3e2'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'b1d9105e-1dfd-0f83-4fd7-b7a52a7ed3e2',2291,2291,'00000000-0000-0000-0000-000000000000',8,'PositionId',1,1,15,'SELECT [PositionName],[PositionId] FROM [Dcx_Position] order by [OrderNO],[PositionId]',2,1,1,0,3,1,-1,-1,1,0,'','','','','</span>
<div iserr="1" class="form-vld"></div>
</div></li><li areaid="13" class="li-area  h55" scroll="no" style="width: 596px; height: 40px; position: static;">
				<label class="area-title pad16" fldid="7" istitle="1"><span style="margin-right:2px;color:red;">*</span>职务</label>
				<div class="field-content pad17">
					<span class="form-ctr" isfcontain="1">','','','','<select id="d2291_PositionId" name="d2291_PositionId" class="form-select"  onchange ="javascript:DcxVld.Validate(this,2291,''DefaultF_'',2291,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,2291,''DefaultF_'',2291);" EntId="2291" IsField=1 DBField=1 IsPost=1 FieldName="PositionId" dType="1" Vtp="2" RDT="1" Isc="1" RId="1" CId="3" FId="7" vlk=0    style="width:200px;">','</select>','',-1,-1,-1,-1,0,'2291,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=7,[Form_EntId]=2291,[EntId]=2291,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=8,[FieldName]='PositionId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=15,[DefaultValue]='SELECT [PositionName],[PositionId] FROM [Dcx_Position] order by [OrderNO],[PositionId]',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
<div iserr="1" class="form-vld"></div>
</div></li><li areaid="13" class="li-area  h55" scroll="no" style="width: 596px; height: 40px; position: static;">
				<label class="area-title pad16" fldid="7" istitle="1"><span style="margin-right:2px;color:red;">*</span>职务</label>
				<div class="field-content pad17">
					<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d2291_PositionId" name="d2291_PositionId" class="form-select"  onchange ="javascript:DcxVld.Validate(this,2291,''DefaultF_'',2291,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,2291,''DefaultF_'',2291);" EntId="2291" IsField=1 DBField=1 IsPost=1 FieldName="PositionId" dType="1" Vtp="2" RDT="1" Isc="1" RId="1" CId="3" FId="7" vlk=0    style="width:200px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2291,' where  [FldUId]='b1d9105e-1dfd-0f83-4fd7-b7a52a7ed3e2' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='672fe001-7250-a8a2-616a-af6f2ac6f6b6'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'672fe001-7250-a8a2-616a-af6f2ac6f6b6',2291,2291,'00000000-0000-0000-0000-000000000000',9,'Birthday',3,3,30,'',5,10,1,0,48,1,-1,-1,1,0,'','','','','</span>
</div>
			</li><li areaid="15" class="li-area  h55" scroll="no" style="width: 596px; height: 40px; position: static;">
				<label class="area-title pad16" fldid="5" istitle="1">生日</label>
				<div class="field-content pad17">
					<span class="form-ctr" isfcontain="1"><div id="d2291_Birthday" ctrlprex="DefaultF_" class="form-dateymd" style="" isforfield="1" entid="2291" fid="5" rid="10" cid="48" fieldname="Birthday"><table><tbody><tr>
<td><select id="d2291_Birthday_1" onchange="javascript:GetChildOption_DateYMD(this);" class="form-select" style="width:130px;" vlabel="1" isyear="1"><option selected="" vid="0" value="0">年份</option></select>年</td><td><select id="d2291_Birthday_2" onchange="javascript:GetChildOption_DateYMD(this);" class="form-select" style="width:90px;" vlabel="2" ismonth="1"><option selected="" vid="0" value="0">月份</option></select>月</td><td><select id="d2291_Birthday_3" onchange="javascript:GetChildOption_DateYMD(this);" class="form-select" style="width:90px;" vlabel="3" isday="1"><option selected="" vid="0" value="0">日</option></select>日</td></tr></tbody></table>
</div>','','','','<input  id="d2291_Birthday_hid"   type="hidden"  EntId="2291" IsField=1 DBField=1 IsPost=1 FieldName="Birthday" dType="3" Vtp="5" RDT="3" Isc="1" RId="10" CId="48" FId="5" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2291,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=5,[Form_EntId]=2291,[EntId]=2291,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=9,[FieldName]='Birthday',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=30,[DefaultValue]='',[ValueType]=5,[RunValueType]=10,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=48,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
			</li><li areaid="15" class="li-area  h55" scroll="no" style="width: 596px; height: 40px; position: static;">
				<label class="area-title pad16" fldid="5" istitle="1">生日</label>
				<div class="field-content pad17">
					<span class="form-ctr" isfcontain="1"><div id="d2291_Birthday" ctrlprex="DefaultF_" class="form-dateymd" style="" isforfield="1" entid="2291" fid="5" rid="10" cid="48" fieldname="Birthday"><table><tbody><tr>
<td><select id="d2291_Birthday_1" onchange="javascript:GetChildOption_DateYMD(this);" class="form-select" style="width:130px;" vlabel="1" isyear="1"><option selected="" vid="0" value="0">年份</option></select>年</td><td><select id="d2291_Birthday_2" onchange="javascript:GetChildOption_DateYMD(this);" class="form-select" style="width:90px;" vlabel="2" ismonth="1"><option selected="" vid="0" value="0">月份</option></select>月</td><td><select id="d2291_Birthday_3" onchange="javascript:GetChildOption_DateYMD(this);" class="form-select" style="width:90px;" vlabel="3" isday="1"><option selected="" vid="0" value="0">日</option></select>日</td></tr></tbody></table>
</div>',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2291_Birthday_hid"   type="hidden"  EntId="2291" IsField=1 DBField=1 IsPost=1 FieldName="Birthday" dType="3" Vtp="5" RDT="3" Isc="1" RId="10" CId="48" FId="5" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2291,' where  [FldUId]='672fe001-7250-a8a2-616a-af6f2ac6f6b6' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='52be051c-cab0-19d4-098f-79422c89b959'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'52be051c-cab0-19d4-098f-79422c89b959',2291,2291,'00000000-0000-0000-0000-000000000000',10,'Telephone',2,2,26,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>

</div>
			</li><li areaid="14" class="li-area  h55" scroll="no" style="width: 596px; height: 50px; position: static;">
				<label class="area-title pad16" fldid="6" istitle="1">电话</label>
				<div class="field-content pad17">
					<span class="form-ctr" isfcontain="1">','</span>

</div>
			</li><li areaid="22" class="li-area  h55" scroll="no" style="width: 596px; height: 55px; position: static;"><label class="area-title pad16" fldid="8" istitle="1">&nbsp;</label>
<div class="field-content pad17">
	<a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" id="btn_updateUserMsg"><span class="op_bt_i">保存</span></a></div>
</li><li areaid="23" class="li-area  h55" scroll="no" style="width: 596px; height: 55px; position: static; display: none;"><label class="area-title pad16" fldid="8" istitle="1">Field1879</label>
<div class="field-content pad17">
	&nbsp;</div>
</li>
		</ul>
	</div>
</div>','','','<input  id="d2291_Telephone"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2291,''DefaultF_'',2291,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2291,''DefaultF_'',2291);" EntId="2291" IsField=1 DBField=1 IsPost=1 FieldName="Telephone" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="6" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2291,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=6,[Form_EntId]=2291,[EntId]=2291,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=10,[FieldName]='Telephone',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=26,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

</div>
			</li><li areaid="14" class="li-area  h55" scroll="no" style="width: 596px; height: 50px; position: static;">
				<label class="area-title pad16" fldid="6" istitle="1">电话</label>
				<div class="field-content pad17">
					<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>

</div>
			</li><li areaid="22" class="li-area  h55" scroll="no" style="width: 596px; height: 55px; position: static;"><label class="area-title pad16" fldid="8" istitle="1">&nbsp;</label>
<div class="field-content pad17">
	<a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" id="btn_updateUserMsg"><span class="op_bt_i">保存</span></a></div>
</li><li areaid="23" class="li-area  h55" scroll="no" style="width: 596px; height: 55px; position: static; display: none;"><label class="area-title pad16" fldid="8" istitle="1">Field1879</label>
<div class="field-content pad17">
	&nbsp;</div>
</li>
		</ul>
	</div>
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2291_Telephone"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2291,''DefaultF_'',2291,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2291,''DefaultF_'',2291);" EntId="2291" IsField=1 DBField=1 IsPost=1 FieldName="Telephone" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="6" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2291,' where  [FldUId]='52be051c-cab0-19d4-098f-79422c89b959' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=1200

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=1200  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(1200,null,'Dcx_User','Dcx_User',1,0,0,0,0,0,29,1,3,'admin','2013-12-15 17:32:24',3,'admin','2013-12-15 17:32:24',null,null,27,418,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='Dcx_User',[DBTableByName]='Dcx_User',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=29,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:24',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:24',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=27,[SDbTableId]=418,[IsChange]=null,[IsSystem]=null where  [DBTableId]=1200 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=50  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17995,50,29,1200,'int',1,1,1,'Dcx_User','TopMenuId','TopMenuId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='TopMenuId',[FieldByname]='TopMenuId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=50 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=49  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17996,49,29,1200,'varchar',2,1,1,'Dcx_User','InviteCode','InviteCode','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='InviteCode',[FieldByname]='InviteCode',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=49 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=48  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17997,48,29,1200,'int',1,1,1,'Dcx_User','DiskSize','DiskSize','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='DiskSize',[FieldByname]='DiskSize',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=48 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=47  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17998,47,29,1200,'varchar',2,1,1,'Dcx_User','Remark','Remark','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Remark',[FieldByname]='Remark',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=47 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=46  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17999,46,29,1200,'bit',4,1,1,'Dcx_User','AcceptStrangerIM','AcceptStrangerIM','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='AcceptStrangerIM',[FieldByname]='AcceptStrangerIM',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=46 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=45  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18000,45,29,1200,'int',1,1,1,'Dcx_User','StyleId','StyleId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='StyleId',[FieldByname]='StyleId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=45 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=44  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18001,44,29,1200,'bit',4,1,1,'Dcx_User','SelftSearch','SelftSearch','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='SelftSearch',[FieldByname]='SelftSearch',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=44 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=43  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18002,43,29,1200,'bit',4,1,1,'Dcx_User','SelftNavMenu','SelftNavMenu','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='SelftNavMenu',[FieldByname]='SelftNavMenu',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=43 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=42  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18003,42,29,1200,'bit',4,1,1,'Dcx_User','SelftHomePage','SelftHomePage','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='SelftHomePage',[FieldByname]='SelftHomePage',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=42 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=41  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18004,41,29,1200,'datetime',3,1,1,'Dcx_User','EditTime','EditTime','getdate()',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='EditTime',[FieldByname]='EditTime',[DefaultValue]='getdate()',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=41 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=40  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18005,40,29,1200,'varchar',2,1,1,'Dcx_User','Editor','Editor','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Editor',[FieldByname]='Editor',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=40 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=39  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18006,39,29,1200,'int',1,1,1,'Dcx_User','EditorId','EditorId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='EditorId',[FieldByname]='EditorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=39 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=38  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18007,38,29,1200,'datetime',3,1,1,'Dcx_User','CreateTime','CreateTime','getdate()',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='CreateTime',[FieldByname]='CreateTime',[DefaultValue]='getdate()',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=38 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=37  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18008,37,29,1200,'varchar',2,1,1,'Dcx_User','Creator','Creator','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Creator',[FieldByname]='Creator',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=37 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=36  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18009,36,29,1200,'int',1,1,1,'Dcx_User','CreatorId','CreatorId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='CreatorId',[FieldByname]='CreatorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=36 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=35  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18010,35,29,1200,'varchar',2,1,1,'Dcx_User','IconPath','IconPath','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='IconPath',[FieldByname]='IconPath',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=35 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=34  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18011,34,29,1200,'varchar',2,1,1,'Dcx_User','Http','Http','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Http',[FieldByname]='Http',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=34 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=33  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18012,33,29,1200,'int',1,1,1,'Dcx_User','Caste','Caste','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Caste',[FieldByname]='Caste',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=33 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=32  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18013,32,29,1200,'bit',4,1,1,'Dcx_User','IsNeedKey','IsNeedKey','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='IsNeedKey',[FieldByname]='IsNeedKey',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=32 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=31  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18014,31,29,1200,'int',1,1,1,'Dcx_User','Style','Style','1',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Style',[FieldByname]='Style',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=31 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=30  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18015,30,29,1200,'datetime',3,1,1,'Dcx_User','Birthday','Birthday','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Birthday',[FieldByname]='Birthday',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=30 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=29  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18016,29,29,1200,'varchar',2,1,1,'Dcx_User','Phone','Phone','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Phone',[FieldByname]='Phone',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=29 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=28  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18017,28,29,1200,'datetime',3,1,1,'Dcx_User','RegistedDate','RegistedDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='RegistedDate',[FieldByname]='RegistedDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=28 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=27  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18018,27,29,1200,'varchar',2,1,1,'Dcx_User','Status','Status','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Status',[FieldByname]='Status',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=27 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18019,26,29,1200,'varchar',2,1,1,'Dcx_User','Telephone','Telephone','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Telephone',[FieldByname]='Telephone',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=26 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18020,25,29,1200,'varchar',2,1,1,'Dcx_User','Sex','Sex','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Sex',[FieldByname]='Sex',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18021,24,29,1200,'int',1,1,1,'Dcx_User','UserOrder','UserOrder','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='UserOrder',[FieldByname]='UserOrder',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18022,23,29,1200,'datetime',3,1,1,'Dcx_User','LoginDate','LoginDate','0',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='LoginDate',[FieldByname]='LoginDate',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18023,22,29,1200,'varchar',2,1,1,'Dcx_User','PWD','PWD','',0,0,0,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='PWD',[FieldByname]='PWD',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18024,21,29,1200,'bit',4,1,1,'Dcx_User','Online','Online','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Online',[FieldByname]='Online',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18025,20,29,1200,'int',1,1,1,'Dcx_User','VisitTime','VisitTime','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='VisitTime',[FieldByname]='VisitTime',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18026,19,29,1200,'bit',4,1,1,'Dcx_User','RestrictIp','RestrictIp','0',0,0,0,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='RestrictIp',[FieldByname]='RestrictIp',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18027,18,29,1200,'varchar',2,1,1,'Dcx_User','IP','IP','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='IP',[FieldByname]='IP',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18028,17,29,1200,'bit',4,1,1,'Dcx_User','CanLogin','CanLogin','1',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='CanLogin',[FieldByname]='CanLogin',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18029,16,29,1200,'bit',4,1,1,'Dcx_User','SuperAdmin','SuperAdmin','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='SuperAdmin',[FieldByname]='SuperAdmin',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18030,15,29,1200,'int',1,1,1,'Dcx_User','PositionId','PositionId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='PositionId',[FieldByname]='PositionId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18031,14,29,1200,'int',1,1,1,'Dcx_User','DeptId','DeptId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='DeptId',[FieldByname]='DeptId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18032,13,29,1200,'int',1,1,1,'Dcx_User','EmployeeId','EmployeeId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='EmployeeId',[FieldByname]='EmployeeId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18033,12,29,1200,'int',1,1,1,'Dcx_User','CurSystemId','CurSystemId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='CurSystemId',[FieldByname]='CurSystemId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18034,11,29,1200,'bit',4,1,1,'Dcx_User','IsAccountCreator','IsAccountCreator','0',0,0,0,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='IsAccountCreator',[FieldByname]='IsAccountCreator',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18035,10,29,1200,'int',1,1,1,'Dcx_User','AccountId','AccountId','1',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='AccountId',[FieldByname]='AccountId',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18036,9,29,1200,'int',1,1,1,'Dcx_User','GroupId','GroupId','0',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='GroupId',[FieldByname]='GroupId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18037,8,29,1200,'varchar',2,1,1,'Dcx_User','Address','Address','',0,0,1,150,150,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Address',[FieldByname]='Address',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=150,[Precision]=150,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18038,7,29,1200,'varchar',2,1,1,'Dcx_User','Email','Email','',0,0,0,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='Email',[FieldByname]='Email',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18039,6,29,1200,'varchar',2,1,1,'Dcx_User','DcxUserName','DcxUserName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='DcxUserName',[FieldByname]='DcxUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18040,5,29,1200,'varchar',2,1,1,'Dcx_User','RealName','RealName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='RealName',[FieldByname]='RealName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18041,4,29,1200,'varchar',2,1,1,'Dcx_User','UpperName','UpperName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='UpperName',[FieldByname]='UpperName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18042,3,29,1200,'varchar',2,1,1,'Dcx_User','UserName','UserName','',0,0,0,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='UserName',[FieldByname]='UserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18043,2,29,1200,'uniqueidentifier',24,1,1,'Dcx_User','UserGuId','UserGuId','newid()',0,0,1,16,16,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='uniqueidentifier',[FieldDataTypeId]=24,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='UserGuId',[FieldByname]='UserGuId',[DefaultValue]='newid()',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=16,[Precision]=16,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1200  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18044,1,29,1200,'int',1,1,1,'Dcx_User','UserId','UserId','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_User',[FieldName]='UserId',[FieldByname]='UserId',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1200  and  [FieldId]=1 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=3416  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(3416,'b500502f-207d-4c34-af58-fb5098c41d91','角色管理',3273,'/System/RoleMng.aspx?MenuId=3416&entid=2278&navindex=4',66,'','',4,'rightFrame',0,0,'',29,0,29,2,1,1,'2013-7-10 1:33:11','',0,0,'',null,3,'admin','2013-10-9 4:20:20',1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='b500502f-207d-4c34-af58-fb5098c41d91',[MenuName]='角色管理',[ParentId]=3273,[ProPath]='/System/RoleMng.aspx?MenuId=3416&entid=2278&navindex=4',[TemplateId]=66,[ImgPath]='',[ExImgPath]='',[OrderBy]=4,[Target]='rightFrame',[IsOpen]=0,[IsHidden]=0,[Remark]='',[SSystemId]=29,[SMenuId]=0,[SystemId]=29,[EntityCount]=2,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]='2013-7-10 1:33:11',[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=0,[Creator]='',[CreateTime]=null,[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-9 4:20:20',[AccountId]=1 where  [MenuId]=3416 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3416  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(1059,3416,'角色管理','Public',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='角色管理',[RoleName]='Public',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3416  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3416  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(1028,3416,'角色管理','系统管理员',3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='角色管理',[RoleName]='系统管理员',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3416  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2278  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2278,3416,'角色管理',1,310,0,'Dcx_Role',0,0,1,29,2278,null,null,29,'',0,0,0,-1,1,1,'2013-7-10 1:44:21','',0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3416,[EntName]='角色管理',[MEnt]=1,[DBTableId]=310,[DBConnectId]=0,[DBTableName]='Dcx_Role',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2278,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=0,[IsChecked]=0,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]='2013-7-10 1:44:21',[AddDcxUserName]='',[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2278 
      end
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2279  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2279,3416,'角色成员',0,427,0,'Dcx_UserInRole',2278,0,1,29,2279,null,null,29,'',0,0,0,-1,1,1,'2013-7-10 1:45:31','',0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3416,[EntName]='角色成员',[MEnt]=0,[DBTableId]=427,[DBConnectId]=0,[DBTableName]='Dcx_UserInRole',[ParentId]=2278,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2279,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=0,[IsChecked]=0,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]='2013-7-10 1:45:31',[AddDcxUserName]='',[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2279 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=2278

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2278  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11149,-1,2278,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2278  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2278

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2278  and  [ModuleTypeId]=5  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20497,29,3416,2278,70,5,25,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3416,[TemplateId]=70,[ModuleId]=25,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2278  and  [ModuleTypeId]=5 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2278  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20498,29,3416,2278,70,3,14,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3416,[TemplateId]=70,[ModuleId]=14,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2278  and  [ModuleTypeId]=3 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_AjaxForm_Run]  where [EntId]=2278

--Dcx_AjaxForm_Run
      if (select count(1) from [Dcx_AjaxForm_Run] where  [EntId]=2278  )<1 
      begin 
           Insert into [Dcx_AjaxForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('95429da9-a510-9b5b-27e7-ddef52789d61','角色管理',2278,0,'','',0,'<script src="/Js/Control/LTreeRList/LTreeRList.js"></script>','<script type="text/javascript" src="/js/System/Manage/Common.js"></script>','DcxRun.AjaxF_2278= {"MenuId":3416,"MEntId":2278,"EntName":"角色管理","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2278":{"EntId":2278,"KeyFieldValue":"","DBTableName":"","KeyField":"RoleId","KeydtId":2,"JoinKeyField":"RoleId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""},"E2279":{"EntId":2279,"KeyFieldValue":"","DBTableName":"","KeyField":"UserRoleId","KeydtId":2,"JoinKeyField":"RoleId","JKeydtId":2,"IsMEnt":false,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}


if(runObj.NoInit)
{
   entMsg.E2279.FormData=null;
   mEntMsg.RowCount=0;mEntMsg.RecortCount=0;entMsg.E2279.RowCount=0;

}

 DcxForm.InitSheetForm(2279,''AjaxF_'',entMsg.E2279.FormData,entMsg.E2279.$listContainer);


}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":19,"Ent":[{"EntId":2278,"Fld":[{"FldId":1,"Vld":[{"id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"id":15,"vlId":5,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"此值已存在,请重新输入","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":2,"Vld":[{"id":4,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":3,"Vld":[{"id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,20}$","err":"限制0-20个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":48,"Vld":[{"id":9,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":49,"Vld":[{"id":10,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":50,"Vld":[{"id":11,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,40}$","err":"限制0-40个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":51,"Vld":[{"id":12,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-)) (20|21|22|23|[0-1]?\\d):[0-5]?\\d:[0-5]?\\d|((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))","err":"格式要求为日期时间格式：yyyy-mm-dd  hh:mm:ss","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":52,"Vld":[{"id":13,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":53,"Vld":[{"id":14,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-)) (20|21|22|23|[0-1]?\\d):[0-5]?\\d:[0-5]?\\d|((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))","err":"格式要求为日期时间格式：yyyy-mm-dd  hh:mm:ss","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":120,"Vld":[{"Id":18,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":19,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]}]},{"EntId":2279,"Fld":[{"FldId":6,"Vld":[{"id":6,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"id":7,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"id":17,"vlId":5,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"已选择此用户，请不要重复选择。","ok":"","warn":"","ovt":2,"jsFun":""}]},{"FldId":7,"Vld":[{"id":8,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":8,"Vld":[]},{"FldId":11,"Vld":[]}]}]};
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_2278.EntMsg.E2278.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_Role","EntId":2278,"KeyField":"RoleId","MKeyField":"RoleId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":1},"FieldDefine":{"RoleName":{"DtId":2,"DB":1,"CId":1,"FL":50},"RoleOrder":{"DtId":1,"DB":1,"CId":1,"FL":4},"Remark":{"DtId":2,"DB":1,"CId":2,"FL":20},"ParentId":{"DtId":1,"DB":1,"CId":1,"FL":4},"CreatorId":{"DtId":1,"DB":1,"CId":1,"FL":4},"Creator":{"DtId":2,"DB":1,"CId":1,"FL":40},"CreateTime":{"DtId":3,"DB":1,"CId":1,"FL":8},"EditorId":{"DtId":1,"DB":1,"CId":1,"FL":4},"EditTime":{"DtId":3,"DB":1,"CId":1,"FL":8},"AccountId":{"DtId":1,"DB":1,"CId":1,"FL":4}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_2278.EntMsg.E2278.GetDataRowModel=function()
{
    return {"RoleName":"","RoleOrder":-1,"Remark":"","ParentId":0,"CreatorId":-1,"Creator":"","CreateTime":new Date(),"EditorId":-1,"EditTime":new Date(),"AccountId":-1,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"RoleId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
DcxRun.AjaxF_2278.EntMsg.E2279.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_UserInRole","EntId":2279,"KeyField":"UserRoleId","MKeyField":"UserRoleId","MKeyValue":-1,"DataTypeId":2,"JoinKeyField":"RoleId","JKeydtId":2,"OpType":1,"IsMEnt":false,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null},"FieldDefine":{"UserId":{"DtId":1,"DB":1,"CId":40,"FL":4},"UserName":{"DtId":2,"DB":1,"CId":1,"FL":50},"IsMainRole":{"DtId":4,"DB":1,"CId":13,"FL":1}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_2278.EntMsg.E2279.GetDataRowModel=function()
{
    return {"UserId":-1,"UserName":"","IsMainRole":false,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"UserRoleId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_AjaxF_2279_261(obj,curFieldName){
 var EntId=2279;
 var FldId=7;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''UserName'';
 var $formContainer=DcxForm.GetRow(obj,2279,''AjaxF_'');
 var $ddlContainer=null;
var strCode="{@UserId&}" ;
var v_f1=null;
if(''UserId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,2279,''AjaxF_'',''UserId'',40,$formContainer,true,true);
if(Dcx.IsNull(v_f1))
   v_f1=0;
strCode=strCode.replaceAll("{@UserId&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var rowindex=$formContainer.attr("rowix");
var Cur_ctrlId="d2279_UserNamefrom_tr"+rowindex;
var $AcceptObj=$formContainer.find("#"+Cur_ctrlId);
$AcceptObj.val(myVal);
$AcceptObj.change();
}



 function GetLinkCtrl_AjaxF_2279(obj,FieldName,EntId)
{

}
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_2278.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2278,''AjaxF_'',buildNew,closeDlg);

}','<$2278$>select [RoleName],[RoleOrder],[Remark],[ParentId],[CreatorId],[Creator],[CreateTime],[EditorId],[EditTime],[RoleId] from Dcx_Role where [RoleId]=''{$keyfieldvalue}''</$2278$><$2279$>select [UserId],[UserName],[IsMainRole],[UserRoleId],[RoleId] from Dcx_UserInRole where [AccountId]={$AccountId} and [RoleId]=''{$mkeyValue}''</$2279$>',10,'','','','2278*RoleId*2*RoleId*2*Dcx_Role*角色管理,2279*UserRoleId*2*RoleId*2*Dcx_UserInRole*角色成员',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2013-7-10 1:50:06',3,'admin','2013-11-29 3:37:29',1)
      end
      else 
      begin 
           update [Dcx_AjaxForm_Run] set [FormId]='95429da9-a510-9b5b-27e7-ddef52789d61',[FormName]='角色管理',[ModuleId]=0,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script src="/Js/Control/LTreeRList/LTreeRList.js"></script>',[DIYJsCss2]='<script type="text/javascript" src="/js/System/Manage/Common.js"></script>',[AutoPublicJs]='DcxRun.AjaxF_2278= {"MenuId":3416,"MEntId":2278,"EntName":"角色管理","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2278":{"EntId":2278,"KeyFieldValue":"","DBTableName":"","KeyField":"RoleId","KeydtId":2,"JoinKeyField":"RoleId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""},"E2279":{"EntId":2279,"KeyFieldValue":"","DBTableName":"","KeyField":"UserRoleId","KeydtId":2,"JoinKeyField":"RoleId","JKeydtId":2,"IsMEnt":false,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}


if(runObj.NoInit)
{
   entMsg.E2279.FormData=null;
   mEntMsg.RowCount=0;mEntMsg.RecortCount=0;entMsg.E2279.RowCount=0;

}

 DcxForm.InitSheetForm(2279,''AjaxF_'',entMsg.E2279.FormData,entMsg.E2279.$listContainer);


}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":19,"Ent":[{"EntId":2278,"Fld":[{"FldId":1,"Vld":[{"id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"id":15,"vlId":5,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"此值已存在,请重新输入","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":2,"Vld":[{"id":4,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":3,"Vld":[{"id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,20}$","err":"限制0-20个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":48,"Vld":[{"id":9,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":49,"Vld":[{"id":10,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":50,"Vld":[{"id":11,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,40}$","err":"限制0-40个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":51,"Vld":[{"id":12,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-)) (20|21|22|23|[0-1]?\\d):[0-5]?\\d:[0-5]?\\d|((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))","err":"格式要求为日期时间格式：yyyy-mm-dd  hh:mm:ss","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":52,"Vld":[{"id":13,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":53,"Vld":[{"id":14,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-)) (20|21|22|23|[0-1]?\\d):[0-5]?\\d:[0-5]?\\d|((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))","err":"格式要求为日期时间格式：yyyy-mm-dd  hh:mm:ss","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":120,"Vld":[{"Id":18,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":19,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]}]},{"EntId":2279,"Fld":[{"FldId":6,"Vld":[{"id":6,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"id":7,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"id":17,"vlId":5,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"已选择此用户，请不要重复选择。","ok":"","warn":"","ovt":2,"jsFun":""}]},{"FldId":7,"Vld":[{"id":8,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":8,"Vld":[]},{"FldId":11,"Vld":[]}]}]};
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_2278.EntMsg.E2278.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_Role","EntId":2278,"KeyField":"RoleId","MKeyField":"RoleId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":1},"FieldDefine":{"RoleName":{"DtId":2,"DB":1,"CId":1,"FL":50},"RoleOrder":{"DtId":1,"DB":1,"CId":1,"FL":4},"Remark":{"DtId":2,"DB":1,"CId":2,"FL":20},"ParentId":{"DtId":1,"DB":1,"CId":1,"FL":4},"CreatorId":{"DtId":1,"DB":1,"CId":1,"FL":4},"Creator":{"DtId":2,"DB":1,"CId":1,"FL":40},"CreateTime":{"DtId":3,"DB":1,"CId":1,"FL":8},"EditorId":{"DtId":1,"DB":1,"CId":1,"FL":4},"EditTime":{"DtId":3,"DB":1,"CId":1,"FL":8},"AccountId":{"DtId":1,"DB":1,"CId":1,"FL":4}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_2278.EntMsg.E2278.GetDataRowModel=function()
{
    return {"RoleName":"","RoleOrder":-1,"Remark":"","ParentId":0,"CreatorId":-1,"Creator":"","CreateTime":new Date(),"EditorId":-1,"EditTime":new Date(),"AccountId":-1,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"RoleId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
DcxRun.AjaxF_2278.EntMsg.E2279.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_UserInRole","EntId":2279,"KeyField":"UserRoleId","MKeyField":"UserRoleId","MKeyValue":-1,"DataTypeId":2,"JoinKeyField":"RoleId","JKeydtId":2,"OpType":1,"IsMEnt":false,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null},"FieldDefine":{"UserId":{"DtId":1,"DB":1,"CId":40,"FL":4},"UserName":{"DtId":2,"DB":1,"CId":1,"FL":50},"IsMainRole":{"DtId":4,"DB":1,"CId":13,"FL":1}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_2278.EntMsg.E2279.GetDataRowModel=function()
{
    return {"UserId":-1,"UserName":"","IsMainRole":false,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"UserRoleId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_AjaxF_2279_261(obj,curFieldName){
 var EntId=2279;
 var FldId=7;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''UserName'';
 var $formContainer=DcxForm.GetRow(obj,2279,''AjaxF_'');
 var $ddlContainer=null;
var strCode="{@UserId&}" ;
var v_f1=null;
if(''UserId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,2279,''AjaxF_'',''UserId'',40,$formContainer,true,true);
if(Dcx.IsNull(v_f1))
   v_f1=0;
strCode=strCode.replaceAll("{@UserId&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var rowindex=$formContainer.attr("rowix");
var Cur_ctrlId="d2279_UserNamefrom_tr"+rowindex;
var $AcceptObj=$formContainer.find("#"+Cur_ctrlId);
$AcceptObj.val(myVal);
$AcceptObj.change();
}



 function GetLinkCtrl_AjaxF_2279(obj,FieldName,EntId)
{

}
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_2278.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2278,''AjaxF_'',buildNew,closeDlg);

}',[LoadingSql]='<$2278$>select [RoleName],[RoleOrder],[Remark],[ParentId],[CreatorId],[Creator],[CreateTime],[EditorId],[EditTime],[RoleId] from Dcx_Role where [RoleId]=''{$keyfieldvalue}''</$2278$><$2279$>select [UserId],[UserName],[IsMainRole],[UserRoleId],[RoleId] from Dcx_UserInRole where [AccountId]={$AccountId} and [RoleId]=''{$mkeyValue}''</$2279$>',[PageSize]=10,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='2278*RoleId*2*RoleId*2*Dcx_Role*角色管理,2279*UserRoleId*2*RoleId*2*Dcx_UserInRole*角色成员',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-7-10 1:50:06',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-29 3:37:29',[AccountId]=1 where  [EntId]=2278 
      end




--Dcx_AjaxFormField_Run
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='9a76a620-cac0-f24f-0dc8-3010d3c7e6aa'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'9a76a620-cac0-f24f-0dc8-3010d3c7e6aa',2278,2278,'00000000-0000-0000-0000-000000000000','RoleName',2,2,2,'',5,1,1,0,1,1,-1,1,-1,1,0,'','','','','<div class="ajaxform ">
	<div class="div_top">
		<div class="title-div">
			<ul class="ul-title" entid="2278" groupid="5" isgroup="1" style="width: 590px;" ctrlprex="AjaxF_" isrple="1">
				<li areaid="20" class="li-area-title" scroll="no" style="position: static;">
					<div class="form-title5" id="div_head1">
						<span class="title-name" id="h2_title">角色管理</span></div>
				</li>
				<li areaid="21" class="li-area1" scroll="no" style="position: static;">
					<a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
				<li areaid="22" class="li-area1" scroll="no" style="position: static;">
					<a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.AjaxF_2278.SubmitForm(false);"><span class="op_bt_i">保存</span> </a></li>
				<li areaid="23" class="li-area1" scroll="no" style="width: 90px; height: 36px; position: static;">
					<a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(2278,''AjaxF_'');"><span class="op_bt_i">新建</span> </a></li>
			</ul>
		</div>
		<div class="frame-div">
			<ul class="ul-mform" entid="2278" groupid="1" isgroup="1" style="width: 589px; border-left-width: 0px;" ctrlprex="AjaxF_" isrple="1">
				<li areaid="24" class="li-area" scroll="no" style="border-right-width: 0px; border-bottom-width: 1px; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(229, 229, 229); height: 42px; width: 310px; position: static;"><label class="area-title pad7" fldid="1" istitle="1" style="width:78px;">角色名称</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2278_RoleName"   type="text" class="form-txt"  style="width:180px;" onblur ="javascript:if(!DcxVld.Validate(this,2278,''AjaxF_'',2278,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2278,''AjaxF_'',2278);" EntId="2278" IsField=1 DBField=1 IsPost=1 FieldName="RoleName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2278,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=1,[Form_EntId]=2278,[EntId]=2278,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='RoleName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=2,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="ajaxform ">
	<div class="div_top">
		<div class="title-div">
			<ul class="ul-title" entid="2278" groupid="5" isgroup="1" style="width: 590px;" ctrlprex="AjaxF_" isrple="1">
				<li areaid="20" class="li-area-title" scroll="no" style="position: static;">
					<div class="form-title5" id="div_head1">
						<span class="title-name" id="h2_title">角色管理</span></div>
				</li>
				<li areaid="21" class="li-area1" scroll="no" style="position: static;">
					<a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
				<li areaid="22" class="li-area1" scroll="no" style="position: static;">
					<a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.AjaxF_2278.SubmitForm(false);"><span class="op_bt_i">保存</span> </a></li>
				<li areaid="23" class="li-area1" scroll="no" style="width: 90px; height: 36px; position: static;">
					<a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(2278,''AjaxF_'');"><span class="op_bt_i">新建</span> </a></li>
			</ul>
		</div>
		<div class="frame-div">
			<ul class="ul-mform" entid="2278" groupid="1" isgroup="1" style="width: 589px; border-left-width: 0px;" ctrlprex="AjaxF_" isrple="1">
				<li areaid="24" class="li-area" scroll="no" style="border-right-width: 0px; border-bottom-width: 1px; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(229, 229, 229); height: 42px; width: 310px; position: static;"><label class="area-title pad7" fldid="1" istitle="1" style="width:78px;">角色名称</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2278_RoleName"   type="text" class="form-txt"  style="width:180px;" onblur ="javascript:if(!DcxVld.Validate(this,2278,''AjaxF_'',2278,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2278,''AjaxF_'',2278);" EntId="2278" IsField=1 DBField=1 IsPost=1 FieldName="RoleName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2278,' where  [FldUId]='9a76a620-cac0-f24f-0dc8-3010d3c7e6aa' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='441477e6-f94b-cdb8-bbef-f08b857820a3'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'441477e6-f94b-cdb8-bbef-f08b857820a3',2278,2278,'00000000-0000-0000-0000-000000000000','RoleOrder',1,1,5,'',5,1,1,0,1,1,-1,2,-1,1,0,'','','','','</span>
	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li>
				<li areaid="25" class="li-area" scroll="no" style="height: 42px; width: 275px; position: static;"><label class="area-title pad7" fldid="2" istitle="1" style="width:78px;">排序号</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2278_RoleOrder"   type="text" class="form-txt"  style="width:140px;" onblur ="javascript:if(!DcxVld.Validate(this,2278,''AjaxF_'',2278,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2278,''AjaxF_'',2278);" EntId="2278" IsField=1 DBField=1 IsPost=1 FieldName="RoleOrder" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="2" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2278,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2,[Form_EntId]=2278,[EntId]=2278,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='RoleOrder',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=5,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=2,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li>
				<li areaid="25" class="li-area" scroll="no" style="height: 42px; width: 275px; position: static;"><label class="area-title pad7" fldid="2" istitle="1" style="width:78px;">排序号</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2278_RoleOrder"   type="text" class="form-txt"  style="width:140px;" onblur ="javascript:if(!DcxVld.Validate(this,2278,''AjaxF_'',2278,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2278,''AjaxF_'',2278);" EntId="2278" IsField=1 DBField=1 IsPost=1 FieldName="RoleOrder" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="2" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2278,' where  [FldUId]='441477e6-f94b-cdb8-bbef-f08b857820a3' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='c392ea17-6690-c22a-4d22-211c1dbd8350'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'c392ea17-6690-c22a-4d22-211c1dbd8350',2278,2278,'00000000-0000-0000-0000-000000000000','Remark',2,2,11,'',5,1,1,0,2,1,-1,3,-1,1,0,'','','','','</span>
</div>
</li><li areaid="32" class="li-area" scroll="no" style="border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(229, 229, 229); height: 60px; width: 586px; position: static;"><label class="area-title pad7" fldid="3" istitle="1" style="width:78px;padding-top:15px;">说明</label>
<div class="field-content pad4" style="padding-top:7px;">
	<span class="form-ctr" isfcontain="1">','','','','<textarea  id="d2278_Remark" class="form-txts"  style="width:450px;height:35px;" onblur ="javascript:if(!DcxVld.Validate(this,2278,''AjaxF_'',2278,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2278,''AjaxF_'',2278);" EntId="2278" IsField=1 DBField=1 IsPost=1 FieldName="Remark" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="3" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'2278,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3,[Form_EntId]=2278,[EntId]=2278,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='Remark',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=11,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=3,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li areaid="32" class="li-area" scroll="no" style="border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(229, 229, 229); height: 60px; width: 586px; position: static;"><label class="area-title pad7" fldid="3" istitle="1" style="width:78px;padding-top:15px;">说明</label>
<div class="field-content pad4" style="padding-top:7px;">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d2278_Remark" class="form-txts"  style="width:450px;height:35px;" onblur ="javascript:if(!DcxVld.Validate(this,2278,''AjaxF_'',2278,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2278,''AjaxF_'',2278);" EntId="2278" IsField=1 DBField=1 IsPost=1 FieldName="Remark" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="3" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2278,' where  [FldUId]='c392ea17-6690-c22a-4d22-211c1dbd8350' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='9613a0e7-a08a-bb7e-c186-7524b402699a'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(121,'9613a0e7-a08a-bb7e-c186-7524b402699a',2278,2279,'00000000-0000-0000-0000-000000000000','CEntBegin',-1,2,-1,'',5,-1,1,0,-1,10,-1,4,-1,0,0,'','','','','</span>
	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li><li entname="角色成员" class="li-area w958" areaid="34" style="width: 587px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; height: auto; position: static;" scroll="no"><div class="field-content pad7" entid="2279" ischildentity="1" style="margin-left:10px;">
	<!-- 开始 -->
	<div class="child-title">
		<span class="group-title pad7" istitle="1">角色成员 </span></div>
	<!-- 功能键栏 -->
	<div class="ajaxform toolbar-opt">
		<!--功能键栏-->
		<ul class="ul-toolbar repUl1" entid="2279" groupid="6" isgroup="1" istoolbar="1" ctrlprex="AjaxF_" isrple="1">
			<li areaid="35" class="list-allselect" scroll="no" style="width: 60px; position: static;">
				<input class="list-ifselect" id="ckb_CheckAllAjaxF_2279" onclick="javascript:DcxCom.CheckedAll(this,2279,''AjaxF_'');" rel="chkall" type="checkbox"> <label for="ckb_CheckAllAjaxF_2279">全选</label></li>
			<li areaid="36" class="list-tit" scroll="no" style="width: 63px; height: 29px; position: static;">
				<a class="lform-bt-add" href="javascript:void(0);" id="AjaxF_2279_btn_buildNew" onclick="javascript:DcxForm.AddRow(this,1,2279,''AjaxF_'');" title="添   加">添 加</a></li>
			<li areaid="37" class="list-tit" scroll="no" style="width: 79px; height: 29px; position: static;">
				<a class="lform-bt-other" href="javascript:void(0);" id="AjaxF_2279_btn_buildNew" onclick="javascript:DcxForm.AddRow(this,5,2279,''AjaxF_'');" title="添加5行">添加5行</a></li>
			<li areaid="38" class="list-tit" scroll="no" style="width: 76px; height: 29px; display: none; position: static;">
				<a class="lform-bt-other" href="javascript:void(0);" id="AjaxF_2279_btn_buildNew" onclick="javascript:DcxForm.AddRow(this,10,2279,''AjaxF_'');" title="添加10行">添加10行</a></li>
			<li areaid="39" class="list-tit" scroll="no" style="width: 63px; height: 29px; position: static;">
				<a class="lform-bt-delete" href="javascript:void(0);" id="AjaxF_2279_deletebut" onclick="javascript:DcxForm.DeleteRow(this,2279,''AjaxF_'');" title="删   除">删 除</a></li>
			<li areaid="40" class="list-tit" scroll="no" style="width: 74px; height: 29px; display: none; position: static;">
				<a class="lform-bt-other" href="javascript:void(0);" id="AjaxF_2279_deletebut" onclick="javascript:DcxForm.DeleteAllRow(this,2279,''AjaxF_'');" title="删除全部">删除全部</a></li>
			<li areaid="41" class="list-tit" scroll="no" style="width: 74px; height: 29px; display: none; position: static;">
				<a class="lform-bt-other" href="javascript:void(0);" id="AjaxF_2279_deletebut" onclick="javascript:DcxForm.DeleteUnlawRow(this,2279,''AjaxF_'');" title="删除非法">删除非法</a></li>
		</ul>
	</div>
	<div class="ajaxform listarea">
		<div class="lf-head">
			<ul class="ul-listtitle" entid="2279" groupid="7" isgroup="1" islisthead="1" islonly="1" style="width: 554px;" ctrlprex="AjaxF_" isrple="1">
				<li areaid="42" class="li-head-item" scroll="no" style="width: 50px; height: 28px; clear: none; float: left; position: static;">
					&nbsp;</li>
				<li areaid="47" class="li-head-item" scroll="no" style="width: 278px; height: 28px; clear: none; float: left; position: static;">
					<label class="head-label" istitle="1" style="height: 159px;">用户名</label></li>
				<li areaid="44" class="li-head-item" scroll="no" style="width: 220px; height: 28px; clear: right; float: left; position: static;">
					<label class="head-label" istitle="1" style="height: 159px;">是否核心成员 </label></li>
			</ul>
		</div>
		<div class="lf-body">','','','','','','',8,-1,-1,-1,1,'2279,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=121,[Form_EntId]=2278,[EntId]=2279,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='CEntBegin',[FieldDataTypeId]=-1,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=-1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=-1,[FieldTypeId]=10,[RepeatColumns]=-1,[FieldNO]=4,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li><li entname="角色成员" class="li-area w958" areaid="34" style="width: 587px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; height: auto; position: static;" scroll="no"><div class="field-content pad7" entid="2279" ischildentity="1" style="margin-left:10px;">
	<!-- 开始 -->
	<div class="child-title">
		<span class="group-title pad7" istitle="1">角色成员 </span></div>
	<!-- 功能键栏 -->
	<div class="ajaxform toolbar-opt">
		<!--功能键栏-->
		<ul class="ul-toolbar repUl1" entid="2279" groupid="6" isgroup="1" istoolbar="1" ctrlprex="AjaxF_" isrple="1">
			<li areaid="35" class="list-allselect" scroll="no" style="width: 60px; position: static;">
				<input class="list-ifselect" id="ckb_CheckAllAjaxF_2279" onclick="javascript:DcxCom.CheckedAll(this,2279,''AjaxF_'');" rel="chkall" type="checkbox"> <label for="ckb_CheckAllAjaxF_2279">全选</label></li>
			<li areaid="36" class="list-tit" scroll="no" style="width: 63px; height: 29px; position: static;">
				<a class="lform-bt-add" href="javascript:void(0);" id="AjaxF_2279_btn_buildNew" onclick="javascript:DcxForm.AddRow(this,1,2279,''AjaxF_'');" title="添   加">添 加</a></li>
			<li areaid="37" class="list-tit" scroll="no" style="width: 79px; height: 29px; position: static;">
				<a class="lform-bt-other" href="javascript:void(0);" id="AjaxF_2279_btn_buildNew" onclick="javascript:DcxForm.AddRow(this,5,2279,''AjaxF_'');" title="添加5行">添加5行</a></li>
			<li areaid="38" class="list-tit" scroll="no" style="width: 76px; height: 29px; display: none; position: static;">
				<a class="lform-bt-other" href="javascript:void(0);" id="AjaxF_2279_btn_buildNew" onclick="javascript:DcxForm.AddRow(this,10,2279,''AjaxF_'');" title="添加10行">添加10行</a></li>
			<li areaid="39" class="list-tit" scroll="no" style="width: 63px; height: 29px; position: static;">
				<a class="lform-bt-delete" href="javascript:void(0);" id="AjaxF_2279_deletebut" onclick="javascript:DcxForm.DeleteRow(this,2279,''AjaxF_'');" title="删   除">删 除</a></li>
			<li areaid="40" class="list-tit" scroll="no" style="width: 74px; height: 29px; display: none; position: static;">
				<a class="lform-bt-other" href="javascript:void(0);" id="AjaxF_2279_deletebut" onclick="javascript:DcxForm.DeleteAllRow(this,2279,''AjaxF_'');" title="删除全部">删除全部</a></li>
			<li areaid="41" class="list-tit" scroll="no" style="width: 74px; height: 29px; display: none; position: static;">
				<a class="lform-bt-other" href="javascript:void(0);" id="AjaxF_2279_deletebut" onclick="javascript:DcxForm.DeleteUnlawRow(this,2279,''AjaxF_'');" title="删除非法">删除非法</a></li>
		</ul>
	</div>
	<div class="ajaxform listarea">
		<div class="lf-head">
			<ul class="ul-listtitle" entid="2279" groupid="7" isgroup="1" islisthead="1" islonly="1" style="width: 554px;" ctrlprex="AjaxF_" isrple="1">
				<li areaid="42" class="li-head-item" scroll="no" style="width: 50px; height: 28px; clear: none; float: left; position: static;">
					&nbsp;</li>
				<li areaid="47" class="li-head-item" scroll="no" style="width: 278px; height: 28px; clear: none; float: left; position: static;">
					<label class="head-label" istitle="1" style="height: 159px;">用户名</label></li>
				<li areaid="44" class="li-head-item" scroll="no" style="width: 220px; height: 28px; clear: right; float: left; position: static;">
					<label class="head-label" istitle="1" style="height: 159px;">是否核心成员 </label></li>
			</ul>
		</div>
		<div class="lf-body">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='',[CtrlbackHtml]='',[CtrlLastHtml]='',[TableIndex]=8,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2279,' where  [FldUId]='9613a0e7-a08a-bb7e-c186-7524b402699a' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='825d7447-1580-137b-e400-5035bd70bb5c'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'825d7447-1580-137b-e400-5035bd70bb5c',2278,2279,'00000000-0000-0000-0000-000000000000','KeyFieldValue',2,2,-1,'',5,1,1,0,1,21,-1,5,-1,0,0,'','','','','class="ul-listfield" groupid="8" isgroup="1" islonly="1" style="width: 554px;" isrple="1">
				<li areaid="43" class="li-listfield" scroll="no" style="width: 50px; height: 40px; clear: none; float: left; position: static;">
					<div class="list-field" style="margin:0;padding: 10px 0px 0px 10px ;">
						<input class="ckb_del" ctrlprex="AjaxF_" entid="2278" issyscheck="1" keyvalue="','','','','','','',8,43,-1,-1,1,'2279,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=11,[Form_EntId]=2278,[EntId]=2279,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='KeyFieldValue',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=21,[RepeatColumns]=-1,[FieldNO]=5,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='class="ul-listfield" groupid="8" isgroup="1" islonly="1" style="width: 554px;" isrple="1">
				<li areaid="43" class="li-listfield" scroll="no" style="width: 50px; height: 40px; clear: none; float: left; position: static;">
					<div class="list-field" style="margin:0;padding: 10px 0px 0px 10px ;">
						<input class="ckb_del" ctrlprex="AjaxF_" entid="2278" issyscheck="1" keyvalue="',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='',[CtrlbackHtml]='',[CtrlLastHtml]='',[TableIndex]=8,[RowIndex]=43,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2279,' where  [FldUId]='825d7447-1580-137b-e400-5035bd70bb5c' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='3a5a9d61-2ade-c677-6e35-8470b97d68ee'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'3a5a9d61-2ade-c677-6e35-8470b97d68ee',2278,2279,'00000000-0000-0000-0000-000000000000','UserId',1,1,2,'',5,2,1,0,40,1,-1,6,5,1,0,'','','','','" type="checkbox"></div>
				</li>
				<li areaid="46" class="li-listfield" scroll="no" style="width: 278px; height: 40px; clear: none; float: left; position: static;">
					<div class="list-field">
						<span class="form-ctr" isfcontain="1">','','','<div id="d2279_UserId%trindex%" CtrlPrex="AjaxF_"','class="lt-ddl" style="-width:230px;" CBack=1  IsForField=1 EntId="2279" FId="6" Vtp="5" RId="2" Isc="1" CId="40" FieldName="UserId" ><input  id="d2279_UserId%trindex%_Text" type="text" class="lt-ddl-txt" readonly="readOnly"  CId="40" FId="6" Vtp="5"  RId="2" Isc="1"  style="width:200px;" onclick ="javascript:DcxTree.ShowDialogLf(this,5,2279,''UserId'',false);" onchange ="javascript:GetLinkCtrlData_AjaxF_2279_261(this,''UserId'');if(!DcxVld.Validate(this,2279,''AjaxF_'',2278,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2279,''AjaxF_'',2278,true);" onkeyup ="javascript:DcxTree.ShowDialogLf(this,5,2279,''UserId'',true);" onmouseover ="javascript:DcxForm.ListTxtMouseOver(this,2279,''UserId'');" value="','" /><span class="lt-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2279_UserId%trindex%_hid" CtrlPrex="AjaxF_" type="hidden"  CBack=1  EntId="2279" IsField=1 DBField=1 IsPost=1 FieldName="UserId" dType="1" Vtp="5" RDT="1" Isc="1" RId="2" CId="40" FId="6" vlk=0   TId=5  TFN="UserName"  value="','"/>',8,-1,-1,-1,1,'2279,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=6,[Form_EntId]=2278,[EntId]=2279,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='UserId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=2,[DefaultValue]='',[ValueType]=5,[RunValueType]=2,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=40,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=6,[TreeId]=5,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='" type="checkbox"></div>
				</li>
				<li areaid="46" class="li-listfield" scroll="no" style="width: 278px; height: 40px; clear: none; float: left; position: static;">
					<div class="list-field">
						<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<div id="d2279_UserId%trindex%" CtrlPrex="AjaxF_"',[CtrlfrontHtml]='class="lt-ddl" style="-width:230px;" CBack=1  IsForField=1 EntId="2279" FId="6" Vtp="5" RId="2" Isc="1" CId="40" FieldName="UserId" ><input  id="d2279_UserId%trindex%_Text" type="text" class="lt-ddl-txt" readonly="readOnly"  CId="40" FId="6" Vtp="5"  RId="2" Isc="1"  style="width:200px;" onclick ="javascript:DcxTree.ShowDialogLf(this,5,2279,''UserId'',false);" onchange ="javascript:GetLinkCtrlData_AjaxF_2279_261(this,''UserId'');if(!DcxVld.Validate(this,2279,''AjaxF_'',2278,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2279,''AjaxF_'',2278,true);" onkeyup ="javascript:DcxTree.ShowDialogLf(this,5,2279,''UserId'',true);" onmouseover ="javascript:DcxForm.ListTxtMouseOver(this,2279,''UserId'');" value="',[CtrlbackHtml]='" /><span class="lt-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2279_UserId%trindex%_hid" CtrlPrex="AjaxF_" type="hidden"  CBack=1  EntId="2279" IsField=1 DBField=1 IsPost=1 FieldName="UserId" dType="1" Vtp="5" RDT="1" Isc="1" RId="2" CId="40" FId="6" vlk=0   TId=5  TFN="UserName"  value="',[CtrlLastHtml]='"/>',[TableIndex]=8,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2279,' where  [FldUId]='3a5a9d61-2ade-c677-6e35-8470b97d68ee' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='c523d91c-610f-92fd-9ba0-18a2f1dedd62'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'c523d91c-610f-92fd-9ba0-18a2f1dedd62',2278,2279,'00000000-0000-0000-0000-000000000000','UserName',2,2,5,'',3,1,1,0,1,1,-1,7,-1,1,0,'','','','','</span>

 <span class="form-ctr" isfcontain="1">','','','<input  id="d2279_UserName%trindex%" CtrlPrex="AjaxF_"','type="text" class="lt-txt hide"  style="width:200px;display:none;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2279,''AjaxF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2279,''AjaxF_'',2278,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2279,''AjaxF_'',2278,true);" EntId="2279" IsField=1 DBField=1 IsPost=1 FieldName="UserName" dType="2" Vtp="3" RDT="2" Isc="1" RId="1" CId="1" FId="7" vlk=0    value="','" />','',8,-1,-1,-1,1,'2279,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=7,[Form_EntId]=2278,[EntId]=2279,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='UserName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=5,[DefaultValue]='',[ValueType]=3,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=7,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

 <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<input  id="d2279_UserName%trindex%" CtrlPrex="AjaxF_"',[CtrlfrontHtml]='type="text" class="lt-txt hide"  style="width:200px;display:none;"  Digit="-1" onchange ="javascript:DcxForm.ListTxtChange(this,2279,''AjaxF_'');" onblur ="javascript:if(!DcxVld.Validate(this,2279,''AjaxF_'',2278,true,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2279,''AjaxF_'',2278,true);" EntId="2279" IsField=1 DBField=1 IsPost=1 FieldName="UserName" dType="2" Vtp="3" RDT="2" Isc="1" RId="1" CId="1" FId="7" vlk=0    value="',[CtrlbackHtml]='" />',[CtrlLastHtml]='',[TableIndex]=8,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2279,' where  [FldUId]='c523d91c-610f-92fd-9ba0-18a2f1dedd62' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='d6e13f60-df4a-197e-3867-8c10357c1c98'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'d6e13f60-df4a-197e-3867-8c10357c1c98',2278,2279,'00000000-0000-0000-0000-000000000000','IsMainRole',4,4,4,'',1,6,1,0,13,1,-1,8,-1,1,0,'','','','','</span>
						<div class="form-vld" iserr="1">
							&nbsp;</div>
					</div>
				</li>
				<li areaid="45" class="li-listfield" scroll="no" style="width: 220px; height: 40px; clear: right; float: left; position: static;">
					<div class="list-field">
						<span class="form-ctr" isfcontain="1">','','','<div class="form-radio" ><span class="form-radio-item" ><input class="radio" id="d2279_IsMainRole%trindex%" CtrlPrex="AjaxF_"','type="checkbox" yesv=''true'' nov=''false''  onclick ="javascript:DcxForm.ClickCkbLf(this,2279,''AjaxF_'');" EntId="2279" IsField=1 DBField=1 IsPost=1 FieldName="IsMainRole" dType="4" Vtp="1" RDT="4" Isc="1" RId="6" CId="13" FId="8" vlk=0    />','<label for="d2279_IsMainRole%trindex%">核心成员</label></span></div>','',8,-1,-1,-1,1,'2279,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=8,[Form_EntId]=2278,[EntId]=2279,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='IsMainRole',[FieldDataTypeId]=4,[RunDataTypeId]=4,[DBFieldId]=4,[DefaultValue]='',[ValueType]=1,[RunValueType]=6,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=13,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=8,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
						<div class="form-vld" iserr="1">
							&nbsp;</div>
					</div>
				</li>
				<li areaid="45" class="li-listfield" scroll="no" style="width: 220px; height: 40px; clear: right; float: left; position: static;">
					<div class="list-field">
						<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<div class="form-radio" ><span class="form-radio-item" ><input class="radio" id="d2279_IsMainRole%trindex%" CtrlPrex="AjaxF_"',[CtrlfrontHtml]='type="checkbox" yesv=''true'' nov=''false''  onclick ="javascript:DcxForm.ClickCkbLf(this,2279,''AjaxF_'');" EntId="2279" IsField=1 DBField=1 IsPost=1 FieldName="IsMainRole" dType="4" Vtp="1" RDT="4" Isc="1" RId="6" CId="13" FId="8" vlk=0    />',[CtrlbackHtml]='<label for="d2279_IsMainRole%trindex%">核心成员</label></span></div>',[CtrlLastHtml]='',[TableIndex]=8,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2279,' where  [FldUId]='d6e13f60-df4a-197e-3867-8c10357c1c98' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='9e59e6f3-b2a2-521a-43a9-eddf65640bb3'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(122,'9e59e6f3-b2a2-521a-43a9-eddf65640bb3',2278,2279,'00000000-0000-0000-0000-000000000000','CEntEnd',-1,2,-1,'',5,-1,1,0,-1,11,-1,9,-1,0,0,'','','','','</span>

</div>
				</li>
			</ul>','','','','','','',8,-1,-1,-1,1,'2279,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=122,[Form_EntId]=2278,[EntId]=2279,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='CEntEnd',[FieldDataTypeId]=-1,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=-1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=-1,[FieldTypeId]=11,[RepeatColumns]=-1,[FieldNO]=9,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

</div>
				</li>
			</ul>',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='',[CtrlbackHtml]='',[CtrlLastHtml]='',[TableIndex]=8,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2279,' where  [FldUId]='9e59e6f3-b2a2-521a-43a9-eddf65640bb3' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='0bc48389-b89a-1dab-6159-4829a9b33e90'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(48,'0bc48389-b89a-1dab-6159-4829a9b33e90',2278,2278,'00000000-0000-0000-0000-000000000000','ParentId',1,1,4,'0',5,1,1,0,1,1,-1,10,-1,1,0,'','','','','</div>
	</div>
	<!-- 结束 --></div>
</li><li areaid="33" class="li-area" scroll="no" style="border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; height: 238px; width: 598px; display: none; position: static;"><span class="form-ctr" isfcontain="1">','','','','<input  id="d2278_ParentId"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2278,''AjaxF_'',2278,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2278,''AjaxF_'',2278);" EntId="2278" IsField=1 DBField=1 IsPost=1 FieldName="ParentId" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="48" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2278,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=48,[Form_EntId]=2278,[EntId]=2278,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='ParentId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=4,[DefaultValue]='0',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=10,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</div>
	</div>
	<!-- 结束 --></div>
</li><li areaid="33" class="li-area" scroll="no" style="border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; height: 238px; width: 598px; display: none; position: static;"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2278_ParentId"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2278,''AjaxF_'',2278,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2278,''AjaxF_'',2278);" EntId="2278" IsField=1 DBField=1 IsPost=1 FieldName="ParentId" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="48" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2278,' where  [FldUId]='0bc48389-b89a-1dab-6159-4829a9b33e90' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='415d6fb7-f969-db40-b833-b3a134d5a932'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(49,'415d6fb7-f969-db40-b833-b3a134d5a932',2278,2278,'00000000-0000-0000-0000-000000000000','CreatorId',1,1,8,'{$userid}',0,1,1,0,1,1,-1,11,-1,1,0,'','','','{$userid},','</span>
 <span class="form-ctr" isfcontain="1">','','','','<input  id="d2278_CreatorId"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2278,''AjaxF_'',2278,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2278,''AjaxF_'',2278);" EntId="2278" IsField=1 DBField=1 IsPost=1 FieldName="CreatorId" dType="1" Vtp="0" RDT="1" Isc="1" RId="1" CId="1" FId="49" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2278,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=49,[Form_EntId]=2278,[EntId]=2278,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='CreatorId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=8,[DefaultValue]='{$userid}',[ValueType]=0,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=11,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$userid},',[BeforeHtml]='</span>
 <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2278_CreatorId"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2278,''AjaxF_'',2278,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2278,''AjaxF_'',2278);" EntId="2278" IsField=1 DBField=1 IsPost=1 FieldName="CreatorId" dType="1" Vtp="0" RDT="1" Isc="1" RId="1" CId="1" FId="49" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2278,' where  [FldUId]='415d6fb7-f969-db40-b833-b3a134d5a932' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='9095874a-7787-5981-9861-2add6bd9b47c'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(50,'9095874a-7787-5981-9861-2add6bd9b47c',2278,2278,'00000000-0000-0000-0000-000000000000','Creator',2,2,9,'{$UserName}',0,1,1,0,1,1,-1,12,-1,1,0,'','','','{$username},','</span>
 <span class="form-ctr" isfcontain="1">','','','','<input  id="d2278_Creator"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2278,''AjaxF_'',2278,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2278,''AjaxF_'',2278);" EntId="2278" IsField=1 DBField=1 IsPost=1 FieldName="Creator" dType="2" Vtp="0" RDT="2" Isc="1" RId="1" CId="1" FId="50" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2278,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=50,[Form_EntId]=2278,[EntId]=2278,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='Creator',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=9,[DefaultValue]='{$UserName}',[ValueType]=0,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=12,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$username},',[BeforeHtml]='</span>
 <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2278_Creator"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2278,''AjaxF_'',2278,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2278,''AjaxF_'',2278);" EntId="2278" IsField=1 DBField=1 IsPost=1 FieldName="Creator" dType="2" Vtp="0" RDT="2" Isc="1" RId="1" CId="1" FId="50" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2278,' where  [FldUId]='9095874a-7787-5981-9861-2add6bd9b47c' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='0e986b44-6eb3-2d5a-0e71-2a04e7db77a1'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(51,'0e986b44-6eb3-2d5a-0e71-2a04e7db77a1',2278,2278,'00000000-0000-0000-0000-000000000000','CreateTime',3,3,10,'{$datetime}',0,1,1,0,1,1,-1,13,-1,1,0,'','','','{$datetime},','</span>
 <span class="form-ctr" isfcontain="1">','','','','<input  id="d2278_CreateTime"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2278,''AjaxF_'',2278,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2278,''AjaxF_'',2278);" EntId="2278" IsField=1 DBField=1 IsPost=1 FieldName="CreateTime" dType="3" Vtp="0" RDT="3" Isc="1" RId="1" CId="1" FId="51" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2278,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=51,[Form_EntId]=2278,[EntId]=2278,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='CreateTime',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=10,[DefaultValue]='{$datetime}',[ValueType]=0,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=13,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$datetime},',[BeforeHtml]='</span>
 <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2278_CreateTime"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2278,''AjaxF_'',2278,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2278,''AjaxF_'',2278);" EntId="2278" IsField=1 DBField=1 IsPost=1 FieldName="CreateTime" dType="3" Vtp="0" RDT="3" Isc="1" RId="1" CId="1" FId="51" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2278,' where  [FldUId]='0e986b44-6eb3-2d5a-0e71-2a04e7db77a1' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='40a14602-fecd-2b72-4f94-290e3f1ecae8'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(52,'40a14602-fecd-2b72-4f94-290e3f1ecae8',2278,2278,'00000000-0000-0000-0000-000000000000','EditorId',1,1,12,'{$userid}',0,1,1,0,1,1,-1,14,-1,1,1,'','','','{$userid},','</span>
 <span class="form-ctr" isfcontain="1">','','','','<input  id="d2278_EditorId"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2278,''AjaxF_'',2278,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2278,''AjaxF_'',2278);" EntId="2278" IsField=1 DBField=1 IsPost=1 FieldName="EditorId" dType="1" Vtp="0" RDT="1" Isc="1" RId="1" CId="1" FId="52" vlk=1   value="','"/>','',-1,-1,-1,-1,0,'2278,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=52,[Form_EntId]=2278,[EntId]=2278,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='EditorId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=12,[DefaultValue]='{$userid}',[ValueType]=0,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=14,[TreeId]=-1,[Reflash]=1,[ValueLock]=1,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$userid},',[BeforeHtml]='</span>
 <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2278_EditorId"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2278,''AjaxF_'',2278,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2278,''AjaxF_'',2278);" EntId="2278" IsField=1 DBField=1 IsPost=1 FieldName="EditorId" dType="1" Vtp="0" RDT="1" Isc="1" RId="1" CId="1" FId="52" vlk=1   value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2278,' where  [FldUId]='40a14602-fecd-2b72-4f94-290e3f1ecae8' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='4cb08e66-3370-df04-f108-9f26d651894f'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(53,'4cb08e66-3370-df04-f108-9f26d651894f',2278,2278,'00000000-0000-0000-0000-000000000000','EditTime',3,3,13,'{$datetime}',0,1,1,0,1,1,-1,15,-1,1,1,'','','','{$datetime},','</span>
 <span class="form-ctr" isfcontain="1">','','','','<input  id="d2278_EditTime"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2278,''AjaxF_'',2278,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2278,''AjaxF_'',2278);" EntId="2278" IsField=1 DBField=1 IsPost=1 FieldName="EditTime" dType="3" Vtp="0" RDT="3" Isc="1" RId="1" CId="1" FId="53" vlk=1   value="','"/>','',-1,-1,-1,-1,0,'2278,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=53,[Form_EntId]=2278,[EntId]=2278,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='EditTime',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=13,[DefaultValue]='{$datetime}',[ValueType]=0,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=15,[TreeId]=-1,[Reflash]=1,[ValueLock]=1,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$datetime},',[BeforeHtml]='</span>
 <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2278_EditTime"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2278,''AjaxF_'',2278,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2278,''AjaxF_'',2278);" EntId="2278" IsField=1 DBField=1 IsPost=1 FieldName="EditTime" dType="3" Vtp="0" RDT="3" Isc="1" RId="1" CId="1" FId="53" vlk=1   value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2278,' where  [FldUId]='4cb08e66-3370-df04-f108-9f26d651894f' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='dffbee05-1786-d93a-6429-c059936f8590'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(120,'dffbee05-1786-d93a-6429-c059936f8590',2278,2278,'00000000-0000-0000-0000-000000000000','AccountId',1,1,14,'{$AccountId}',0,1,1,0,1,1,-1,16,-1,1,0,'','','','{$AccountId},','</span>
 <span class="form-ctr" isfcontain="1">','</span>
</li>
			</ul>
		</div>
		<div style="display:none;" class="div_tabs">
			<ul class="tab_ul" entid="2278" groupid="2" isgroup="1" islonly="1" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
				<li areaid="26" class="ui-droppable  li-tab de-selected" istab="1" scroll="no" style="height: 29px; width: 70px; position: static;" tabid="1">
					<a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
				<li areaid="27" class="ui-droppable  li-tab" istab="1" scroll="no" style="position: static;" tabid="2">
					<a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
			</ul>
			<div class="tabs-content" style="" tabid="1">
				<ul class="ul-mform" entid="2278" groupid="3" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
					<li areaid="28" class="li-area" scroll="no" style="width: 395px; height: 38px; position: static;"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
					<li areaid="29" class="li-area" fldid="-1" scroll="no" style="width: 395px; height: 38px; position: static;"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
				</ul>
			</div>
			<div class="tabs-content" style="display: none;" tabid="2">
				<ul class="ul-mform" entid="2278" groupid="4" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
					<li areaid="30" class="li-area" scroll="no" style="width: 395px; height: 38px; position: static;">
						<label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
					<li areaid="31" class="li-area" scroll="no" style="width: 395px; height: 38px; position: static;">
						<label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
				</ul>
			</div>
		</div>
	</div>
</div>
<br>','','','<input  id="d2278_AccountId"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2278,''AjaxF_'',2278,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2278,''AjaxF_'',2278);" EntId="2278" IsField=1 DBField=1 IsPost=1 FieldName="AccountId" dType="1" Vtp="0" RDT="1" Isc="1" RId="1" CId="1" FId="120" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2278,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=120,[Form_EntId]=2278,[EntId]=2278,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='AccountId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=14,[DefaultValue]='{$AccountId}',[ValueType]=0,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=16,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$AccountId},',[BeforeHtml]='</span>
 <span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
</li>
			</ul>
		</div>
		<div style="display:none;" class="div_tabs">
			<ul class="tab_ul" entid="2278" groupid="2" isgroup="1" islonly="1" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
				<li areaid="26" class="ui-droppable  li-tab de-selected" istab="1" scroll="no" style="height: 29px; width: 70px; position: static;" tabid="1">
					<a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
				<li areaid="27" class="ui-droppable  li-tab" istab="1" scroll="no" style="position: static;" tabid="2">
					<a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
			</ul>
			<div class="tabs-content" style="" tabid="1">
				<ul class="ul-mform" entid="2278" groupid="3" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
					<li areaid="28" class="li-area" scroll="no" style="width: 395px; height: 38px; position: static;"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
					<li areaid="29" class="li-area" fldid="-1" scroll="no" style="width: 395px; height: 38px; position: static;"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
				</ul>
			</div>
			<div class="tabs-content" style="display: none;" tabid="2">
				<ul class="ul-mform" entid="2278" groupid="4" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
					<li areaid="30" class="li-area" scroll="no" style="width: 395px; height: 38px; position: static;">
						<label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
					<li areaid="31" class="li-area" scroll="no" style="width: 395px; height: 38px; position: static;">
						<label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
				</ul>
			</div>
		</div>
	</div>
</div>
<br>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2278_AccountId"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2278,''AjaxF_'',2278,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2278,''AjaxF_'',2278);" EntId="2278" IsField=1 DBField=1 IsPost=1 FieldName="AccountId" dType="1" Vtp="0" RDT="1" Isc="1" RId="1" CId="1" FId="120" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2278,' where  [FldUId]='dffbee05-1786-d93a-6429-c059936f8590' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=310

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=310  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(310,null,'Dcx_Role','Dcx_Role',1,0,0,0,0,0,29,1,3,'admin','2013-12-15 17:32:20',3,'admin','2013-12-15 17:32:20',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='Dcx_Role',[DBTableByName]='Dcx_Role',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=29,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:20',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:20',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=310 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=310  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17514,1,29,310,'int',1,1,1,'Dcx_Role','RoleId','RoleId','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Role',[FieldName]='RoleId',[FieldByname]='RoleId',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=310  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=310  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17515,2,29,310,'varchar',2,1,1,'Dcx_Role','RoleName','RoleName','',0,0,0,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Role',[FieldName]='RoleName',[FieldByname]='RoleName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=310  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=310  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17516,3,29,310,'tinyint',23,1,1,'Dcx_Role','SystemRoleType','SystemRoleType','0',0,0,0,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Role',[FieldName]='SystemRoleType',[FieldByname]='SystemRoleType',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=310  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=310  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17517,4,29,310,'int',1,1,1,'Dcx_Role','ParentId','ParentId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Role',[FieldName]='ParentId',[FieldByname]='ParentId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=310  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=310  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17518,5,29,310,'int',1,1,1,'Dcx_Role','RoleOrder','RoleOrder','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Role',[FieldName]='RoleOrder',[FieldByname]='RoleOrder',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=310  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=310  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17519,6,29,310,'bit',4,1,1,'Dcx_Role','IsDisplay','IsDisplay','1',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Role',[FieldName]='IsDisplay',[FieldByname]='IsDisplay',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=310  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=310  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17520,7,29,310,'int',1,1,1,'Dcx_Role','RoleTypeId','RoleTypeId','1',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Role',[FieldName]='RoleTypeId',[FieldByname]='RoleTypeId',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=310  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=310  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17521,8,29,310,'int',1,1,1,'Dcx_Role','CreatorId','CreatorId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Role',[FieldName]='CreatorId',[FieldByname]='CreatorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=310  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=310  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17522,9,29,310,'varchar',2,1,1,'Dcx_Role','Creator','Creator','',0,0,1,40,40,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Role',[FieldName]='Creator',[FieldByname]='Creator',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=40,[Precision]=40,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=310  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=310  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17523,10,29,310,'datetime',3,1,1,'Dcx_Role','CreateTime','CreateTime','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Role',[FieldName]='CreateTime',[FieldByname]='CreateTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=310  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=310  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17524,11,29,310,'varchar',2,1,1,'Dcx_Role','Remark','Remark','',0,0,1,20,20,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Role',[FieldName]='Remark',[FieldByname]='Remark',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=20,[Precision]=20,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=310  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=310  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17525,12,29,310,'int',1,1,1,'Dcx_Role','EditorId','EditorId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Role',[FieldName]='EditorId',[FieldByname]='EditorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=310  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=310  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17526,13,29,310,'datetime',3,1,1,'Dcx_Role','EditTime','EditTime','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Role',[FieldName]='EditTime',[FieldByname]='EditTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=310  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=310  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(17527,14,29,310,'int',1,1,1,'Dcx_Role','AccountId','AccountId','1',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Role',[FieldName]='AccountId',[FieldByname]='AccountId',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=310  and  [FieldId]=14 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 



Delete from [Dcx_EntityPrivilege]  where [EntId]=2279

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2279  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11150,-1,2279,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2279  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=3420  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(3420,'ac7edee8-5d87-4c7a-871b-0356b4f468e5','系统邮箱',3279,'/System/AllForm_List_Tree_Tag.aspx?EntId=2293&MenuId=3420&navindex=12',37,'','',0,'rightFrame',0,0,'',29,0,29,1,1,1,'2013-8-22 22:43:43','admin',3,3,'admin','2013-8-22 22:43:43',3,'admin','2013-10-9 4:19:16',1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='ac7edee8-5d87-4c7a-871b-0356b4f468e5',[MenuName]='系统邮箱',[ParentId]=3279,[ProPath]='/System/AllForm_List_Tree_Tag.aspx?EntId=2293&MenuId=3420&navindex=12',[TemplateId]=37,[ImgPath]='',[ExImgPath]='',[OrderBy]=0,[Target]='rightFrame',[IsOpen]=0,[IsHidden]=0,[Remark]='',[SSystemId]=29,[SMenuId]=0,[SystemId]=29,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]='2013-8-22 22:43:43',[AddDcxUserName]='admin',[AddDcxUserId]=3,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-8-22 22:43:43',[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-9 4:19:16',[AccountId]=1 where  [MenuId]=3420 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3420  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(1060,3420,'系统邮箱','Public',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='系统邮箱',[RoleName]='Public',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3420  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3420  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(1033,3420,'系统邮箱','系统管理员',3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='系统邮箱',[RoleName]='系统管理员',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3420  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2293  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2293,3420,'系统邮箱',1,1205,0,'Dcx_Common',0,0,1,29,2293,null,null,29,'',0,0,0,-1,1,1,'2013-8-22 22:44:19','admin',3,null,null,null,null,3,'admin','2013-8-22 22:44:19',3,'admin','2013-8-22 22:44:19',1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3420,[EntName]='系统邮箱',[MEnt]=1,[DBTableId]=1205,[DBConnectId]=0,[DBTableName]='Dcx_Common',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=29,[SEntId]=2293,[FSystemId]=null,[FEntId]=null,[SystemId]=29,[Remark]='',[IsFlow]=0,[IsChecked]=0,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]='2013-8-22 22:44:19',[AddDcxUserName]='admin',[AddDcxUserId]=3,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-8-22 22:44:19',[EditorId]=3,[Editor]='admin',[EditTime]='2013-8-22 22:44:19',[AccountId]=1 where  [EntId]=2293 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=2293

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2293  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11157,-1,2293,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2293  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2293

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2293  and  [ModuleTypeId]=18  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20503,29,3420,2293,37,18,16,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=29,[MenuId]=3420,[TemplateId]=37,[ModuleId]=16,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2293  and  [ModuleTypeId]=18 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_DefaultForm_Run]  where [EntId]=2293

--Dcx_DefaultForm_Run
      if (select count(1) from [Dcx_DefaultForm_Run] where  [EntId]=2293  )<1 
      begin 
           Insert into [Dcx_DefaultForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[OtherMsg],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('4ffb737c-fc4b-0153-a81d-7a14b0c7bc9b','系统邮箱',2293,0,'','',0,'','<script type="text/javascript" src="/js/System/SetSystemEmail.js"></script>','DcxRun.DefaultF_2293= {"MenuId":3420,"MEntId":2293,"EntName":"系统邮箱","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2293":{"EntId":2293,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"Id","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":12,"Ent":[{"EntId":2293,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":8,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{6,50}$","err":"限制6-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":10,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^\\w+((-\\w+)|(\\.\\w+))*\\@[A-Za-z0-9]+((\\.|-)[A-Za-z0-9]+)*\\.[A-Za-z0-9]+$","err":"格式要求为电子邮箱格式，例如xx@163.com","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":3,"Vld":[{"Id":4,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":4,"Vld":[{"Id":3,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":5,"Vld":[{"Id":5,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":6,"Vld":[{"Id":6,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":12,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[0-9]*[1-9][0-9]*$","err":"格式要求为正整数","ok":"","warn":"","ovt":1,"jsFun":""}]}]}]};
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2293.EntMsg.E2293.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_Common","EntId":2293,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2293.EntMsg.E2293.GetDataRowModel=function()
{
    return {"Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2293.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2293,''DefaultF_'',buildNew,closeDlg);

}','<$2293$>select [Id] from Dcx_Common where [Id]=''{$keyfieldvalue}''</$2293$>',10,'2293*Id*2*Id*2*Dcx_Common*系统邮箱','','','',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2013-8-22 22:44:35',3,'admin','2013-10-2 18:34:20',1)
      end
      else 
      begin 
           update [Dcx_DefaultForm_Run] set [FormId]='4ffb737c-fc4b-0153-a81d-7a14b0c7bc9b',[FormName]='系统邮箱',[ModuleId]=0,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='',[DIYJsCss2]='<script type="text/javascript" src="/js/System/SetSystemEmail.js"></script>',[AutoPublicJs]='DcxRun.DefaultF_2293= {"MenuId":3420,"MEntId":2293,"EntName":"系统邮箱","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2293":{"EntId":2293,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"Id","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":12,"Ent":[{"EntId":2293,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":8,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{6,50}$","err":"限制6-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":10,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^\\w+((-\\w+)|(\\.\\w+))*\\@[A-Za-z0-9]+((\\.|-)[A-Za-z0-9]+)*\\.[A-Za-z0-9]+$","err":"格式要求为电子邮箱格式，例如xx@163.com","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":3,"Vld":[{"Id":4,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":4,"Vld":[{"Id":3,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":5,"Vld":[{"Id":5,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":6,"Vld":[{"Id":6,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":12,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[0-9]*[1-9][0-9]*$","err":"格式要求为正整数","ok":"","warn":"","ovt":1,"jsFun":""}]}]}]};
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2293.EntMsg.E2293.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_Common","EntId":2293,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2293.EntMsg.E2293.GetDataRowModel=function()
{
    return {"Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2293.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2293,''DefaultF_'',buildNew,closeDlg);

}',[LoadingSql]='<$2293$>select [Id] from Dcx_Common where [Id]=''{$keyfieldvalue}''</$2293$>',[PageSize]=10,[OtherMsg]='2293*Id*2*Id*2*Dcx_Common*系统邮箱',[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-8-22 22:44:35',[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-2 18:34:20',[AccountId]=1 where  [EntId]=2293 
      end




--Dcx_DefaultFormField_Run
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='0784afc8-061f-8d00-cb06-4c2586df2f80'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'0784afc8-061f-8d00-cb06-4c2586df2f80',2293,2293,'00000000-0000-0000-0000-000000000000',1,'Email',2,2,-1,'',5,1,1,0,1,3,-1,-1,0,0,'','','','','<div class="defaultform" ctrlprex="DefaultF_" entid="2293">
	<div>
		
	</div>
	<div class="frame-div">
		<ul class="ul-group" groupid="2" isgroup="1" isrple="1">
			<li areaid="13" class="li-area  h55" scroll="no" style="width: 700px; height: 45px; position: static;">
<div class="field-content pad17" style="font-size:15px;margin-left:110px;">
	<strong>系统邮箱负责向用户发送各种重要的邮件，请务必填写。</strong></div></li><li areaid="11" class="li-area  h55" scroll="no" style="width: 700px; height: 60px; position: static;"><label class="area-title pad16" fldid="1" istitle="1">邮箱地址</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2293_Email"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2293,''DefaultF_'',2293,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2293,''DefaultF_'',2293);" EntId="2293" IsField=1 DBField=0 IsPost=0 FieldName="Email" dType="2" Vtp="5" RDT="2" Isc="1" RId="-1" CId="1" FId="1" vlk=0    value="','"/>','',2,11,-1,-1,0,'2293,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=1,[Form_EntId]=2293,[EntId]=2293,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[FieldName]='Email',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="defaultform" ctrlprex="DefaultF_" entid="2293">
	<div>
		
	</div>
	<div class="frame-div">
		<ul class="ul-group" groupid="2" isgroup="1" isrple="1">
			<li areaid="13" class="li-area  h55" scroll="no" style="width: 700px; height: 45px; position: static;">
<div class="field-content pad17" style="font-size:15px;margin-left:110px;">
	<strong>系统邮箱负责向用户发送各种重要的邮件，请务必填写。</strong></div></li><li areaid="11" class="li-area  h55" scroll="no" style="width: 700px; height: 60px; position: static;"><label class="area-title pad16" fldid="1" istitle="1">邮箱地址</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2293_Email"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2293,''DefaultF_'',2293,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2293,''DefaultF_'',2293);" EntId="2293" IsField=1 DBField=0 IsPost=0 FieldName="Email" dType="2" Vtp="5" RDT="2" Isc="1" RId="-1" CId="1" FId="1" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=2,[RowIndex]=11,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2293,' where  [FldUId]='0784afc8-061f-8d00-cb06-4c2586df2f80' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='3397e7a6-8f89-04fe-9647-3525cba30bfb'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'3397e7a6-8f89-04fe-9647-3525cba30bfb',2293,2293,'00000000-0000-0000-0000-000000000000',2,'Nickname',2,2,-1,'',5,1,1,0,1,3,-1,-1,0,0,'','','','','</span>
<div class="form-rmk" isrmk="1" style="clear: left; padding-left: 0px;"> <span style="color: rgb(152, 139, 135);">(例如：dcxing@163.com)</span></div><div iserr="1" class="form-vld"></div></div> </li><li areaid="16" class="li-area  h55" scroll="no" style="width: 700px; position: static; height: 55px;"><label class="area-title pad16" fldid="3" istitle="1">邮箱用户名</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2293_Nickname"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2293,''DefaultF_'',2293,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2293,''DefaultF_'',2293);" EntId="2293" IsField=1 DBField=0 IsPost=0 FieldName="Nickname" dType="2" Vtp="5" RDT="2" Isc="1" RId="-1" CId="1" FId="3" vlk=0    value="','"/>','',2,16,-1,-1,0,'2293,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=3,[Form_EntId]=2293,[EntId]=2293,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[FieldName]='Nickname',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
<div class="form-rmk" isrmk="1" style="clear: left; padding-left: 0px;"> <span style="color: rgb(152, 139, 135);">(例如：dcxing@163.com)</span></div><div iserr="1" class="form-vld"></div></div> </li><li areaid="16" class="li-area  h55" scroll="no" style="width: 700px; position: static; height: 55px;"><label class="area-title pad16" fldid="3" istitle="1">邮箱用户名</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2293_Nickname"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2293,''DefaultF_'',2293,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2293,''DefaultF_'',2293);" EntId="2293" IsField=1 DBField=0 IsPost=0 FieldName="Nickname" dType="2" Vtp="5" RDT="2" Isc="1" RId="-1" CId="1" FId="3" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=2,[RowIndex]=16,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2293,' where  [FldUId]='3397e7a6-8f89-04fe-9647-3525cba30bfb' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='aa7da250-f4c8-5da8-f539-96cf57fba7a0'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'aa7da250-f4c8-5da8-f539-96cf57fba7a0',2293,2293,'00000000-0000-0000-0000-000000000000',3,'Pwd',2,2,-1,'',5,1,1,0,1,3,-1,-1,0,0,'','','','','</span>

	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li><li areaid="17" class="li-area  h55" scroll="no" style="width: 700px; height: 55px; position: static;"><label class="area-title pad16" fldid="4" istitle="1">邮箱密码</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2293_Pwd"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2293,''DefaultF_'',2293,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2293,''DefaultF_'',2293);" EntId="2293" IsField=1 DBField=0 IsPost=0 FieldName="Pwd" dType="2" Vtp="5" RDT="2" Isc="1" RId="-1" CId="1" FId="4" vlk=0    value="','"/>','',2,17,-1,-1,0,'2293,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=4,[Form_EntId]=2293,[EntId]=2293,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[FieldName]='Pwd',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li><li areaid="17" class="li-area  h55" scroll="no" style="width: 700px; height: 55px; position: static;"><label class="area-title pad16" fldid="4" istitle="1">邮箱密码</label>
<div class="field-content pad17">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2293_Pwd"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2293,''DefaultF_'',2293,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2293,''DefaultF_'',2293);" EntId="2293" IsField=1 DBField=0 IsPost=0 FieldName="Pwd" dType="2" Vtp="5" RDT="2" Isc="1" RId="-1" CId="1" FId="4" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=2,[RowIndex]=17,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2293,' where  [FldUId]='aa7da250-f4c8-5da8-f539-96cf57fba7a0' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='db8eba2c-8210-3670-7b7a-8040c5273619'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'db8eba2c-8210-3670-7b7a-8040c5273619',2293,2293,'00000000-0000-0000-0000-000000000000',4,'Smtp',2,2,-1,'',5,1,1,0,1,3,-1,-1,0,0,'','','','','</span>
<div iserr="1" class="form-vld"></div>
</div></li><li areaid="15" class="li-area  h55" scroll="no" style="width: 700px; height: 67px; position: static;"><label class="area-title pad16" fldid="5" istitle="1">Smtp服务器</label>
<div class="field-content pad17">
<span class="form-ctr" isfcontain="1">','','','','<input  id="d2293_Smtp"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2293,''DefaultF_'',2293,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2293,''DefaultF_'',2293);" EntId="2293" IsField=1 DBField=0 IsPost=0 FieldName="Smtp" dType="2" Vtp="5" RDT="2" Isc="1" RId="-1" CId="1" FId="5" vlk=0    value="','"/>','',2,15,-1,-1,0,'2293,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=5,[Form_EntId]=2293,[EntId]=2293,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=4,[FieldName]='Smtp',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
<div iserr="1" class="form-vld"></div>
</div></li><li areaid="15" class="li-area  h55" scroll="no" style="width: 700px; height: 67px; position: static;"><label class="area-title pad16" fldid="5" istitle="1">Smtp服务器</label>
<div class="field-content pad17">
<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2293_Smtp"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2293,''DefaultF_'',2293,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2293,''DefaultF_'',2293);" EntId="2293" IsField=1 DBField=0 IsPost=0 FieldName="Smtp" dType="2" Vtp="5" RDT="2" Isc="1" RId="-1" CId="1" FId="5" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=2,[RowIndex]=15,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2293,' where  [FldUId]='db8eba2c-8210-3670-7b7a-8040c5273619' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='cf4f6bcb-c57e-487e-c036-b79deb1c52fb'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'cf4f6bcb-c57e-487e-c036-b79deb1c52fb',2293,2293,'00000000-0000-0000-0000-000000000000',5,'SmtpPort',2,2,-1,'25',5,1,1,0,1,3,-1,-1,0,0,'','','','','</span>

<div class="form-rmk" isrmk="1" style="clear: left; padding-left: 0px;"> <span style="color: rgb(152, 139, 135);">(例如：smtp.163.com。如果不确认，请进入您的邮箱系统查看，或咨询他们。)</span></div><div iserr="1" class="form-vld"></div></div>
			</li><li areaid="14" class="li-area  h55" scroll="no" style="width: 700px; height: 55px; position: static;"><label class="area-title pad16" fldid="6" istitle="1">Smtp端口号</label>
<div class="field-content pad17"><span class="form-ctr" isfcontain="1">','</span>
<div iserr="1" class="form-vld"></div>
</div>
			</li><li areaid="12" class="li-area  h55" scroll="no" style="width: 700px; height: 55px; position: static;">
				<label class="area-title pad16" fldid="-1" istitle="1">&nbsp;</label>
				<div class="field-content pad17">
	<a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" id="btn_updateUserMsg"><span class="op_bt_i">保存</span></a></div>
			</li><li areaid="18" class="li-area  h55" scroll="no" style="width: 700px; height: 55px; display: none; position: static;">
				<label class="area-title pad16" fldid="-1" istitle="1">请编辑..</label>
				<div class="field-content pad17">
					请编辑..</div>
			</li>
		</ul>
	</div>
</div>','','','<input  id="d2293_SmtpPort"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2293,''DefaultF_'',2293,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2293,''DefaultF_'',2293);" EntId="2293" IsField=1 DBField=0 IsPost=0 FieldName="SmtpPort" dType="2" Vtp="5" RDT="2" Isc="1" RId="-1" CId="1" FId="6" vlk=0    value="','"/>','',2,14,-1,-1,0,'2293,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=6,[Form_EntId]=2293,[EntId]=2293,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=5,[FieldName]='SmtpPort',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='25',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

<div class="form-rmk" isrmk="1" style="clear: left; padding-left: 0px;"> <span style="color: rgb(152, 139, 135);">(例如：smtp.163.com。如果不确认，请进入您的邮箱系统查看，或咨询他们。)</span></div><div iserr="1" class="form-vld"></div></div>
			</li><li areaid="14" class="li-area  h55" scroll="no" style="width: 700px; height: 55px; position: static;"><label class="area-title pad16" fldid="6" istitle="1">Smtp端口号</label>
<div class="field-content pad17"><span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
<div iserr="1" class="form-vld"></div>
</div>
			</li><li areaid="12" class="li-area  h55" scroll="no" style="width: 700px; height: 55px; position: static;">
				<label class="area-title pad16" fldid="-1" istitle="1">&nbsp;</label>
				<div class="field-content pad17">
	<a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" id="btn_updateUserMsg"><span class="op_bt_i">保存</span></a></div>
			</li><li areaid="18" class="li-area  h55" scroll="no" style="width: 700px; height: 55px; display: none; position: static;">
				<label class="area-title pad16" fldid="-1" istitle="1">请编辑..</label>
				<div class="field-content pad17">
					请编辑..</div>
			</li>
		</ul>
	</div>
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2293_SmtpPort"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2293,''DefaultF_'',2293,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2293,''DefaultF_'',2293);" EntId="2293" IsField=1 DBField=0 IsPost=0 FieldName="SmtpPort" dType="2" Vtp="5" RDT="2" Isc="1" RId="-1" CId="1" FId="6" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=2,[RowIndex]=14,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2293,' where  [FldUId]='cf4f6bcb-c57e-487e-c036-b79deb1c52fb' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=1205

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=1205  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(1205,null,'Dcx_Common','Dcx_Common',1,0,0,0,0,0,29,1,3,'admin','2013-12-15 17:32:10',3,'admin','2013-12-15 17:32:10',null,null,27,83,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='Dcx_Common',[DBTableByName]='Dcx_Common',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=29,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:10',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:10',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=27,[SDbTableId]=83,[IsChange]=null,[IsSystem]=null where  [DBTableId]=1205 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1205  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18182,5,29,1205,'bit',4,1,1,'Dcx_Common','ParentId1','ParentId1','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Common',[FieldName]='ParentId1',[FieldByname]='ParentId1',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1205  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1205  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18183,4,29,1205,'int',1,1,1,'Dcx_Common','ParentId','ParentId','2',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Common',[FieldName]='ParentId',[FieldByname]='ParentId',[DefaultValue]='2',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1205  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1205  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18184,3,29,1205,'varchar',2,1,1,'Dcx_Common','Name','Name','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Common',[FieldName]='Name',[FieldByname]='Name',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1205  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1205  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18185,2,29,1205,'varchar',2,1,1,'Dcx_Common','Value','Value','sss',0,0,1,30,30,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Common',[FieldName]='Value',[FieldByname]='Value',[DefaultValue]='sss',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=30,[Precision]=30,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1205  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1205  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18186,1,29,1205,'int',1,1,1,'Dcx_Common','Id','Id','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=29,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Common',[FieldName]='Id',[FieldByname]='Id',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1205  and  [FieldId]=1 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




 GO--mygofuck 

 update Dcx_Menu_Run set [ParentId]=3417 where [MenuId]=3290
UPDATE [WF_FlowType]
   SET [ManageUsers] ='admin'
      ,[ManageNames] = 'admin'
      ,[QueryUsers] ='admin'
      ,[QueryNames] ='admin'
      ,[CanQueryRoles] ='系统管理员'
      ,[CanQueryRolesId] = '3'
      ,[CanManageRoles] ='系统管理员'
      ,[CanManageRolesId] ='3'
      ,[CanStartUsers] =null
      ,[CanStartNames] = null
      ,[CanStartRoles] ='Public'
      ,[CanStartRolesId] = '1'
      ,[Creator] = 'admin'
      ,[CreateTime] =  getdate() 



 GO--mygofuck 
--系统的Insert语句集合--



declare  @topMenuId int 
set  @topMenuId=-1 

--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=200  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(200,'45b7c013-51e0-4ddc-9936-277381b5da5d','电子邮件',948,'/MyApp/NewMail/inbox.aspx',1,'\Images\icon2\inbox_fax[1].png','\Images\icon2\inbox_fax[1].png',3,'main',0,1,'',30,0,30,0,1,1,null,'',0,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='45b7c013-51e0-4ddc-9936-277381b5da5d',[MenuName]='电子邮件',[ParentId]=948,[ProPath]='/MyApp/NewMail/inbox.aspx',[TemplateId]=1,[ImgPath]='\Images\icon2\inbox_fax[1].png',[ExImgPath]='\Images\icon2\inbox_fax[1].png',[OrderBy]=3,[Target]='main',[IsOpen]=0,[IsHidden]=1,[Remark]='',[SSystemId]=30,[SMenuId]=0,[SystemId]=30,[EntityCount]=0,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=200 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=200  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(1,200,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=200  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=943  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(943,'1d6b92e5-85e7-41e4-93b2-361e333abbdc','员工通讯录',1963,'/Template/default/ListReport/ListReport_Tree001.aspx',1,'/images/default.gif','/images/default.gif',1000,'main',0,1,'',30,0,30,1,1,1,null,'',0,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='1d6b92e5-85e7-41e4-93b2-361e333abbdc',[MenuName]='员工通讯录',[ParentId]=1963,[ProPath]='/Template/default/ListReport/ListReport_Tree001.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=1000,[Target]='main',[IsOpen]=0,[IsHidden]=1,[Remark]='',[SSystemId]=30,[SMenuId]=0,[SystemId]=30,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=943 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=943  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(6,943,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=943  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=62  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(62,943,'员工通讯录',1,818,0,'个人通讯录',0,0,1,30,62,null,null,30,null,null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=943,[EntName]='员工通讯录',[MEnt]=1,[DBTableId]=818,[DBConnectId]=0,[DBTableName]='个人通讯录',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=30,[SEntId]=62,[FSystemId]=null,[FEntId]=null,[SystemId]=30,[Remark]=null,[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=62 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=62

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=62  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(10281,943,62,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=943,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=62  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=62

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=62  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20508,30,943,62,13,1,1,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=943,[TemplateId]=13,[ModuleId]=1,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=62  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=62  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20509,30,943,62,13,2,9,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=943,[TemplateId]=13,[ModuleId]=9,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=62  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=62  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20510,30,943,62,13,3,14,1,4,2,'/Template/Default/Form/AjaxForm/AjaxForm008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=943,[TemplateId]=13,[ModuleId]=14,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='/Template/Default/Form/AjaxForm/AjaxForm008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=62  and  [ModuleTypeId]=3 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=62  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20511,30,943,62,13,16,31,1,5,2,'/Template/Default/Browse/Browse008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=943,[TemplateId]=13,[ModuleId]=31,[GroupId]=1,[AreaId]=5,[ShowMode]=2,[AreaUrl]='/Template/Default/Browse/Browse008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=62  and  [ModuleTypeId]=16 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_AjaxForm_Run]  where [EntId]=62

--Dcx_AjaxForm_Run
      if (select count(1) from [Dcx_AjaxForm_Run] where  [EntId]=62  )<1 
      begin 
           Insert into [Dcx_AjaxForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('38f99e34-6c14-4b0b-80cd-4d2041a242a2','员工通讯录',62,14,'','',0,'','','DcxRun.AjaxF_62= {"MenuId":943,"MEntId":62,"EntName":"员工通讯录","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E62":{"EntId":62,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_62.EntMsg.E62.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"个人通讯录","EntId":62,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"姓名":{"DtId":2,"DB":1,"CId":11,"FL":-1},"部门":{"DtId":2,"DB":1,"CId":3,"FL":-1},"性别":{"DtId":2,"DB":1,"CId":7,"FL":-1},"职务":{"DtId":2,"DB":1,"CId":3,"FL":-1},"办公电话":{"DtId":2,"DB":1,"CId":1,"FL":-1},"移动电话":{"DtId":2,"DB":1,"CId":1,"FL":-1},"家庭电话":{"DtId":2,"DB":1,"CId":1,"FL":-1},"电子邮件":{"DtId":2,"DB":1,"CId":1,"FL":-1},"地址":{"DtId":2,"DB":1,"CId":1,"FL":-1},"办公地址":{"DtId":2,"DB":1,"CId":1,"FL":-1},"传真号码":{"DtId":2,"DB":1,"CId":1,"FL":-1},"QQ号码":{"DtId":2,"DB":1,"CId":1,"FL":-1},"创建时间":{"DtId":2,"DB":1,"CId":4,"FL":-1},"所属用户":{"DtId":2,"DB":1,"CId":4,"FL":-1}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_62.EntMsg.E62.GetDataRowModel=function()
{
    return {"姓名":"","部门":"","性别":"","职务":"","办公电话":"","移动电话":"","家庭电话":"","电子邮件":"","地址":"","办公地址":"","传真号码":"","QQ号码":"","创建时间":"","所属用户":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_62.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(62,''AjaxF_'',buildNew,closeDlg);

}','<$62$>select [姓名],[部门],[性别],[职务],[办公电话],[移动电话],[家庭电话],[电子邮件],[地址],[办公地址],[传真号码],[QQ号码],[创建时间],[所属用户],[Id] from 个人通讯录 where [Id]=''{$keyfieldvalue}''</$62$>',20,'','','','62*Id*2**2*个人通讯录*员工通讯录',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 7:02:48',3,'admin','2013-11-16 18:42:33',1)
      end
      else 
      begin 
           update [Dcx_AjaxForm_Run] set [FormId]='38f99e34-6c14-4b0b-80cd-4d2041a242a2',[FormName]='员工通讯录',[ModuleId]=14,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.AjaxF_62= {"MenuId":943,"MEntId":62,"EntName":"员工通讯录","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E62":{"EntId":62,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_62.EntMsg.E62.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"个人通讯录","EntId":62,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"姓名":{"DtId":2,"DB":1,"CId":11,"FL":-1},"部门":{"DtId":2,"DB":1,"CId":3,"FL":-1},"性别":{"DtId":2,"DB":1,"CId":7,"FL":-1},"职务":{"DtId":2,"DB":1,"CId":3,"FL":-1},"办公电话":{"DtId":2,"DB":1,"CId":1,"FL":-1},"移动电话":{"DtId":2,"DB":1,"CId":1,"FL":-1},"家庭电话":{"DtId":2,"DB":1,"CId":1,"FL":-1},"电子邮件":{"DtId":2,"DB":1,"CId":1,"FL":-1},"地址":{"DtId":2,"DB":1,"CId":1,"FL":-1},"办公地址":{"DtId":2,"DB":1,"CId":1,"FL":-1},"传真号码":{"DtId":2,"DB":1,"CId":1,"FL":-1},"QQ号码":{"DtId":2,"DB":1,"CId":1,"FL":-1},"创建时间":{"DtId":2,"DB":1,"CId":4,"FL":-1},"所属用户":{"DtId":2,"DB":1,"CId":4,"FL":-1}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_62.EntMsg.E62.GetDataRowModel=function()
{
    return {"姓名":"","部门":"","性别":"","职务":"","办公电话":"","移动电话":"","家庭电话":"","电子邮件":"","地址":"","办公地址":"","传真号码":"","QQ号码":"","创建时间":"","所属用户":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_62.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(62,''AjaxF_'',buildNew,closeDlg);

}',[LoadingSql]='<$62$>select [姓名],[部门],[性别],[职务],[办公电话],[移动电话],[家庭电话],[电子邮件],[地址],[办公地址],[传真号码],[QQ号码],[创建时间],[所属用户],[Id] from 个人通讯录 where [Id]=''{$keyfieldvalue}''</$62$>',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='62*Id*2**2*个人通讯录*员工通讯录',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 7:02:48',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-16 18:42:33',[AccountId]=1 where  [EntId]=62 
      end




--Dcx_AjaxFormField_Run
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='9a2b5fc8-c13c-43e0-bb43-3271910303b9'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(13,'9a2b5fc8-c13c-43e0-bb43-3271910303b9',62,62,'00000000-0000-0000-0000-000000000000','姓名',2,2,2,'',5,-1,null,0,11,1,0,1,-1,0,0,'','','','','<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="62" groupid="181" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="787" class="li-area-title" scroll="no" style="width: 94px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">员工通讯录</span></div>
</li>
<li areaid="788" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
<li areaid="789" class="li-area1" scroll="no" style="display: none; position: static;">
<a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.AjaxF_62.SubmitForm(false);">
<span class="op_bt_i">保存</span> </a></li>
<li areaid="790" class="li-area1" scroll="no" style="display: none; position: static;">
<a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(62,''AjaxF_'');"><span class="op_bt_i">新建</span>
</a></li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="182" entid="62" class="ul-mform" ctrlprex="AjaxF_" isrple="1">
<li areaid="791" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="13" istitle="1">姓名 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d62_姓名"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,62,''AjaxF_'',62,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,62,''AjaxF_'',62);" EntId="62" IsField=1 DBField=1 IsPost=1 FieldName="姓名" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="11" FId="13" vlk=0    value="','"/> <input id="d62_姓名_but" onclick="javascript:window.top.showModelessDialog(''/MainProgram/Default_数据源查询.aspx?ChoiceMode=1&ObjectEntId=62&CtrlFieldName=姓名'',window,''dialogHeight:600px; dialogWidth:800px; dialogTop: px; dialogLeft: px; edge: Raised; center: Yes; help: No;toolbar:Yes;menubar:Yes; resizable: Yes; status: No; unadorned yes;'');return false;" type="button" class="redButtonCss" value="查询" />','',-1,-1,-1,-1,0,'62,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=13,[Form_EntId]=62,[EntId]=62,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='姓名',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=2,[DefaultValue]='',[ValueType]=5,[RunValueType]=-1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=11,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="62" groupid="181" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="787" class="li-area-title" scroll="no" style="width: 94px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">员工通讯录</span></div>
</li>
<li areaid="788" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
<li areaid="789" class="li-area1" scroll="no" style="display: none; position: static;">
<a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.AjaxF_62.SubmitForm(false);">
<span class="op_bt_i">保存</span> </a></li>
<li areaid="790" class="li-area1" scroll="no" style="display: none; position: static;">
<a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(62,''AjaxF_'');"><span class="op_bt_i">新建</span>
</a></li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="182" entid="62" class="ul-mform" ctrlprex="AjaxF_" isrple="1">
<li areaid="791" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="13" istitle="1">姓名 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d62_姓名"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,62,''AjaxF_'',62,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,62,''AjaxF_'',62);" EntId="62" IsField=1 DBField=1 IsPost=1 FieldName="姓名" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="11" FId="13" vlk=0    value="',[CtrlbackHtml]='"/> <input id="d62_姓名_but" onclick="javascript:window.top.showModelessDialog(''/MainProgram/Default_数据源查询.aspx?ChoiceMode=1&ObjectEntId=62&CtrlFieldName=姓名'',window,''dialogHeight:600px; dialogWidth:800px; dialogTop: px; dialogLeft: px; edge: Raised; center: Yes; help: No;toolbar:Yes;menubar:Yes; resizable: Yes; status: No; unadorned yes;'');return false;" type="button" class="redButtonCss" value="查询" />',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='62,' where  [FldUId]='9a2b5fc8-c13c-43e0-bb43-3271910303b9' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='47b240b0-fa84-4951-941e-158493cea7ba'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(14,'47b240b0-fa84-4951-941e-158493cea7ba',62,62,'00000000-0000-0000-0000-000000000000','部门',2,2,4,'select '''' union SELECT [DeptName] FROM [Dcx_Dept]',2,1,null,0,3,1,0,2,-1,0,0,'','','','','</span>
</div>
</li>
<li areaid="792" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="14" istitle="1">部门 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<select id="d62_部门" name="d62_部门" class="form-select"  onchange ="javascript:DcxVld.Validate(this,62,''AjaxF_'',62,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,62,''AjaxF_'',62);" EntId="62" IsField=1 DBField=1 IsPost=1 FieldName="部门" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="3" FId="14" vlk=0    style="width:201px;">','</select>','',-1,-1,-1,-1,0,'62,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=14,[Form_EntId]=62,[EntId]=62,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='部门',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=4,[DefaultValue]='select '''' union SELECT [DeptName] FROM [Dcx_Dept]',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=2,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="792" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="14" istitle="1">部门 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d62_部门" name="d62_部门" class="form-select"  onchange ="javascript:DcxVld.Validate(this,62,''AjaxF_'',62,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,62,''AjaxF_'',62);" EntId="62" IsField=1 DBField=1 IsPost=1 FieldName="部门" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="3" FId="14" vlk=0    style="width:201px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='62,' where  [FldUId]='47b240b0-fa84-4951-941e-158493cea7ba' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='02e6c826-73e6-4935-bdcf-180311cf640d'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(15,'02e6c826-73e6-4935-bdcf-180311cf640d',62,62,'00000000-0000-0000-0000-000000000000','性别',2,2,3,'',1,7,null,0,7,1,0,3,-1,0,0,'','','','','</span>
</div>
</li>
<li areaid="793" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="15">性别  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<div id="d62_性别" class="form-radio" style="" EntId="62" IsField=1 DBField=1 IsPost=1 FieldName="性别" dType="2" Vtp="1" RDT="2" Isc="0" RId="7" CId="7" FId="15" vlk=0    Type="1"  onclick ="javascript:DcxVld.Validate(this,62,''AjaxF_'',62);" onfocus ="javascript:DcxVld.ValidateFocus(this,62,''AjaxF_'',62);"><span class="form-radio-item"  >
<input id="ddcx_62_性别_0"  name="ddcx_62_性别"  type="radio"  text="男"  value="男"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_62_性别_0">男</label></span>
<span class="form-radio-item"  >
<input id="ddcx_62_性别_1"  name="ddcx_62_性别"  type="radio"  text="女"  value="女"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_62_性别_1">女</label></span>
<span class="clearfix"></span>','</div>','',-1,-1,-1,-1,0,'62,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=15,[Form_EntId]=62,[EntId]=62,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='性别',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=3,[DefaultValue]='',[ValueType]=1,[RunValueType]=7,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=7,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=3,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="793" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="15">性别  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d62_性别" class="form-radio" style="" EntId="62" IsField=1 DBField=1 IsPost=1 FieldName="性别" dType="2" Vtp="1" RDT="2" Isc="0" RId="7" CId="7" FId="15" vlk=0    Type="1"  onclick ="javascript:DcxVld.Validate(this,62,''AjaxF_'',62);" onfocus ="javascript:DcxVld.ValidateFocus(this,62,''AjaxF_'',62);"><span class="form-radio-item"  >
<input id="ddcx_62_性别_0"  name="ddcx_62_性别"  type="radio"  text="男"  value="男"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_62_性别_0">男</label></span>
<span class="form-radio-item"  >
<input id="ddcx_62_性别_1"  name="ddcx_62_性别"  type="radio"  text="女"  value="女"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_62_性别_1">女</label></span>
<span class="clearfix"></span>',[CtrlbackHtml]='</div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='62,' where  [FldUId]='02e6c826-73e6-4935-bdcf-180311cf640d' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='2bc47746-0cf5-4865-99e8-996bdeb45119'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(16,'2bc47746-0cf5-4865-99e8-996bdeb45119',62,62,'00000000-0000-0000-0000-000000000000','职务',2,2,5,'select '''' union SELECT [PositionName] FROM [Dcx_Position]',2,1,null,0,3,1,0,4,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="794" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="16">职务  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<select id="d62_职务" name="d62_职务" class="form-select"  onchange ="javascript:DcxVld.Validate(this,62,''AjaxF_'',62,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,62,''AjaxF_'',62);" EntId="62" IsField=1 DBField=1 IsPost=1 FieldName="职务" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="3" FId="16" vlk=0    style="width:201px;">','</select>','',-1,-1,-1,-1,0,'62,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=16,[Form_EntId]=62,[EntId]=62,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='职务',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=5,[DefaultValue]='select '''' union SELECT [PositionName] FROM [Dcx_Position]',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=4,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="794" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="16">职务  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d62_职务" name="d62_职务" class="form-select"  onchange ="javascript:DcxVld.Validate(this,62,''AjaxF_'',62,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,62,''AjaxF_'',62);" EntId="62" IsField=1 DBField=1 IsPost=1 FieldName="职务" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="3" FId="16" vlk=0    style="width:201px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='62,' where  [FldUId]='2bc47746-0cf5-4865-99e8-996bdeb45119' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='ea4b2fb2-15fb-4fab-af6c-b52c62969cce'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(17,'ea4b2fb2-15fb-4fab-af6c-b52c62969cce',62,62,'00000000-0000-0000-0000-000000000000','办公电话',2,2,6,'',5,1,null,0,1,1,0,5,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="795" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="17">办公电话  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d62_办公电话"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,62,''AjaxF_'',62,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,62,''AjaxF_'',62);" EntId="62" IsField=1 DBField=1 IsPost=1 FieldName="办公电话" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="17" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'62,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=17,[Form_EntId]=62,[EntId]=62,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='办公电话',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=6,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=5,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="795" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="17">办公电话  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d62_办公电话"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,62,''AjaxF_'',62,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,62,''AjaxF_'',62);" EntId="62" IsField=1 DBField=1 IsPost=1 FieldName="办公电话" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="17" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='62,' where  [FldUId]='ea4b2fb2-15fb-4fab-af6c-b52c62969cce' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='15981cb4-943c-44f3-bc5f-9191f13f8a8f'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(18,'15981cb4-943c-44f3-bc5f-9191f13f8a8f',62,62,'00000000-0000-0000-0000-000000000000','移动电话',2,2,7,'',5,1,null,0,1,1,0,6,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="796" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="18">移动电话  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d62_移动电话"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,62,''AjaxF_'',62,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,62,''AjaxF_'',62);" EntId="62" IsField=1 DBField=1 IsPost=1 FieldName="移动电话" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="18" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'62,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=18,[Form_EntId]=62,[EntId]=62,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='移动电话',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=7,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=6,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="796" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="18">移动电话  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d62_移动电话"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,62,''AjaxF_'',62,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,62,''AjaxF_'',62);" EntId="62" IsField=1 DBField=1 IsPost=1 FieldName="移动电话" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="18" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='62,' where  [FldUId]='15981cb4-943c-44f3-bc5f-9191f13f8a8f' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='abc13688-eb8e-4777-a57a-e44678a68ef3'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(19,'abc13688-eb8e-4777-a57a-e44678a68ef3',62,62,'00000000-0000-0000-0000-000000000000','家庭电话',2,2,8,'',5,1,null,0,1,1,0,7,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="797" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="19">家庭电话  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d62_家庭电话"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,62,''AjaxF_'',62,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,62,''AjaxF_'',62);" EntId="62" IsField=1 DBField=1 IsPost=1 FieldName="家庭电话" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="19" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'62,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=19,[Form_EntId]=62,[EntId]=62,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='家庭电话',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=8,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=7,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="797" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="19">家庭电话  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d62_家庭电话"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,62,''AjaxF_'',62,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,62,''AjaxF_'',62);" EntId="62" IsField=1 DBField=1 IsPost=1 FieldName="家庭电话" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="19" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='62,' where  [FldUId]='abc13688-eb8e-4777-a57a-e44678a68ef3' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='3d38242f-ac8d-4daf-93c2-e90da37ae724'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(20,'3d38242f-ac8d-4daf-93c2-e90da37ae724',62,62,'00000000-0000-0000-0000-000000000000','电子邮件',2,2,9,'',5,1,null,0,1,1,0,8,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="798" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="20">电子邮件  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d62_电子邮件"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,62,''AjaxF_'',62,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,62,''AjaxF_'',62);" EntId="62" IsField=1 DBField=1 IsPost=1 FieldName="电子邮件" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="20" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'62,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=20,[Form_EntId]=62,[EntId]=62,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='电子邮件',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=9,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=8,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="798" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="20">电子邮件  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d62_电子邮件"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,62,''AjaxF_'',62,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,62,''AjaxF_'',62);" EntId="62" IsField=1 DBField=1 IsPost=1 FieldName="电子邮件" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="20" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='62,' where  [FldUId]='3d38242f-ac8d-4daf-93c2-e90da37ae724' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='df0ba02a-5190-4e5a-869a-417259f404a2'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(21,'df0ba02a-5190-4e5a-869a-417259f404a2',62,62,'00000000-0000-0000-0000-000000000000','地址',2,2,10,'',5,1,null,0,1,1,0,9,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="799" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="21">地址  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d62_地址"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,62,''AjaxF_'',62,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,62,''AjaxF_'',62);" EntId="62" IsField=1 DBField=1 IsPost=1 FieldName="地址" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="21" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'62,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=21,[Form_EntId]=62,[EntId]=62,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='地址',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=10,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=9,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="799" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="21">地址  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d62_地址"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,62,''AjaxF_'',62,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,62,''AjaxF_'',62);" EntId="62" IsField=1 DBField=1 IsPost=1 FieldName="地址" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="21" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='62,' where  [FldUId]='df0ba02a-5190-4e5a-869a-417259f404a2' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='62fea9d8-cde7-49dc-a7c1-568548cb6003'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(22,'62fea9d8-cde7-49dc-a7c1-568548cb6003',62,62,'00000000-0000-0000-0000-000000000000','办公地址',2,2,11,'',5,1,null,0,1,1,0,10,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="800" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="22">办公地址  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d62_办公地址"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,62,''AjaxF_'',62,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,62,''AjaxF_'',62);" EntId="62" IsField=1 DBField=1 IsPost=1 FieldName="办公地址" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="22" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'62,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=22,[Form_EntId]=62,[EntId]=62,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='办公地址',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=11,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=10,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="800" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="22">办公地址  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d62_办公地址"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,62,''AjaxF_'',62,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,62,''AjaxF_'',62);" EntId="62" IsField=1 DBField=1 IsPost=1 FieldName="办公地址" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="22" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='62,' where  [FldUId]='62fea9d8-cde7-49dc-a7c1-568548cb6003' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='54810929-bc8d-489d-a7ba-794670bc3c38'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(23,'54810929-bc8d-489d-a7ba-794670bc3c38',62,62,'00000000-0000-0000-0000-000000000000','传真号码',2,2,12,'',5,1,null,0,1,1,0,11,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="801" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="23">传真号码  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d62_传真号码"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,62,''AjaxF_'',62,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,62,''AjaxF_'',62);" EntId="62" IsField=1 DBField=1 IsPost=1 FieldName="传真号码" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="23" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'62,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=23,[Form_EntId]=62,[EntId]=62,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='传真号码',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=12,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=11,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="801" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="23">传真号码  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d62_传真号码"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,62,''AjaxF_'',62,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,62,''AjaxF_'',62);" EntId="62" IsField=1 DBField=1 IsPost=1 FieldName="传真号码" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="23" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='62,' where  [FldUId]='54810929-bc8d-489d-a7ba-794670bc3c38' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='3bcf2f9f-e075-4654-a12b-74bb81c337e4'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(24,'3bcf2f9f-e075-4654-a12b-74bb81c337e4',62,62,'00000000-0000-0000-0000-000000000000','QQ号码',2,2,13,'',5,1,null,0,1,1,0,12,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="802" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="24">QQ号码  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d62_QQ号码"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,62,''AjaxF_'',62,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,62,''AjaxF_'',62);" EntId="62" IsField=1 DBField=1 IsPost=1 FieldName="QQ号码" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="24" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'62,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=24,[Form_EntId]=62,[EntId]=62,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='QQ号码',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=13,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=12,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="802" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="24">QQ号码  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d62_QQ号码"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,62,''AjaxF_'',62,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,62,''AjaxF_'',62);" EntId="62" IsField=1 DBField=1 IsPost=1 FieldName="QQ号码" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="24" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='62,' where  [FldUId]='3bcf2f9f-e075-4654-a12b-74bb81c337e4' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='1934f720-c287-4268-9a02-d5d1127cc0ce'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(25,'1934f720-c287-4268-9a02-d5d1127cc0ce',62,62,'00000000-0000-0000-0000-000000000000','创建时间',2,2,14,'{$date}',0,9,null,0,4,1,0,13,-1,0,0,'','','','{$date},','</span>
  </div>
</li>
<li areaid="803" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="25">创建时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d62_创建时间" class="form-lbl" style="width:201px;" IsForField=1 EntId="62" CId="4" FId="25" Vtp="0"  >','</span><input id="d62_创建时间_hid" type="hidden"  EntId="62" IsField=1 DBField=1 IsPost=1 FieldName="创建时间" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="25" vlk=0    value="','" />',-1,-1,-1,-1,0,'62,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=25,[Form_EntId]=62,[EntId]=62,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='创建时间',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=14,[DefaultValue]='{$date}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=13,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$date},',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="803" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="25">创建时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d62_创建时间" class="form-lbl" style="width:201px;" IsForField=1 EntId="62" CId="4" FId="25" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d62_创建时间_hid" type="hidden"  EntId="62" IsField=1 DBField=1 IsPost=1 FieldName="创建时间" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="25" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='62,' where  [FldUId]='1934f720-c287-4268-9a02-d5d1127cc0ce' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='48179d01-4a84-4502-9a3d-f84cbb77f46b'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(26,'48179d01-4a84-4502-9a3d-f84cbb77f46b',62,62,'00000000-0000-0000-0000-000000000000','所属用户',2,2,15,'{$UserName}',0,9,null,0,4,1,0,14,-1,0,0,'','','','{$username},','</span>
  </div>
</li>
<li areaid="804" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="26">所属用户  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','</span>
  </div>
</li>
</ul>
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="183" entid="62" class="tab_ul" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="805" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li areaid="806" istab="1" tabid="2" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1" style="display: none;">
<ul isgroup="1" groupid="184" entid="62" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="807" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: block;">
<ul isgroup="1" groupid="185" entid="62" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="808" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="62" groupid="186" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="809" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
<li areaid="810" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>','','','<span id="d62_所属用户" class="form-lbl" style="width:201px;" IsForField=1 EntId="62" CId="4" FId="26" Vtp="0"  >','</span><input id="d62_所属用户_hid" type="hidden"  EntId="62" IsField=1 DBField=1 IsPost=1 FieldName="所属用户" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="26" vlk=0    value="','" />',-1,-1,-1,-1,0,'62,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=26,[Form_EntId]=62,[EntId]=62,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='所属用户',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=15,[DefaultValue]='{$UserName}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=14,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$username},',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="804" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="26">所属用户  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
  </div>
</li>
</ul>
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="183" entid="62" class="tab_ul" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="805" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li areaid="806" istab="1" tabid="2" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1" style="display: none;">
<ul isgroup="1" groupid="184" entid="62" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="807" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: block;">
<ul isgroup="1" groupid="185" entid="62" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="808" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="62" groupid="186" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="809" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
<li areaid="810" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d62_所属用户" class="form-lbl" style="width:201px;" IsForField=1 EntId="62" CId="4" FId="26" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d62_所属用户_hid" type="hidden"  EntId="62" IsField=1 DBField=1 IsPost=1 FieldName="所属用户" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="26" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='62,' where  [FldUId]='48179d01-4a84-4502-9a3d-f84cbb77f46b' 
      end



Delete from [Dcx_SearchForm_Run]  where [EntId]=62

--Dcx_SearchForm_Run
      if (select count(1) from [Dcx_SearchForm_Run] where  [EntId]=62  )<1 
      begin 
           Insert into [Dcx_SearchForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('91017830-cf40-4856-9605-f7c99e34701f','员工通讯录',62,9,'','',0,'','','DcxRun.SearchF_62= {"MenuId":943,"MEntId":62,"EntName":"员工通讯录","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E62":{"EntId":62,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_62.EntMsg.E62.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"个人通讯录","EntId":62,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"姓名":{"DtId":2,"DB":1,"CId":1,"FL":100},"部门":{"DtId":2,"DB":1,"CId":1,"FL":100},"职务":{"DtId":2,"DB":1,"CId":1,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.SearchF_62.EntMsg.E62.GetDataRowModel=function()
{
    return {"姓名":"","部门":"","职务":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_62.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(62,''SearchF_'',buildNew,closeDlg);

}','',20,'','','','62*Id*2**2*个人通讯录*员工通讯录',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 5:45:57',3,'admin','2013-11-16 17:40:32',1)
      end
      else 
      begin 
           update [Dcx_SearchForm_Run] set [FormId]='91017830-cf40-4856-9605-f7c99e34701f',[FormName]='员工通讯录',[ModuleId]=9,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.SearchF_62= {"MenuId":943,"MEntId":62,"EntName":"员工通讯录","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E62":{"EntId":62,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_62.EntMsg.E62.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"个人通讯录","EntId":62,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"姓名":{"DtId":2,"DB":1,"CId":1,"FL":100},"部门":{"DtId":2,"DB":1,"CId":1,"FL":100},"职务":{"DtId":2,"DB":1,"CId":1,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.SearchF_62.EntMsg.E62.GetDataRowModel=function()
{
    return {"姓名":"","部门":"","职务":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_62.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(62,''SearchF_'',buildNew,closeDlg);

}',[LoadingSql]='',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='62*Id*2**2*个人通讯录*员工通讯录',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 5:45:57',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-16 17:40:32',[AccountId]=1 where  [EntId]=62 
      end




--Dcx_SearchFormField_Run
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='b4e9ac68-931b-44bf-bd5b-c5ecfd4020d4'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'b4e9ac68-931b-44bf-bd5b-c5ecfd4020d4',62,62,'00000000-0000-0000-0000-000000000000',1,'Like','姓名',2,2,2,'',5,1,1,0,1,1,0,-1,1,0,'','','','','<div class="searchform">
<ul isgroup="1" groupid="27" entid="62" class="search-block w920" ctrlprex="SearchF_" isrple="1">
<li areaid="105" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="1">姓名</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">','','','','<input  id="d62_姓名"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,62,''SearchF_'',62,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,62,''SearchF_'',62);" EntId="62" IsField=1 DBField=1 IsPost=1 FieldName="姓名" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'62,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=1,[Form_EntId]=62,[EntId]=62,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[CompareOperatorType]='Like',[FieldName]='姓名',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=2,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="searchform">
<ul isgroup="1" groupid="27" entid="62" class="search-block w920" ctrlprex="SearchF_" isrple="1">
<li areaid="105" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="1">姓名</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d62_姓名"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,62,''SearchF_'',62,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,62,''SearchF_'',62);" EntId="62" IsField=1 DBField=1 IsPost=1 FieldName="姓名" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='62,' where  [FldUId]='b4e9ac68-931b-44bf-bd5b-c5ecfd4020d4' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='e2459565-21fb-4b10-89a1-983931431305'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'e2459565-21fb-4b10-89a1-983931431305',62,62,'00000000-0000-0000-0000-000000000000',2,'Like','部门',2,2,4,'',5,1,1,0,1,1,0,-1,1,0,'','','','','</span>
  </div>
</li>
<li areaid="106" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="2">部门</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">','','','','<input  id="d62_部门"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,62,''SearchF_'',62,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,62,''SearchF_'',62);" EntId="62" IsField=1 DBField=1 IsPost=1 FieldName="部门" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'62,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=2,[Form_EntId]=62,[EntId]=62,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[CompareOperatorType]='Like',[FieldName]='部门',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=4,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="106" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="2">部门</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d62_部门"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,62,''SearchF_'',62,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,62,''SearchF_'',62);" EntId="62" IsField=1 DBField=1 IsPost=1 FieldName="部门" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='62,' where  [FldUId]='e2459565-21fb-4b10-89a1-983931431305' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='72393a6f-cea2-4f52-bcb0-cf6dd9c8a025'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'72393a6f-cea2-4f52-bcb0-cf6dd9c8a025',62,62,'00000000-0000-0000-0000-000000000000',3,'Like','职务',2,2,5,'',5,1,1,0,1,1,0,-1,1,0,'','','','','</span>
  </div>
</li>
<li areaid="107" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="3">职务</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">','</span>
  </div>
</li>
<li areaid="108" class="search-li w100 h32" scroll="no" style="position: static;">
<div class="searchform-button" onclick="javascript:return VL_Search(62);">
<div class="search-btn">&nbsp;</div>
<a href="javascript:void(0);" id="62_searchBT">搜索</a>
</div>
</li>
</ul>
</div>','','','<input  id="d62_职务"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,62,''SearchF_'',62,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,62,''SearchF_'',62);" EntId="62" IsField=1 DBField=1 IsPost=1 FieldName="职务" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="3" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'62,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=3,[Form_EntId]=62,[EntId]=62,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[CompareOperatorType]='Like',[FieldName]='职务',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=5,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="107" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="3">职务</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
  </div>
</li>
<li areaid="108" class="search-li w100 h32" scroll="no" style="position: static;">
<div class="searchform-button" onclick="javascript:return VL_Search(62);">
<div class="search-btn">&nbsp;</div>
<a href="javascript:void(0);" id="62_searchBT">搜索</a>
</div>
</li>
</ul>
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d62_职务"   type="text" class="form-txt"  style="width:150px;" onblur ="javascript:if(!DcxVld.Validate(this,62,''SearchF_'',62,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,62,''SearchF_'',62);" EntId="62" IsField=1 DBField=1 IsPost=1 FieldName="职务" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="3" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='62,' where  [FldUId]='72393a6f-cea2-4f52-bcb0-cf6dd9c8a025' 
      end



Delete from [Dcx_BrowseReport_Run]  where [EntId]=62

--Dcx_BrowseReport_Run
      if (select count(1) from [Dcx_BrowseReport_Run] where  [EntId]=62  )<1 
      begin 
           Insert into [Dcx_BrowseReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[DIYJsCss],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('02171d47-a111-48fd-840f-4bfe1809a3b6','员工通讯录',62,31,'','<$62$>select [姓名],[部门],[办公电话],[移动电话],[家庭电话],[电子邮件],[Id] from 个人通讯录 where [Id]=''{$keyfieldvalue}''</$62$>',1,1,20,'','DcxRun.MChildR_62= {"MenuId":943,"MEntId":62,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"员工通讯录","EntMsg":{"E62":{"EntId":62,"EntName":"员工通讯录","KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','62*Id*2**2*个人通讯录*员工通讯录',3,'','2012-12-21 11:03:02',3,'','2013-11-17 3:17:15',1)
      end
      else 
      begin 
           update [Dcx_BrowseReport_Run] set [ReportId]='02171d47-a111-48fd-840f-4bfe1809a3b6',[ReportName]='员工通讯录',[ModuleId]=31,[StaticHtml]='',[LoadingSql]='<$62$>select [姓名],[部门],[办公电话],[移动电话],[家庭电话],[电子邮件],[Id] from 个人通讯录 where [Id]=''{$keyfieldvalue}''</$62$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[DIYJsCss]='',[AutoPublicJs]='DcxRun.MChildR_62= {"MenuId":943,"MEntId":62,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"员工通讯录","EntMsg":{"E62":{"EntId":62,"EntName":"员工通讯录","KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='62*Id*2**2*个人通讯录*员工通讯录',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-21 11:03:02',[EditorId]=3,[Editor]='',[EditTime]='2013-11-17 3:17:15',[AccountId]=1 where  [EntId]=62 
      end




--Dcx_BrowseReportField_Run
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='eba94b3e-9916-4c7d-be5f-f104a509b6c8'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'eba94b3e-9916-4c7d-be5f-f104a509b6c8',62,62,'00000000-0000-0000-0000-000000000000',2,'姓名',1,1,'varchar',2,1,0,'','','','<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="62" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="391" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">员工通讯录</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="62" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="392" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">姓名  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="62" fieldname="姓名" fldid="2" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'62,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=2,[Report_EntId]=62,[EntId]=62,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='姓名',[FieldNO]=1,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="62" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="391" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">员工通讯录</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="62" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="392" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">姓名  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="62" fieldname="姓名" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='62,' where  [FldUId]='eba94b3e-9916-4c7d-be5f-f104a509b6c8' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='de1fd86d-0cc9-462d-bfe5-b54839d5bd82'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'de1fd86d-0cc9-462d-bfe5-b54839d5bd82',62,62,'00000000-0000-0000-0000-000000000000',4,'部门',2,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="393" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="62" fieldname="部门" fldid="3" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'62,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=3,[Report_EntId]=62,[EntId]=62,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=4,[FieldName]='部门',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="393" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="62" fieldname="部门" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='62,' where  [FldUId]='de1fd86d-0cc9-462d-bfe5-b54839d5bd82' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='4dbf0704-6bb1-4fbd-9050-83cd84bc287c'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'4dbf0704-6bb1-4fbd-9050-83cd84bc287c',62,62,'00000000-0000-0000-0000-000000000000',6,'办公电话',3,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="394" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">办公电话  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="62" fieldname="办公电话" fldid="4" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'62,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=4,[Report_EntId]=62,[EntId]=62,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=6,[FieldName]='办公电话',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="394" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">办公电话  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="62" fieldname="办公电话" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='62,' where  [FldUId]='4dbf0704-6bb1-4fbd-9050-83cd84bc287c' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='866226e2-be0d-4691-8b16-9fdf198fc159'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'866226e2-be0d-4691-8b16-9fdf198fc159',62,62,'00000000-0000-0000-0000-000000000000',7,'移动电话',4,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="395" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">移动电话  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="62" fieldname="移动电话" fldid="5" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'62,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=5,[Report_EntId]=62,[EntId]=62,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=7,[FieldName]='移动电话',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="395" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">移动电话  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="62" fieldname="移动电话" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='62,' where  [FldUId]='866226e2-be0d-4691-8b16-9fdf198fc159' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='df40776b-a1af-46e9-b05d-bfff116f438e'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'df40776b-a1af-46e9-b05d-bfff116f438e',62,62,'00000000-0000-0000-0000-000000000000',8,'家庭电话',5,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="396" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">家庭电话  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="62" fieldname="家庭电话" fldid="6" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'62,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=6,[Report_EntId]=62,[EntId]=62,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=8,[FieldName]='家庭电话',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="396" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">家庭电话  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="62" fieldname="家庭电话" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='62,' where  [FldUId]='df40776b-a1af-46e9-b05d-bfff116f438e' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='ae9aabf0-397c-4022-9872-4e4638a7c4da'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'ae9aabf0-397c-4022-9872-4e4638a7c4da',62,62,'00000000-0000-0000-0000-000000000000',9,'电子邮件',6,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="397" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">电子邮件  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="62" fieldname="电子邮件" fldid="7" columntypeid="1" class="form-ctr">','</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="62" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="402" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="403" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="62" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="404" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="62" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="405" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="62" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="406" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="407" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',-1,-1,-1,-1,0,'62,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=7,[Report_EntId]=62,[EntId]=62,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=9,[FieldName]='电子邮件',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="397" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">电子邮件  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="62" fieldname="电子邮件" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="62" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="402" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="403" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="62" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="404" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="62" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="405" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="62" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="406" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="407" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='62,' where  [FldUId]='ae9aabf0-397c-4022-9872-4e4638a7c4da' 
      end



Delete from [Dcx_ListReport_Run]  where [EntId]=62

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=62  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('3f416399-85c6-42c3-aeac-da1ed8fb216f','员工通讯录',62,1,'','','<$62$>select *  from (select row_number() over( order by [Id])as dcx_rowid,[姓名],[部门],[办公电话],[移动电话],[家庭电话],[电子邮件],[Id] from 个人通讯录  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$62$><$62:Count$>select count([Id]) from 个人通讯录 where {$SearchArea}</$62:Count$>',1,1,20,'DcxRun.ListR_62= {"MenuId":943,"MEntId":62,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"员工通讯录","EntMsg":{"E62":{"EntId":62,"EntName":"员工通讯录","KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','62*Id*2**2*个人通讯录*员工通讯录',3,'','2012-12-22 5:16:19',3,'','2013-11-16 20:15:36',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='3f416399-85c6-42c3-aeac-da1ed8fb216f',[ReportName]='员工通讯录',[ModuleId]=1,[StaticHtml]='',[DIYJsCss]='',[LoadingSql]='<$62$>select *  from (select row_number() over( order by [Id])as dcx_rowid,[姓名],[部门],[办公电话],[移动电话],[家庭电话],[电子邮件],[Id] from 个人通讯录  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$62$><$62:Count$>select count([Id]) from 个人通讯录 where {$SearchArea}</$62:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[AutoPublicJs]='DcxRun.ListR_62= {"MenuId":943,"MEntId":62,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"员工通讯录","EntMsg":{"E62":{"EntId":62,"EntName":"员工通讯录","KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='62*Id*2**2*个人通讯录*员工通讯录',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-22 5:16:19',[EditorId]=3,[Editor]='',[EditTime]='2013-11-16 20:15:36',[AccountId]=1 where  [EntId]=62 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='36fb16c1-8303-dbcb-8e63-4fac9c850350'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(194,'36fb16c1-8303-dbcb-8e63-4fac9c850350',62,62,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="85" entid="62" style="width: 840px;" ctrlprex="ListR_" isrple="1"> <li areaid="1124" class="tool-li" style="position: static;">
</li><li areaid="1125" class="tool-li" style="position: static;"><a id="ListR_62_btn_buildNew" class="list-bt-add" title="添   加" href="javascript:void(0);" onclick="javascript:DcxCom.ShowAddDataDlg(62,''ListR_'');">添   加</a></li>
<li areaid="1126" class="tool-li" style="position: static;"><a id="ListR_62_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(62,''ListR_'');">删   除</a></li>
<li areaid="1127" class="tool-li" style="position: static;"><a id="ListR_62_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(62,''ListR_'');">导   出</a></li>
<li areaid="1128" class="tool-li" style="position: static;"><a id="ListR_62_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(62,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_62" style="position: static;">
<a id="ListR_62_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(62,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_62_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(62,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_62_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(62,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_62_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="86" entid="62" class="list-head-ul" style="width: 844px;" ctrlprex="ListR_" isrple="1">
<li areaid="1130" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_62" onclick="javascript:DcxCom.CheckedAll(this,62,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="1131" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">姓名 </label></li><li areaid="1132" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">部门 </label></li><li areaid="1133" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">办公电话 </label></li><li areaid="1134" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">移动电话 </label></li><li areaid="1135" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">家庭电话 </label></li><li areaid="1136" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">电子邮件 </label></li><li areaid="1137" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="编辑"><span class="i">编辑</span></a></div></li><li areaid="1138" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="1139" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">','',-1,87,-1,-1,1,'62,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=194,[Report_EntId]=62,[EntId]=62,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="85" entid="62" style="width: 840px;" ctrlprex="ListR_" isrple="1"> <li areaid="1124" class="tool-li" style="position: static;">
</li><li areaid="1125" class="tool-li" style="position: static;"><a id="ListR_62_btn_buildNew" class="list-bt-add" title="添   加" href="javascript:void(0);" onclick="javascript:DcxCom.ShowAddDataDlg(62,''ListR_'');">添   加</a></li>
<li areaid="1126" class="tool-li" style="position: static;"><a id="ListR_62_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(62,''ListR_'');">删   除</a></li>
<li areaid="1127" class="tool-li" style="position: static;"><a id="ListR_62_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(62,''ListR_'');">导   出</a></li>
<li areaid="1128" class="tool-li" style="position: static;"><a id="ListR_62_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(62,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_62" style="position: static;">
<a id="ListR_62_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(62,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_62_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(62,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_62_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(62,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_62_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="86" entid="62" class="list-head-ul" style="width: 844px;" ctrlprex="ListR_" isrple="1">
<li areaid="1130" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_62" onclick="javascript:DcxCom.CheckedAll(this,62,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="1131" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">姓名 </label></li><li areaid="1132" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">部门 </label></li><li areaid="1133" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">办公电话 </label></li><li areaid="1134" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">移动电话 </label></li><li areaid="1135" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">家庭电话 </label></li><li areaid="1136" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">电子邮件 </label></li><li areaid="1137" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="编辑"><span class="i">编辑</span></a></div></li><li areaid="1138" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="1139" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='62,' where  [FldUId]='36fb16c1-8303-dbcb-8e63-4fac9c850350' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='97c0ae2a-683d-402a-9555-2455a386124d'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(154,'97c0ae2a-683d-402a-9555-2455a386124d',62,62,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',2,1,'',2,21,0,'','','','islonly="1" isgroup="1" groupid="87" class="list-body-ul" style="width: 844px;" isrple="1">
<li areaid="1140" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="62" issyscheck="1" keyvalue="','',-1,87,-1,-1,1,'62,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=154,[Report_EntId]=62,[EntId]=62,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='islonly="1" isgroup="1" groupid="87" class="list-body-ul" style="width: 844px;" isrple="1">
<li areaid="1140" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="62" issyscheck="1" keyvalue="',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='62,' where  [FldUId]='97c0ae2a-683d-402a-9555-2455a386124d' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='3e1690f1-4b2d-424d-8a86-2a4a9cae3d9b'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'3e1690f1-4b2d-424d-8a86-2a4a9cae3d9b',62,62,'00000000-0000-0000-0000-000000000000',2,'姓名',3,1,'varchar',2,1,0,'','','','" type="checkbox"></li><li areaid="1141" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="62" fieldname="姓名" fldid="2" columntypeid="1" class="form-ctr">','',-1,87,-1,-1,1,'62,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=2,[Report_EntId]=62,[EntId]=62,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='姓名',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='" type="checkbox"></li><li areaid="1141" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="62" fieldname="姓名" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='62,' where  [FldUId]='3e1690f1-4b2d-424d-8a86-2a4a9cae3d9b' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='70d1f585-fbb8-4f22-ba16-0d97577aba8b'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'70d1f585-fbb8-4f22-ba16-0d97577aba8b',62,62,'00000000-0000-0000-0000-000000000000',4,'部门',4,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1142" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="62" fieldname="部门" fldid="3" columntypeid="1" class="form-ctr">','',-1,87,-1,-1,1,'62,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=3,[Report_EntId]=62,[EntId]=62,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=4,[FieldName]='部门',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1142" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="62" fieldname="部门" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='62,' where  [FldUId]='70d1f585-fbb8-4f22-ba16-0d97577aba8b' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='f5197ce6-e5ca-41f9-bf3a-99e5e50936ec'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'f5197ce6-e5ca-41f9-bf3a-99e5e50936ec',62,62,'00000000-0000-0000-0000-000000000000',6,'办公电话',5,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1143" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="62" fieldname="办公电话" fldid="4" columntypeid="1" class="form-ctr">','',-1,87,-1,-1,1,'62,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=4,[Report_EntId]=62,[EntId]=62,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=6,[FieldName]='办公电话',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1143" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="62" fieldname="办公电话" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='62,' where  [FldUId]='f5197ce6-e5ca-41f9-bf3a-99e5e50936ec' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='f9f4cb97-a05e-448c-94c6-3a0ab2f3a55a'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'f9f4cb97-a05e-448c-94c6-3a0ab2f3a55a',62,62,'00000000-0000-0000-0000-000000000000',7,'移动电话',6,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1144" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="62" fieldname="移动电话" fldid="5" columntypeid="1" class="form-ctr">','',-1,87,-1,-1,1,'62,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=5,[Report_EntId]=62,[EntId]=62,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=7,[FieldName]='移动电话',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1144" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="62" fieldname="移动电话" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='62,' where  [FldUId]='f9f4cb97-a05e-448c-94c6-3a0ab2f3a55a' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='1b83ecce-3f18-4263-9bb4-794084937ff6'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'1b83ecce-3f18-4263-9bb4-794084937ff6',62,62,'00000000-0000-0000-0000-000000000000',8,'家庭电话',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1145" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="62" fieldname="家庭电话" fldid="6" columntypeid="1" class="form-ctr">','',-1,87,-1,-1,1,'62,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=6,[Report_EntId]=62,[EntId]=62,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=8,[FieldName]='家庭电话',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1145" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="62" fieldname="家庭电话" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='62,' where  [FldUId]='1b83ecce-3f18-4263-9bb4-794084937ff6' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='3df51264-f266-4b8a-9ce4-c31ab27b9fa5'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'3df51264-f266-4b8a-9ce4-c31ab27b9fa5',62,62,'00000000-0000-0000-0000-000000000000',9,'电子邮件',8,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1146" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="62" fieldname="电子邮件" fldid="7" columntypeid="1" class="form-ctr">','',-1,87,-1,-1,1,'62,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=7,[Report_EntId]=62,[EntId]=62,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=9,[FieldName]='电子邮件',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1146" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="62" fieldname="电子邮件" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='62,' where  [FldUId]='3df51264-f266-4b8a-9ce4-c31ab27b9fa5' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='40af8089-e7e8-47d4-99f6-f3aa502dda6d'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(155,'40af8089-e7e8-47d4-99f6-f3aa502dda6d',62,62,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',9,1,'',2,21,0,'','','','</span>
  </div>
</li><li areaid="1147" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,62,''ListR_'',''','',-1,87,-1,-1,1,'62,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=155,[Report_EntId]=62,[EntId]=62,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1147" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,62,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='62,' where  [FldUId]='40af8089-e7e8-47d4-99f6-f3aa502dda6d' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='8e43befd-2bfa-4d4d-957c-b11b5696ac2d'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(156,'8e43befd-2bfa-4d4d-957c-b11b5696ac2d',62,62,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',10,1,'',2,21,0,'','','',''',null,1040,480);">
<span class="i">编辑</span></a></div>
</li><li areaid="1148" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,62,''ListR_'',''','',-1,87,-1,-1,1,'62,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=156,[Report_EntId]=62,[EntId]=62,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=10,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">编辑</span></a></div>
</li><li areaid="1148" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,62,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='62,' where  [FldUId]='8e43befd-2bfa-4d4d-957c-b11b5696ac2d' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='3ce92a6a-6e7e-4cd6-9294-9a365b4868d8'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(157,'3ce92a6a-6e7e-4cd6-9294-9a365b4868d8',62,62,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',11,1,'',2,21,0,'','','',''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="1149" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,62,''ListR_'',''','',-1,87,-1,-1,1,'62,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=157,[Report_EntId]=62,[EntId]=62,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=11,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="1149" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,62,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='62,' where  [FldUId]='3ce92a6a-6e7e-4cd6-9294-9a365b4868d8' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='79464852-30c0-5002-f9e8-f428f17a6e3c'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(195,'79464852-30c0-5002-f9e8-f428f17a6e3c',62,62,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',12,-1,'varchar',2,13,0,'','','',''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>','</div>
</div>
<!-- 结束 --></div>',-1,87,-1,-1,1,'62,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=195,[Report_EntId]=62,[EntId]=62,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=12,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>',[LastHtml]='</div>
</div>
<!-- 结束 --></div>',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='62,' where  [FldUId]='79464852-30c0-5002-f9e8-f428f17a6e3c' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=818

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=818  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(818,null,'个人通讯录','个人通讯录',0,0,0,0,0,0,30,1,3,'admin','2013-12-15 17:32:43',3,'admin','2013-12-15 17:32:43',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='个人通讯录',[DBTableByName]='个人通讯录',[IsForbid]=0,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=30,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:43',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:43',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=818 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=818  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18707,1,30,818,'int',1,1,1,'个人通讯录','Id','Id','',1,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='个人通讯录',[FieldName]='Id',[FieldByname]='Id',[DefaultValue]='',[IsIdentity]=1,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=818  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=818  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18708,2,30,818,'varchar',2,1,1,'个人通讯录','姓名','姓名','',0,1,0,10,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='个人通讯录',[FieldName]='姓名',[FieldByname]='姓名',[DefaultValue]='',[IsIdentity]=0,[IsKey]=1,[IsNullAble]=0,[Length]=10,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=818  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=818  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18709,3,30,818,'varchar',2,1,1,'个人通讯录','性别','性别','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='个人通讯录',[FieldName]='性别',[FieldByname]='性别',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=818  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=818  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18710,4,30,818,'varchar',2,1,1,'个人通讯录','部门','部门','',0,0,1,20,20,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='个人通讯录',[FieldName]='部门',[FieldByname]='部门',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=20,[Precision]=20,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=818  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=818  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18711,5,30,818,'varchar',2,1,1,'个人通讯录','职务','职务','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='个人通讯录',[FieldName]='职务',[FieldByname]='职务',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=818  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=818  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18712,6,30,818,'varchar',2,1,1,'个人通讯录','办公电话','办公电话','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='个人通讯录',[FieldName]='办公电话',[FieldByname]='办公电话',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=818  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=818  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18713,7,30,818,'varchar',2,1,1,'个人通讯录','移动电话','移动电话','',0,0,1,20,20,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='个人通讯录',[FieldName]='移动电话',[FieldByname]='移动电话',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=20,[Precision]=20,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=818  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=818  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18714,8,30,818,'varchar',2,1,1,'个人通讯录','家庭电话','家庭电话','',0,0,1,20,20,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='个人通讯录',[FieldName]='家庭电话',[FieldByname]='家庭电话',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=20,[Precision]=20,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=818  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=818  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18715,9,30,818,'varchar',2,1,1,'个人通讯录','电子邮件','电子邮件','',0,0,1,20,20,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='个人通讯录',[FieldName]='电子邮件',[FieldByname]='电子邮件',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=20,[Precision]=20,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=818  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=818  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18716,10,30,818,'varchar',2,1,1,'个人通讯录','地址','地址','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='个人通讯录',[FieldName]='地址',[FieldByname]='地址',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=818  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=818  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18717,11,30,818,'varchar',2,1,1,'个人通讯录','办公地址','办公地址','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='个人通讯录',[FieldName]='办公地址',[FieldByname]='办公地址',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=818  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=818  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18718,12,30,818,'varchar',2,1,1,'个人通讯录','传真号码','传真号码','',0,0,1,20,20,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='个人通讯录',[FieldName]='传真号码',[FieldByname]='传真号码',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=20,[Precision]=20,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=818  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=818  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18719,13,30,818,'varchar',2,1,1,'个人通讯录','QQ号码','QQ号码','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='个人通讯录',[FieldName]='QQ号码',[FieldByname]='QQ号码',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=818  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=818  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18720,14,30,818,'varchar',2,1,1,'个人通讯录','创建时间','创建时间','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='个人通讯录',[FieldName]='创建时间',[FieldByname]='创建时间',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=818  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=818  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18721,15,30,818,'varchar',2,1,1,'个人通讯录','所属用户','所属用户','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='个人通讯录',[FieldName]='所属用户',[FieldByname]='所属用户',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=818  and  [FieldId]=15 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=945  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(945,'536c6af0-3616-4d6c-b6f6-71543ba9e24f','个人通讯录',1963,'/Template/default/ListReport/ListReport_Tree001.aspx',1,'/images/default.gif','/images/default.gif',1000,'main',0,1,'',30,0,30,1,1,1,null,'',0,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='536c6af0-3616-4d6c-b6f6-71543ba9e24f',[MenuName]='个人通讯录',[ParentId]=1963,[ProPath]='/Template/default/ListReport/ListReport_Tree001.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=1000,[Target]='main',[IsOpen]=0,[IsHidden]=1,[Remark]='',[SSystemId]=30,[SMenuId]=0,[SystemId]=30,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=945 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=945  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(7,945,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=945  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=156  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(156,945,'个人通讯录',1,920,0,'名片夹',0,0,1,30,156,null,null,30,null,null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=945,[EntName]='个人通讯录',[MEnt]=1,[DBTableId]=920,[DBConnectId]=0,[DBTableName]='名片夹',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=30,[SEntId]=156,[FSystemId]=null,[FEntId]=null,[SystemId]=30,[Remark]=null,[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=156 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=156

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=156  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(10282,945,156,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=945,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=156  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=156

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=156  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20512,30,945,156,13,1,1,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=945,[TemplateId]=13,[ModuleId]=1,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=156  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=156  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20513,30,945,156,13,2,9,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=945,[TemplateId]=13,[ModuleId]=9,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=156  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=156  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20514,30,945,156,13,3,14,1,4,2,'/Template/Default/Form/AjaxForm/AjaxForm008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=945,[TemplateId]=13,[ModuleId]=14,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='/Template/Default/Form/AjaxForm/AjaxForm008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=156  and  [ModuleTypeId]=3 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=156  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20515,30,945,156,13,16,31,1,5,2,'/Template/Default/Browse/Browse008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=945,[TemplateId]=13,[ModuleId]=31,[GroupId]=1,[AreaId]=5,[ShowMode]=2,[AreaUrl]='/Template/Default/Browse/Browse008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=156  and  [ModuleTypeId]=16 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_AjaxForm_Run]  where [EntId]=156

--Dcx_AjaxForm_Run
      if (select count(1) from [Dcx_AjaxForm_Run] where  [EntId]=156  )<1 
      begin 
           Insert into [Dcx_AjaxForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('0c733806-f70b-4fd6-aad6-3cc81e834098','个人通讯录',156,14,'','',0,'','','DcxRun.AjaxF_156= {"MenuId":945,"MEntId":156,"EntName":"个人通讯录","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E156":{"EntId":156,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_156.EntMsg.E156.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"名片夹","EntId":156,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"分类":{"DtId":2,"DB":1,"CId":7,"FL":-1},"编号":{"DtId":2,"DB":1,"CId":4,"FL":-1},"姓名":{"DtId":2,"DB":1,"CId":1,"FL":-1},"性别":{"DtId":2,"DB":1,"CId":7,"FL":-1},"职位":{"DtId":2,"DB":1,"CId":8,"FL":-1},"办公电话":{"DtId":2,"DB":1,"CId":1,"FL":-1},"家庭电话":{"DtId":2,"DB":1,"CId":1,"FL":-1},"移动电话":{"DtId":2,"DB":1,"CId":1,"FL":-1},"传真号码":{"DtId":2,"DB":1,"CId":1,"FL":-1},"电子邮件":{"DtId":2,"DB":1,"CId":1,"FL":-1},"备注":{"DtId":2,"DB":1,"CId":1,"FL":-1},"创建时间":{"DtId":3,"DB":1,"CId":4,"FL":-1},"卡片所属":{"DtId":2,"DB":1,"CId":4,"FL":-1}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_156.EntMsg.E156.GetDataRowModel=function()
{
    return {"分类":"","编号":"","姓名":"","性别":"","职位":"","办公电话":"","家庭电话":"","移动电话":"","传真号码":"","电子邮件":"","备注":"","创建时间":new Date(),"卡片所属":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_156.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(156,''AjaxF_'',buildNew,closeDlg);

}','<$156$>select [分类],[编号],[姓名],[性别],[职位],[办公电话],[家庭电话],[移动电话],[传真号码],[电子邮件],[备注],[创建时间],[卡片所属],[Id] from 名片夹 where [Id]=''{$keyfieldvalue}''</$156$>',20,'','','','156*Id*2**2*名片夹*个人通讯录',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 7:02:48',3,'admin','2013-11-16 18:42:34',1)
      end
      else 
      begin 
           update [Dcx_AjaxForm_Run] set [FormId]='0c733806-f70b-4fd6-aad6-3cc81e834098',[FormName]='个人通讯录',[ModuleId]=14,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.AjaxF_156= {"MenuId":945,"MEntId":156,"EntName":"个人通讯录","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E156":{"EntId":156,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_156.EntMsg.E156.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"名片夹","EntId":156,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"分类":{"DtId":2,"DB":1,"CId":7,"FL":-1},"编号":{"DtId":2,"DB":1,"CId":4,"FL":-1},"姓名":{"DtId":2,"DB":1,"CId":1,"FL":-1},"性别":{"DtId":2,"DB":1,"CId":7,"FL":-1},"职位":{"DtId":2,"DB":1,"CId":8,"FL":-1},"办公电话":{"DtId":2,"DB":1,"CId":1,"FL":-1},"家庭电话":{"DtId":2,"DB":1,"CId":1,"FL":-1},"移动电话":{"DtId":2,"DB":1,"CId":1,"FL":-1},"传真号码":{"DtId":2,"DB":1,"CId":1,"FL":-1},"电子邮件":{"DtId":2,"DB":1,"CId":1,"FL":-1},"备注":{"DtId":2,"DB":1,"CId":1,"FL":-1},"创建时间":{"DtId":3,"DB":1,"CId":4,"FL":-1},"卡片所属":{"DtId":2,"DB":1,"CId":4,"FL":-1}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_156.EntMsg.E156.GetDataRowModel=function()
{
    return {"分类":"","编号":"","姓名":"","性别":"","职位":"","办公电话":"","家庭电话":"","移动电话":"","传真号码":"","电子邮件":"","备注":"","创建时间":new Date(),"卡片所属":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_156.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(156,''AjaxF_'',buildNew,closeDlg);

}',[LoadingSql]='<$156$>select [分类],[编号],[姓名],[性别],[职位],[办公电话],[家庭电话],[移动电话],[传真号码],[电子邮件],[备注],[创建时间],[卡片所属],[Id] from 名片夹 where [Id]=''{$keyfieldvalue}''</$156$>',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='156*Id*2**2*名片夹*个人通讯录',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 7:02:48',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-16 18:42:34',[AccountId]=1 where  [EntId]=156 
      end




--Dcx_AjaxFormField_Run
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='c8b94ca1-3b88-41d6-8b94-8569520c45cd'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(27,'c8b94ca1-3b88-41d6-8b94-8569520c45cd',156,156,'00000000-0000-0000-0000-000000000000','分类',2,2,11,'',1,7,null,0,7,1,0,1,-1,0,0,'','','','','<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="156" groupid="181" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="751" class="li-area-title" scroll="no" style="width: 94px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">个人通讯录</span></div>
</li>
<li areaid="752" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
<li areaid="753" class="li-area1" scroll="no" style="display: none; position: static;">
<a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.AjaxF_156.SubmitForm(false);">
<span class="op_bt_i">保存</span> </a></li>
<li areaid="754" class="li-area1" scroll="no" style="display: none; position: static;">
<a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(156,''AjaxF_'');"><span class="op_bt_i">新建</span>
</a></li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="182" entid="156" class="ul-mform" ctrlprex="AjaxF_" isrple="1">
<li areaid="755" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="27" istitle="1">分类 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<div id="d156_分类" class="form-radio" style="" EntId="156" IsField=1 DBField=1 IsPost=1 FieldName="分类" dType="2" Vtp="1" RDT="2" Isc="0" RId="7" CId="7" FId="27" vlk=0    Type="1"  onclick ="javascript:DcxVld.Validate(this,156,''AjaxF_'',156);" onfocus ="javascript:DcxVld.ValidateFocus(this,156,''AjaxF_'',156);"><span class="form-radio-item"  >
<input id="ddcx_156_分类_0"  name="ddcx_156_分类"  type="radio"  text="朋友"  value="朋友"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_156_分类_0">朋友</label></span>
<span class="form-radio-item"  >
<input id="ddcx_156_分类_1"  name="ddcx_156_分类"  type="radio"  text="亲戚"  value="亲戚"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_156_分类_1">亲戚</label></span>
<span class="form-radio-item"  >
<input id="ddcx_156_分类_2"  name="ddcx_156_分类"  type="radio"  text="家人"  value="家人"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_156_分类_2">家人</label></span>
<span class="form-radio-item"  >
<input id="ddcx_156_分类_3"  name="ddcx_156_分类"  type="radio"  text="同学"  value="同学"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_156_分类_3">同学</label></span>
<span class="form-radio-item"  >
<input id="ddcx_156_分类_4"  name="ddcx_156_分类"  type="radio"  text="陌生人"  value="陌生人"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_156_分类_4">陌生人</label></span>
<span class="clearfix"></span>','</div>','',-1,-1,-1,-1,0,'156,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=27,[Form_EntId]=156,[EntId]=156,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='分类',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=11,[DefaultValue]='',[ValueType]=1,[RunValueType]=7,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=7,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="156" groupid="181" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="751" class="li-area-title" scroll="no" style="width: 94px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">个人通讯录</span></div>
</li>
<li areaid="752" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
<li areaid="753" class="li-area1" scroll="no" style="display: none; position: static;">
<a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.AjaxF_156.SubmitForm(false);">
<span class="op_bt_i">保存</span> </a></li>
<li areaid="754" class="li-area1" scroll="no" style="display: none; position: static;">
<a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(156,''AjaxF_'');"><span class="op_bt_i">新建</span>
</a></li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="182" entid="156" class="ul-mform" ctrlprex="AjaxF_" isrple="1">
<li areaid="755" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="27" istitle="1">分类 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d156_分类" class="form-radio" style="" EntId="156" IsField=1 DBField=1 IsPost=1 FieldName="分类" dType="2" Vtp="1" RDT="2" Isc="0" RId="7" CId="7" FId="27" vlk=0    Type="1"  onclick ="javascript:DcxVld.Validate(this,156,''AjaxF_'',156);" onfocus ="javascript:DcxVld.ValidateFocus(this,156,''AjaxF_'',156);"><span class="form-radio-item"  >
<input id="ddcx_156_分类_0"  name="ddcx_156_分类"  type="radio"  text="朋友"  value="朋友"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_156_分类_0">朋友</label></span>
<span class="form-radio-item"  >
<input id="ddcx_156_分类_1"  name="ddcx_156_分类"  type="radio"  text="亲戚"  value="亲戚"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_156_分类_1">亲戚</label></span>
<span class="form-radio-item"  >
<input id="ddcx_156_分类_2"  name="ddcx_156_分类"  type="radio"  text="家人"  value="家人"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_156_分类_2">家人</label></span>
<span class="form-radio-item"  >
<input id="ddcx_156_分类_3"  name="ddcx_156_分类"  type="radio"  text="同学"  value="同学"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_156_分类_3">同学</label></span>
<span class="form-radio-item"  >
<input id="ddcx_156_分类_4"  name="ddcx_156_分类"  type="radio"  text="陌生人"  value="陌生人"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_156_分类_4">陌生人</label></span>
<span class="clearfix"></span>',[CtrlbackHtml]='</div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='156,' where  [FldUId]='c8b94ca1-3b88-41d6-8b94-8569520c45cd' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='2afc1faf-d40b-4d6a-a3d7-032dd4a67021'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(28,'2afc1faf-d40b-4d6a-a3d7-032dd4a67021',156,156,'00000000-0000-0000-0000-000000000000','编号',2,2,2,'select convert(char(6),getdate(),112)+Substring( cast((case when count(编号)=0 then 0 when count(编号)>0 then max(cast(Substring(编号,7,3) as int)) end )+1001 as varchar),2,3)  from   名片夹  where 编号 like  convert(char(6),getdate(),112)+''%''',2,9,null,0,4,1,0,2,-1,0,0,'','','','','</span>
</div>
</li>
<li areaid="756" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="28" istitle="1">编号 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d156_编号" class="form-lbl" style="width:201px;" IsForField=1 EntId="156" CId="4" FId="28" Vtp="2"  >','</span><input id="d156_编号_hid" type="hidden"  EntId="156" IsField=1 DBField=1 IsPost=1 FieldName="编号" dType="2" Vtp="2" RDT="2" Isc="0" RId="9" CId="4" FId="28" vlk=0    value="','" />',-1,-1,-1,-1,0,'156,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=28,[Form_EntId]=156,[EntId]=156,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='编号',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=2,[DefaultValue]='select convert(char(6),getdate(),112)+Substring( cast((case when count(编号)=0 then 0 when count(编号)>0 then max(cast(Substring(编号,7,3) as int)) end )+1001 as varchar),2,3)  from   名片夹  where 编号 like  convert(char(6),getdate(),112)+''%''',[ValueType]=2,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=2,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="756" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="28" istitle="1">编号 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d156_编号" class="form-lbl" style="width:201px;" IsForField=1 EntId="156" CId="4" FId="28" Vtp="2"  >',[CtrlbackHtml]='</span><input id="d156_编号_hid" type="hidden"  EntId="156" IsField=1 DBField=1 IsPost=1 FieldName="编号" dType="2" Vtp="2" RDT="2" Isc="0" RId="9" CId="4" FId="28" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='156,' where  [FldUId]='2afc1faf-d40b-4d6a-a3d7-032dd4a67021' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='e285514a-fe38-4014-9211-773c0d7eae4c'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(29,'e285514a-fe38-4014-9211-773c0d7eae4c',156,156,'00000000-0000-0000-0000-000000000000','姓名',2,2,3,'',5,1,null,0,1,1,0,3,-1,0,0,'','','','','</span>
</div>
</li>
<li areaid="757" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="29">姓名  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d156_姓名"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,156,''AjaxF_'',156,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,156,''AjaxF_'',156);" EntId="156" IsField=1 DBField=1 IsPost=1 FieldName="姓名" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="29" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'156,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=29,[Form_EntId]=156,[EntId]=156,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='姓名',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=3,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=3,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="757" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="29">姓名  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d156_姓名"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,156,''AjaxF_'',156,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,156,''AjaxF_'',156);" EntId="156" IsField=1 DBField=1 IsPost=1 FieldName="姓名" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="29" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='156,' where  [FldUId]='e285514a-fe38-4014-9211-773c0d7eae4c' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='2f027f52-f7ab-42e1-96ae-514bdd8bd2ee'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(30,'2f027f52-f7ab-42e1-96ae-514bdd8bd2ee',156,156,'00000000-0000-0000-0000-000000000000','性别',2,2,13,'',1,7,null,0,7,1,0,4,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="758" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="30">性别  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<div id="d156_性别" class="form-radio" style="" EntId="156" IsField=1 DBField=1 IsPost=1 FieldName="性别" dType="2" Vtp="1" RDT="2" Isc="0" RId="7" CId="7" FId="30" vlk=0    Type="1"  onclick ="javascript:DcxVld.Validate(this,156,''AjaxF_'',156);" onfocus ="javascript:DcxVld.ValidateFocus(this,156,''AjaxF_'',156);"><span class="form-radio-item"  >
<input id="ddcx_156_性别_0"  name="ddcx_156_性别"  type="radio"  text="男"  value="男"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_156_性别_0">男</label></span>
<span class="form-radio-item"  >
<input id="ddcx_156_性别_1"  name="ddcx_156_性别"  type="radio"  text="女"  value="女"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_156_性别_1">女</label></span>
<span class="clearfix"></span>','</div>','',-1,-1,-1,-1,0,'156,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=30,[Form_EntId]=156,[EntId]=156,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='性别',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=13,[DefaultValue]='',[ValueType]=1,[RunValueType]=7,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=7,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=4,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="758" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="30">性别  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d156_性别" class="form-radio" style="" EntId="156" IsField=1 DBField=1 IsPost=1 FieldName="性别" dType="2" Vtp="1" RDT="2" Isc="0" RId="7" CId="7" FId="30" vlk=0    Type="1"  onclick ="javascript:DcxVld.Validate(this,156,''AjaxF_'',156);" onfocus ="javascript:DcxVld.ValidateFocus(this,156,''AjaxF_'',156);"><span class="form-radio-item"  >
<input id="ddcx_156_性别_0"  name="ddcx_156_性别"  type="radio"  text="男"  value="男"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_156_性别_0">男</label></span>
<span class="form-radio-item"  >
<input id="ddcx_156_性别_1"  name="ddcx_156_性别"  type="radio"  text="女"  value="女"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_156_性别_1">女</label></span>
<span class="clearfix"></span>',[CtrlbackHtml]='</div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='156,' where  [FldUId]='2f027f52-f7ab-42e1-96ae-514bdd8bd2ee' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='a62d5f9f-29a3-4555-984f-d3c636f12a7e'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(31,'a62d5f9f-29a3-4555-984f-d3c636f12a7e',156,156,'00000000-0000-0000-0000-000000000000','职位',2,2,4,'select '''' union SELECT [PositionName] FROM [Dcx_Position]',2,-1,null,0,8,1,0,5,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="759" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="31">职位  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d156_职位"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,156,''AjaxF_'',156,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,156,''AjaxF_'',156);" EntId="156" IsField=1 DBField=1 IsPost=1 FieldName="职位" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="8" FId="31" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'156,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=31,[Form_EntId]=156,[EntId]=156,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='职位',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=4,[DefaultValue]='select '''' union SELECT [PositionName] FROM [Dcx_Position]',[ValueType]=2,[RunValueType]=-1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=8,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=5,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="759" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="31">职位  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d156_职位"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,156,''AjaxF_'',156,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,156,''AjaxF_'',156);" EntId="156" IsField=1 DBField=1 IsPost=1 FieldName="职位" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="8" FId="31" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='156,' where  [FldUId]='a62d5f9f-29a3-4555-984f-d3c636f12a7e' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='a61881e6-a0f8-4104-86da-2b3fa1152d49'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(32,'a61881e6-a0f8-4104-86da-2b3fa1152d49',156,156,'00000000-0000-0000-0000-000000000000','办公电话',2,2,5,'',5,1,null,0,1,1,0,6,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="760" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="32">办公电话  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d156_办公电话"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,156,''AjaxF_'',156,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,156,''AjaxF_'',156);" EntId="156" IsField=1 DBField=1 IsPost=1 FieldName="办公电话" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="32" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'156,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=32,[Form_EntId]=156,[EntId]=156,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='办公电话',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=5,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=6,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="760" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="32">办公电话  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d156_办公电话"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,156,''AjaxF_'',156,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,156,''AjaxF_'',156);" EntId="156" IsField=1 DBField=1 IsPost=1 FieldName="办公电话" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="32" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='156,' where  [FldUId]='a61881e6-a0f8-4104-86da-2b3fa1152d49' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='11acd12d-862f-451f-b0e8-59043297bc53'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(33,'11acd12d-862f-451f-b0e8-59043297bc53',156,156,'00000000-0000-0000-0000-000000000000','家庭电话',2,2,6,'',5,1,null,0,1,1,0,7,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="761" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="33">家庭电话  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d156_家庭电话"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,156,''AjaxF_'',156,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,156,''AjaxF_'',156);" EntId="156" IsField=1 DBField=1 IsPost=1 FieldName="家庭电话" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="33" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'156,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=33,[Form_EntId]=156,[EntId]=156,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='家庭电话',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=6,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=7,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="761" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="33">家庭电话  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d156_家庭电话"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,156,''AjaxF_'',156,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,156,''AjaxF_'',156);" EntId="156" IsField=1 DBField=1 IsPost=1 FieldName="家庭电话" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="33" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='156,' where  [FldUId]='11acd12d-862f-451f-b0e8-59043297bc53' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='af211d4b-c1a5-473d-af95-bb1808d1be60'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(34,'af211d4b-c1a5-473d-af95-bb1808d1be60',156,156,'00000000-0000-0000-0000-000000000000','移动电话',2,2,7,'',5,1,null,0,1,1,0,8,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="762" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="34">移动电话  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d156_移动电话"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,156,''AjaxF_'',156,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,156,''AjaxF_'',156);" EntId="156" IsField=1 DBField=1 IsPost=1 FieldName="移动电话" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="34" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'156,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=34,[Form_EntId]=156,[EntId]=156,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='移动电话',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=7,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=8,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="762" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="34">移动电话  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d156_移动电话"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,156,''AjaxF_'',156,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,156,''AjaxF_'',156);" EntId="156" IsField=1 DBField=1 IsPost=1 FieldName="移动电话" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="34" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='156,' where  [FldUId]='af211d4b-c1a5-473d-af95-bb1808d1be60' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='d487af65-972a-4deb-9c15-6ebda40dc9ed'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(35,'d487af65-972a-4deb-9c15-6ebda40dc9ed',156,156,'00000000-0000-0000-0000-000000000000','传真号码',2,2,8,'',5,1,null,0,1,1,0,9,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="763" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="35">传真号码  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d156_传真号码"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,156,''AjaxF_'',156,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,156,''AjaxF_'',156);" EntId="156" IsField=1 DBField=1 IsPost=1 FieldName="传真号码" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="35" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'156,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=35,[Form_EntId]=156,[EntId]=156,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='传真号码',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=8,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=9,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="763" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="35">传真号码  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d156_传真号码"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,156,''AjaxF_'',156,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,156,''AjaxF_'',156);" EntId="156" IsField=1 DBField=1 IsPost=1 FieldName="传真号码" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="35" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='156,' where  [FldUId]='d487af65-972a-4deb-9c15-6ebda40dc9ed' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='c0d52313-5438-48e5-8ee8-21f8c1eb95d2'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(36,'c0d52313-5438-48e5-8ee8-21f8c1eb95d2',156,156,'00000000-0000-0000-0000-000000000000','电子邮件',2,2,9,'',5,1,null,0,1,1,0,10,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="764" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="36">电子邮件  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d156_电子邮件"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,156,''AjaxF_'',156,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,156,''AjaxF_'',156);" EntId="156" IsField=1 DBField=1 IsPost=1 FieldName="电子邮件" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="36" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'156,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=36,[Form_EntId]=156,[EntId]=156,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='电子邮件',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=9,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=10,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="764" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="36">电子邮件  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d156_电子邮件"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,156,''AjaxF_'',156,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,156,''AjaxF_'',156);" EntId="156" IsField=1 DBField=1 IsPost=1 FieldName="电子邮件" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="36" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='156,' where  [FldUId]='c0d52313-5438-48e5-8ee8-21f8c1eb95d2' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='81fe0e6a-85ae-4495-b574-32bac5e9c471'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(37,'81fe0e6a-85ae-4495-b574-32bac5e9c471',156,156,'00000000-0000-0000-0000-000000000000','备注',2,2,10,'',5,1,null,0,1,1,0,11,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="765" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="37">备注  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d156_备注"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,156,''AjaxF_'',156,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,156,''AjaxF_'',156);" EntId="156" IsField=1 DBField=1 IsPost=1 FieldName="备注" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="37" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'156,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=37,[Form_EntId]=156,[EntId]=156,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='备注',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=10,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=11,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="765" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="37">备注  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d156_备注"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,156,''AjaxF_'',156,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,156,''AjaxF_'',156);" EntId="156" IsField=1 DBField=1 IsPost=1 FieldName="备注" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="37" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='156,' where  [FldUId]='81fe0e6a-85ae-4495-b574-32bac5e9c471' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='ff93c3eb-417f-439c-8bde-e745710969ce'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(38,'ff93c3eb-417f-439c-8bde-e745710969ce',156,156,'00000000-0000-0000-0000-000000000000','创建时间',3,3,14,'{$date}',0,9,null,0,4,1,0,12,-1,0,0,'','','','{$date},','</span>
  </div>
</li>
<li areaid="766" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="38">创建时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d156_创建时间" class="form-lbl" style="width:201px;" IsForField=1 EntId="156" CId="4" FId="38" Vtp="0"  >','</span><input id="d156_创建时间_hid" type="hidden"  EntId="156" IsField=1 DBField=1 IsPost=1 FieldName="创建时间" dType="3" Vtp="0" RDT="3" Isc="0" RId="9" CId="4" FId="38" vlk=0    value="','" />',-1,-1,-1,-1,0,'156,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=38,[Form_EntId]=156,[EntId]=156,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='创建时间',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=14,[DefaultValue]='{$date}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=12,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$date},',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="766" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="38">创建时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d156_创建时间" class="form-lbl" style="width:201px;" IsForField=1 EntId="156" CId="4" FId="38" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d156_创建时间_hid" type="hidden"  EntId="156" IsField=1 DBField=1 IsPost=1 FieldName="创建时间" dType="3" Vtp="0" RDT="3" Isc="0" RId="9" CId="4" FId="38" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='156,' where  [FldUId]='ff93c3eb-417f-439c-8bde-e745710969ce' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='0c5add60-5a4b-4a31-9316-33d48ac037cd'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(39,'0c5add60-5a4b-4a31-9316-33d48ac037cd',156,156,'00000000-0000-0000-0000-000000000000','卡片所属',2,2,12,'{$UserName}',0,9,null,0,4,1,0,13,-1,0,0,'','','','{$username},','</span>
  </div>
</li>
<li areaid="767" style="height: 38px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="39">卡片所属  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','</span>
  </div>
</li>
</ul>
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="183" entid="156" class="tab_ul" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="768" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li areaid="769" istab="1" tabid="2" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1" style="display: none;">
<ul isgroup="1" groupid="184" entid="156" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="770" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: block;">
<ul isgroup="1" groupid="185" entid="156" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="771" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="156" groupid="186" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="772" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
<li areaid="773" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>','','','<span id="d156_卡片所属" class="form-lbl" style="width:201px;" IsForField=1 EntId="156" CId="4" FId="39" Vtp="0"  >','</span><input id="d156_卡片所属_hid" type="hidden"  EntId="156" IsField=1 DBField=1 IsPost=1 FieldName="卡片所属" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="39" vlk=0    value="','" />',-1,-1,-1,-1,0,'156,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=39,[Form_EntId]=156,[EntId]=156,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='卡片所属',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=12,[DefaultValue]='{$UserName}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=13,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$username},',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="767" style="height: 38px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="39">卡片所属  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
  </div>
</li>
</ul>
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="183" entid="156" class="tab_ul" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="768" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li areaid="769" istab="1" tabid="2" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1" style="display: none;">
<ul isgroup="1" groupid="184" entid="156" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="770" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: block;">
<ul isgroup="1" groupid="185" entid="156" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="771" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="156" groupid="186" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="772" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
<li areaid="773" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d156_卡片所属" class="form-lbl" style="width:201px;" IsForField=1 EntId="156" CId="4" FId="39" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d156_卡片所属_hid" type="hidden"  EntId="156" IsField=1 DBField=1 IsPost=1 FieldName="卡片所属" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="39" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='156,' where  [FldUId]='0c5add60-5a4b-4a31-9316-33d48ac037cd' 
      end



Delete from [Dcx_BrowseReport_Run]  where [EntId]=156

--Dcx_BrowseReport_Run
      if (select count(1) from [Dcx_BrowseReport_Run] where  [EntId]=156  )<1 
      begin 
           Insert into [Dcx_BrowseReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[DIYJsCss],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('41eeddfb-29e2-4e9c-be6a-1d0072a0c5f4','个人通讯录',156,31,'','<$156$>select [姓名],[职位],[性别],[分类],[办公电话],[家庭电话],[移动电话],[传真号码],[电子邮件],[Id] from 名片夹 where [Id]=''{$keyfieldvalue}''</$156$>',1,1,20,'','DcxRun.MChildR_156= {"MenuId":945,"MEntId":156,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"个人通讯录","EntMsg":{"E156":{"EntId":156,"EntName":"个人通讯录","KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','156*Id*2**2*名片夹*个人通讯录',3,'','2012-12-21 11:03:02',3,'','2013-11-17 3:17:17',1)
      end
      else 
      begin 
           update [Dcx_BrowseReport_Run] set [ReportId]='41eeddfb-29e2-4e9c-be6a-1d0072a0c5f4',[ReportName]='个人通讯录',[ModuleId]=31,[StaticHtml]='',[LoadingSql]='<$156$>select [姓名],[职位],[性别],[分类],[办公电话],[家庭电话],[移动电话],[传真号码],[电子邮件],[Id] from 名片夹 where [Id]=''{$keyfieldvalue}''</$156$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[DIYJsCss]='',[AutoPublicJs]='DcxRun.MChildR_156= {"MenuId":945,"MEntId":156,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"个人通讯录","EntMsg":{"E156":{"EntId":156,"EntName":"个人通讯录","KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='156*Id*2**2*名片夹*个人通讯录',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-21 11:03:02',[EditorId]=3,[Editor]='',[EditTime]='2013-11-17 3:17:17',[AccountId]=1 where  [EntId]=156 
      end




--Dcx_BrowseReportField_Run
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='f6cc4063-bb73-418d-816b-cdcc853bbec3'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'f6cc4063-bb73-418d-816b-cdcc853bbec3',156,156,'00000000-0000-0000-0000-000000000000',3,'姓名',1,1,'varchar',2,1,0,'','','','<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="156" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="469" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">个人通讯录</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="156" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="470" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">姓名  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="156" fieldname="姓名" fldid="1" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'156,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=1,[Report_EntId]=156,[EntId]=156,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='姓名',[FieldNO]=1,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="156" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="469" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">个人通讯录</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="156" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="470" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="1">姓名  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="156" fieldname="姓名" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='156,' where  [FldUId]='f6cc4063-bb73-418d-816b-cdcc853bbec3' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='17859518-313b-44f3-835c-645f5de9ac54'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'17859518-313b-44f3-835c-645f5de9ac54',156,156,'00000000-0000-0000-0000-000000000000',4,'职位',2,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="471" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">职位  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="156" fieldname="职位" fldid="2" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'156,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=2,[Report_EntId]=156,[EntId]=156,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=4,[FieldName]='职位',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="471" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">职位  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="156" fieldname="职位" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='156,' where  [FldUId]='17859518-313b-44f3-835c-645f5de9ac54' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='1cc4ddd8-4dde-4754-b02d-f3987f077f1b'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'1cc4ddd8-4dde-4754-b02d-f3987f077f1b',156,156,'00000000-0000-0000-0000-000000000000',13,'性别',3,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="472" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">性别  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="156" fieldname="性别" fldid="3" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'156,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=3,[Report_EntId]=156,[EntId]=156,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=13,[FieldName]='性别',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="472" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">性别  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="156" fieldname="性别" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='156,' where  [FldUId]='1cc4ddd8-4dde-4754-b02d-f3987f077f1b' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='a7e1b6de-cb13-48a9-a093-8086ba60f5a7'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'a7e1b6de-cb13-48a9-a093-8086ba60f5a7',156,156,'00000000-0000-0000-0000-000000000000',11,'分类',4,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="473" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">分类  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="156" fieldname="分类" fldid="4" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'156,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=4,[Report_EntId]=156,[EntId]=156,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=11,[FieldName]='分类',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="473" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">分类  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="156" fieldname="分类" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='156,' where  [FldUId]='a7e1b6de-cb13-48a9-a093-8086ba60f5a7' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='607c200a-7fb6-42f6-bebb-c7bfa25b49a6'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'607c200a-7fb6-42f6-bebb-c7bfa25b49a6',156,156,'00000000-0000-0000-0000-000000000000',5,'办公电话',5,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="474" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">办公电话  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="156" fieldname="办公电话" fldid="5" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'156,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=5,[Report_EntId]=156,[EntId]=156,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=5,[FieldName]='办公电话',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="474" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">办公电话  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="156" fieldname="办公电话" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='156,' where  [FldUId]='607c200a-7fb6-42f6-bebb-c7bfa25b49a6' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='293a30b3-98e2-4a18-a3cb-74a57355d6a4'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'293a30b3-98e2-4a18-a3cb-74a57355d6a4',156,156,'00000000-0000-0000-0000-000000000000',6,'家庭电话',6,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="475" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">家庭电话  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="156" fieldname="家庭电话" fldid="6" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'156,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=6,[Report_EntId]=156,[EntId]=156,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=6,[FieldName]='家庭电话',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="475" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">家庭电话  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="156" fieldname="家庭电话" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='156,' where  [FldUId]='293a30b3-98e2-4a18-a3cb-74a57355d6a4' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='a0331a1d-8cef-4bb2-87af-6e652ef6e2f5'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'a0331a1d-8cef-4bb2-87af-6e652ef6e2f5',156,156,'00000000-0000-0000-0000-000000000000',7,'移动电话',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="476" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">移动电话  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="156" fieldname="移动电话" fldid="7" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'156,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=7,[Report_EntId]=156,[EntId]=156,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=7,[FieldName]='移动电话',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="476" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">移动电话  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="156" fieldname="移动电话" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='156,' where  [FldUId]='a0331a1d-8cef-4bb2-87af-6e652ef6e2f5' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='92ba38bd-bb97-4894-9fc5-b33f23ac4840'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'92ba38bd-bb97-4894-9fc5-b33f23ac4840',156,156,'00000000-0000-0000-0000-000000000000',8,'传真号码',8,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="477" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="8">传真号码  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="156" fieldname="传真号码" fldid="8" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'156,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=8,[Report_EntId]=156,[EntId]=156,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=8,[FieldName]='传真号码',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="477" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="8">传真号码  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="156" fieldname="传真号码" fldid="8" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='156,' where  [FldUId]='92ba38bd-bb97-4894-9fc5-b33f23ac4840' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='e0264fa5-bde6-4f6f-a2cc-772d88ab9387'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'e0264fa5-bde6-4f6f-a2cc-772d88ab9387',156,156,'00000000-0000-0000-0000-000000000000',9,'电子邮件',9,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="478" style="height: 38px; width: 792px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="9">电子邮件  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="156" fieldname="电子邮件" fldid="9" columntypeid="1" class="form-ctr">','</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="156" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="483" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="484" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="156" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="485" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="156" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="486" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="156" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="487" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="488" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',-1,-1,-1,-1,0,'156,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=9,[Report_EntId]=156,[EntId]=156,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=9,[FieldName]='电子邮件',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="478" style="height: 38px; width: 792px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="9">电子邮件  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="156" fieldname="电子邮件" fldid="9" columntypeid="1" class="form-ctr">',[LastHtml]='</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="156" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="483" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="484" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="156" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="485" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="156" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="486" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="156" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="487" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="488" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='156,' where  [FldUId]='e0264fa5-bde6-4f6f-a2cc-772d88ab9387' 
      end



Delete from [Dcx_ListReport_Run]  where [EntId]=156

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=156  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('21b4b622-2dd5-40e4-a11a-eb725035b884','个人通讯录',156,1,'','','<$156$>select *  from (select row_number() over( order by [Id])as dcx_rowid,[姓名],[职位],[性别],[分类],[办公电话],[家庭电话],[移动电话],[传真号码],[电子邮件],[Id] from 名片夹  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$156$><$156:Count$>select count([Id]) from 名片夹 where {$SearchArea}</$156:Count$>',1,1,20,'DcxRun.ListR_156= {"MenuId":945,"MEntId":156,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"个人通讯录","EntMsg":{"E156":{"EntId":156,"EntName":"个人通讯录","KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','156*Id*2**2*名片夹*个人通讯录',3,'','2012-12-22 5:16:19',3,'','2013-11-16 20:15:37',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='21b4b622-2dd5-40e4-a11a-eb725035b884',[ReportName]='个人通讯录',[ModuleId]=1,[StaticHtml]='',[DIYJsCss]='',[LoadingSql]='<$156$>select *  from (select row_number() over( order by [Id])as dcx_rowid,[姓名],[职位],[性别],[分类],[办公电话],[家庭电话],[移动电话],[传真号码],[电子邮件],[Id] from 名片夹  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$156$><$156:Count$>select count([Id]) from 名片夹 where {$SearchArea}</$156:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[AutoPublicJs]='DcxRun.ListR_156= {"MenuId":945,"MEntId":156,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"个人通讯录","EntMsg":{"E156":{"EntId":156,"EntName":"个人通讯录","KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='156*Id*2**2*名片夹*个人通讯录',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-22 5:16:19',[EditorId]=3,[Editor]='',[EditTime]='2013-11-16 20:15:37',[AccountId]=1 where  [EntId]=156 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='ef288622-ce0b-6710-7cb2-6e84ac586c2f'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(194,'ef288622-ce0b-6710-7cb2-6e84ac586c2f',156,156,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="85" entid="156" style="width: 1170px;" ctrlprex="ListR_" isrple="1"> <li areaid="1376" class="tool-li" style="position: static;">
</li><li areaid="1377" class="tool-li" style="position: static;"><a id="ListR_156_btn_buildNew" class="list-bt-add" title="添   加" href="javascript:void(0);" onclick="javascript:DcxCom.ShowAddDataDlg(156,''ListR_'');">添   加</a></li>
<li areaid="1378" class="tool-li" style="position: static;"><a id="ListR_156_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(156,''ListR_'');">删   除</a></li>
<li areaid="1379" class="tool-li" style="position: static;"><a id="ListR_156_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(156,''ListR_'');">导   出</a></li>
<li areaid="1380" class="tool-li" style="position: static;"><a id="ListR_156_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(156,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_156" style="position: static;">
<a id="ListR_156_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(156,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_156_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(156,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_156_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(156,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_156_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="86" entid="156" class="list-head-ul" style="width: 1198px;" ctrlprex="ListR_" isrple="1">
<li areaid="1382" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_156" onclick="javascript:DcxCom.CheckedAll(this,156,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="1383" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">姓名 </label></li><li areaid="1384" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">职位 </label></li><li areaid="1385" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">性别 </label></li><li areaid="1386" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">分类 </label></li><li areaid="1387" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">办公电话 </label></li><li areaid="1388" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">家庭电话 </label></li><li areaid="1389" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">移动电话 </label></li><li areaid="1390" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">传真号码 </label></li><li areaid="1391" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">电子邮件 </label></li><li areaid="1392" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="编辑"><span class="i">编辑</span></a></div></li><li areaid="1393" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="1394" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">','',-1,87,-1,-1,1,'156,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=194,[Report_EntId]=156,[EntId]=156,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="85" entid="156" style="width: 1170px;" ctrlprex="ListR_" isrple="1"> <li areaid="1376" class="tool-li" style="position: static;">
</li><li areaid="1377" class="tool-li" style="position: static;"><a id="ListR_156_btn_buildNew" class="list-bt-add" title="添   加" href="javascript:void(0);" onclick="javascript:DcxCom.ShowAddDataDlg(156,''ListR_'');">添   加</a></li>
<li areaid="1378" class="tool-li" style="position: static;"><a id="ListR_156_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(156,''ListR_'');">删   除</a></li>
<li areaid="1379" class="tool-li" style="position: static;"><a id="ListR_156_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(156,''ListR_'');">导   出</a></li>
<li areaid="1380" class="tool-li" style="position: static;"><a id="ListR_156_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(156,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_156" style="position: static;">
<a id="ListR_156_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(156,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_156_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(156,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_156_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(156,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_156_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="86" entid="156" class="list-head-ul" style="width: 1198px;" ctrlprex="ListR_" isrple="1">
<li areaid="1382" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_156" onclick="javascript:DcxCom.CheckedAll(this,156,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="1383" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">姓名 </label></li><li areaid="1384" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">职位 </label></li><li areaid="1385" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">性别 </label></li><li areaid="1386" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">分类 </label></li><li areaid="1387" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">办公电话 </label></li><li areaid="1388" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">家庭电话 </label></li><li areaid="1389" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">移动电话 </label></li><li areaid="1390" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">传真号码 </label></li><li areaid="1391" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">电子邮件 </label></li><li areaid="1392" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="编辑"><span class="i">编辑</span></a></div></li><li areaid="1393" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="1394" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='156,' where  [FldUId]='ef288622-ce0b-6710-7cb2-6e84ac586c2f' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='9df9ed85-a721-464a-b943-4dd598725949'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(154,'9df9ed85-a721-464a-b943-4dd598725949',156,156,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',2,1,'',2,21,0,'','','','islonly="1" isgroup="1" groupid="87" class="list-body-ul" style="width: 1198px;" isrple="1">
<li areaid="1395" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="156" issyscheck="1" keyvalue="','',-1,87,-1,-1,1,'156,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=154,[Report_EntId]=156,[EntId]=156,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='islonly="1" isgroup="1" groupid="87" class="list-body-ul" style="width: 1198px;" isrple="1">
<li areaid="1395" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="156" issyscheck="1" keyvalue="',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='156,' where  [FldUId]='9df9ed85-a721-464a-b943-4dd598725949' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='690d4a39-68cb-4ccd-b145-13c5d9bb0450'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'690d4a39-68cb-4ccd-b145-13c5d9bb0450',156,156,'00000000-0000-0000-0000-000000000000',3,'姓名',3,1,'varchar',2,1,0,'','','','" type="checkbox"></li><li areaid="1396" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="156" fieldname="姓名" fldid="1" columntypeid="1" class="form-ctr">','',-1,87,-1,-1,1,'156,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=1,[Report_EntId]=156,[EntId]=156,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='姓名',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='" type="checkbox"></li><li areaid="1396" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="156" fieldname="姓名" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='156,' where  [FldUId]='690d4a39-68cb-4ccd-b145-13c5d9bb0450' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='2aaa4c81-cc48-47e6-ad85-68acbd47f118'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'2aaa4c81-cc48-47e6-ad85-68acbd47f118',156,156,'00000000-0000-0000-0000-000000000000',4,'职位',4,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1397" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="156" fieldname="职位" fldid="2" columntypeid="1" class="form-ctr">','',-1,87,-1,-1,1,'156,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=2,[Report_EntId]=156,[EntId]=156,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=4,[FieldName]='职位',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1397" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="156" fieldname="职位" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='156,' where  [FldUId]='2aaa4c81-cc48-47e6-ad85-68acbd47f118' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='9fc42360-cca7-464e-a5be-24c960682361'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'9fc42360-cca7-464e-a5be-24c960682361',156,156,'00000000-0000-0000-0000-000000000000',13,'性别',5,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1398" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="156" fieldname="性别" fldid="3" columntypeid="1" class="form-ctr">','',-1,87,-1,-1,1,'156,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=3,[Report_EntId]=156,[EntId]=156,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=13,[FieldName]='性别',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1398" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="156" fieldname="性别" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='156,' where  [FldUId]='9fc42360-cca7-464e-a5be-24c960682361' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='80bd6803-e7a2-4eb7-b38b-00db314eff66'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'80bd6803-e7a2-4eb7-b38b-00db314eff66',156,156,'00000000-0000-0000-0000-000000000000',11,'分类',6,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1399" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="156" fieldname="分类" fldid="4" columntypeid="1" class="form-ctr">','',-1,87,-1,-1,1,'156,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=4,[Report_EntId]=156,[EntId]=156,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=11,[FieldName]='分类',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1399" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="156" fieldname="分类" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='156,' where  [FldUId]='80bd6803-e7a2-4eb7-b38b-00db314eff66' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='1083a8f3-4c90-454b-a20b-943fef848a37'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'1083a8f3-4c90-454b-a20b-943fef848a37',156,156,'00000000-0000-0000-0000-000000000000',5,'办公电话',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1400" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="156" fieldname="办公电话" fldid="5" columntypeid="1" class="form-ctr">','',-1,87,-1,-1,1,'156,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=5,[Report_EntId]=156,[EntId]=156,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=5,[FieldName]='办公电话',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1400" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="156" fieldname="办公电话" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='156,' where  [FldUId]='1083a8f3-4c90-454b-a20b-943fef848a37' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='5ad48d01-7e86-455d-9fda-eed7ad89ac45'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'5ad48d01-7e86-455d-9fda-eed7ad89ac45',156,156,'00000000-0000-0000-0000-000000000000',6,'家庭电话',8,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1401" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="156" fieldname="家庭电话" fldid="6" columntypeid="1" class="form-ctr">','',-1,87,-1,-1,1,'156,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=6,[Report_EntId]=156,[EntId]=156,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=6,[FieldName]='家庭电话',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1401" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="156" fieldname="家庭电话" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='156,' where  [FldUId]='5ad48d01-7e86-455d-9fda-eed7ad89ac45' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='077daf29-2059-4d7d-bbdd-c02989cb2ab0'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'077daf29-2059-4d7d-bbdd-c02989cb2ab0',156,156,'00000000-0000-0000-0000-000000000000',7,'移动电话',9,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1402" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="156" fieldname="移动电话" fldid="7" columntypeid="1" class="form-ctr">','',-1,87,-1,-1,1,'156,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=7,[Report_EntId]=156,[EntId]=156,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=7,[FieldName]='移动电话',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1402" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="156" fieldname="移动电话" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='156,' where  [FldUId]='077daf29-2059-4d7d-bbdd-c02989cb2ab0' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='5c9c539a-9f1a-4bb3-923a-58a8f68259eb'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'5c9c539a-9f1a-4bb3-923a-58a8f68259eb',156,156,'00000000-0000-0000-0000-000000000000',8,'传真号码',10,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1403" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="156" fieldname="传真号码" fldid="8" columntypeid="1" class="form-ctr">','',-1,87,-1,-1,1,'156,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=8,[Report_EntId]=156,[EntId]=156,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=8,[FieldName]='传真号码',[FieldNO]=10,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1403" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="156" fieldname="传真号码" fldid="8" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='156,' where  [FldUId]='5c9c539a-9f1a-4bb3-923a-58a8f68259eb' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='81aa47e9-c2a5-42ff-be24-95c225fd3aa0'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'81aa47e9-c2a5-42ff-be24-95c225fd3aa0',156,156,'00000000-0000-0000-0000-000000000000',9,'电子邮件',11,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1404" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="156" fieldname="电子邮件" fldid="9" columntypeid="1" class="form-ctr">','',-1,87,-1,-1,1,'156,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=9,[Report_EntId]=156,[EntId]=156,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=9,[FieldName]='电子邮件',[FieldNO]=11,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1404" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="156" fieldname="电子邮件" fldid="9" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='156,' where  [FldUId]='81aa47e9-c2a5-42ff-be24-95c225fd3aa0' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='d6fa3557-5024-4bc4-a759-83337a3e6c4b'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(155,'d6fa3557-5024-4bc4-a759-83337a3e6c4b',156,156,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',12,1,'',2,21,0,'','','','</span>
  </div>
</li><li areaid="1405" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,156,''ListR_'',''','',-1,87,-1,-1,1,'156,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=155,[Report_EntId]=156,[EntId]=156,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=12,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1405" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,156,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='156,' where  [FldUId]='d6fa3557-5024-4bc4-a759-83337a3e6c4b' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='5c38036c-1865-4a66-8933-19b9135a1921'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(156,'5c38036c-1865-4a66-8933-19b9135a1921',156,156,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',13,1,'',2,21,0,'','','',''',null,1040,480);">
<span class="i">编辑</span></a></div>
</li><li areaid="1406" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,156,''ListR_'',''','',-1,87,-1,-1,1,'156,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=156,[Report_EntId]=156,[EntId]=156,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=13,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">编辑</span></a></div>
</li><li areaid="1406" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,156,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='156,' where  [FldUId]='5c38036c-1865-4a66-8933-19b9135a1921' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='ab194a36-63de-44c1-b4f8-0fe3c67ac142'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(157,'ab194a36-63de-44c1-b4f8-0fe3c67ac142',156,156,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',14,1,'',2,21,0,'','','',''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="1407" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,156,''ListR_'',''','',-1,87,-1,-1,1,'156,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=157,[Report_EntId]=156,[EntId]=156,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=14,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="1407" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,156,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='156,' where  [FldUId]='ab194a36-63de-44c1-b4f8-0fe3c67ac142' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='20bcaf93-7b9c-2317-0ae6-fb1ac1948009'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(195,'20bcaf93-7b9c-2317-0ae6-fb1ac1948009',156,156,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',15,-1,'varchar',2,13,0,'','','',''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>','</div>
</div>
<!-- 结束 --></div>',-1,87,-1,-1,1,'156,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=195,[Report_EntId]=156,[EntId]=156,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=15,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>',[LastHtml]='</div>
</div>
<!-- 结束 --></div>',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='156,' where  [FldUId]='20bcaf93-7b9c-2317-0ae6-fb1ac1948009' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=920

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=920  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(920,null,'名片夹','名片夹',0,0,0,0,0,0,30,1,3,'admin','2013-12-15 17:32:47',3,'admin','2013-12-15 17:32:47',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='名片夹',[DBTableByName]='名片夹',[IsForbid]=0,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=30,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:47',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:47',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=920 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=920  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18735,1,30,920,'int',1,1,1,'名片夹','Id','Id','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='名片夹',[FieldName]='Id',[FieldByname]='Id',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=920  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=920  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18736,2,30,920,'varchar',2,1,1,'名片夹','编号','编号','',0,0,1,13,13,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='名片夹',[FieldName]='编号',[FieldByname]='编号',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=13,[Precision]=13,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=920  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=920  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18737,3,30,920,'varchar',2,1,1,'名片夹','姓名','姓名','',0,0,1,10,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='名片夹',[FieldName]='姓名',[FieldByname]='姓名',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=10,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=920  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=920  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18738,4,30,920,'varchar',2,1,1,'名片夹','职位','职位','',0,0,1,10,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='名片夹',[FieldName]='职位',[FieldByname]='职位',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=10,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=920  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=920  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18739,5,30,920,'varchar',2,1,1,'名片夹','办公电话','办公电话','',0,0,1,20,20,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='名片夹',[FieldName]='办公电话',[FieldByname]='办公电话',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=20,[Precision]=20,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=920  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=920  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18740,6,30,920,'varchar',2,1,1,'名片夹','家庭电话','家庭电话','',0,0,1,20,20,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='名片夹',[FieldName]='家庭电话',[FieldByname]='家庭电话',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=20,[Precision]=20,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=920  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=920  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18741,7,30,920,'varchar',2,1,1,'名片夹','移动电话','移动电话','',0,0,1,20,20,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='名片夹',[FieldName]='移动电话',[FieldByname]='移动电话',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=20,[Precision]=20,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=920  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=920  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18742,8,30,920,'varchar',2,1,1,'名片夹','传真号码','传真号码','',0,0,1,20,20,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='名片夹',[FieldName]='传真号码',[FieldByname]='传真号码',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=20,[Precision]=20,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=920  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=920  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18743,9,30,920,'varchar',2,1,1,'名片夹','电子邮件','电子邮件','',0,0,1,30,30,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='名片夹',[FieldName]='电子邮件',[FieldByname]='电子邮件',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=30,[Precision]=30,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=920  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=920  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18744,10,30,920,'varchar',2,1,1,'名片夹','备注','备注','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='名片夹',[FieldName]='备注',[FieldByname]='备注',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=920  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=920  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18745,11,30,920,'varchar',2,1,1,'名片夹','分类','分类','',0,0,1,10,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='名片夹',[FieldName]='分类',[FieldByname]='分类',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=10,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=920  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=920  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18746,12,30,920,'varchar',2,1,1,'名片夹','卡片所属','卡片所属','',0,0,1,10,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='名片夹',[FieldName]='卡片所属',[FieldByname]='卡片所属',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=10,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=920  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=920  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18747,13,30,920,'varchar',2,1,1,'名片夹','性别','性别','',0,0,1,10,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='名片夹',[FieldName]='性别',[FieldByname]='性别',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=10,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=920  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=920  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18748,14,30,920,'datetime',3,1,1,'名片夹','创建时间','创建时间','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='名片夹',[FieldName]='创建时间',[FieldByname]='创建时间',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=920  and  [FieldId]=14 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=948  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(948,'25cca757-44e9-46c1-af6a-ac657cbd0810','我的桌面',0,'',1,'\Images\icon2\18_home[1].gif','\Images\icon2\18_home[1].gif',1,'main',0,0,'',30,0,30,0,1,1,'2013-3-10 3:56:48','',0,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='25cca757-44e9-46c1-af6a-ac657cbd0810',[MenuName]='我的桌面',[ParentId]=0,[ProPath]='',[TemplateId]=1,[ImgPath]='\Images\icon2\18_home[1].gif',[ExImgPath]='\Images\icon2\18_home[1].gif',[OrderBy]=1,[Target]='main',[IsOpen]=0,[IsHidden]=0,[Remark]='',[SSystemId]=30,[SMenuId]=0,[SystemId]=30,[EntityCount]=0,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]='2013-3-10 3:56:48',[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=948 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=948  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(8,948,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=948  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=1028  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(1028,'efb170c6-d35e-449b-b6fa-67a3a1d04f41','业务通讯录',1963,'/Template/default/ListReport/ListReport_Tree001.aspx',1,'/images/default.gif','/images/default.gif',1000,'main',0,1,'',30,0,30,1,1,1,null,'',0,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='efb170c6-d35e-449b-b6fa-67a3a1d04f41',[MenuName]='业务通讯录',[ParentId]=1963,[ProPath]='/Template/default/ListReport/ListReport_Tree001.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=1000,[Target]='main',[IsOpen]=0,[IsHidden]=1,[Remark]='',[SSystemId]=30,[SMenuId]=0,[SystemId]=30,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=1028 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=1028  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(9,1028,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=1028  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=49  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(49,1028,'业务通讯录',1,1127,0,'业务通讯录',0,0,1,30,49,null,null,30,null,null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=1028,[EntName]='业务通讯录',[MEnt]=1,[DBTableId]=1127,[DBConnectId]=0,[DBTableName]='业务通讯录',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=30,[SEntId]=49,[FSystemId]=null,[FEntId]=null,[SystemId]=30,[Remark]=null,[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=49 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=49

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=49  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(10280,1028,49,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=1028,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=49  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=49

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=49  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20504,30,1028,49,13,1,1,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=1028,[TemplateId]=13,[ModuleId]=1,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=49  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=49  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20505,30,1028,49,13,2,9,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=1028,[TemplateId]=13,[ModuleId]=9,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=49  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=49  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20506,30,1028,49,13,3,14,1,4,2,'/Template/Default/Form/AjaxForm/AjaxForm008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=1028,[TemplateId]=13,[ModuleId]=14,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='/Template/Default/Form/AjaxForm/AjaxForm008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=49  and  [ModuleTypeId]=3 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=49  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20507,30,1028,49,13,16,31,1,5,2,'/Template/Default/Browse/Browse008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=1028,[TemplateId]=13,[ModuleId]=31,[GroupId]=1,[AreaId]=5,[ShowMode]=2,[AreaUrl]='/Template/Default/Browse/Browse008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=49  and  [ModuleTypeId]=16 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_AjaxForm_Run]  where [EntId]=49

--Dcx_AjaxForm_Run
      if (select count(1) from [Dcx_AjaxForm_Run] where  [EntId]=49  )<1 
      begin 
           Insert into [Dcx_AjaxForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('f527a6d5-1f70-4e9b-9622-714056e60163','业务通讯录',49,14,'','',0,'','','DcxRun.AjaxF_49= {"MenuId":1028,"MEntId":49,"EntName":"业务通讯录","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E49":{"EntId":49,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_49.EntMsg.E49.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"业务通讯录","EntId":49,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"姓名":{"DtId":2,"DB":1,"CId":1,"FL":-1},"单位":{"DtId":2,"DB":1,"CId":1,"FL":-1},"职务":{"DtId":2,"DB":1,"CId":8,"FL":-1},"姓别":{"DtId":2,"DB":1,"CId":7,"FL":-1},"客户类型":{"DtId":2,"DB":1,"CId":3,"FL":-1},"电话":{"DtId":2,"DB":1,"CId":1,"FL":-1},"移动电话":{"DtId":2,"DB":1,"CId":1,"FL":-1},"传真":{"DtId":2,"DB":1,"CId":1,"FL":-1},"电子邮件":{"DtId":2,"DB":1,"CId":1,"FL":-1},"填写人":{"DtId":2,"DB":1,"CId":4,"FL":-1},"部门":{"DtId":2,"DB":1,"CId":4,"FL":-1},"创建时间":{"DtId":3,"DB":1,"CId":4,"FL":-1}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_49.EntMsg.E49.GetDataRowModel=function()
{
    return {"姓名":"","单位":"","职务":"","姓别":"","客户类型":"","电话":"","移动电话":"","传真":"","电子邮件":"","填写人":"","部门":"","创建时间":new Date(),"Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_49.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(49,''AjaxF_'',buildNew,closeDlg);

}','<$49$>select [姓名],[单位],[职务],[姓别],[客户类型],[电话],[移动电话],[传真],[电子邮件],[填写人],[部门],[创建时间],[Id] from 业务通讯录 where [Id]=''{$keyfieldvalue}''</$49$>',20,'','','','49*Id*2**2*业务通讯录*业务通讯录',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 7:02:48',3,'admin','2013-11-16 18:42:35',1)
      end
      else 
      begin 
           update [Dcx_AjaxForm_Run] set [FormId]='f527a6d5-1f70-4e9b-9622-714056e60163',[FormName]='业务通讯录',[ModuleId]=14,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.AjaxF_49= {"MenuId":1028,"MEntId":49,"EntName":"业务通讯录","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E49":{"EntId":49,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_49.EntMsg.E49.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"业务通讯录","EntId":49,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"姓名":{"DtId":2,"DB":1,"CId":1,"FL":-1},"单位":{"DtId":2,"DB":1,"CId":1,"FL":-1},"职务":{"DtId":2,"DB":1,"CId":8,"FL":-1},"姓别":{"DtId":2,"DB":1,"CId":7,"FL":-1},"客户类型":{"DtId":2,"DB":1,"CId":3,"FL":-1},"电话":{"DtId":2,"DB":1,"CId":1,"FL":-1},"移动电话":{"DtId":2,"DB":1,"CId":1,"FL":-1},"传真":{"DtId":2,"DB":1,"CId":1,"FL":-1},"电子邮件":{"DtId":2,"DB":1,"CId":1,"FL":-1},"填写人":{"DtId":2,"DB":1,"CId":4,"FL":-1},"部门":{"DtId":2,"DB":1,"CId":4,"FL":-1},"创建时间":{"DtId":3,"DB":1,"CId":4,"FL":-1}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_49.EntMsg.E49.GetDataRowModel=function()
{
    return {"姓名":"","单位":"","职务":"","姓别":"","客户类型":"","电话":"","移动电话":"","传真":"","电子邮件":"","填写人":"","部门":"","创建时间":new Date(),"Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_49.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(49,''AjaxF_'',buildNew,closeDlg);

}',[LoadingSql]='<$49$>select [姓名],[单位],[职务],[姓别],[客户类型],[电话],[移动电话],[传真],[电子邮件],[填写人],[部门],[创建时间],[Id] from 业务通讯录 where [Id]=''{$keyfieldvalue}''</$49$>',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='49*Id*2**2*业务通讯录*业务通讯录',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 7:02:48',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-16 18:42:35',[AccountId]=1 where  [EntId]=49 
      end




--Dcx_AjaxFormField_Run
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='e368509f-bc09-418c-9ae7-814f3cca17ce'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'e368509f-bc09-418c-9ae7-814f3cca17ce',49,49,'00000000-0000-0000-0000-000000000000','姓名',2,2,2,'',5,1,null,0,1,1,0,1,-1,0,0,'','','','','<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="49" groupid="181" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="715" class="li-area-title" scroll="no" style="width: 94px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">业务通讯录</span></div>
</li>
<li areaid="716" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
<li areaid="717" class="li-area1" scroll="no" style="display: none; position: static;">
<a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.AjaxF_49.SubmitForm(false);">
<span class="op_bt_i">保存</span> </a></li>
<li areaid="718" class="li-area1" scroll="no" style="display: none; position: static;">
<a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(49,''AjaxF_'');"><span class="op_bt_i">新建</span>
</a></li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="182" entid="49" class="ul-mform" ctrlprex="AjaxF_" isrple="1">
<li areaid="719" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="1" istitle="1">姓名 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d49_姓名"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,49,''AjaxF_'',49,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,49,''AjaxF_'',49);" EntId="49" IsField=1 DBField=1 IsPost=1 FieldName="姓名" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="1" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'49,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=1,[Form_EntId]=49,[EntId]=49,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='姓名',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=2,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="49" groupid="181" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="715" class="li-area-title" scroll="no" style="width: 94px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">业务通讯录</span></div>
</li>
<li areaid="716" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
<li areaid="717" class="li-area1" scroll="no" style="display: none; position: static;">
<a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.AjaxF_49.SubmitForm(false);">
<span class="op_bt_i">保存</span> </a></li>
<li areaid="718" class="li-area1" scroll="no" style="display: none; position: static;">
<a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(49,''AjaxF_'');"><span class="op_bt_i">新建</span>
</a></li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="182" entid="49" class="ul-mform" ctrlprex="AjaxF_" isrple="1">
<li areaid="719" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="1" istitle="1">姓名 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d49_姓名"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,49,''AjaxF_'',49,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,49,''AjaxF_'',49);" EntId="49" IsField=1 DBField=1 IsPost=1 FieldName="姓名" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="1" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='49,' where  [FldUId]='e368509f-bc09-418c-9ae7-814f3cca17ce' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='d811390b-fa64-4802-a1fc-338f90f0cc95'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'d811390b-fa64-4802-a1fc-338f90f0cc95',49,49,'00000000-0000-0000-0000-000000000000','单位',2,2,4,'',5,1,null,0,1,1,0,2,-1,0,0,'','','','','</span>
</div>
</li>
<li areaid="720" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2" istitle="1">单位 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d49_单位"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,49,''AjaxF_'',49,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,49,''AjaxF_'',49);" EntId="49" IsField=1 DBField=1 IsPost=1 FieldName="单位" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="2" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'49,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2,[Form_EntId]=49,[EntId]=49,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='单位',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=4,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=2,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="720" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2" istitle="1">单位 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d49_单位"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,49,''AjaxF_'',49,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,49,''AjaxF_'',49);" EntId="49" IsField=1 DBField=1 IsPost=1 FieldName="单位" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="2" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='49,' where  [FldUId]='d811390b-fa64-4802-a1fc-338f90f0cc95' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='a7a47105-cf9e-40f9-b18b-3af7957cf7a4'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'a7a47105-cf9e-40f9-b18b-3af7957cf7a4',49,49,'00000000-0000-0000-0000-000000000000','职务',2,2,5,'select '''' union SELECT [PositionName] FROM [Dcx_Position]',2,-1,null,0,8,1,0,3,-1,0,0,'','','','','</span>
</div>
</li>
<li areaid="721" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3">职务  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d49_职务"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,49,''AjaxF_'',49,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,49,''AjaxF_'',49);" EntId="49" IsField=1 DBField=1 IsPost=1 FieldName="职务" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="8" FId="3" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'49,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3,[Form_EntId]=49,[EntId]=49,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='职务',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=5,[DefaultValue]='select '''' union SELECT [PositionName] FROM [Dcx_Position]',[ValueType]=2,[RunValueType]=-1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=8,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=3,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="721" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="3">职务  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d49_职务"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,49,''AjaxF_'',49,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,49,''AjaxF_'',49);" EntId="49" IsField=1 DBField=1 IsPost=1 FieldName="职务" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="8" FId="3" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='49,' where  [FldUId]='a7a47105-cf9e-40f9-b18b-3af7957cf7a4' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='b9cb30ec-f59e-4406-87b4-cec22d1422da'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'b9cb30ec-f59e-4406-87b4-cec22d1422da',49,49,'00000000-0000-0000-0000-000000000000','姓别',2,2,3,'',1,7,null,0,7,1,0,4,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="722" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4">姓别  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<div id="d49_姓别" class="form-radio" style="" EntId="49" IsField=1 DBField=1 IsPost=1 FieldName="姓别" dType="2" Vtp="1" RDT="2" Isc="0" RId="7" CId="7" FId="4" vlk=0    Type="1"  onclick ="javascript:DcxVld.Validate(this,49,''AjaxF_'',49);" onfocus ="javascript:DcxVld.ValidateFocus(this,49,''AjaxF_'',49);"><span class="form-radio-item"  >
<input id="ddcx_49_姓别_0"  name="ddcx_49_姓别"  type="radio"  text="男"  value="男"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_49_姓别_0">男</label></span>
<span class="form-radio-item"  >
<input id="ddcx_49_姓别_1"  name="ddcx_49_姓别"  type="radio"  text="女"  value="女"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_49_姓别_1">女</label></span>
<span class="clearfix"></span>','</div>','',-1,-1,-1,-1,0,'49,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4,[Form_EntId]=49,[EntId]=49,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='姓别',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=3,[DefaultValue]='',[ValueType]=1,[RunValueType]=7,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=7,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=4,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="722" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="4">姓别  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d49_姓别" class="form-radio" style="" EntId="49" IsField=1 DBField=1 IsPost=1 FieldName="姓别" dType="2" Vtp="1" RDT="2" Isc="0" RId="7" CId="7" FId="4" vlk=0    Type="1"  onclick ="javascript:DcxVld.Validate(this,49,''AjaxF_'',49);" onfocus ="javascript:DcxVld.ValidateFocus(this,49,''AjaxF_'',49);"><span class="form-radio-item"  >
<input id="ddcx_49_姓别_0"  name="ddcx_49_姓别"  type="radio"  text="男"  value="男"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_49_姓别_0">男</label></span>
<span class="form-radio-item"  >
<input id="ddcx_49_姓别_1"  name="ddcx_49_姓别"  type="radio"  text="女"  value="女"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_49_姓别_1">女</label></span>
<span class="clearfix"></span>',[CtrlbackHtml]='</div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='49,' where  [FldUId]='b9cb30ec-f59e-4406-87b4-cec22d1422da' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='6775d2fe-a838-4354-b8b8-bcb57b88502c'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'6775d2fe-a838-4354-b8b8-bcb57b88502c',49,49,'00000000-0000-0000-0000-000000000000','客户类型',2,2,10,'select 参数文本值 from 参数表 where 参数类型=''客户类型''',2,1,null,0,3,1,0,5,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="723" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="5">客户类型  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<select id="d49_客户类型" name="d49_客户类型" class="form-select"  onchange ="javascript:DcxVld.Validate(this,49,''AjaxF_'',49,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,49,''AjaxF_'',49);" EntId="49" IsField=1 DBField=1 IsPost=1 FieldName="客户类型" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="3" FId="5" vlk=0    style="width:201px;">','</select>','',-1,-1,-1,-1,0,'49,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=5,[Form_EntId]=49,[EntId]=49,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='客户类型',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=10,[DefaultValue]='select 参数文本值 from 参数表 where 参数类型=''客户类型''',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=5,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="723" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="5">客户类型  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d49_客户类型" name="d49_客户类型" class="form-select"  onchange ="javascript:DcxVld.Validate(this,49,''AjaxF_'',49,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,49,''AjaxF_'',49);" EntId="49" IsField=1 DBField=1 IsPost=1 FieldName="客户类型" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="3" FId="5" vlk=0    style="width:201px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='49,' where  [FldUId]='6775d2fe-a838-4354-b8b8-bcb57b88502c' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='74867b8e-1282-4b1d-9341-a504c402f82f'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'74867b8e-1282-4b1d-9341-a504c402f82f',49,49,'00000000-0000-0000-0000-000000000000','电话',2,2,6,'',5,1,null,0,1,1,0,6,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="724" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="6">电话  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d49_电话"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,49,''AjaxF_'',49,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,49,''AjaxF_'',49);" EntId="49" IsField=1 DBField=1 IsPost=1 FieldName="电话" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="6" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'49,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=6,[Form_EntId]=49,[EntId]=49,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='电话',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=6,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=6,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="724" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="6">电话  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d49_电话"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,49,''AjaxF_'',49,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,49,''AjaxF_'',49);" EntId="49" IsField=1 DBField=1 IsPost=1 FieldName="电话" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="6" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='49,' where  [FldUId]='74867b8e-1282-4b1d-9341-a504c402f82f' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='7e92f2c9-674d-43cd-89be-038f4300db50'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'7e92f2c9-674d-43cd-89be-038f4300db50',49,49,'00000000-0000-0000-0000-000000000000','移动电话',2,2,7,'',5,1,null,0,1,1,0,7,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="725" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="7">移动电话  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d49_移动电话"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,49,''AjaxF_'',49,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,49,''AjaxF_'',49);" EntId="49" IsField=1 DBField=1 IsPost=1 FieldName="移动电话" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="7" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'49,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=7,[Form_EntId]=49,[EntId]=49,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='移动电话',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=7,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=7,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="725" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="7">移动电话  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d49_移动电话"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,49,''AjaxF_'',49,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,49,''AjaxF_'',49);" EntId="49" IsField=1 DBField=1 IsPost=1 FieldName="移动电话" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="7" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='49,' where  [FldUId]='7e92f2c9-674d-43cd-89be-038f4300db50' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='f207a066-e5df-4e41-bf40-dd84bb23b77b'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'f207a066-e5df-4e41-bf40-dd84bb23b77b',49,49,'00000000-0000-0000-0000-000000000000','传真',2,2,8,'',5,1,null,0,1,1,0,8,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="726" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="8">传真  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d49_传真"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,49,''AjaxF_'',49,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,49,''AjaxF_'',49);" EntId="49" IsField=1 DBField=1 IsPost=1 FieldName="传真" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="8" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'49,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=8,[Form_EntId]=49,[EntId]=49,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='传真',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=8,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=8,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="726" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="8">传真  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d49_传真"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,49,''AjaxF_'',49,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,49,''AjaxF_'',49);" EntId="49" IsField=1 DBField=1 IsPost=1 FieldName="传真" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="8" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='49,' where  [FldUId]='f207a066-e5df-4e41-bf40-dd84bb23b77b' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='c8d5bfa4-311e-4308-8c1d-d4eb44166adf'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'c8d5bfa4-311e-4308-8c1d-d4eb44166adf',49,49,'00000000-0000-0000-0000-000000000000','电子邮件',2,2,9,'',5,1,null,0,1,1,0,9,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="727" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="9">电子邮件  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d49_电子邮件"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,49,''AjaxF_'',49,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,49,''AjaxF_'',49);" EntId="49" IsField=1 DBField=1 IsPost=1 FieldName="电子邮件" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="9" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'49,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=9,[Form_EntId]=49,[EntId]=49,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='电子邮件',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=9,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=9,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="727" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="9">电子邮件  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d49_电子邮件"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,49,''AjaxF_'',49,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,49,''AjaxF_'',49);" EntId="49" IsField=1 DBField=1 IsPost=1 FieldName="电子邮件" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="9" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='49,' where  [FldUId]='c8d5bfa4-311e-4308-8c1d-d4eb44166adf' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='63e05338-af1e-418c-b808-1864d5fc975d'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'63e05338-af1e-418c-b808-1864d5fc975d',49,49,'00000000-0000-0000-0000-000000000000','填写人',2,2,11,'{$UserName}',0,9,null,0,4,1,0,10,-1,0,0,'','','','{$username},','</span>
  </div>
</li>
<li areaid="728" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="10">填写人  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d49_填写人" class="form-lbl" style="width:201px;" IsForField=1 EntId="49" CId="4" FId="10" Vtp="0"  >','</span><input id="d49_填写人_hid" type="hidden"  EntId="49" IsField=1 DBField=1 IsPost=1 FieldName="填写人" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="10" vlk=0    value="','" />',-1,-1,-1,-1,0,'49,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=10,[Form_EntId]=49,[EntId]=49,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='填写人',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=11,[DefaultValue]='{$UserName}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=10,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$username},',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="728" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="10">填写人  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d49_填写人" class="form-lbl" style="width:201px;" IsForField=1 EntId="49" CId="4" FId="10" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d49_填写人_hid" type="hidden"  EntId="49" IsField=1 DBField=1 IsPost=1 FieldName="填写人" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="10" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='49,' where  [FldUId]='63e05338-af1e-418c-b808-1864d5fc975d' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='7612a7b7-f38a-48b1-a9ab-386f04835711'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'7612a7b7-f38a-48b1-a9ab-386f04835711',49,49,'00000000-0000-0000-0000-000000000000','部门',2,2,12,'{$deptname}',0,9,null,0,4,1,0,11,-1,0,0,'','','','{$deptname},','</span>
  </div>
</li>
<li areaid="729" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="11">我的部门  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d49_部门" class="form-lbl" style="width:201px;" IsForField=1 EntId="49" CId="4" FId="11" Vtp="0"  >','</span><input id="d49_部门_hid" type="hidden"  EntId="49" IsField=1 DBField=1 IsPost=1 FieldName="部门" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="11" vlk=0    value="','" />',-1,-1,-1,-1,0,'49,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=11,[Form_EntId]=49,[EntId]=49,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='部门',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=12,[DefaultValue]='{$deptname}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=11,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$deptname},',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="729" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="11">我的部门  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d49_部门" class="form-lbl" style="width:201px;" IsForField=1 EntId="49" CId="4" FId="11" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d49_部门_hid" type="hidden"  EntId="49" IsField=1 DBField=1 IsPost=1 FieldName="部门" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="11" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='49,' where  [FldUId]='7612a7b7-f38a-48b1-a9ab-386f04835711' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='68b2586b-34b6-4c58-9c79-350e099dd58d'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(12,'68b2586b-34b6-4c58-9c79-350e099dd58d',49,49,'00000000-0000-0000-0000-000000000000','创建时间',3,3,13,'{$date}',0,9,null,0,4,1,0,12,-1,0,0,'','','','{$date},','</span>
  </div>
</li>
<li areaid="730" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="12">创建时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','</span>
  </div>
</li>
</ul>
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="183" entid="49" class="tab_ul" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="731" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li areaid="732" istab="1" tabid="2" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1" style="display: none;">
<ul isgroup="1" groupid="184" entid="49" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="733" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: block;">
<ul isgroup="1" groupid="185" entid="49" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="734" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="49" groupid="186" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="735" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
<li areaid="736" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>','','','<span id="d49_创建时间" class="form-lbl" style="width:201px;" IsForField=1 EntId="49" CId="4" FId="12" Vtp="0"  >','</span><input id="d49_创建时间_hid" type="hidden"  EntId="49" IsField=1 DBField=1 IsPost=1 FieldName="创建时间" dType="3" Vtp="0" RDT="3" Isc="0" RId="9" CId="4" FId="12" vlk=0    value="','" />',-1,-1,-1,-1,0,'49,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=12,[Form_EntId]=49,[EntId]=49,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='创建时间',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=13,[DefaultValue]='{$date}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=12,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$date},',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="730" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="12">创建时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
  </div>
</li>
</ul>
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="183" entid="49" class="tab_ul" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="731" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li areaid="732" istab="1" tabid="2" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1" style="display: none;">
<ul isgroup="1" groupid="184" entid="49" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="733" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: block;">
<ul isgroup="1" groupid="185" entid="49" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="734" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="49" groupid="186" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="735" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
<li areaid="736" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d49_创建时间" class="form-lbl" style="width:201px;" IsForField=1 EntId="49" CId="4" FId="12" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d49_创建时间_hid" type="hidden"  EntId="49" IsField=1 DBField=1 IsPost=1 FieldName="创建时间" dType="3" Vtp="0" RDT="3" Isc="0" RId="9" CId="4" FId="12" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='49,' where  [FldUId]='68b2586b-34b6-4c58-9c79-350e099dd58d' 
      end



Delete from [Dcx_BrowseReport_Run]  where [EntId]=49

--Dcx_BrowseReport_Run
      if (select count(1) from [Dcx_BrowseReport_Run] where  [EntId]=49  )<1 
      begin 
           Insert into [Dcx_BrowseReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[DIYJsCss],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('08c9971f-4700-4760-823a-f2b75f46c00f','业务通讯录',49,31,'','<$49$>select [姓名],[单位],[职务],[电话],[移动电话],[传真],[电子邮件],[客户类型],[Id] from 业务通讯录 where [Id]=''{$keyfieldvalue}''</$49$>',1,1,20,'','DcxRun.MChildR_49= {"MenuId":1028,"MEntId":49,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"业务通讯录","EntMsg":{"E49":{"EntId":49,"EntName":"业务通讯录","KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','49*Id*2**2*业务通讯录*业务通讯录',3,'','2012-12-21 11:03:02',3,'','2013-11-17 3:17:20',1)
      end
      else 
      begin 
           update [Dcx_BrowseReport_Run] set [ReportId]='08c9971f-4700-4760-823a-f2b75f46c00f',[ReportName]='业务通讯录',[ModuleId]=31,[StaticHtml]='',[LoadingSql]='<$49$>select [姓名],[单位],[职务],[电话],[移动电话],[传真],[电子邮件],[客户类型],[Id] from 业务通讯录 where [Id]=''{$keyfieldvalue}''</$49$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[DIYJsCss]='',[AutoPublicJs]='DcxRun.MChildR_49= {"MenuId":1028,"MEntId":49,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"业务通讯录","EntMsg":{"E49":{"EntId":49,"EntName":"业务通讯录","KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='49*Id*2**2*业务通讯录*业务通讯录',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-21 11:03:02',[EditorId]=3,[Editor]='',[EditTime]='2013-11-17 3:17:20',[AccountId]=1 where  [EntId]=49 
      end




--Dcx_BrowseReportField_Run
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='4073a222-2f1d-436e-a063-03462a7204ea'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'4073a222-2f1d-436e-a063-03462a7204ea',49,49,'00000000-0000-0000-0000-000000000000',2,'姓名',1,1,'varchar',2,1,0,'','','','<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="49" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="443" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">业务通讯录</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="49" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="444" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">姓名  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="49" fieldname="姓名" fldid="2" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'49,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=2,[Report_EntId]=49,[EntId]=49,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='姓名',[FieldNO]=1,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="49" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="443" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">业务通讯录</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="49" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="444" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">姓名  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="49" fieldname="姓名" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='49,' where  [FldUId]='4073a222-2f1d-436e-a063-03462a7204ea' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='a7ea47d4-492f-4955-bfd5-803d7fe350b4'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'a7ea47d4-492f-4955-bfd5-803d7fe350b4',49,49,'00000000-0000-0000-0000-000000000000',4,'单位',2,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="445" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">单位  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="49" fieldname="单位" fldid="3" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'49,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=3,[Report_EntId]=49,[EntId]=49,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=4,[FieldName]='单位',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="445" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">单位  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="49" fieldname="单位" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='49,' where  [FldUId]='a7ea47d4-492f-4955-bfd5-803d7fe350b4' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='7e8fc529-cc48-4ee3-b117-cf0481dfa18f'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'7e8fc529-cc48-4ee3-b117-cf0481dfa18f',49,49,'00000000-0000-0000-0000-000000000000',5,'职务',3,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="446" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">职务  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="49" fieldname="职务" fldid="4" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'49,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=4,[Report_EntId]=49,[EntId]=49,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=5,[FieldName]='职务',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="446" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">职务  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="49" fieldname="职务" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='49,' where  [FldUId]='7e8fc529-cc48-4ee3-b117-cf0481dfa18f' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='9517a059-adeb-4ec3-b95a-d0fa0f762428'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'9517a059-adeb-4ec3-b95a-d0fa0f762428',49,49,'00000000-0000-0000-0000-000000000000',6,'电话',4,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="447" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">电话  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="49" fieldname="电话" fldid="5" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'49,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=5,[Report_EntId]=49,[EntId]=49,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=6,[FieldName]='电话',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="447" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">电话  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="49" fieldname="电话" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='49,' where  [FldUId]='9517a059-adeb-4ec3-b95a-d0fa0f762428' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='2fde841f-52de-41ec-b59f-de0077b0aee5'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'2fde841f-52de-41ec-b59f-de0077b0aee5',49,49,'00000000-0000-0000-0000-000000000000',7,'移动电话',5,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="448" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">移动电话  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="49" fieldname="移动电话" fldid="6" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'49,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=6,[Report_EntId]=49,[EntId]=49,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=7,[FieldName]='移动电话',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="448" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">移动电话  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="49" fieldname="移动电话" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='49,' where  [FldUId]='2fde841f-52de-41ec-b59f-de0077b0aee5' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='68c8e036-2f1b-4365-9c88-63480be1dc47'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'68c8e036-2f1b-4365-9c88-63480be1dc47',49,49,'00000000-0000-0000-0000-000000000000',8,'传真',6,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="449" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">传真  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="49" fieldname="传真" fldid="7" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'49,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=7,[Report_EntId]=49,[EntId]=49,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=8,[FieldName]='传真',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="449" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">传真  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="49" fieldname="传真" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='49,' where  [FldUId]='68c8e036-2f1b-4365-9c88-63480be1dc47' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='0000ed25-dcd7-424f-a375-b9293afd4d98'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'0000ed25-dcd7-424f-a375-b9293afd4d98',49,49,'00000000-0000-0000-0000-000000000000',9,'电子邮件',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="450" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="8">电子邮件  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="49" fieldname="电子邮件" fldid="8" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'49,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=8,[Report_EntId]=49,[EntId]=49,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=9,[FieldName]='电子邮件',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="450" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="8">电子邮件  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="49" fieldname="电子邮件" fldid="8" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='49,' where  [FldUId]='0000ed25-dcd7-424f-a375-b9293afd4d98' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='d92129ba-ec33-4cc8-b969-0e482d968340'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'d92129ba-ec33-4cc8-b969-0e482d968340',49,49,'00000000-0000-0000-0000-000000000000',10,'客户类型',8,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="451" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="9">客户类型  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="49" fieldname="客户类型" fldid="9" columntypeid="1" class="form-ctr">','</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="49" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="456" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="457" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="49" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="458" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="49" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="459" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="49" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="460" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="461" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',-1,-1,-1,-1,0,'49,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=9,[Report_EntId]=49,[EntId]=49,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=10,[FieldName]='客户类型',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="451" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="9">客户类型  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="49" fieldname="客户类型" fldid="9" columntypeid="1" class="form-ctr">',[LastHtml]='</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="49" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="456" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="457" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="49" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="458" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="49" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="459" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="49" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="460" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="461" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='49,' where  [FldUId]='d92129ba-ec33-4cc8-b969-0e482d968340' 
      end



Delete from [Dcx_ListReport_Run]  where [EntId]=49

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=49  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('bd839a7b-9834-4526-9b76-f742d0f96945','业务通讯录',49,1,'','','<$49$>select *  from (select row_number() over( order by [Id])as dcx_rowid,[姓名],[单位],[职务],[电话],[移动电话],[传真],[电子邮件],[客户类型],[Id] from 业务通讯录  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$49$><$49:Count$>select count([Id]) from 业务通讯录 where {$SearchArea}</$49:Count$>',1,1,20,'DcxRun.ListR_49= {"MenuId":1028,"MEntId":49,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"业务通讯录","EntMsg":{"E49":{"EntId":49,"EntName":"业务通讯录","KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','49*Id*2**2*业务通讯录*业务通讯录',3,'','2012-12-22 5:16:19',3,'','2013-11-16 20:15:38',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='bd839a7b-9834-4526-9b76-f742d0f96945',[ReportName]='业务通讯录',[ModuleId]=1,[StaticHtml]='',[DIYJsCss]='',[LoadingSql]='<$49$>select *  from (select row_number() over( order by [Id])as dcx_rowid,[姓名],[单位],[职务],[电话],[移动电话],[传真],[电子邮件],[客户类型],[Id] from 业务通讯录  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$49$><$49:Count$>select count([Id]) from 业务通讯录 where {$SearchArea}</$49:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[AutoPublicJs]='DcxRun.ListR_49= {"MenuId":1028,"MEntId":49,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"业务通讯录","EntMsg":{"E49":{"EntId":49,"EntName":"业务通讯录","KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='49*Id*2**2*业务通讯录*业务通讯录',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-22 5:16:19',[EditorId]=3,[Editor]='',[EditTime]='2013-11-16 20:15:38',[AccountId]=1 where  [EntId]=49 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='acb98eab-3221-be87-c50f-251f51ef0d11'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(194,'acb98eab-3221-be87-c50f-251f51ef0d11',49,49,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="85" entid="49" style="width: 1060px;" ctrlprex="ListR_" isrple="1"> <li areaid="1292" class="tool-li" style="position: static;">
</li><li areaid="1293" class="tool-li" style="position: static;"><a id="ListR_49_btn_buildNew" class="list-bt-add" title="添   加" href="javascript:void(0);" onclick="javascript:DcxCom.ShowAddDataDlg(49,''ListR_'');">添   加</a></li>
<li areaid="1294" class="tool-li" style="position: static;"><a id="ListR_49_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(49,''ListR_'');">删   除</a></li>
<li areaid="1295" class="tool-li" style="position: static;"><a id="ListR_49_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(49,''ListR_'');">导   出</a></li>
<li areaid="1296" class="tool-li" style="position: static;"><a id="ListR_49_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(49,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_49" style="position: static;">
<a id="ListR_49_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(49,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_49_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(49,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_49_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(49,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_49_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="86" entid="49" class="list-head-ul" style="width: 1080px;" ctrlprex="ListR_" isrple="1">
<li areaid="1298" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_49" onclick="javascript:DcxCom.CheckedAll(this,49,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="1299" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">姓名 </label></li><li areaid="1300" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">单位 </label></li><li areaid="1301" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">职务 </label></li><li areaid="1302" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">电话 </label></li><li areaid="1303" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">移动电话 </label></li><li areaid="1304" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">传真 </label></li><li areaid="1305" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">电子邮件 </label></li><li areaid="1306" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">客户类型 </label></li><li areaid="1307" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="编辑"><span class="i">编辑</span></a></div></li><li areaid="1308" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="1309" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">','',-1,87,-1,-1,1,'49,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=194,[Report_EntId]=49,[EntId]=49,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="85" entid="49" style="width: 1060px;" ctrlprex="ListR_" isrple="1"> <li areaid="1292" class="tool-li" style="position: static;">
</li><li areaid="1293" class="tool-li" style="position: static;"><a id="ListR_49_btn_buildNew" class="list-bt-add" title="添   加" href="javascript:void(0);" onclick="javascript:DcxCom.ShowAddDataDlg(49,''ListR_'');">添   加</a></li>
<li areaid="1294" class="tool-li" style="position: static;"><a id="ListR_49_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(49,''ListR_'');">删   除</a></li>
<li areaid="1295" class="tool-li" style="position: static;"><a id="ListR_49_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(49,''ListR_'');">导   出</a></li>
<li areaid="1296" class="tool-li" style="position: static;"><a id="ListR_49_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(49,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_49" style="position: static;">
<a id="ListR_49_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(49,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_49_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(49,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_49_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(49,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_49_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="86" entid="49" class="list-head-ul" style="width: 1080px;" ctrlprex="ListR_" isrple="1">
<li areaid="1298" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_49" onclick="javascript:DcxCom.CheckedAll(this,49,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="1299" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">姓名 </label></li><li areaid="1300" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">单位 </label></li><li areaid="1301" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">职务 </label></li><li areaid="1302" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">电话 </label></li><li areaid="1303" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">移动电话 </label></li><li areaid="1304" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">传真 </label></li><li areaid="1305" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">电子邮件 </label></li><li areaid="1306" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">客户类型 </label></li><li areaid="1307" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="编辑"><span class="i">编辑</span></a></div></li><li areaid="1308" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="1309" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='49,' where  [FldUId]='acb98eab-3221-be87-c50f-251f51ef0d11' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='2a52e1f5-9d58-4d5c-8d99-c95fd68ac6b1'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(154,'2a52e1f5-9d58-4d5c-8d99-c95fd68ac6b1',49,49,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',2,1,'',2,21,0,'','','','islonly="1" isgroup="1" groupid="87" class="list-body-ul" style="width: 1080px;" isrple="1">
<li areaid="1310" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="49" issyscheck="1" keyvalue="','',-1,87,-1,-1,1,'49,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=154,[Report_EntId]=49,[EntId]=49,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='islonly="1" isgroup="1" groupid="87" class="list-body-ul" style="width: 1080px;" isrple="1">
<li areaid="1310" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="49" issyscheck="1" keyvalue="',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='49,' where  [FldUId]='2a52e1f5-9d58-4d5c-8d99-c95fd68ac6b1' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='50aa9199-05e2-4313-9d47-ea75a74bebc5'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'50aa9199-05e2-4313-9d47-ea75a74bebc5',49,49,'00000000-0000-0000-0000-000000000000',2,'姓名',3,1,'varchar',2,1,0,'','','','" type="checkbox"></li><li areaid="1311" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="49" fieldname="姓名" fldid="2" columntypeid="1" class="form-ctr">','',-1,87,-1,-1,1,'49,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=2,[Report_EntId]=49,[EntId]=49,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='姓名',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='" type="checkbox"></li><li areaid="1311" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="49" fieldname="姓名" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='49,' where  [FldUId]='50aa9199-05e2-4313-9d47-ea75a74bebc5' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='096a6aed-e981-48a9-947f-3277d483de61'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'096a6aed-e981-48a9-947f-3277d483de61',49,49,'00000000-0000-0000-0000-000000000000',4,'单位',4,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1312" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="49" fieldname="单位" fldid="3" columntypeid="1" class="form-ctr">','',-1,87,-1,-1,1,'49,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=3,[Report_EntId]=49,[EntId]=49,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=4,[FieldName]='单位',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1312" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="49" fieldname="单位" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='49,' where  [FldUId]='096a6aed-e981-48a9-947f-3277d483de61' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='2dd04202-414b-411c-8eda-9de1b3a887bf'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'2dd04202-414b-411c-8eda-9de1b3a887bf',49,49,'00000000-0000-0000-0000-000000000000',5,'职务',5,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1313" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="49" fieldname="职务" fldid="4" columntypeid="1" class="form-ctr">','',-1,87,-1,-1,1,'49,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=4,[Report_EntId]=49,[EntId]=49,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=5,[FieldName]='职务',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1313" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="49" fieldname="职务" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='49,' where  [FldUId]='2dd04202-414b-411c-8eda-9de1b3a887bf' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='d636a419-5866-4081-8221-dd9dd1711e16'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'d636a419-5866-4081-8221-dd9dd1711e16',49,49,'00000000-0000-0000-0000-000000000000',6,'电话',6,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1314" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="49" fieldname="电话" fldid="5" columntypeid="1" class="form-ctr">','',-1,87,-1,-1,1,'49,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=5,[Report_EntId]=49,[EntId]=49,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=6,[FieldName]='电话',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1314" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="49" fieldname="电话" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='49,' where  [FldUId]='d636a419-5866-4081-8221-dd9dd1711e16' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='dde56783-01ee-40d7-85d8-60665c4b6512'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'dde56783-01ee-40d7-85d8-60665c4b6512',49,49,'00000000-0000-0000-0000-000000000000',7,'移动电话',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1315" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="49" fieldname="移动电话" fldid="6" columntypeid="1" class="form-ctr">','',-1,87,-1,-1,1,'49,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=6,[Report_EntId]=49,[EntId]=49,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=7,[FieldName]='移动电话',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1315" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="49" fieldname="移动电话" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='49,' where  [FldUId]='dde56783-01ee-40d7-85d8-60665c4b6512' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='66f2687c-2d5e-4780-a0b2-500e7ed15b6b'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'66f2687c-2d5e-4780-a0b2-500e7ed15b6b',49,49,'00000000-0000-0000-0000-000000000000',8,'传真',8,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1316" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="49" fieldname="传真" fldid="7" columntypeid="1" class="form-ctr">','',-1,87,-1,-1,1,'49,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=7,[Report_EntId]=49,[EntId]=49,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=8,[FieldName]='传真',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1316" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="49" fieldname="传真" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='49,' where  [FldUId]='66f2687c-2d5e-4780-a0b2-500e7ed15b6b' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='85ec28fe-a250-4cb5-bf3c-8c50637ea900'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'85ec28fe-a250-4cb5-bf3c-8c50637ea900',49,49,'00000000-0000-0000-0000-000000000000',9,'电子邮件',9,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1317" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="49" fieldname="电子邮件" fldid="8" columntypeid="1" class="form-ctr">','',-1,87,-1,-1,1,'49,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=8,[Report_EntId]=49,[EntId]=49,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=9,[FieldName]='电子邮件',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1317" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="49" fieldname="电子邮件" fldid="8" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='49,' where  [FldUId]='85ec28fe-a250-4cb5-bf3c-8c50637ea900' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='ac4dcaa7-b611-4441-bed6-231e4c91b8b5'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'ac4dcaa7-b611-4441-bed6-231e4c91b8b5',49,49,'00000000-0000-0000-0000-000000000000',10,'客户类型',10,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1318" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="49" fieldname="客户类型" fldid="9" columntypeid="1" class="form-ctr">','',-1,87,-1,-1,1,'49,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=9,[Report_EntId]=49,[EntId]=49,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=10,[FieldName]='客户类型',[FieldNO]=10,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1318" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="49" fieldname="客户类型" fldid="9" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='49,' where  [FldUId]='ac4dcaa7-b611-4441-bed6-231e4c91b8b5' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='00a1dfaa-caac-4aae-a8d2-961a09e8355c'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(155,'00a1dfaa-caac-4aae-a8d2-961a09e8355c',49,49,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',11,1,'',2,21,0,'','','','</span>
  </div>
</li><li areaid="1319" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,49,''ListR_'',''','',-1,87,-1,-1,1,'49,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=155,[Report_EntId]=49,[EntId]=49,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=11,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1319" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,49,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='49,' where  [FldUId]='00a1dfaa-caac-4aae-a8d2-961a09e8355c' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='7549212b-83f7-47bb-ba1c-fc65b7739f51'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(156,'7549212b-83f7-47bb-ba1c-fc65b7739f51',49,49,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',12,1,'',2,21,0,'','','',''',null,1040,480);">
<span class="i">编辑</span></a></div>
</li><li areaid="1320" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,49,''ListR_'',''','',-1,87,-1,-1,1,'49,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=156,[Report_EntId]=49,[EntId]=49,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=12,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">编辑</span></a></div>
</li><li areaid="1320" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,49,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='49,' where  [FldUId]='7549212b-83f7-47bb-ba1c-fc65b7739f51' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='343e8549-f954-4a44-88eb-42dbeed39443'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(157,'343e8549-f954-4a44-88eb-42dbeed39443',49,49,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',13,1,'',2,21,0,'','','',''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="1321" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,49,''ListR_'',''','',-1,87,-1,-1,1,'49,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=157,[Report_EntId]=49,[EntId]=49,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=13,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="1321" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,49,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='49,' where  [FldUId]='343e8549-f954-4a44-88eb-42dbeed39443' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='6811a1b4-ce39-e2c5-f74f-23594d033e3d'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(195,'6811a1b4-ce39-e2c5-f74f-23594d033e3d',49,49,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',14,-1,'varchar',2,13,0,'','','',''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>','</div>
</div>
<!-- 结束 --></div>',-1,87,-1,-1,1,'49,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=195,[Report_EntId]=49,[EntId]=49,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=14,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>',[LastHtml]='</div>
</div>
<!-- 结束 --></div>',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='49,' where  [FldUId]='6811a1b4-ce39-e2c5-f74f-23594d033e3d' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=1127

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=1127  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(1127,null,'业务通讯录','业务通讯录',0,0,0,0,0,0,30,1,3,'admin','2013-12-15 17:32:54',3,'admin','2013-12-15 17:32:54',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='业务通讯录',[DBTableByName]='业务通讯录',[IsForbid]=0,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=30,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:54',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:54',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=1127 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1127  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18761,1,30,1127,'int',1,1,1,'业务通讯录','Id','Id','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='业务通讯录',[FieldName]='Id',[FieldByname]='Id',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1127  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1127  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18762,2,30,1127,'varchar',2,1,1,'业务通讯录','姓名','姓名','',0,0,1,10,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='业务通讯录',[FieldName]='姓名',[FieldByname]='姓名',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=10,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1127  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1127  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18763,3,30,1127,'varchar',2,1,1,'业务通讯录','姓别','姓别','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='业务通讯录',[FieldName]='姓别',[FieldByname]='姓别',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1127  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1127  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18764,4,30,1127,'varchar',2,1,1,'业务通讯录','单位','单位','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='业务通讯录',[FieldName]='单位',[FieldByname]='单位',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1127  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1127  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18765,5,30,1127,'varchar',2,1,1,'业务通讯录','职务','职务','',0,0,1,20,20,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='业务通讯录',[FieldName]='职务',[FieldByname]='职务',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=20,[Precision]=20,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1127  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1127  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18766,6,30,1127,'varchar',2,1,1,'业务通讯录','电话','电话','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='业务通讯录',[FieldName]='电话',[FieldByname]='电话',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1127  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1127  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18767,7,30,1127,'varchar',2,1,1,'业务通讯录','移动电话','移动电话','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='业务通讯录',[FieldName]='移动电话',[FieldByname]='移动电话',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1127  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1127  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18768,8,30,1127,'varchar',2,1,1,'业务通讯录','传真','传真','',0,0,1,20,20,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='业务通讯录',[FieldName]='传真',[FieldByname]='传真',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=20,[Precision]=20,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1127  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1127  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18769,9,30,1127,'varchar',2,1,1,'业务通讯录','电子邮件','电子邮件','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='业务通讯录',[FieldName]='电子邮件',[FieldByname]='电子邮件',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1127  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1127  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18770,10,30,1127,'varchar',2,1,1,'业务通讯录','客户类型','客户类型','',0,0,1,20,20,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='业务通讯录',[FieldName]='客户类型',[FieldByname]='客户类型',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=20,[Precision]=20,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1127  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1127  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18771,11,30,1127,'varchar',2,1,1,'业务通讯录','填写人','填写人','',0,0,1,10,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='业务通讯录',[FieldName]='填写人',[FieldByname]='填写人',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=10,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1127  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1127  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18772,12,30,1127,'varchar',2,1,1,'业务通讯录','部门','部门','',0,0,1,20,20,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='业务通讯录',[FieldName]='部门',[FieldByname]='部门',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=20,[Precision]=20,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1127  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1127  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18773,13,30,1127,'datetime',3,1,1,'业务通讯录','创建时间','创建时间','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='业务通讯录',[FieldName]='创建时间',[FieldByname]='创建时间',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1127  and  [FieldId]=13 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=1713  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(1713,'a3261b38-f6ef-47b2-8b50-847cdff23771','日志管理',2040,'/MyApp/diary/index.aspx',1,'/images/default.gif','/images/default.gif',1000,'main',0,0,'',30,0,30,0,1,1,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='a3261b38-f6ef-47b2-8b50-847cdff23771',[MenuName]='日志管理',[ParentId]=2040,[ProPath]='/MyApp/diary/index.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=1000,[Target]='main',[IsOpen]=0,[IsHidden]=0,[Remark]='',[SSystemId]=30,[SMenuId]=0,[SystemId]=30,[EntityCount]=0,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=1713 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=1713  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(17,1713,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=1713  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=1833  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(1833,'10f2e51c-3fcb-4e3e-a93c-2c379d4f4d13','万年历',948,'http://www.hao123.com/rili/',1,'\Images\icon2\calendar[1].gif','\Images\icon2\calendar[1].gif',13,'main',0,0,'',30,0,30,0,1,1,null,'',0,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='10f2e51c-3fcb-4e3e-a93c-2c379d4f4d13',[MenuName]='万年历',[ParentId]=948,[ProPath]='http://www.hao123.com/rili/',[TemplateId]=1,[ImgPath]='\Images\icon2\calendar[1].gif',[ExImgPath]='\Images\icon2\calendar[1].gif',[OrderBy]=13,[Target]='main',[IsOpen]=0,[IsHidden]=0,[Remark]='',[SSystemId]=30,[SMenuId]=0,[SystemId]=30,[EntityCount]=0,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=1833 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=1833  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(20,1833,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=1833  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=1950  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(1950,'fb6593df-0e32-403f-9a62-c0be2e5f9447','我的日记',948,'/Template/default/ListReport/ListReport_Tree001.aspx',1,'images/grbg/edit1_password.gif','images/grbg/edit1_password.gif',4,'main',0,1,'',30,0,30,1,1,1,null,'',0,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='fb6593df-0e32-403f-9a62-c0be2e5f9447',[MenuName]='我的日记',[ParentId]=948,[ProPath]='/Template/default/ListReport/ListReport_Tree001.aspx',[TemplateId]=1,[ImgPath]='images/grbg/edit1_password.gif',[ExImgPath]='images/grbg/edit1_password.gif',[OrderBy]=4,[Target]='main',[IsOpen]=0,[IsHidden]=1,[Remark]='',[SSystemId]=30,[SMenuId]=0,[SystemId]=30,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=1950 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=1950  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(44,1950,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=1950  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=990  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(990,1950,'工作日志',1,860,0,'工作日志',0,0,1,30,990,null,null,30,null,null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=1950,[EntName]='工作日志',[MEnt]=1,[DBTableId]=860,[DBConnectId]=0,[DBTableName]='工作日志',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=30,[SEntId]=990,[FSystemId]=null,[FEntId]=null,[SystemId]=30,[Remark]=null,[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=990 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=990

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=990  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(10317,1950,990,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=1950,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=990  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=990

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=990  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20516,30,1950,990,13,1,1,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=1950,[TemplateId]=13,[ModuleId]=1,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=990  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=990  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20517,30,1950,990,13,2,9,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=1950,[TemplateId]=13,[ModuleId]=9,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=990  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=990  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20518,30,1950,990,13,3,14,1,4,2,'/Template/Default/Form/AjaxForm/AjaxForm008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=1950,[TemplateId]=13,[ModuleId]=14,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='/Template/Default/Form/AjaxForm/AjaxForm008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=990  and  [ModuleTypeId]=3 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=990  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20519,30,1950,990,13,16,31,1,5,2,'/Template/Default/Browse/Browse008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=1950,[TemplateId]=13,[ModuleId]=31,[GroupId]=1,[AreaId]=5,[ShowMode]=2,[AreaUrl]='/Template/Default/Browse/Browse008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=990  and  [ModuleTypeId]=16 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_AjaxForm_Run]  where [EntId]=990

--Dcx_AjaxForm_Run
      if (select count(1) from [Dcx_AjaxForm_Run] where  [EntId]=990  )<1 
      begin 
           Insert into [Dcx_AjaxForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('0fa6d6d7-e7cd-49fb-b51f-f788a3cec8f7','工作日志',990,14,'','',0,'','','DcxRun.AjaxF_990= {"MenuId":1950,"MEntId":990,"EntName":"工作日志","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E990":{"EntId":990,"KeyFieldValue":"","DBTableName":"","KeyField":"序号","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_990.EntMsg.E990.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"工作日志","EntId":990,"KeyField":"序号","MKeyField":"序号","MKeyValue":"","DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"姓名":{"DtId":2,"DB":1,"CId":4,"FL":-1},"部门":{"DtId":2,"DB":1,"CId":4,"FL":-1},"部门编号":{"DtId":2,"DB":1,"CId":4,"FL":-1},"日期":{"DtId":2,"DB":1,"CId":5,"FL":-1},"工作内容":{"DtId":6,"DB":1,"CId":4,"FL":-1},"领导意见":{"DtId":6,"DB":1,"CId":4,"FL":-1},"内容输入":{"DtId":2,"DB":1,"CId":2,"FL":-1},"起止时间":{"DtId":2,"DB":1,"CId":1,"FL":-1},"工作内容1":{"DtId":6,"DB":1,"CId":4,"FL":-1},"write_date":{"DtId":2,"DB":1,"CId":4,"FL":-1}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_990.EntMsg.E990.GetDataRowModel=function()
{
    return {"姓名":"","部门":"","部门编号":"","日期":"","工作内容":"","领导意见":"","内容输入":"","起止时间":"08:00~17:00","工作内容1":"","write_date":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"序号","KeyFieldValue":"","DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_AjaxF_990_382(obj,curFieldName){
 var EntId=990;
 var FldId=315;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''部门'';
 var $formContainer=DcxForm.GetHtmlContainer(990,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(990,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"部门\",FldId:"+FldId+",EntId:990,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"序号\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''部门编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,990,''AjaxF_'',''部门编号'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@部门编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d990_部门");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_990.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(990,''AjaxF_'',buildNew,closeDlg);

}','<$990$>select [姓名],[部门],[部门编号],[日期],[工作内容],[领导意见],[内容输入],[起止时间],[工作内容1],[write_date],[序号] from 工作日志 where [序号]=''{$keyfieldvalue}''</$990$>',20,'','','','990*序号*2**2*工作日志*工作日志',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 7:02:48',3,'admin','2013-11-16 18:42:37',1)
      end
      else 
      begin 
           update [Dcx_AjaxForm_Run] set [FormId]='0fa6d6d7-e7cd-49fb-b51f-f788a3cec8f7',[FormName]='工作日志',[ModuleId]=14,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.AjaxF_990= {"MenuId":1950,"MEntId":990,"EntName":"工作日志","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E990":{"EntId":990,"KeyFieldValue":"","DBTableName":"","KeyField":"序号","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_990.EntMsg.E990.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"工作日志","EntId":990,"KeyField":"序号","MKeyField":"序号","MKeyValue":"","DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"姓名":{"DtId":2,"DB":1,"CId":4,"FL":-1},"部门":{"DtId":2,"DB":1,"CId":4,"FL":-1},"部门编号":{"DtId":2,"DB":1,"CId":4,"FL":-1},"日期":{"DtId":2,"DB":1,"CId":5,"FL":-1},"工作内容":{"DtId":6,"DB":1,"CId":4,"FL":-1},"领导意见":{"DtId":6,"DB":1,"CId":4,"FL":-1},"内容输入":{"DtId":2,"DB":1,"CId":2,"FL":-1},"起止时间":{"DtId":2,"DB":1,"CId":1,"FL":-1},"工作内容1":{"DtId":6,"DB":1,"CId":4,"FL":-1},"write_date":{"DtId":2,"DB":1,"CId":4,"FL":-1}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_990.EntMsg.E990.GetDataRowModel=function()
{
    return {"姓名":"","部门":"","部门编号":"","日期":"","工作内容":"","领导意见":"","内容输入":"","起止时间":"08:00~17:00","工作内容1":"","write_date":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"序号","KeyFieldValue":"","DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_AjaxF_990_382(obj,curFieldName){
 var EntId=990;
 var FldId=315;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''部门'';
 var $formContainer=DcxForm.GetHtmlContainer(990,''AjaxF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(990,''AjaxF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"部门\",FldId:"+FldId+",EntId:990,CtrlPrex:\"AjaxF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"序号\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''部门编号''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,990,''AjaxF_'',''部门编号'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@部门编号}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d990_部门");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_990.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(990,''AjaxF_'',buildNew,closeDlg);

}',[LoadingSql]='<$990$>select [姓名],[部门],[部门编号],[日期],[工作内容],[领导意见],[内容输入],[起止时间],[工作内容1],[write_date],[序号] from 工作日志 where [序号]=''{$keyfieldvalue}''</$990$>',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='990*序号*2**2*工作日志*工作日志',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 7:02:48',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-16 18:42:37',[AccountId]=1 where  [EntId]=990 
      end




--Dcx_AjaxFormField_Run
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='eb4a0ef9-b28d-4ce8-b8d4-44283e43f3fa'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(314,'eb4a0ef9-b28d-4ce8-b8d4-44283e43f3fa',990,990,'00000000-0000-0000-0000-000000000000','姓名',2,2,2,'{$UserName}',0,9,null,0,4,1,0,1,-1,0,0,'','','','{$username},','<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="990" groupid="176" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="631" class="li-area-title" scroll="no" style="width: 77px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">工作日志</span></div>
</li>
<li areaid="632" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
<li areaid="633" class="li-area1" scroll="no" style="display: none; position: static;">
<a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.AjaxF_990.SubmitForm(false);">
<span class="op_bt_i">保存</span> </a></li>
<li areaid="634" class="li-area1" scroll="no" style="display: none; position: static;">
<a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(990,''AjaxF_'');"><span class="op_bt_i">新建</span>
</a></li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="177" entid="990" class="ul-mform" ctrlprex="AjaxF_" isrple="1">
<li areaid="635" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="314" istitle="1">姓名 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d990_姓名" class="form-lbl" style="width:200px;" IsForField=1 EntId="990" CId="4" FId="314" Vtp="0"  >','</span><input id="d990_姓名_hid" type="hidden"  EntId="990" IsField=1 DBField=1 IsPost=1 FieldName="姓名" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="314" vlk=0    value="','" />',-1,-1,-1,-1,0,'990,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=314,[Form_EntId]=990,[EntId]=990,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='姓名',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=2,[DefaultValue]='{$UserName}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$username},',[BeforeHtml]='<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="990" groupid="176" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="631" class="li-area-title" scroll="no" style="width: 77px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">工作日志</span></div>
</li>
<li areaid="632" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
<li areaid="633" class="li-area1" scroll="no" style="display: none; position: static;">
<a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.AjaxF_990.SubmitForm(false);">
<span class="op_bt_i">保存</span> </a></li>
<li areaid="634" class="li-area1" scroll="no" style="display: none; position: static;">
<a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(990,''AjaxF_'');"><span class="op_bt_i">新建</span>
</a></li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="177" entid="990" class="ul-mform" ctrlprex="AjaxF_" isrple="1">
<li areaid="635" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="314" istitle="1">姓名 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d990_姓名" class="form-lbl" style="width:200px;" IsForField=1 EntId="990" CId="4" FId="314" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d990_姓名_hid" type="hidden"  EntId="990" IsField=1 DBField=1 IsPost=1 FieldName="姓名" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="314" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='990,' where  [FldUId]='eb4a0ef9-b28d-4ce8-b8d4-44283e43f3fa' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='072e812f-1171-40be-b84b-2deaafb3f72b'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(315,'072e812f-1171-40be-b84b-2deaafb3f72b',990,990,'00000000-0000-0000-0000-000000000000','部门',2,2,3,'SELECT [DeptName] FROM [Dcx_Dept] where [DeptCode]=''{@部门编号}''',2,9,null,0,4,1,0,2,-1,0,0,'','','部门编号,','','</span>
</div>
</li>
<li areaid="636" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="315" istitle="1">部门 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d990_部门" class="form-lbl" style="width:201px;" IsForField=1 EntId="990" CId="4" FId="315" Vtp="2"  >','</span><input id="d990_部门_hid" type="hidden"  EntId="990" IsField=1 DBField=1 IsPost=1 FieldName="部门" dType="2" Vtp="2" RDT="2" Isc="0" RId="9" CId="4" FId="315" vlk=0    value="','" />',-1,-1,-1,-1,0,'990,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=315,[Form_EntId]=990,[EntId]=990,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='部门',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=3,[DefaultValue]='SELECT [DeptName] FROM [Dcx_Dept] where [DeptCode]=''{@部门编号}''',[ValueType]=2,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=2,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='部门编号,',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="636" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="315" istitle="1">部门 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d990_部门" class="form-lbl" style="width:201px;" IsForField=1 EntId="990" CId="4" FId="315" Vtp="2"  >',[CtrlbackHtml]='</span><input id="d990_部门_hid" type="hidden"  EntId="990" IsField=1 DBField=1 IsPost=1 FieldName="部门" dType="2" Vtp="2" RDT="2" Isc="0" RId="9" CId="4" FId="315" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='990,' where  [FldUId]='072e812f-1171-40be-b84b-2deaafb3f72b' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='ee7424a3-b8f4-465c-a02a-f0fadd4160ec'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(316,'ee7424a3-b8f4-465c-a02a-f0fadd4160ec',990,990,'00000000-0000-0000-0000-000000000000','部门编号',2,2,4,'SELECT deptNO FROM Dcx_USER where UserName=''{$UserName}'' and write_work=1',2,9,null,0,4,1,0,3,-1,0,0,'','','','{$username},','</span>
</div>
</li>
<li areaid="637" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="316">部门编号  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d990_部门编号" class="form-lbl" style="width:201px;" IsForField=1 EntId="990" CId="4" FId="316" Vtp="2"  CBack=1  >','</span><input id="d990_部门编号_hid" type="hidden"  EntId="990" IsField=1 DBField=1 IsPost=1 FieldName="部门编号" dType="2" Vtp="2" RDT="2" Isc="0" RId="9" CId="4" FId="316" vlk=0    value="','" />',-1,-1,-1,-1,0,'990,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=316,[Form_EntId]=990,[EntId]=990,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='部门编号',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=4,[DefaultValue]='SELECT deptNO FROM Dcx_USER where UserName=''{$UserName}'' and write_work=1',[ValueType]=2,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=3,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$username},',[BeforeHtml]='</span>
</div>
</li>
<li areaid="637" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="316">部门编号  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d990_部门编号" class="form-lbl" style="width:201px;" IsForField=1 EntId="990" CId="4" FId="316" Vtp="2"  CBack=1  >',[CtrlbackHtml]='</span><input id="d990_部门编号_hid" type="hidden"  EntId="990" IsField=1 DBField=1 IsPost=1 FieldName="部门编号" dType="2" Vtp="2" RDT="2" Isc="0" RId="9" CId="4" FId="316" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='990,' where  [FldUId]='ee7424a3-b8f4-465c-a02a-f0fadd4160ec' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='4b06ed02-60a9-43f3-83f7-2039950b5bbf'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(317,'4b06ed02-60a9-43f3-83f7-2039950b5bbf',990,990,'00000000-0000-0000-0000-000000000000','日期',2,2,5,'select convert(varchar(10),getdate(),120)',2,1,null,0,5,1,0,4,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="638" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="317">日期  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<div class="form-ddl"><input  id="d990_日期"   type="text" class="form-ddl-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,990,''AjaxF_'',990,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,990,''AjaxF_'',990);DcxDTime.ShowCalendar(this);" EntId="990" IsField=1 DBField=1 IsPost=1 FieldName="日期" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="5" FId="317" vlk=0    value="','"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>','',-1,-1,-1,-1,0,'990,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=317,[Form_EntId]=990,[EntId]=990,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='日期',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=5,[DefaultValue]='select convert(varchar(10),getdate(),120)',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=5,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=4,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="638" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="317">日期  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-ddl"><input  id="d990_日期"   type="text" class="form-ddl-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,990,''AjaxF_'',990,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,990,''AjaxF_'',990);DcxDTime.ShowCalendar(this);" EntId="990" IsField=1 DBField=1 IsPost=1 FieldName="日期" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="5" FId="317" vlk=0    value="',[CtrlbackHtml]='"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='990,' where  [FldUId]='4b06ed02-60a9-43f3-83f7-2039950b5bbf' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='55c634c0-e9b2-4f93-85d8-57b9a0d8abcd'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(318,'55c634c0-e9b2-4f93-85d8-57b9a0d8abcd',990,990,'00000000-0000-0000-0000-000000000000','工作内容',6,2,10,'',5,9,null,0,4,1,0,5,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="639" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="318">工作内容  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d990_工作内容" class="form-lbl" style="width:201px;" IsForField=1 EntId="990" CId="4" FId="318" Vtp="5"  >','</span><input id="d990_工作内容_hid" type="hidden"  EntId="990" IsField=1 DBField=1 IsPost=1 FieldName="工作内容" dType="6" Vtp="5" RDT="2" Isc="0" RId="9" CId="4" FId="318" vlk=0    value="','" />',-1,-1,-1,-1,0,'990,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=318,[Form_EntId]=990,[EntId]=990,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='工作内容',[FieldDataTypeId]=6,[RunDataTypeId]=2,[DBFieldId]=10,[DefaultValue]='',[ValueType]=5,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=5,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="639" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="318">工作内容  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d990_工作内容" class="form-lbl" style="width:201px;" IsForField=1 EntId="990" CId="4" FId="318" Vtp="5"  >',[CtrlbackHtml]='</span><input id="d990_工作内容_hid" type="hidden"  EntId="990" IsField=1 DBField=1 IsPost=1 FieldName="工作内容" dType="6" Vtp="5" RDT="2" Isc="0" RId="9" CId="4" FId="318" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='990,' where  [FldUId]='55c634c0-e9b2-4f93-85d8-57b9a0d8abcd' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='9ea1f088-ac03-4bbb-a8b0-1d13803f8825'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(319,'9ea1f088-ac03-4bbb-a8b0-1d13803f8825',990,990,'00000000-0000-0000-0000-000000000000','领导意见',6,2,6,'',5,9,null,0,4,1,0,6,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="640" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="319">领导意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d990_领导意见" class="form-lbl" style="width:201px;" IsForField=1 EntId="990" CId="4" FId="319" Vtp="5"  >','</span><input id="d990_领导意见_hid" type="hidden"  EntId="990" IsField=1 DBField=1 IsPost=1 FieldName="领导意见" dType="6" Vtp="5" RDT="2" Isc="0" RId="9" CId="4" FId="319" vlk=0    value="','" />',-1,-1,-1,-1,0,'990,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=319,[Form_EntId]=990,[EntId]=990,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='领导意见',[FieldDataTypeId]=6,[RunDataTypeId]=2,[DBFieldId]=6,[DefaultValue]='',[ValueType]=5,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=6,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="640" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="319">领导意见  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d990_领导意见" class="form-lbl" style="width:201px;" IsForField=1 EntId="990" CId="4" FId="319" Vtp="5"  >',[CtrlbackHtml]='</span><input id="d990_领导意见_hid" type="hidden"  EntId="990" IsField=1 DBField=1 IsPost=1 FieldName="领导意见" dType="6" Vtp="5" RDT="2" Isc="0" RId="9" CId="4" FId="319" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='990,' where  [FldUId]='9ea1f088-ac03-4bbb-a8b0-1d13803f8825' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='a67f8f79-544f-4391-8b64-c66605dab011'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(320,'a67f8f79-544f-4391-8b64-c66605dab011',990,990,'00000000-0000-0000-0000-000000000000','内容输入',2,2,12,'',5,1,null,0,2,1,0,7,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="641" style="height: 138px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="320">内容输入  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d990_内容输入" class="form-txts"  style="width:400px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,990,''AjaxF_'',990,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,990,''AjaxF_'',990);" EntId="990" IsField=1 DBField=1 IsPost=1 FieldName="内容输入" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="320" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'990,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=320,[Form_EntId]=990,[EntId]=990,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='内容输入',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=12,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=7,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="641" style="height: 138px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="320">内容输入  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d990_内容输入" class="form-txts"  style="width:400px;height:118px;" onblur ="javascript:if(!DcxVld.Validate(this,990,''AjaxF_'',990,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,990,''AjaxF_'',990);" EntId="990" IsField=1 DBField=1 IsPost=1 FieldName="内容输入" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="320" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='990,' where  [FldUId]='a67f8f79-544f-4391-8b64-c66605dab011' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='9bd962cc-d85a-4767-bdde-8cb305c3a9ec'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(321,'9bd962cc-d85a-4767-bdde-8cb305c3a9ec',990,990,'00000000-0000-0000-0000-000000000000','起止时间',2,2,11,'08:00~17:00',5,1,null,0,1,1,0,8,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="642" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="321">工作时段  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d990_起止时间"   type="text" class="form-txt"  style="width:100px;" onblur ="javascript:if(!DcxVld.Validate(this,990,''AjaxF_'',990,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,990,''AjaxF_'',990);" EntId="990" IsField=1 DBField=1 IsPost=1 FieldName="起止时间" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="321" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'990,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=321,[Form_EntId]=990,[EntId]=990,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='起止时间',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=11,[DefaultValue]='08:00~17:00',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=8,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="642" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="321">工作时段  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d990_起止时间"   type="text" class="form-txt"  style="width:100px;" onblur ="javascript:if(!DcxVld.Validate(this,990,''AjaxF_'',990,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,990,''AjaxF_'',990);" EntId="990" IsField=1 DBField=1 IsPost=1 FieldName="起止时间" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="321" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='990,' where  [FldUId]='9bd962cc-d85a-4767-bdde-8cb305c3a9ec' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='e52ec86b-ab36-4ca6-92fb-2a2011eb14ed'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(322,'e52ec86b-ab36-4ca6-92fb-2a2011eb14ed',990,990,'00000000-0000-0000-0000-000000000000','工作内容1',6,2,9,'',5,9,null,0,4,1,0,9,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="643" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="322">工作内容1  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d990_工作内容1" class="form-lbl" style="width:201px;" IsForField=1 EntId="990" CId="4" FId="322" Vtp="5"  >','</span><input id="d990_工作内容1_hid" type="hidden"  EntId="990" IsField=1 DBField=1 IsPost=1 FieldName="工作内容1" dType="6" Vtp="5" RDT="2" Isc="0" RId="9" CId="4" FId="322" vlk=0    value="','" />',-1,-1,-1,-1,0,'990,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=322,[Form_EntId]=990,[EntId]=990,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='工作内容1',[FieldDataTypeId]=6,[RunDataTypeId]=2,[DBFieldId]=9,[DefaultValue]='',[ValueType]=5,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=9,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="643" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="322">工作内容1  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d990_工作内容1" class="form-lbl" style="width:201px;" IsForField=1 EntId="990" CId="4" FId="322" Vtp="5"  >',[CtrlbackHtml]='</span><input id="d990_工作内容1_hid" type="hidden"  EntId="990" IsField=1 DBField=1 IsPost=1 FieldName="工作内容1" dType="6" Vtp="5" RDT="2" Isc="0" RId="9" CId="4" FId="322" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='990,' where  [FldUId]='e52ec86b-ab36-4ca6-92fb-2a2011eb14ed' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='d8a2b23d-782a-4721-afbd-a6e224b753c4'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(323,'d8a2b23d-782a-4721-afbd-a6e224b753c4',990,990,'00000000-0000-0000-0000-000000000000','write_date',2,2,13,'select   convert(char(10),getdate(),120)',2,9,null,0,4,1,0,10,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="644" style="height: 38px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="323">填写日期  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','</span>
  </div>
</li>
</ul>
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="178" entid="990" class="tab_ul" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="645" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li areaid="646" istab="1" tabid="2" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1" style="display: none;">
<ul isgroup="1" groupid="179" entid="990" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="647" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: block;">
<ul isgroup="1" groupid="180" entid="990" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="648" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="990" groupid="181" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="649" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
<li areaid="650" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>','','','<span id="d990_write_date" class="form-lbl" style="width:201px;" IsForField=1 EntId="990" CId="4" FId="323" Vtp="2"  >','</span><input id="d990_write_date_hid" type="hidden"  EntId="990" IsField=1 DBField=1 IsPost=1 FieldName="write_date" dType="2" Vtp="2" RDT="2" Isc="0" RId="9" CId="4" FId="323" vlk=0    value="','" />',-1,-1,-1,-1,0,'990,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=323,[Form_EntId]=990,[EntId]=990,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='write_date',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=13,[DefaultValue]='select   convert(char(10),getdate(),120)',[ValueType]=2,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=10,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="644" style="height: 38px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="323">填写日期  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
  </div>
</li>
</ul>
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="178" entid="990" class="tab_ul" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="645" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li areaid="646" istab="1" tabid="2" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1" style="display: none;">
<ul isgroup="1" groupid="179" entid="990" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="647" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: block;">
<ul isgroup="1" groupid="180" entid="990" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="648" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="990" groupid="181" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="649" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
<li areaid="650" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d990_write_date" class="form-lbl" style="width:201px;" IsForField=1 EntId="990" CId="4" FId="323" Vtp="2"  >',[CtrlbackHtml]='</span><input id="d990_write_date_hid" type="hidden"  EntId="990" IsField=1 DBField=1 IsPost=1 FieldName="write_date" dType="2" Vtp="2" RDT="2" Isc="0" RId="9" CId="4" FId="323" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='990,' where  [FldUId]='d8a2b23d-782a-4721-afbd-a6e224b753c4' 
      end



Delete from [Dcx_BrowseReport_Run]  where [EntId]=990

--Dcx_BrowseReport_Run
      if (select count(1) from [Dcx_BrowseReport_Run] where  [EntId]=990  )<1 
      begin 
           Insert into [Dcx_BrowseReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[DIYJsCss],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('ce8d67a1-6743-4b51-a773-0a70b4f07321','工作日志',990,31,'','<$990$>select [部门],[日期],[工作内容1],[领导意见],[姓名],[序号] from 工作日志 where [序号]=''{$keyfieldvalue}''</$990$>',1,1,20,'','DcxRun.MChildR_990= {"MenuId":1950,"MEntId":990,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"工作日志","EntMsg":{"E990":{"EntId":990,"EntName":"工作日志","KeyFieldValue":"","DBTableName":"","KeyField":"序号","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','990*序号*2**2*工作日志*工作日志',3,'','2012-12-21 11:03:02',3,'','2013-11-17 3:17:23',1)
      end
      else 
      begin 
           update [Dcx_BrowseReport_Run] set [ReportId]='ce8d67a1-6743-4b51-a773-0a70b4f07321',[ReportName]='工作日志',[ModuleId]=31,[StaticHtml]='',[LoadingSql]='<$990$>select [部门],[日期],[工作内容1],[领导意见],[姓名],[序号] from 工作日志 where [序号]=''{$keyfieldvalue}''</$990$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[DIYJsCss]='',[AutoPublicJs]='DcxRun.MChildR_990= {"MenuId":1950,"MEntId":990,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"工作日志","EntMsg":{"E990":{"EntId":990,"EntName":"工作日志","KeyFieldValue":"","DBTableName":"","KeyField":"序号","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='990*序号*2**2*工作日志*工作日志',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-21 11:03:02',[EditorId]=3,[Editor]='',[EditTime]='2013-11-17 3:17:23',[AccountId]=1 where  [EntId]=990 
      end




--Dcx_BrowseReportField_Run
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='df53ec05-ea35-424c-a9d9-ed56aa4659bf'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'df53ec05-ea35-424c-a9d9-ed56aa4659bf',990,990,'00000000-0000-0000-0000-000000000000',3,'部门',1,1,'varchar',2,1,0,'','','','<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="990" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="365" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">工作日志</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="990" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="366" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="990" fieldname="部门" fldid="2" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'990,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=2,[Report_EntId]=990,[EntId]=990,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='部门',[FieldNO]=1,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="990" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="365" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">工作日志</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="990" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="366" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="990" fieldname="部门" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='990,' where  [FldUId]='df53ec05-ea35-424c-a9d9-ed56aa4659bf' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='35c401d0-e48c-4cf7-88af-5e10a8df0a5b'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'35c401d0-e48c-4cf7-88af-5e10a8df0a5b',990,990,'00000000-0000-0000-0000-000000000000',5,'日期',2,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="367" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">日期  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="990" fieldname="日期" fldid="3" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'990,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=3,[Report_EntId]=990,[EntId]=990,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=5,[FieldName]='日期',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="367" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">日期  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="990" fieldname="日期" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='990,' where  [FldUId]='35c401d0-e48c-4cf7-88af-5e10a8df0a5b' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='4f0ad77a-24fb-4472-8968-91cada7b93ac'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'4f0ad77a-24fb-4472-8968-91cada7b93ac',990,990,'00000000-0000-0000-0000-000000000000',9,'工作内容1',3,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="368" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">工作内容1  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="990" fieldname="工作内容1" fldid="4" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'990,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=4,[Report_EntId]=990,[EntId]=990,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=9,[FieldName]='工作内容1',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="368" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">工作内容1  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="990" fieldname="工作内容1" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='990,' where  [FldUId]='4f0ad77a-24fb-4472-8968-91cada7b93ac' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='71189471-c520-4ccb-a60a-8b3d55d2b030'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'71189471-c520-4ccb-a60a-8b3d55d2b030',990,990,'00000000-0000-0000-0000-000000000000',6,'领导意见',4,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="369" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">领导意见  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="990" fieldname="领导意见" fldid="6" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'990,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=6,[Report_EntId]=990,[EntId]=990,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=6,[FieldName]='领导意见',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="369" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">领导意见  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="990" fieldname="领导意见" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='990,' where  [FldUId]='71189471-c520-4ccb-a60a-8b3d55d2b030' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='2123c987-2111-441f-8b9a-a72f70211f17'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(158,'2123c987-2111-441f-8b9a-a72f70211f17',990,990,'00000000-0000-0000-0000-000000000000',2,'姓名',5,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>




<li areaid="374" style="height: 38px; width: 792px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="158">姓名  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="990" fieldname="姓名" fldid="158" columntypeid="1" class="form-ctr">','</span>
  </div>
</li>
</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="990" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="375" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="376" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="990" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="377" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="990" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="378" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="990" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="379" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="380" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',-1,-1,-1,-1,0,'990,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=158,[Report_EntId]=990,[EntId]=990,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='姓名',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>




<li areaid="374" style="height: 38px; width: 792px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="158">姓名  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="990" fieldname="姓名" fldid="158" columntypeid="1" class="form-ctr">',[LastHtml]='</span>
  </div>
</li>
</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="990" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="375" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="376" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="990" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="377" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="990" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="378" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="990" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="379" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="380" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='990,' where  [FldUId]='2123c987-2111-441f-8b9a-a72f70211f17' 
      end



Delete from [Dcx_ListReport_Run]  where [EntId]=990

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=990  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('28c208e2-cffe-4baa-8042-f4584a7c726b','工作日志',990,1,'','','<$990$>select *  from (select row_number() over( order by [序号])as dcx_rowid,[姓名],[日期],[工作内容1],[领导意见],[部门],[序号] from 工作日志  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$990$><$990:Count$>select count([序号]) from 工作日志 where {$SearchArea}</$990:Count$>',1,1,20,'DcxRun.ListR_990= {"MenuId":1950,"MEntId":990,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"工作日志","EntMsg":{"E990":{"EntId":990,"EntName":"工作日志","KeyFieldValue":"","DBTableName":"","KeyField":"序号","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','990*序号*2**2*工作日志*工作日志',3,'','2012-12-22 5:16:19',3,'','2013-11-16 20:15:39',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='28c208e2-cffe-4baa-8042-f4584a7c726b',[ReportName]='工作日志',[ModuleId]=1,[StaticHtml]='',[DIYJsCss]='',[LoadingSql]='<$990$>select *  from (select row_number() over( order by [序号])as dcx_rowid,[姓名],[日期],[工作内容1],[领导意见],[部门],[序号] from 工作日志  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$990$><$990:Count$>select count([序号]) from 工作日志 where {$SearchArea}</$990:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[AutoPublicJs]='DcxRun.ListR_990= {"MenuId":1950,"MEntId":990,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"工作日志","EntMsg":{"E990":{"EntId":990,"EntName":"工作日志","KeyFieldValue":"","DBTableName":"","KeyField":"序号","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='990*序号*2**2*工作日志*工作日志',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-22 5:16:19',[EditorId]=3,[Editor]='',[EditTime]='2013-11-16 20:15:39',[AccountId]=1 where  [EntId]=990 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='06d53e25-e2c6-ab73-8f22-125095c82f22'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(194,'06d53e25-e2c6-ab73-8f22-125095c82f22',990,990,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="85" entid="990" style="width: 730px;" ctrlprex="ListR_" isrple="1"> <li areaid="1008" class="tool-li" style="position: static;">
</li><li areaid="1009" class="tool-li" style="position: static;"><a id="ListR_990_btn_buildNew" class="list-bt-add" title="添   加" href="javascript:void(0);" onclick="javascript:DcxCom.ShowAddDataDlg(990,''ListR_'');">添   加</a></li>
<li areaid="1010" class="tool-li" style="position: static;"><a id="ListR_990_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(990,''ListR_'');">删   除</a></li>
<li areaid="1011" class="tool-li" style="position: static;"><a id="ListR_990_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(990,''ListR_'');">导   出</a></li>
<li areaid="1012" class="tool-li" style="position: static;"><a id="ListR_990_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(990,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_990" style="position: static;">
<a id="ListR_990_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(990,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_990_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(990,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_990_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(990,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_990_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="86" entid="990" class="list-head-ul" style="width: 726px;" ctrlprex="ListR_" isrple="1">
<li areaid="1014" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_990" onclick="javascript:DcxCom.CheckedAll(this,990,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="1015" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">姓名 </label></li><li areaid="1016" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">日期 </label></li><li areaid="1017" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">工作内容1 </label></li><li areaid="1018" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">领导意见 </label></li><li areaid="1019" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">部门 </label></li><li areaid="1020" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="编辑"><span class="i">编辑</span></a></div></li><li areaid="1021" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="1022" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">','',-1,87,-1,-1,1,'990,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=194,[Report_EntId]=990,[EntId]=990,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="85" entid="990" style="width: 730px;" ctrlprex="ListR_" isrple="1"> <li areaid="1008" class="tool-li" style="position: static;">
</li><li areaid="1009" class="tool-li" style="position: static;"><a id="ListR_990_btn_buildNew" class="list-bt-add" title="添   加" href="javascript:void(0);" onclick="javascript:DcxCom.ShowAddDataDlg(990,''ListR_'');">添   加</a></li>
<li areaid="1010" class="tool-li" style="position: static;"><a id="ListR_990_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(990,''ListR_'');">删   除</a></li>
<li areaid="1011" class="tool-li" style="position: static;"><a id="ListR_990_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(990,''ListR_'');">导   出</a></li>
<li areaid="1012" class="tool-li" style="position: static;"><a id="ListR_990_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(990,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_990" style="position: static;">
<a id="ListR_990_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(990,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_990_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(990,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_990_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(990,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_990_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="86" entid="990" class="list-head-ul" style="width: 726px;" ctrlprex="ListR_" isrple="1">
<li areaid="1014" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_990" onclick="javascript:DcxCom.CheckedAll(this,990,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="1015" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">姓名 </label></li><li areaid="1016" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">日期 </label></li><li areaid="1017" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">工作内容1 </label></li><li areaid="1018" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">领导意见 </label></li><li areaid="1019" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">部门 </label></li><li areaid="1020" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="编辑"><span class="i">编辑</span></a></div></li><li areaid="1021" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="1022" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='990,' where  [FldUId]='06d53e25-e2c6-ab73-8f22-125095c82f22' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='078c5282-12d9-4a0b-935b-edbdb31a1325'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(154,'078c5282-12d9-4a0b-935b-edbdb31a1325',990,990,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',2,1,'',2,21,0,'','','','islonly="1" isgroup="1" groupid="87" class="list-body-ul" style="width: 726px;" isrple="1">
<li areaid="1023" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="990" issyscheck="1" keyvalue="','',-1,87,-1,-1,1,'990,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=154,[Report_EntId]=990,[EntId]=990,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='islonly="1" isgroup="1" groupid="87" class="list-body-ul" style="width: 726px;" isrple="1">
<li areaid="1023" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="990" issyscheck="1" keyvalue="',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='990,' where  [FldUId]='078c5282-12d9-4a0b-935b-edbdb31a1325' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='0fe2a7de-1e28-46c7-915e-24f6a43dabf5'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'0fe2a7de-1e28-46c7-915e-24f6a43dabf5',990,990,'00000000-0000-0000-0000-000000000000',2,'姓名',3,1,'varchar',2,1,0,'','','','" type="checkbox"></li><li areaid="1024" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="990" fieldname="姓名" fldid="2" columntypeid="1" class="form-ctr">','',-1,87,-1,-1,1,'990,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=2,[Report_EntId]=990,[EntId]=990,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='姓名',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='" type="checkbox"></li><li areaid="1024" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="990" fieldname="姓名" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='990,' where  [FldUId]='0fe2a7de-1e28-46c7-915e-24f6a43dabf5' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='d6ce8ec0-7089-4f2a-9735-e605a9a65236'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'d6ce8ec0-7089-4f2a-9735-e605a9a65236',990,990,'00000000-0000-0000-0000-000000000000',5,'日期',4,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1025" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="990" fieldname="日期" fldid="3" columntypeid="1" class="form-ctr">','',-1,87,-1,-1,1,'990,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=3,[Report_EntId]=990,[EntId]=990,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=5,[FieldName]='日期',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1025" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="990" fieldname="日期" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='990,' where  [FldUId]='d6ce8ec0-7089-4f2a-9735-e605a9a65236' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='a5a1a068-e1d8-45a0-a703-19261f2b9867'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'a5a1a068-e1d8-45a0-a703-19261f2b9867',990,990,'00000000-0000-0000-0000-000000000000',9,'工作内容1',5,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1026" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="990" fieldname="工作内容1" fldid="4" columntypeid="1" class="form-ctr">','',-1,87,-1,-1,1,'990,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=4,[Report_EntId]=990,[EntId]=990,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=9,[FieldName]='工作内容1',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1026" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="990" fieldname="工作内容1" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='990,' where  [FldUId]='a5a1a068-e1d8-45a0-a703-19261f2b9867' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='209aaa4e-070f-4671-90a6-3bbcd5f1be07'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'209aaa4e-070f-4671-90a6-3bbcd5f1be07',990,990,'00000000-0000-0000-0000-000000000000',6,'领导意见',6,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1027" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="990" fieldname="领导意见" fldid="6" columntypeid="1" class="form-ctr">','',-1,87,-1,-1,1,'990,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=6,[Report_EntId]=990,[EntId]=990,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=6,[FieldName]='领导意见',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1027" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="990" fieldname="领导意见" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='990,' where  [FldUId]='209aaa4e-070f-4671-90a6-3bbcd5f1be07' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='bc54931c-5b36-40dd-9690-0cfeeef92893'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'bc54931c-5b36-40dd-9690-0cfeeef92893',990,990,'00000000-0000-0000-0000-000000000000',3,'部门',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1028" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="990" fieldname="部门" fldid="7" columntypeid="1" class="form-ctr">','',-1,87,-1,-1,1,'990,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=7,[Report_EntId]=990,[EntId]=990,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='部门',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1028" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="990" fieldname="部门" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='990,' where  [FldUId]='bc54931c-5b36-40dd-9690-0cfeeef92893' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='2af9ea88-e211-4d98-b989-ca408d89d68e'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(155,'2af9ea88-e211-4d98-b989-ca408d89d68e',990,990,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',8,1,'',2,21,0,'','','','</span>
  </div>
</li><li areaid="1029" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,990,''ListR_'',''','',-1,87,-1,-1,1,'990,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=155,[Report_EntId]=990,[EntId]=990,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1029" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,990,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='990,' where  [FldUId]='2af9ea88-e211-4d98-b989-ca408d89d68e' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='f1e77d77-6d3e-473a-978f-e38e0c879da9'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(156,'f1e77d77-6d3e-473a-978f-e38e0c879da9',990,990,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',9,1,'',2,21,0,'','','',''',null,1040,480);">
<span class="i">编辑</span></a></div>
</li><li areaid="1030" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,990,''ListR_'',''','',-1,87,-1,-1,1,'990,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=156,[Report_EntId]=990,[EntId]=990,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">编辑</span></a></div>
</li><li areaid="1030" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,990,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='990,' where  [FldUId]='f1e77d77-6d3e-473a-978f-e38e0c879da9' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='4c68d846-562c-40bd-8b4d-0030a0406e93'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(157,'4c68d846-562c-40bd-8b4d-0030a0406e93',990,990,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',10,1,'',2,21,0,'','','',''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="1031" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,990,''ListR_'',''','',-1,87,-1,-1,1,'990,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=157,[Report_EntId]=990,[EntId]=990,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=10,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="1031" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,990,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='990,' where  [FldUId]='4c68d846-562c-40bd-8b4d-0030a0406e93' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='e4e4d879-1ada-d34b-9527-398e012d38d0'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(195,'e4e4d879-1ada-d34b-9527-398e012d38d0',990,990,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',11,-1,'varchar',2,13,0,'','','',''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>','</div>
</div>
<!-- 结束 --></div>',-1,87,-1,-1,1,'990,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=195,[Report_EntId]=990,[EntId]=990,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=11,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>',[LastHtml]='</div>
</div>
<!-- 结束 --></div>',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='990,' where  [FldUId]='e4e4d879-1ada-d34b-9527-398e012d38d0' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=860

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=860  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(860,null,'工作日志','工作日志',0,0,0,0,0,0,30,1,3,'admin','2013-12-15 17:32:45',3,'admin','2013-12-15 17:32:45',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='工作日志',[DBTableByName]='工作日志',[IsForbid]=0,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=30,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:45',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:45',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=860 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=860  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18722,1,30,860,'int',1,1,1,'工作日志','序号','序号','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='工作日志',[FieldName]='序号',[FieldByname]='序号',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=860  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=860  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18723,2,30,860,'varchar',2,1,1,'工作日志','姓名','姓名','',0,0,1,10,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='工作日志',[FieldName]='姓名',[FieldByname]='姓名',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=10,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=860  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=860  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18724,3,30,860,'varchar',2,1,1,'工作日志','部门','部门','',0,0,1,20,20,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='工作日志',[FieldName]='部门',[FieldByname]='部门',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=20,[Precision]=20,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=860  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=860  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18725,4,30,860,'varchar',2,1,1,'工作日志','部门编号','部门编号','',0,0,1,20,20,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='工作日志',[FieldName]='部门编号',[FieldByname]='部门编号',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=20,[Precision]=20,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=860  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=860  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18726,5,30,860,'varchar',2,1,1,'工作日志','日期','日期','getdate()',0,0,0,30,30,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='工作日志',[FieldName]='日期',[FieldByname]='日期',[DefaultValue]='getdate()',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=30,[Precision]=30,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=860  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=860  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18727,6,30,860,'text',6,1,1,'工作日志','领导意见','领导意见','',0,0,1,16,2147483647,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='text',[FieldDataTypeId]=6,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='工作日志',[FieldName]='领导意见',[FieldByname]='领导意见',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=16,[Precision]=2147483647,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=860  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=860  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18728,7,30,860,'varchar',2,1,1,'工作日志','本人意见','本人意见','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='工作日志',[FieldName]='本人意见',[FieldByname]='本人意见',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=860  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=860  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18729,8,30,860,'varchar',2,1,1,'工作日志','填写人','填写人','',0,0,1,20,20,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='工作日志',[FieldName]='填写人',[FieldByname]='填写人',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=20,[Precision]=20,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=860  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=860  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18730,9,30,860,'text',6,1,1,'工作日志','工作内容1','工作内容1','',0,0,1,16,2147483647,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='text',[FieldDataTypeId]=6,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='工作日志',[FieldName]='工作内容1',[FieldByname]='工作内容1',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=16,[Precision]=2147483647,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=860  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=860  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18731,10,30,860,'text',6,1,1,'工作日志','工作内容','工作内容','',0,0,1,16,2147483647,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='text',[FieldDataTypeId]=6,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='工作日志',[FieldName]='工作内容',[FieldByname]='工作内容',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=16,[Precision]=2147483647,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=860  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=860  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18732,11,30,860,'varchar',2,1,1,'工作日志','起止时间','起止时间','',0,0,1,20,20,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='工作日志',[FieldName]='起止时间',[FieldByname]='起止时间',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=20,[Precision]=20,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=860  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=860  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18733,12,30,860,'varchar',2,1,1,'工作日志','内容输入','内容输入','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='工作日志',[FieldName]='内容输入',[FieldByname]='内容输入',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=860  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=860  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18734,13,30,860,'varchar',2,1,1,'工作日志','write_date','write_date','',0,0,1,20,20,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='工作日志',[FieldName]='write_date',[FieldByname]='write_date',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=20,[Precision]=20,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=860  and  [FieldId]=13 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=1963  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(1963,'064c3fa0-6e68-431e-9285-5622efb59bfe','通讯录',948,'/MyApp/WebIM/FriendManage.html',1,'\Images\icon2\contact[1].gif','\Images\icon2\contact[1].gif',12,'_blank',0,0,'',30,0,30,0,1,1,null,'',0,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='064c3fa0-6e68-431e-9285-5622efb59bfe',[MenuName]='通讯录',[ParentId]=948,[ProPath]='/MyApp/WebIM/FriendManage.html',[TemplateId]=1,[ImgPath]='\Images\icon2\contact[1].gif',[ExImgPath]='\Images\icon2\contact[1].gif',[OrderBy]=12,[Target]='_blank',[IsOpen]=0,[IsHidden]=0,[Remark]='',[SSystemId]=30,[SMenuId]=0,[SystemId]=30,[EntityCount]=0,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=1963 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=1963  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(47,1963,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=1963  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=1970  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(1970,'8af4ef6b-7d35-4ab8-9acb-ec82e584ea38','员工日志',948,'/bumen_node_show.aspx',1,'/images/default.gif','/images/default.gif',16,'main',0,1,'',30,0,30,0,1,1,null,'',0,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='8af4ef6b-7d35-4ab8-9acb-ec82e584ea38',[MenuName]='员工日志',[ParentId]=948,[ProPath]='/bumen_node_show.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=16,[Target]='main',[IsOpen]=0,[IsHidden]=1,[Remark]='',[SSystemId]=30,[SMenuId]=0,[SystemId]=30,[EntityCount]=0,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=1970 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=1970  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(1025,1970,'员工日志','Public',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='员工日志',[RoleName]='Public',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=1970  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=1979  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(1979,'e83c8bea-fe1b-4838-8f99-9bb09c7ed37d','微盘',948,'/MyApp/Document/MyDoc.html?menuid=7',1,'images/icon2/channel[1].gif','images/icon2/channel[1].gif',5,'main',0,0,'',30,0,30,0,1,1,null,'',0,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='e83c8bea-fe1b-4838-8f99-9bb09c7ed37d',[MenuName]='微盘',[ParentId]=948,[ProPath]='/MyApp/Document/MyDoc.html?menuid=7',[TemplateId]=1,[ImgPath]='images/icon2/channel[1].gif',[ExImgPath]='images/icon2/channel[1].gif',[OrderBy]=5,[Target]='main',[IsOpen]=0,[IsHidden]=0,[Remark]='',[SSystemId]=30,[SMenuId]=0,[SystemId]=30,[EntityCount]=0,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=1979 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=1979  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(52,1979,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=1979  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=1994  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(1994,'f863385e-747e-46c7-b47c-48bf15ee726d','微日记',948,'/MyApp/Diary/Diary.html?menuid=6',1,'images/grbg/edit1_password.gif','images/grbg/edit1_password.gif',4,'main',0,0,'',30,0,30,0,1,1,null,'',0,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='f863385e-747e-46c7-b47c-48bf15ee726d',[MenuName]='微日记',[ParentId]=948,[ProPath]='/MyApp/Diary/Diary.html?menuid=6',[TemplateId]=1,[ImgPath]='images/grbg/edit1_password.gif',[ExImgPath]='images/grbg/edit1_password.gif',[OrderBy]=4,[Target]='main',[IsOpen]=0,[IsHidden]=0,[Remark]='',[SSystemId]=30,[SMenuId]=0,[SystemId]=30,[EntityCount]=0,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=1994 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=1994  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(57,1994,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=1994  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=2033  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2033,'978ab2b3-bbb9-4b31-9dc1-88ef308d2095','部门成员',1963,'/Template/default/ListReport/ListReport_Tree001.aspx',1,'/images/default.gif','/images/default.gif',1000,'main',0,1,'',30,0,30,1,1,1,null,'',0,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='978ab2b3-bbb9-4b31-9dc1-88ef308d2095',[MenuName]='部门成员',[ParentId]=1963,[ProPath]='/Template/default/ListReport/ListReport_Tree001.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=1000,[Target]='main',[IsOpen]=0,[IsHidden]=1,[Remark]='',[SSystemId]=30,[SMenuId]=0,[SystemId]=30,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=2033 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=2033  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(76,2033,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=2033  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=1087  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(1087,2033,'部门成员',1,-1,0,'EW_DepartmentInfo',0,0,1,30,1087,null,null,30,null,null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=2033,[EntName]='部门成员',[MEnt]=1,[DBTableId]=-1,[DBConnectId]=0,[DBTableName]='EW_DepartmentInfo',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=30,[SEntId]=1087,[FSystemId]=null,[FEntId]=null,[SystemId]=30,[Remark]=null,[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=1087 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=1087

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=1087  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(10357,2033,1087,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=2033,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=1087  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=1087

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1087  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20520,30,2033,1087,13,1,1,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=2033,[TemplateId]=13,[ModuleId]=1,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1087  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1087  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20521,30,2033,1087,13,2,9,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=2033,[TemplateId]=13,[ModuleId]=9,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1087  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1087  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20522,30,2033,1087,13,3,14,1,4,2,'/Template/Default/Form/AjaxForm/AjaxForm008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=2033,[TemplateId]=13,[ModuleId]=14,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='/Template/Default/Form/AjaxForm/AjaxForm008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1087  and  [ModuleTypeId]=3 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1087  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20523,30,2033,1087,13,16,31,1,5,2,'/Template/Default/Browse/Browse008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=2033,[TemplateId]=13,[ModuleId]=31,[GroupId]=1,[AreaId]=5,[ShowMode]=2,[AreaUrl]='/Template/Default/Browse/Browse008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1087  and  [ModuleTypeId]=16 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_AjaxForm_Run]  where [EntId]=1087

--Dcx_AjaxForm_Run
      if (select count(1) from [Dcx_AjaxForm_Run] where  [EntId]=1087  )<1 
      begin 
           Insert into [Dcx_AjaxForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('6d5ffd97-a724-439c-9ada-961b20f1d92f','部门成员',1087,14,'','',0,'<!--/js/Control/tabs/vonle.tabs.js-->','','var AjaxF_EntMsg_1087= {"MenuId":2033,"MEntId":1087,"EntName":"部门成员","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"Ent_1087":{"EntId":1087,"KeyFieldValue":"","DBTableName":"EW_DepartmentInfo","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HIddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}};','/****************下：初始化******************/
try
{

if(!AjaxF_EntMsg_1087.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
function getEntityJson_AjaxF_1087()
{
    return {Header:{TotalRows:-1,TableName:"EW_DepartmentInfo",EntId:1087,KeyField:"Id",MKeyField:"Id",MKeyValue:"",DataTypeId:2,OpType:1,IsMEnt:true,InsertTrigger:null,UpdateTrigger:null,DeleteTrigger:null,DeletedKeyVS:null,ChildCount:0},FieldDefine:{dept:{DtId:2,DB:1,CId:3,FL:0},username:{DtId:2,DB:1,CId:1,FL:0},img:{DtId:11,DB:1,CId:32,FL:0},job:{DtId:2,DB:1,CId:1,FL:0},sex:{DtId:2,DB:1,CId:3,FL:0},officeId:{DtId:2,DB:1,CId:1,FL:0},homeTel:{DtId:2,DB:1,CId:1,FL:0},mobile:{DtId:2,DB:1,CId:1,FL:0},tel:{DtId:2,DB:1,CId:1,FL:0},jobDesc:{DtId:2,DB:1,CId:2,FL:0},Messages:{DtId:2,DB:1,CId:2,FL:0},serialNum:{DtId:1,DB:1,CId:1,FL:0}},Data:{Row:[]}};
}
function CreateFieldJson_AjaxF_1087()
{
    return {dept:"",username:"",img:"",job:"",sex:"",officeId:"",homeTel:"",mobile:"",tel:"",jobDesc:"",Messages:"",serialNum:-1,Dcx_Keymsg:{RowIx:-1,KeyField:"Id",KeyFieldValue:"",DataTypeId:2,OpType:1},Dcx_Childmsg:{Child:[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


 function SubmitForm_AjaxF_1087(buildNew,closeDlg){
return DcxForm.SumbitAf(1087,''AjaxF_'',buildNew,closeDlg);

}','<$1087$>select [dept],[username],[img],[job],[sex],[officeId],[homeTel],[mobile],[tel],[jobDesc],[Messages],[serialNum],[Id] from EW_DepartmentInfo where [Id]=''{$keyfieldvalue}''</$1087$>',20,'','','','1087*Id*2**2*EW_DepartmentInfo',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 7:02:48',3,'admin','2013-2-27 8:26:27',1)
      end
      else 
      begin 
           update [Dcx_AjaxForm_Run] set [FormId]='6d5ffd97-a724-439c-9ada-961b20f1d92f',[FormName]='部门成员',[ModuleId]=14,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<!--/js/Control/tabs/vonle.tabs.js-->',[DIYJsCss2]='',[AutoPublicJs]='var AjaxF_EntMsg_1087= {"MenuId":2033,"MEntId":1087,"EntName":"部门成员","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"Ent_1087":{"EntId":1087,"KeyFieldValue":"","DBTableName":"EW_DepartmentInfo","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HIddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}};',[AutoInitJs]='/****************下：初始化******************/
try
{

if(!AjaxF_EntMsg_1087.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
function getEntityJson_AjaxF_1087()
{
    return {Header:{TotalRows:-1,TableName:"EW_DepartmentInfo",EntId:1087,KeyField:"Id",MKeyField:"Id",MKeyValue:"",DataTypeId:2,OpType:1,IsMEnt:true,InsertTrigger:null,UpdateTrigger:null,DeleteTrigger:null,DeletedKeyVS:null,ChildCount:0},FieldDefine:{dept:{DtId:2,DB:1,CId:3,FL:0},username:{DtId:2,DB:1,CId:1,FL:0},img:{DtId:11,DB:1,CId:32,FL:0},job:{DtId:2,DB:1,CId:1,FL:0},sex:{DtId:2,DB:1,CId:3,FL:0},officeId:{DtId:2,DB:1,CId:1,FL:0},homeTel:{DtId:2,DB:1,CId:1,FL:0},mobile:{DtId:2,DB:1,CId:1,FL:0},tel:{DtId:2,DB:1,CId:1,FL:0},jobDesc:{DtId:2,DB:1,CId:2,FL:0},Messages:{DtId:2,DB:1,CId:2,FL:0},serialNum:{DtId:1,DB:1,CId:1,FL:0}},Data:{Row:[]}};
}
function CreateFieldJson_AjaxF_1087()
{
    return {dept:"",username:"",img:"",job:"",sex:"",officeId:"",homeTel:"",mobile:"",tel:"",jobDesc:"",Messages:"",serialNum:-1,Dcx_Keymsg:{RowIx:-1,KeyField:"Id",KeyFieldValue:"",DataTypeId:2,OpType:1},Dcx_Childmsg:{Child:[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


 function SubmitForm_AjaxF_1087(buildNew,closeDlg){
return DcxForm.SumbitAf(1087,''AjaxF_'',buildNew,closeDlg);

}',[LoadingSql]='<$1087$>select [dept],[username],[img],[job],[sex],[officeId],[homeTel],[mobile],[tel],[jobDesc],[Messages],[serialNum],[Id] from EW_DepartmentInfo where [Id]=''{$keyfieldvalue}''</$1087$>',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='1087*Id*2**2*EW_DepartmentInfo',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 7:02:48',[EditorId]=3,[Editor]='admin',[EditTime]='2013-2-27 8:26:27',[AccountId]=1 where  [EntId]=1087 
      end




--Dcx_AjaxFormField_Run
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='797f348e-fa8a-4e34-a807-3d2e6c11d3ab'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(889,'797f348e-fa8a-4e34-a807-3d2e6c11d3ab',1087,1087,'00000000-0000-0000-0000-000000000000','dept',2,2,-1,'',1,1,null,0,3,1,0,1,-1,0,0,'','','','','<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" isgroup="1" groupId="91" isrple="1">
<li style="position: static;" class="li-area-title" scroll="no" areaId="361">
<div Id="div_head1" class="form-title5"><span Id="h2_title" class="title-name">部门成员</span></div></li>
<li style="position: static;" class="li-area1" scroll="no" areaId="362"><a class="f_hot_op_bt f_hot_op_bt3 " onclick="javascript:DcxForm.Close();" href="javascript:void(0);"><span class="op_bt_i">关闭</span> </a></li>
<li style="position: static;" class="li-area1" scroll="no" areaId="363"><a class="f_hot_op_bt f_hot_op_bt1 " onclick="javascript:DcxRun.AjaxF_1087.SubmitForm(false);" href="javascript:void(0);"><span class="op_bt_i">保存</span> </a></li>
<li style="position: static;" class="li-area1" scroll="no" areaId="364"><a Id="btn_NewBrotherMenu" class="f_hot_op_bt f_hot_op_bt2" onclick="javascript:DcxForm.BuildNew(1087,''AjaxF_'');" href="javascript:void(0);"><span class="op_bt_i">新建</span> </a></li></ul></div>
<div class="frame-div">
<ul class="ul-mform" isgroup="1" groupId="92" isrple="1">
<li style="wIdth: 395px; height: 38px; position: static;" class="li-area" scroll="no" areaId="365"><label class="area-title pad7" fldId="889" istitle="1">部门 </label>
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">','','','','<select Id="d1087_dept" name="d1087_dept" class="form-select"  onchange ="javascript:dcx_Validate(this,1087,''AjaxF_'',1087,false,$(this).val());" onfocus ="javascript:dcx_Validate_Focus(this,1087,''AjaxF_'',1087);" EntId="1087" IsField=1 DBField=1 IsPost=1 FieldName="dept" dType="2" Vtp="1" RDT="2" Isc="0" RId="1" CId="3" FId="889"  style="wIdth:201px;">','<option  value="局领导"  >局领导</option>
<option  value="办公室"  >办公室</option>
<option  value="航管科"  >航管科</option>
<option  value="人教科"  >人教科</option>
<option  value="计财科"  >计财科</option>
<option  value="项目办"  >项目办</option>
<option  value="航政所"  >航政所</option>
</select>','',-1,-1,-1,-1,0,'1087,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=889,[Form_EntId]=1087,[EntId]=1087,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='dept',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=1,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" isgroup="1" groupId="91" isrple="1">
<li style="position: static;" class="li-area-title" scroll="no" areaId="361">
<div Id="div_head1" class="form-title5"><span Id="h2_title" class="title-name">部门成员</span></div></li>
<li style="position: static;" class="li-area1" scroll="no" areaId="362"><a class="f_hot_op_bt f_hot_op_bt3 " onclick="javascript:DcxForm.Close();" href="javascript:void(0);"><span class="op_bt_i">关闭</span> </a></li>
<li style="position: static;" class="li-area1" scroll="no" areaId="363"><a class="f_hot_op_bt f_hot_op_bt1 " onclick="javascript:DcxRun.AjaxF_1087.SubmitForm(false);" href="javascript:void(0);"><span class="op_bt_i">保存</span> </a></li>
<li style="position: static;" class="li-area1" scroll="no" areaId="364"><a Id="btn_NewBrotherMenu" class="f_hot_op_bt f_hot_op_bt2" onclick="javascript:DcxForm.BuildNew(1087,''AjaxF_'');" href="javascript:void(0);"><span class="op_bt_i">新建</span> </a></li></ul></div>
<div class="frame-div">
<ul class="ul-mform" isgroup="1" groupId="92" isrple="1">
<li style="wIdth: 395px; height: 38px; position: static;" class="li-area" scroll="no" areaId="365"><label class="area-title pad7" fldId="889" istitle="1">部门 </label>
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select Id="d1087_dept" name="d1087_dept" class="form-select"  onchange ="javascript:dcx_Validate(this,1087,''AjaxF_'',1087,false,$(this).val());" onfocus ="javascript:dcx_Validate_Focus(this,1087,''AjaxF_'',1087);" EntId="1087" IsField=1 DBField=1 IsPost=1 FieldName="dept" dType="2" Vtp="1" RDT="2" Isc="0" RId="1" CId="3" FId="889"  style="wIdth:201px;">',[CtrlbackHtml]='<option  value="局领导"  >局领导</option>
<option  value="办公室"  >办公室</option>
<option  value="航管科"  >航管科</option>
<option  value="人教科"  >人教科</option>
<option  value="计财科"  >计财科</option>
<option  value="项目办"  >项目办</option>
<option  value="航政所"  >航政所</option>
</select>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1087,' where  [FldUId]='797f348e-fa8a-4e34-a807-3d2e6c11d3ab' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='bf717da6-c8f6-4c36-a606-cbcac2fdc18d'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(890,'bf717da6-c8f6-4c36-a606-cbcac2fdc18d',1087,1087,'00000000-0000-0000-0000-000000000000','username',2,2,-1,'',5,1,null,0,1,1,0,2,-1,0,0,'','','','','</span> </div></li>
<li style="wIdth: 395px; height: 38px; position: static;" class="li-area" scroll="no" areaId="366"><label class="area-title pad7" fldId="890" istitle="1">姓名 </label>
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">','','','','<input  Id="d1087_username"   type="text" class="form-txt"  style="wIdth:201px;" onblur ="javascript:if(!dcx_Validate(this,1087,''AjaxF_'',1087,false,$(this).val()))return false;" onfocus ="javascript:dcx_Validate_Focus(this,1087,''AjaxF_'',1087);" EntId="1087" IsField=1 DBField=1 IsPost=1 FieldName="username" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="890"  value="','"/>','',-1,-1,-1,-1,0,'1087,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=890,[Form_EntId]=1087,[EntId]=1087,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='username',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=2,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="wIdth: 395px; height: 38px; position: static;" class="li-area" scroll="no" areaId="366"><label class="area-title pad7" fldId="890" istitle="1">姓名 </label>
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  Id="d1087_username"   type="text" class="form-txt"  style="wIdth:201px;" onblur ="javascript:if(!dcx_Validate(this,1087,''AjaxF_'',1087,false,$(this).val()))return false;" onfocus ="javascript:dcx_Validate_Focus(this,1087,''AjaxF_'',1087);" EntId="1087" IsField=1 DBField=1 IsPost=1 FieldName="username" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="890"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1087,' where  [FldUId]='bf717da6-c8f6-4c36-a606-cbcac2fdc18d' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='2b8caef8-7f54-4e81-b674-764b7e45ac7f'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(891,'2b8caef8-7f54-4e81-b674-764b7e45ac7f',1087,1087,'00000000-0000-0000-0000-000000000000','img',11,6,-1,'',5,-1,null,0,32,1,0,3,-1,0,0,'','','','','</span> </div></li>
<li style="wIdth: 395px; height: 38px; position: static;" class="li-area" scroll="no" areaId="367"><label class="area-title pad7" fldId="891" istitle="1">相片 </label>
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">','','','','<input  Id="d1087_img"   type="text" class="form-txt"  style="wIdth:150px;" onblur ="javascript:if(!dcx_Validate(this,1087,''AjaxF_'',1087,false,$(this).val()))return false;" onfocus ="javascript:dcx_Validate_Focus(this,1087,''AjaxF_'',1087);" EntId="1087" IsField=1 DBField=1 IsPost=1 FieldName="img" dType="11" Vtp="5" RDT="6" Isc="0" RId="1" CId="32" FId="891"  value="','"/>','',-1,-1,-1,-1,0,'1087,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=891,[Form_EntId]=1087,[EntId]=1087,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='img',[FieldDataTypeId]=11,[RunDataTypeId]=6,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=-1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=32,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=3,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="wIdth: 395px; height: 38px; position: static;" class="li-area" scroll="no" areaId="367"><label class="area-title pad7" fldId="891" istitle="1">相片 </label>
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  Id="d1087_img"   type="text" class="form-txt"  style="wIdth:150px;" onblur ="javascript:if(!dcx_Validate(this,1087,''AjaxF_'',1087,false,$(this).val()))return false;" onfocus ="javascript:dcx_Validate_Focus(this,1087,''AjaxF_'',1087);" EntId="1087" IsField=1 DBField=1 IsPost=1 FieldName="img" dType="11" Vtp="5" RDT="6" Isc="0" RId="1" CId="32" FId="891"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1087,' where  [FldUId]='2b8caef8-7f54-4e81-b674-764b7e45ac7f' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='33631152-689a-43fb-a251-e165ebc08345'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(892,'33631152-689a-43fb-a251-e165ebc08345',1087,1087,'00000000-0000-0000-0000-000000000000','job',2,2,-1,'',5,1,null,0,1,1,0,4,-1,0,0,'','','','','</span> </div></li>
<li style="wIdth: 395px; height: 38px; position: static;" class="li-area" scroll="no" areaId="368"><label class="area-title pad7" fldId="892" istitle="1">职务 </label>
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">','','','','<input  Id="d1087_job"   type="text" class="form-txt"  style="wIdth:150px;" onblur ="javascript:if(!dcx_Validate(this,1087,''AjaxF_'',1087,false,$(this).val()))return false;" onfocus ="javascript:dcx_Validate_Focus(this,1087,''AjaxF_'',1087);" EntId="1087" IsField=1 DBField=1 IsPost=1 FieldName="job" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="892"  value="','"/>','',-1,-1,-1,-1,0,'1087,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=892,[Form_EntId]=1087,[EntId]=1087,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='job',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=4,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="wIdth: 395px; height: 38px; position: static;" class="li-area" scroll="no" areaId="368"><label class="area-title pad7" fldId="892" istitle="1">职务 </label>
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  Id="d1087_job"   type="text" class="form-txt"  style="wIdth:150px;" onblur ="javascript:if(!dcx_Validate(this,1087,''AjaxF_'',1087,false,$(this).val()))return false;" onfocus ="javascript:dcx_Validate_Focus(this,1087,''AjaxF_'',1087);" EntId="1087" IsField=1 DBField=1 IsPost=1 FieldName="job" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="892"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1087,' where  [FldUId]='33631152-689a-43fb-a251-e165ebc08345' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='dc4f4e5f-0ae1-4549-9c62-c37a8b208921'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(893,'dc4f4e5f-0ae1-4549-9c62-c37a8b208921',1087,1087,'00000000-0000-0000-0000-000000000000','sex',2,2,-1,'',1,1,null,0,3,1,0,5,-1,0,0,'','','','','</span> </div></li>
<li style="wIdth: 395px; height: 38px; position: static;" class="li-area" scroll="no" areaId="369"><label class="area-title pad7" fldId="893" istitle="1">性别 </label>
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">','','','','<select Id="d1087_sex" name="d1087_sex" class="form-select"  onchange ="javascript:dcx_Validate(this,1087,''AjaxF_'',1087,false,$(this).val());" onfocus ="javascript:dcx_Validate_Focus(this,1087,''AjaxF_'',1087);" EntId="1087" IsField=1 DBField=1 IsPost=1 FieldName="sex" dType="2" Vtp="1" RDT="2" Isc="0" RId="1" CId="3" FId="893"  style="wIdth:150px;">','<option  value="男"  >男</option>
<option  value="女"  >女</option>
</select>','',-1,-1,-1,-1,0,'1087,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=893,[Form_EntId]=1087,[EntId]=1087,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='sex',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=1,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=5,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="wIdth: 395px; height: 38px; position: static;" class="li-area" scroll="no" areaId="369"><label class="area-title pad7" fldId="893" istitle="1">性别 </label>
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select Id="d1087_sex" name="d1087_sex" class="form-select"  onchange ="javascript:dcx_Validate(this,1087,''AjaxF_'',1087,false,$(this).val());" onfocus ="javascript:dcx_Validate_Focus(this,1087,''AjaxF_'',1087);" EntId="1087" IsField=1 DBField=1 IsPost=1 FieldName="sex" dType="2" Vtp="1" RDT="2" Isc="0" RId="1" CId="3" FId="893"  style="wIdth:150px;">',[CtrlbackHtml]='<option  value="男"  >男</option>
<option  value="女"  >女</option>
</select>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1087,' where  [FldUId]='dc4f4e5f-0ae1-4549-9c62-c37a8b208921' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='381b7b92-5d7a-41c2-8ab5-2a7bb6e23278'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(894,'381b7b92-5d7a-41c2-8ab5-2a7bb6e23278',1087,1087,'00000000-0000-0000-0000-000000000000','officeId',2,2,-1,'',5,1,null,0,1,1,0,6,-1,0,0,'','','','','</span> </div></li>
<li style="wIdth: 395px; height: 38px; position: static;" class="li-area" scroll="no" areaId="370"><label class="area-title pad7" fldId="894" istitle="1">办公房号 </label>
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">','','','','<input  Id="d1087_officeId"   type="text" class="form-txt"  style="wIdth:150px;" onblur ="javascript:if(!dcx_Validate(this,1087,''AjaxF_'',1087,false,$(this).val()))return false;" onfocus ="javascript:dcx_Validate_Focus(this,1087,''AjaxF_'',1087);" EntId="1087" IsField=1 DBField=1 IsPost=1 FieldName="officeId" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="894"  value="','"/>','',-1,-1,-1,-1,0,'1087,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=894,[Form_EntId]=1087,[EntId]=1087,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='officeId',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=6,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="wIdth: 395px; height: 38px; position: static;" class="li-area" scroll="no" areaId="370"><label class="area-title pad7" fldId="894" istitle="1">办公房号 </label>
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  Id="d1087_officeId"   type="text" class="form-txt"  style="wIdth:150px;" onblur ="javascript:if(!dcx_Validate(this,1087,''AjaxF_'',1087,false,$(this).val()))return false;" onfocus ="javascript:dcx_Validate_Focus(this,1087,''AjaxF_'',1087);" EntId="1087" IsField=1 DBField=1 IsPost=1 FieldName="officeId" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="894"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1087,' where  [FldUId]='381b7b92-5d7a-41c2-8ab5-2a7bb6e23278' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='5e4a877f-8725-42e8-be5e-133f46033106'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(895,'5e4a877f-8725-42e8-be5e-133f46033106',1087,1087,'00000000-0000-0000-0000-000000000000','homeTel',2,2,-1,'',5,1,null,0,1,1,0,7,-1,0,0,'','','','','</span> </div></li>
<li style="wIdth: 395px; height: 38px; position: static;" class="li-area" scroll="no" areaId="371"><label class="area-title pad7" fldId="895" istitle="1">住宅电话 </label>
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">','','','','<input  Id="d1087_homeTel"   type="text" class="form-txt"  style="wIdth:150px;" onblur ="javascript:if(!dcx_Validate(this,1087,''AjaxF_'',1087,false,$(this).val()))return false;" onfocus ="javascript:dcx_Validate_Focus(this,1087,''AjaxF_'',1087);" EntId="1087" IsField=1 DBField=1 IsPost=1 FieldName="homeTel" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="895"  value="','"/>','',-1,-1,-1,-1,0,'1087,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=895,[Form_EntId]=1087,[EntId]=1087,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='homeTel',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=7,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="wIdth: 395px; height: 38px; position: static;" class="li-area" scroll="no" areaId="371"><label class="area-title pad7" fldId="895" istitle="1">住宅电话 </label>
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  Id="d1087_homeTel"   type="text" class="form-txt"  style="wIdth:150px;" onblur ="javascript:if(!dcx_Validate(this,1087,''AjaxF_'',1087,false,$(this).val()))return false;" onfocus ="javascript:dcx_Validate_Focus(this,1087,''AjaxF_'',1087);" EntId="1087" IsField=1 DBField=1 IsPost=1 FieldName="homeTel" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="895"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1087,' where  [FldUId]='5e4a877f-8725-42e8-be5e-133f46033106' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='a418422c-bb2b-44d0-86c5-6a2b1c11f68f'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(896,'a418422c-bb2b-44d0-86c5-6a2b1c11f68f',1087,1087,'00000000-0000-0000-0000-000000000000','mobile',2,2,-1,'',5,1,null,0,1,1,0,8,-1,0,0,'','','','','</span> </div></li>
<li style="wIdth: 395px; height: 38px; position: static;" class="li-area" scroll="no" areaId="372"><label class="area-title pad7" fldId="896" istitle="1">手机 </label>
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">','','','','<input  Id="d1087_mobile"   type="text" class="form-txt"  style="wIdth:150px;" onblur ="javascript:if(!dcx_Validate(this,1087,''AjaxF_'',1087,false,$(this).val()))return false;" onfocus ="javascript:dcx_Validate_Focus(this,1087,''AjaxF_'',1087);" EntId="1087" IsField=1 DBField=1 IsPost=1 FieldName="mobile" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="896"  value="','"/>','',-1,-1,-1,-1,0,'1087,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=896,[Form_EntId]=1087,[EntId]=1087,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='mobile',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=8,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="wIdth: 395px; height: 38px; position: static;" class="li-area" scroll="no" areaId="372"><label class="area-title pad7" fldId="896" istitle="1">手机 </label>
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  Id="d1087_mobile"   type="text" class="form-txt"  style="wIdth:150px;" onblur ="javascript:if(!dcx_Validate(this,1087,''AjaxF_'',1087,false,$(this).val()))return false;" onfocus ="javascript:dcx_Validate_Focus(this,1087,''AjaxF_'',1087);" EntId="1087" IsField=1 DBField=1 IsPost=1 FieldName="mobile" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="896"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1087,' where  [FldUId]='a418422c-bb2b-44d0-86c5-6a2b1c11f68f' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='0374e516-152c-4851-99b3-ea1d81d53965'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(897,'0374e516-152c-4851-99b3-ea1d81d53965',1087,1087,'00000000-0000-0000-0000-000000000000','tel',2,2,-1,'',5,1,null,0,1,1,0,9,-1,0,0,'','','','','</span> </div></li>
<li style="wIdth: 395px; height: 38px; position: static;" class="li-area" scroll="no" areaId="373"><label class="area-title pad7" fldId="897" istitle="1">办公电话 </label>
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">','','','','<input  Id="d1087_tel"   type="text" class="form-txt"  style="wIdth:150px;" onblur ="javascript:if(!dcx_Validate(this,1087,''AjaxF_'',1087,false,$(this).val()))return false;" onfocus ="javascript:dcx_Validate_Focus(this,1087,''AjaxF_'',1087);" EntId="1087" IsField=1 DBField=1 IsPost=1 FieldName="tel" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="897"  value="','"/>','',-1,-1,-1,-1,0,'1087,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=897,[Form_EntId]=1087,[EntId]=1087,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='tel',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=9,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="wIdth: 395px; height: 38px; position: static;" class="li-area" scroll="no" areaId="373"><label class="area-title pad7" fldId="897" istitle="1">办公电话 </label>
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  Id="d1087_tel"   type="text" class="form-txt"  style="wIdth:150px;" onblur ="javascript:if(!dcx_Validate(this,1087,''AjaxF_'',1087,false,$(this).val()))return false;" onfocus ="javascript:dcx_Validate_Focus(this,1087,''AjaxF_'',1087);" EntId="1087" IsField=1 DBField=1 IsPost=1 FieldName="tel" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="897"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1087,' where  [FldUId]='0374e516-152c-4851-99b3-ea1d81d53965' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='054e3eff-d485-43fe-86e6-cb7583807521'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(898,'054e3eff-d485-43fe-86e6-cb7583807521',1087,1087,'00000000-0000-0000-0000-000000000000','jobDesc',2,2,-1,'',5,1,null,0,2,1,0,10,-1,0,0,'','','','','</span> </div></li>
<li style="wIdth: 395px; height: 58px; position: static;" class="li-area" scroll="no" areaId="374"><label class="area-title pad7" fldId="898" istitle="1">职责说明 </label>
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">','','','','<textarea  Id="d1087_jobDesc" class="form-txts"  style="wIdth:150px;height:20px;" onblur ="javascript:if(!dcx_Validate(this,1087,''AjaxF_'',1087,false,$(this).val()))return false;" onfocus ="javascript:dcx_Validate_Focus(this,1087,''AjaxF_'',1087);" EntId="1087" IsField=1 DBField=1 IsPost=1 FieldName="jobDesc" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="898"  >','</textarea>','',-1,-1,-1,-1,0,'1087,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=898,[Form_EntId]=1087,[EntId]=1087,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='jobDesc',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=10,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="wIdth: 395px; height: 58px; position: static;" class="li-area" scroll="no" areaId="374"><label class="area-title pad7" fldId="898" istitle="1">职责说明 </label>
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  Id="d1087_jobDesc" class="form-txts"  style="wIdth:150px;height:20px;" onblur ="javascript:if(!dcx_Validate(this,1087,''AjaxF_'',1087,false,$(this).val()))return false;" onfocus ="javascript:dcx_Validate_Focus(this,1087,''AjaxF_'',1087);" EntId="1087" IsField=1 DBField=1 IsPost=1 FieldName="jobDesc" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="898"  >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1087,' where  [FldUId]='054e3eff-d485-43fe-86e6-cb7583807521' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='8be81cc9-21e2-4bb8-8d95-3bef34fef052'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(899,'8be81cc9-21e2-4bb8-8d95-3bef34fef052',1087,1087,'00000000-0000-0000-0000-000000000000','Messages',2,2,-1,'',5,1,null,0,2,1,0,11,-1,0,0,'','','','','</span> </div></li>
<li style="wIdth: 395px; height: 58px; position: static;" class="li-area" scroll="no" areaId="375"><label class="area-title pad7" fldId="899" istitle="1">留言 </label>
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">','','','','<textarea  Id="d1087_Messages" class="form-txts"  style="wIdth:150px;height:20px;" onblur ="javascript:if(!dcx_Validate(this,1087,''AjaxF_'',1087,false,$(this).val()))return false;" onfocus ="javascript:dcx_Validate_Focus(this,1087,''AjaxF_'',1087);" EntId="1087" IsField=1 DBField=1 IsPost=1 FieldName="Messages" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="899"  >','</textarea>','',-1,-1,-1,-1,0,'1087,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=899,[Form_EntId]=1087,[EntId]=1087,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='Messages',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=11,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="wIdth: 395px; height: 58px; position: static;" class="li-area" scroll="no" areaId="375"><label class="area-title pad7" fldId="899" istitle="1">留言 </label>
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  Id="d1087_Messages" class="form-txts"  style="wIdth:150px;height:20px;" onblur ="javascript:if(!dcx_Validate(this,1087,''AjaxF_'',1087,false,$(this).val()))return false;" onfocus ="javascript:dcx_Validate_Focus(this,1087,''AjaxF_'',1087);" EntId="1087" IsField=1 DBField=1 IsPost=1 FieldName="Messages" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="2" FId="899"  >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1087,' where  [FldUId]='8be81cc9-21e2-4bb8-8d95-3bef34fef052' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='d5aa0768-85a8-4296-ba53-e99c5455bf4d'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(900,'d5aa0768-85a8-4296-ba53-e99c5455bf4d',1087,1087,'00000000-0000-0000-0000-000000000000','serialNum',1,1,-1,'',5,1,null,0,1,1,0,12,-1,0,0,'','','','','</span> </div></li>
<li style="wIdth: 395px; height: 38px; position: static;" class="li-area" scroll="no" areaId="376"><label class="area-title pad7" fldId="900" istitle="1">序号 </label>
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">','</span> </div></li></ul></div></div>
<div style="DISPLAY: none" class="div_tabs">
<ul class="tab_ul" isgroup="1" groupId="93" istab="1" islonly="1" style="" isrple="1">
<li style="position: static;" class="de-selected ui-droppable" scroll="no" areaId="377" istab="1" tabId="1"><a class="tab_a" href="javascript:void(0);" tabId="1">选项卡1</a></li>
<li style="position: static;" class="li-tab ui-droppable" scroll="no" areaId="378" istab="1" tabId="2"><a class="tab_a" href="javascript:void(0);" tabId="2">选项卡2</a></li></ul>
<div class="tabs-content" tabId="1" style="">
<ul style="wIdth: 960px;" class="ul-mform" isgroup="1" groupId="94" isrple="1">
<li style="wIdth: 395px; height: 38px; position: static;" class="li-area" scroll="no" areaId="379"><label class="area-title pad7" fldId="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">请编辑.. </div></li></ul></div>
<div style="display: none;" class="tabs-content" tabId="2">
<ul style="wIdth: 960px;" class="ul-mform" isgroup="1" groupId="95" isrple="1">
<li style="wIdth: 395px; height: 38px; position: static;" class="li-area" scroll="no" areaId="380"><label class="area-title pad7" fldId="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">请编辑.. </div></li></ul></div></div></div>','','','<input  Id="d1087_serialNum"   type="text" class="form-txt"  style="wIdth:150px;" onblur ="javascript:if(!dcx_Validate(this,1087,''AjaxF_'',1087,false,$(this).val()))return false;" onfocus ="javascript:dcx_Validate_Focus(this,1087,''AjaxF_'',1087);" EntId="1087" IsField=1 DBField=1 IsPost=1 FieldName="serialNum" dType="1" Vtp="5" RDT="1" Isc="0" RId="1" CId="1" FId="900"  value="','"/>','',-1,-1,-1,-1,0,'1087,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=900,[Form_EntId]=1087,[EntId]=1087,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='serialNum',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=12,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="wIdth: 395px; height: 38px; position: static;" class="li-area" scroll="no" areaId="376"><label class="area-title pad7" fldId="900" istitle="1">序号 </label>
<div class="field-content pad4"><span class="form-ctr" isfcontain="1">',[LastHtml]='</span> </div></li></ul></div></div>
<div style="DISPLAY: none" class="div_tabs">
<ul class="tab_ul" isgroup="1" groupId="93" istab="1" islonly="1" style="" isrple="1">
<li style="position: static;" class="de-selected ui-droppable" scroll="no" areaId="377" istab="1" tabId="1"><a class="tab_a" href="javascript:void(0);" tabId="1">选项卡1</a></li>
<li style="position: static;" class="li-tab ui-droppable" scroll="no" areaId="378" istab="1" tabId="2"><a class="tab_a" href="javascript:void(0);" tabId="2">选项卡2</a></li></ul>
<div class="tabs-content" tabId="1" style="">
<ul style="wIdth: 960px;" class="ul-mform" isgroup="1" groupId="94" isrple="1">
<li style="wIdth: 395px; height: 38px; position: static;" class="li-area" scroll="no" areaId="379"><label class="area-title pad7" fldId="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">请编辑.. </div></li></ul></div>
<div style="display: none;" class="tabs-content" tabId="2">
<ul style="wIdth: 960px;" class="ul-mform" isgroup="1" groupId="95" isrple="1">
<li style="wIdth: 395px; height: 38px; position: static;" class="li-area" scroll="no" areaId="380"><label class="area-title pad7" fldId="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">请编辑.. </div></li></ul></div></div></div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  Id="d1087_serialNum"   type="text" class="form-txt"  style="wIdth:150px;" onblur ="javascript:if(!dcx_Validate(this,1087,''AjaxF_'',1087,false,$(this).val()))return false;" onfocus ="javascript:dcx_Validate_Focus(this,1087,''AjaxF_'',1087);" EntId="1087" IsField=1 DBField=1 IsPost=1 FieldName="serialNum" dType="1" Vtp="5" RDT="1" Isc="0" RId="1" CId="1" FId="900"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1087,' where  [FldUId]='d5aa0768-85a8-4296-ba53-e99c5455bf4d' 
      end



Delete from [Dcx_BrowseReport_Run]  where [EntId]=1087

--Dcx_BrowseReport_Run
      if (select count(1) from [Dcx_BrowseReport_Run] where  [EntId]=1087  )<1 
      begin 
           Insert into [Dcx_BrowseReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[DIYJsCss],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('b81d55bf-9dac-43c1-9170-7804ea0e8f54','部门成员',1087,31,'','<$1087$>select [Id] from EW_DepartmentInfo where [Id]=''{$keyfieldvalue}''</$1087$>',1,1,20,'','DcxRun.MChildR_1087= {"MenuId":2033,"MEntId":1087,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"部门成员","EntMsg":{"E1087":{"EntId":1087,"EntName":"部门成员","KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1087*Id*2**2*EW_DepartmentInfo*部门成员',3,'','2012-12-21 11:03:02',3,'','2013-11-17 3:17:25',1)
      end
      else 
      begin 
           update [Dcx_BrowseReport_Run] set [ReportId]='b81d55bf-9dac-43c1-9170-7804ea0e8f54',[ReportName]='部门成员',[ModuleId]=31,[StaticHtml]='',[LoadingSql]='<$1087$>select [Id] from EW_DepartmentInfo where [Id]=''{$keyfieldvalue}''</$1087$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[DIYJsCss]='',[AutoPublicJs]='DcxRun.MChildR_1087= {"MenuId":2033,"MEntId":1087,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"部门成员","EntMsg":{"E1087":{"EntId":1087,"EntName":"部门成员","KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1087*Id*2**2*EW_DepartmentInfo*部门成员',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-21 11:03:02',[EditorId]=3,[Editor]='',[EditTime]='2013-11-17 3:17:25',[AccountId]=1 where  [EntId]=1087 
      end




--Dcx_BrowseReportField_Run
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='855da8b5-5a1f-4c3b-a52d-25bc7e6f1b3a'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'855da8b5-5a1f-4c3b-a52d-25bc7e6f1b3a',1087,1087,'00000000-0000-0000-0000-000000000000',-1,'serialNum',1,1,'varchar',2,1,0,'','','','<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1087" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="547" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">部门成员</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1087" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="548" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">序号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1087" fieldname="serialNum" fldid="2" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1087,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=2,[Report_EntId]=1087,[EntId]=1087,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='serialNum',[FieldNO]=1,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1087" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="547" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">部门成员</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1087" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="548" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">序号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1087" fieldname="serialNum" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1087,' where  [FldUId]='855da8b5-5a1f-4c3b-a52d-25bc7e6f1b3a' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='76ff614f-d4d2-4e1d-a8c5-d7ec3ad97a08'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(158,'76ff614f-d4d2-4e1d-a8c5-d7ec3ad97a08',1087,1087,'00000000-0000-0000-0000-000000000000',-1,'dept',2,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>




<li areaid="553" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="158">部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1087" fieldname="dept" fldid="158" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1087,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=158,[Report_EntId]=1087,[EntId]=1087,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='dept',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>




<li areaid="553" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="158">部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1087" fieldname="dept" fldid="158" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1087,' where  [FldUId]='76ff614f-d4d2-4e1d-a8c5-d7ec3ad97a08' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='19ef1a92-9cea-4311-991b-baf81086e5dd'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(159,'19ef1a92-9cea-4311-991b-baf81086e5dd',1087,1087,'00000000-0000-0000-0000-000000000000',-1,'username',3,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="554" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="159">姓名  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1087" fieldname="username" fldid="159" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1087,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=159,[Report_EntId]=1087,[EntId]=1087,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='username',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="554" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="159">姓名  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1087" fieldname="username" fldid="159" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1087,' where  [FldUId]='19ef1a92-9cea-4311-991b-baf81086e5dd' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='d2f82640-a2ef-7e60-5df6-81e9962ead0e'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(169,'d2f82640-a2ef-7e60-5df6-81e9962ead0e',1087,1087,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',4,6,'varchar',2,21,0,'','','','</span>
  </div>
</li>
<li areaid="555" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="160">相片  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1087" fieldname="img" fldid="160" columntypeid="6" class="form-ctr"><img src="/MyApps/EntityShowFile.aspx?DBTableName=EW_DepartmentInfo&ImageField=img&KeyField=Id&KeyFieldValue=','" class="col-img"/>',-1,-1,-1,-1,0,'1087,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=169,[Report_EntId]=1087,[EntId]=1087,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=4,[ColumnTypeId]=6,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="555" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="160">相片  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1087" fieldname="img" fldid="160" columntypeid="6" class="form-ctr"><img src="/MyApps/EntityShowFile.aspx?DBTableName=EW_DepartmentInfo&ImageField=img&KeyField=Id&KeyFieldValue=',[LastHtml]='" class="col-img"/>',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1087,' where  [FldUId]='d2f82640-a2ef-7e60-5df6-81e9962ead0e' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='70178512-963c-41da-bcce-2c58b8317247'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(161,'70178512-963c-41da-bcce-2c58b8317247',1087,1087,'00000000-0000-0000-0000-000000000000',-1,'job',5,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="556" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="161">职务  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1087" fieldname="job" fldid="161" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1087,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=161,[Report_EntId]=1087,[EntId]=1087,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='job',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="556" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="161">职务  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1087" fieldname="job" fldid="161" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1087,' where  [FldUId]='70178512-963c-41da-bcce-2c58b8317247' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='1e870c20-76e9-4db4-9fc1-26283cb1352a'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(162,'1e870c20-76e9-4db4-9fc1-26283cb1352a',1087,1087,'00000000-0000-0000-0000-000000000000',-1,'sex',6,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="557" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="162">性别  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1087" fieldname="sex" fldid="162" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1087,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=162,[Report_EntId]=1087,[EntId]=1087,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='sex',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="557" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="162">性别  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1087" fieldname="sex" fldid="162" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1087,' where  [FldUId]='1e870c20-76e9-4db4-9fc1-26283cb1352a' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='9eb1e66a-8333-4e20-9bcc-a651d29005de'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(163,'9eb1e66a-8333-4e20-9bcc-a651d29005de',1087,1087,'00000000-0000-0000-0000-000000000000',-1,'officeId',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="558" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="163">办公房号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1087" fieldname="officeId" fldid="163" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1087,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=163,[Report_EntId]=1087,[EntId]=1087,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='officeId',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="558" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="163">办公房号  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1087" fieldname="officeId" fldid="163" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1087,' where  [FldUId]='9eb1e66a-8333-4e20-9bcc-a651d29005de' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='b480bf8e-a5ff-4bc8-a069-620ed5c76500'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(164,'b480bf8e-a5ff-4bc8-a069-620ed5c76500',1087,1087,'00000000-0000-0000-0000-000000000000',-1,'homeTel',8,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="559" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="164">住宅电话  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1087" fieldname="homeTel" fldid="164" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1087,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=164,[Report_EntId]=1087,[EntId]=1087,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='homeTel',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="559" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="164">住宅电话  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1087" fieldname="homeTel" fldid="164" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1087,' where  [FldUId]='b480bf8e-a5ff-4bc8-a069-620ed5c76500' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='2432e3c2-9f64-4c73-8a3a-b4238c7003fa'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(165,'2432e3c2-9f64-4c73-8a3a-b4238c7003fa',1087,1087,'00000000-0000-0000-0000-000000000000',-1,'mobile',9,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="560" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="165">手机  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1087" fieldname="mobile" fldid="165" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1087,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=165,[Report_EntId]=1087,[EntId]=1087,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='mobile',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="560" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="165">手机  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1087" fieldname="mobile" fldid="165" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1087,' where  [FldUId]='2432e3c2-9f64-4c73-8a3a-b4238c7003fa' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='a98e0849-c27b-480f-a021-46709c1df068'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(166,'a98e0849-c27b-480f-a021-46709c1df068',1087,1087,'00000000-0000-0000-0000-000000000000',-1,'tel',10,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="561" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="166">办公电话  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1087" fieldname="tel" fldid="166" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1087,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=166,[Report_EntId]=1087,[EntId]=1087,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='tel',[FieldNO]=10,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="561" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="166">办公电话  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1087" fieldname="tel" fldid="166" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1087,' where  [FldUId]='a98e0849-c27b-480f-a021-46709c1df068' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='91c8199e-6399-465b-8506-22efc3dcf755'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(167,'91c8199e-6399-465b-8506-22efc3dcf755',1087,1087,'00000000-0000-0000-0000-000000000000',-1,'jobDesc',11,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="562" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="167">职责说明  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1087" fieldname="jobDesc" fldid="167" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1087,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=167,[Report_EntId]=1087,[EntId]=1087,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='jobDesc',[FieldNO]=11,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="562" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="167">职责说明  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1087" fieldname="jobDesc" fldid="167" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1087,' where  [FldUId]='91c8199e-6399-465b-8506-22efc3dcf755' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='37bd7091-f2c1-4eba-b559-04f919c4d035'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(168,'37bd7091-f2c1-4eba-b559-04f919c4d035',1087,1087,'00000000-0000-0000-0000-000000000000',-1,'Messages',12,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="563" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="168">留言  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1087" fieldname="Messages" fldid="168" columntypeid="1" class="form-ctr">','</span>
  </div>
</li>
</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1087" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="564" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="565" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1087" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="566" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1087" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="567" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1087" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="568" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="569" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',-1,-1,-1,-1,0,'1087,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=168,[Report_EntId]=1087,[EntId]=1087,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='Messages',[FieldNO]=12,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="563" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="168">留言  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1087" fieldname="Messages" fldid="168" columntypeid="1" class="form-ctr">',[LastHtml]='</span>
  </div>
</li>
</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1087" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="564" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="565" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1087" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="566" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1087" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="567" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1087" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="568" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="569" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1087,' where  [FldUId]='37bd7091-f2c1-4eba-b559-04f919c4d035' 
      end



Delete from [Dcx_ListReport_Run]  where [EntId]=1087

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=1087  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('7c34b7a3-be4e-404c-b054-f45124c36e6b','部门成员',1087,1,'','','<$1087$>select *  from (select row_number() over( order by [Id])as dcx_rowid,[Id] from EW_DepartmentInfo  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1087$><$1087:Count$>select count([Id]) from EW_DepartmentInfo where {$SearchArea}</$1087:Count$>',1,1,20,'DcxRun.ListR_1087= {"MenuId":2033,"MEntId":1087,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"部门成员","EntMsg":{"E1087":{"EntId":1087,"EntName":"部门成员","KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1087*Id*2**2*EW_DepartmentInfo*部门成员',3,'','2012-12-22 5:16:19',3,'','2013-11-16 20:15:40',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='7c34b7a3-be4e-404c-b054-f45124c36e6b',[ReportName]='部门成员',[ModuleId]=1,[StaticHtml]='',[DIYJsCss]='',[LoadingSql]='<$1087$>select *  from (select row_number() over( order by [Id])as dcx_rowid,[Id] from EW_DepartmentInfo  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1087$><$1087:Count$>select count([Id]) from EW_DepartmentInfo where {$SearchArea}</$1087:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[AutoPublicJs]='DcxRun.ListR_1087= {"MenuId":2033,"MEntId":1087,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"部门成员","EntMsg":{"E1087":{"EntId":1087,"EntName":"部门成员","KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1087*Id*2**2*EW_DepartmentInfo*部门成员',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-22 5:16:19',[EditorId]=3,[Editor]='',[EditTime]='2013-11-16 20:15:40',[AccountId]=1 where  [EntId]=1087 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='ba3a004a-11ad-546b-867f-26102b6e963b'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(194,'ba3a004a-11ad-546b-867f-26102b6e963b',1087,1087,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="85" entid="1087" ctrlprex="ListR_" isrple="1"> <li areaid="1056" class="tool-li" style="position: static;">
</li><li areaid="1057" class="tool-li" style="position: static;"><a id="ListR_1087_btn_buildNew" class="list-bt-add" title="添   加" href="javascript:void(0);" onclick="javascript:DcxCom.ShowAddDataDlg(1087,''ListR_'');">添   加</a></li>
<li areaid="1058" class="tool-li" style="position: static;"><a id="ListR_1087_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1087,''ListR_'');">删   除</a></li>
<li areaid="1059" class="tool-li" style="position: static;"><a id="ListR_1087_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1087,''ListR_'');">导   出</a></li>
<li areaid="1060" class="tool-li" style="position: static;"><a id="ListR_1087_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1087,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1087" style="position: static;">
<a id="ListR_1087_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1087,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1087_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1087,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1087_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1087,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1087_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="86" entid="1087" class="list-head-ul" style="width: 372px;" ctrlprex="ListR_" isrple="1">
<li areaid="1062" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1087" onclick="javascript:DcxCom.CheckedAll(this,1087,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="1063" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">请编辑.. </label></li><li areaid="1064" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">请编辑.. </label></li><li areaid="1065" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="编辑"><span class="i">编辑</span></a></div></li><li areaid="1066" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="1067" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">','',-1,87,-1,-1,1,'1087,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=194,[Report_EntId]=1087,[EntId]=1087,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="85" entid="1087" ctrlprex="ListR_" isrple="1"> <li areaid="1056" class="tool-li" style="position: static;">
</li><li areaid="1057" class="tool-li" style="position: static;"><a id="ListR_1087_btn_buildNew" class="list-bt-add" title="添   加" href="javascript:void(0);" onclick="javascript:DcxCom.ShowAddDataDlg(1087,''ListR_'');">添   加</a></li>
<li areaid="1058" class="tool-li" style="position: static;"><a id="ListR_1087_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1087,''ListR_'');">删   除</a></li>
<li areaid="1059" class="tool-li" style="position: static;"><a id="ListR_1087_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1087,''ListR_'');">导   出</a></li>
<li areaid="1060" class="tool-li" style="position: static;"><a id="ListR_1087_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1087,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1087" style="position: static;">
<a id="ListR_1087_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1087,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1087_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1087,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1087_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1087,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1087_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="86" entid="1087" class="list-head-ul" style="width: 372px;" ctrlprex="ListR_" isrple="1">
<li areaid="1062" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1087" onclick="javascript:DcxCom.CheckedAll(this,1087,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="1063" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">请编辑.. </label></li><li areaid="1064" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">请编辑.. </label></li><li areaid="1065" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="编辑"><span class="i">编辑</span></a></div></li><li areaid="1066" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="1067" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1087,' where  [FldUId]='ba3a004a-11ad-546b-867f-26102b6e963b' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='519c88aa-bbec-4eba-bc55-3f82593d10e1'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(154,'519c88aa-bbec-4eba-bc55-3f82593d10e1',1087,1087,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',2,1,'',2,21,0,'','','','islonly="1" isgroup="1" groupid="87" class="list-body-ul" style="width: 372px;" isrple="1">
<li areaid="1068" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1087" issyscheck="1" keyvalue="','',-1,87,-1,-1,1,'1087,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=154,[Report_EntId]=1087,[EntId]=1087,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='islonly="1" isgroup="1" groupid="87" class="list-body-ul" style="width: 372px;" isrple="1">
<li areaid="1068" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1087" issyscheck="1" keyvalue="',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1087,' where  [FldUId]='519c88aa-bbec-4eba-bc55-3f82593d10e1' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='7d2a50b7-e0ac-48a9-82f7-b7bfeccad94f'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(155,'7d2a50b7-e0ac-48a9-82f7-b7bfeccad94f',1087,1087,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',3,1,'',2,21,0,'','','','" type="checkbox"></li><li areaid="1069" class="list-body-li" style="position: static;">
   <div class="list-li-field">
请编辑..
  </div>
</li><li areaid="1070" class="list-body-li" style="position: static;">
   <div class="list-li-field">
请编辑..
  </div>
</li><li areaid="1071" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,1087,''ListR_'',''','',-1,87,-1,-1,1,'1087,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=155,[Report_EntId]=1087,[EntId]=1087,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='" type="checkbox"></li><li areaid="1069" class="list-body-li" style="position: static;">
   <div class="list-li-field">
请编辑..
  </div>
</li><li areaid="1070" class="list-body-li" style="position: static;">
   <div class="list-li-field">
请编辑..
  </div>
</li><li areaid="1071" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,1087,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1087,' where  [FldUId]='7d2a50b7-e0ac-48a9-82f7-b7bfeccad94f' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='3aeec62f-ece4-4b38-a2fc-a49fe342e3d2'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(156,'3aeec62f-ece4-4b38-a2fc-a49fe342e3d2',1087,1087,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',4,1,'',2,21,0,'','','',''',null,1040,480);">
<span class="i">编辑</span></a></div>
</li><li areaid="1072" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1087,''ListR_'',''','',-1,87,-1,-1,1,'1087,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=156,[Report_EntId]=1087,[EntId]=1087,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">编辑</span></a></div>
</li><li areaid="1072" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1087,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1087,' where  [FldUId]='3aeec62f-ece4-4b38-a2fc-a49fe342e3d2' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='9588291a-bdcb-405c-9e79-6591692614de'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(157,'9588291a-bdcb-405c-9e79-6591692614de',1087,1087,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',5,1,'',2,21,0,'','','',''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="1073" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,1087,''ListR_'',''','',-1,87,-1,-1,1,'1087,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=157,[Report_EntId]=1087,[EntId]=1087,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="1073" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,1087,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1087,' where  [FldUId]='9588291a-bdcb-405c-9e79-6591692614de' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='230466b7-2eba-1fbd-491f-0aedbda78ca5'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(195,'230466b7-2eba-1fbd-491f-0aedbda78ca5',1087,1087,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',6,-1,'varchar',2,13,0,'','','',''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>','</div>
</div>
<!-- 结束 --></div>',-1,87,-1,-1,1,'1087,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=195,[Report_EntId]=1087,[EntId]=1087,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=6,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>',[LastHtml]='</div>
</div>
<!-- 结束 --></div>',[RowIndex]=-1,[TableIndex]=87,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1087,' where  [FldUId]='230466b7-2eba-1fbd-491f-0aedbda78ca5' 
      end




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=2036  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2036,'935759fd-61be-4eb4-972b-a176ab59a2fd','手机短信',948,'/MyApp/Other/SendSMS.aspx',1,'\Images\icon2\serviceCase[1].gif','\Images\icon2\serviceCase[1].gif',6,'main',0,1,'',30,0,30,0,1,1,null,'',0,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='935759fd-61be-4eb4-972b-a176ab59a2fd',[MenuName]='手机短信',[ParentId]=948,[ProPath]='/MyApp/Other/SendSMS.aspx',[TemplateId]=1,[ImgPath]='\Images\icon2\serviceCase[1].gif',[ExImgPath]='\Images\icon2\serviceCase[1].gif',[OrderBy]=6,[Target]='main',[IsOpen]=0,[IsHidden]=1,[Remark]='',[SSystemId]=30,[SMenuId]=0,[SystemId]=30,[EntityCount]=0,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=2036 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=2036  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(77,2036,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=2036  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=2040  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2040,'c108148f-6d90-4271-9a19-e4c0bbe6049e','工作日志',948,'/MyApp/diary/index.aspx',1,'\Images\icon2\salesInvoice[1].gif','\Images\icon2\salesInvoice[1].gif',11,'',0,1,'',30,0,30,0,1,1,null,'',0,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='c108148f-6d90-4271-9a19-e4c0bbe6049e',[MenuName]='工作日志',[ParentId]=948,[ProPath]='/MyApp/diary/index.aspx',[TemplateId]=1,[ImgPath]='\Images\icon2\salesInvoice[1].gif',[ExImgPath]='\Images\icon2\salesInvoice[1].gif',[OrderBy]=11,[Target]='',[IsOpen]=0,[IsHidden]=1,[Remark]='',[SSystemId]=30,[SMenuId]=0,[SystemId]=30,[EntityCount]=0,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=2040 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=2040  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(80,2040,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=2040  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=2041  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2041,'5ee73305-c4f9-4977-b086-d47e2ea42edb','日志查询',2040,'/MyApp/diary/diary_query.aspx',1,'/images/default.gif','/images/default.gif',0,'',0,0,'',30,0,30,0,1,1,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='5ee73305-c4f9-4977-b086-d47e2ea42edb',[MenuName]='日志查询',[ParentId]=2040,[ProPath]='/MyApp/diary/diary_query.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=0,[Target]='',[IsOpen]=0,[IsHidden]=0,[Remark]='',[SSystemId]=30,[SMenuId]=0,[SystemId]=30,[EntityCount]=0,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=2041 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=2041  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(81,2041,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=2041  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=2305  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2305,'fddc770e-cd8d-4eec-982a-4fbf419eff23','内部短信',948,'/MyApp/inner_note/inNote_received.aspx?query=0',1,'\Images\icon2\sentSMS[1].gif','\Images\icon2\sentSMS[1].gif',4,'',0,1,'',30,0,30,0,1,1,null,'',0,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='fddc770e-cd8d-4eec-982a-4fbf419eff23',[MenuName]='内部短信',[ParentId]=948,[ProPath]='/MyApp/inner_note/inNote_received.aspx?query=0',[TemplateId]=1,[ImgPath]='\Images\icon2\sentSMS[1].gif',[ExImgPath]='\Images\icon2\sentSMS[1].gif',[OrderBy]=4,[Target]='',[IsOpen]=0,[IsHidden]=1,[Remark]='',[SSystemId]=30,[SMenuId]=0,[SystemId]=30,[EntityCount]=0,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=2305 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=2305  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(188,2305,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=2305  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=2559  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2559,'041b843c-eb34-44fb-99a6-703a9f953ccb','参加投票',948,'/MyApp/vote/Vote.aspx',1,'\Images\icon2\13.gif','\Images\icon2\13.gif',7,'',0,1,'',30,0,30,0,1,1,null,'',0,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='041b843c-eb34-44fb-99a6-703a9f953ccb',[MenuName]='参加投票',[ParentId]=948,[ProPath]='/MyApp/vote/Vote.aspx',[TemplateId]=1,[ImgPath]='\Images\icon2\13.gif',[ExImgPath]='\Images\icon2\13.gif',[OrderBy]=7,[Target]='',[IsOpen]=0,[IsHidden]=1,[Remark]='',[SSystemId]=30,[SMenuId]=0,[SystemId]=30,[EntityCount]=0,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=2559 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=2559  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(375,2559,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=2559  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=2566  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2566,'02edb44e-1508-498f-830a-07b04538f7dc','我的通信录',1963,'/MyApp/WebUI/MyAddressList/MyAddressList.aspx',1,'/images/default.gif','/images/default.gif',2,'',0,1,'',30,0,30,0,1,1,null,'',0,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='02edb44e-1508-498f-830a-07b04538f7dc',[MenuName]='我的通信录',[ParentId]=1963,[ProPath]='/MyApp/WebUI/MyAddressList/MyAddressList.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=2,[Target]='',[IsOpen]=0,[IsHidden]=1,[Remark]='',[SSystemId]=30,[SMenuId]=0,[SystemId]=30,[EntityCount]=0,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=2566 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=2566  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(381,2566,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=2566  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=2575  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2575,'8fe06c87-0585-496f-81fa-2c803ce0b59a','电子邮件',948,'/MyApp/NewMail/inbox.aspx',1,'\Images\icon2\inbox_fax[1].png','\Images\icon2\inbox_fax[1].png',3,'main',0,1,'',30,0,30,0,1,1,null,'',0,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='8fe06c87-0585-496f-81fa-2c803ce0b59a',[MenuName]='电子邮件',[ParentId]=948,[ProPath]='/MyApp/NewMail/inbox.aspx',[TemplateId]=1,[ImgPath]='\Images\icon2\inbox_fax[1].png',[ExImgPath]='\Images\icon2\inbox_fax[1].png',[OrderBy]=3,[Target]='main',[IsOpen]=0,[IsHidden]=1,[Remark]='',[SSystemId]=30,[SMenuId]=0,[SystemId]=30,[EntityCount]=0,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=2575 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=2575  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(382,2575,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=2575  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=2576  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2576,'49861837-d549-447c-a0b3-1c1537c896b4','日程查询',2577,'/MyApp/MyDestktop/Schedule/SchedIndex.aspx',1,'/images/default.gif','/images/default.gif',2,'',0,1,'',30,0,30,0,1,1,null,'',0,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='49861837-d549-447c-a0b3-1c1537c896b4',[MenuName]='日程查询',[ParentId]=2577,[ProPath]='/MyApp/MyDestktop/Schedule/SchedIndex.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=2,[Target]='',[IsOpen]=0,[IsHidden]=1,[Remark]='',[SSystemId]=30,[SMenuId]=0,[SystemId]=30,[EntityCount]=0,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=2576 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=2576  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(383,2576,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=2576  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=2577  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2577,'a15db31b-ff46-43c3-975c-f3318cd63d93','我的日程',948,'/MyApp/Schedule/Month.html?menuid=5',1,'\Images\icon2\monthyPlan[1].gif','\Images\icon2\monthyPlan[1].gif',3,'',0,0,'',30,0,30,0,1,1,null,'',0,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='a15db31b-ff46-43c3-975c-f3318cd63d93',[MenuName]='我的日程',[ParentId]=948,[ProPath]='/MyApp/Schedule/Month.html?menuid=5',[TemplateId]=1,[ImgPath]='\Images\icon2\monthyPlan[1].gif',[ExImgPath]='\Images\icon2\monthyPlan[1].gif',[OrderBy]=3,[Target]='',[IsOpen]=0,[IsHidden]=0,[Remark]='',[SSystemId]=30,[SMenuId]=0,[SystemId]=30,[EntityCount]=0,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=2577 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=2577  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(384,2577,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=2577  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=2688  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2688,'eebd830f-b4f5-4a56-a9a8-1eff4531eb07','网址大全',948,'http://www.hao123.com/',1,'\Images\icon2\12.gif','\Images\icon2\12.gif',14,'',null,0,null,30,0,30,0,1,1,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='eebd830f-b4f5-4a56-a9a8-1eff4531eb07',[MenuName]='网址大全',[ParentId]=948,[ProPath]='http://www.hao123.com/',[TemplateId]=1,[ImgPath]='\Images\icon2\12.gif',[ExImgPath]='\Images\icon2\12.gif',[OrderBy]=14,[Target]='',[IsOpen]=null,[IsHidden]=0,[Remark]=null,[SSystemId]=30,[SMenuId]=0,[SystemId]=30,[EntityCount]=0,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=2688 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=2688  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(482,2688,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=2688  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=2777  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2777,'1df2803b-3c63-4bdd-a850-145b62d8ea4d','工作报告',2040,'/Template/default/ListReport/ListReport_Tree001.aspx',1,'/images/default.gif','/images/default.gif',14,'',null,0,null,30,0,30,1,1,1,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='1df2803b-3c63-4bdd-a850-145b62d8ea4d',[MenuName]='工作报告',[ParentId]=2040,[ProPath]='/Template/default/ListReport/ListReport_Tree001.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=14,[Target]='',[IsOpen]=null,[IsHidden]=0,[Remark]=null,[SSystemId]=30,[SMenuId]=0,[SystemId]=30,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=2777 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=2777  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(565,2777,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=2777  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=1594  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(1594,2777,'总结报告',1,570,0,'ERP_总结计划',0,0,1,30,1594,null,null,30,null,null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=2777,[EntName]='总结报告',[MEnt]=1,[DBTableId]=570,[DBConnectId]=0,[DBTableName]='ERP_总结计划',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=30,[SEntId]=1594,[FSystemId]=null,[FEntId]=null,[SystemId]=30,[Remark]=null,[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=1594 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=1594

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=1594  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(10732,2777,1594,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=2777,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=1594  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=1594

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1594  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20524,30,2777,1594,13,1,1,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=2777,[TemplateId]=13,[ModuleId]=1,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1594  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1594  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20525,30,2777,1594,13,2,9,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=2777,[TemplateId]=13,[ModuleId]=9,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1594  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1594  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20526,30,2777,1594,13,3,14,1,4,2,'/Template/Default/Form/AjaxForm/AjaxForm008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=2777,[TemplateId]=13,[ModuleId]=14,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='/Template/Default/Form/AjaxForm/AjaxForm008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1594  and  [ModuleTypeId]=3 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1594  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20527,30,2777,1594,13,16,31,1,5,2,'/Template/Default/Browse/Browse008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=2777,[TemplateId]=13,[ModuleId]=31,[GroupId]=1,[AreaId]=5,[ShowMode]=2,[AreaUrl]='/Template/Default/Browse/Browse008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1594  and  [ModuleTypeId]=16 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_AjaxForm_Run]  where [EntId]=1594

--Dcx_AjaxForm_Run
      if (select count(1) from [Dcx_AjaxForm_Run] where  [EntId]=1594  )<1 
      begin 
           Insert into [Dcx_AjaxForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('9e4a7f2b-2a1e-4e7e-bac3-b0190299c401','总结报告',1594,14,'','',0,'<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>','','DcxRun.AjaxF_1594= {"MenuId":2777,"MEntId":1594,"EntName":"总结报告","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1594":{"EntId":1594,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{
DcxForm.CreateHtmlEditor(''d1594_总结'',1594,''AjaxF_'',''总结'',600,235,false,1,false);
DcxForm.CreateHtmlEditor(''d1594_计划'',1594,''AjaxF_'',''计划'',600,235,false,1,false);
DcxForm.CreateHtmlEditor(''d1594_领导评阅'',1594,''AjaxF_'',''领导评阅'',600,235,true,1,false);

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_1594.EntMsg.E1594.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"ERP_总结计划","EntId":1594,"KeyField":"Id","MKeyField":"Id","MKeyValue":"","DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"主题":{"DtId":2,"DB":1,"CId":1,"FL":-1},"总结":{"DtId":6,"DB":1,"CId":28,"FL":-1},"计划":{"DtId":6,"DB":1,"CId":28,"FL":-1},"领导评阅":{"DtId":6,"DB":1,"CId":28,"FL":-1},"评阅人":{"DtId":2,"DB":1,"CId":3,"FL":-1},"已评阅":{"DtId":4,"DB":1,"CId":7,"FL":-1},"评阅时间":{"DtId":2,"DB":1,"CId":1,"FL":-1},"类别":{"DtId":2,"DB":1,"CId":7,"FL":-1},"创建人":{"DtId":2,"DB":1,"CId":4,"FL":-1},"创建时间":{"DtId":2,"DB":1,"CId":4,"FL":-1},"所属用户":{"DtId":2,"DB":1,"CId":4,"FL":-1}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_1594.EntMsg.E1594.GetDataRowModel=function()
{
    return {"主题":"","总结":"","计划":"","领导评阅":"","评阅人":"","已评阅":false,"评阅时间":"","类别":"","创建人":"","创建时间":"","所属用户":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":"","DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_1594.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1594,''AjaxF_'',buildNew,closeDlg);

}','<$1594$>select [主题],[总结],[计划],[领导评阅],[评阅人],[已评阅],[评阅时间],[类别],[创建人],[创建时间],[所属用户],[Id] from ERP_总结计划 where [Id]=''{$keyfieldvalue}''</$1594$>',20,'','','','1594*Id*2**2*ERP_总结计划*总结报告',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 7:02:48',3,'admin','2013-11-16 18:42:39',1)
      end
      else 
      begin 
           update [Dcx_AjaxForm_Run] set [FormId]='9e4a7f2b-2a1e-4e7e-bac3-b0190299c401',[FormName]='总结报告',[ModuleId]=14,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.AjaxF_1594= {"MenuId":2777,"MEntId":1594,"EntName":"总结报告","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1594":{"EntId":1594,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{
DcxForm.CreateHtmlEditor(''d1594_总结'',1594,''AjaxF_'',''总结'',600,235,false,1,false);
DcxForm.CreateHtmlEditor(''d1594_计划'',1594,''AjaxF_'',''计划'',600,235,false,1,false);
DcxForm.CreateHtmlEditor(''d1594_领导评阅'',1594,''AjaxF_'',''领导评阅'',600,235,true,1,false);

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_1594.EntMsg.E1594.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"ERP_总结计划","EntId":1594,"KeyField":"Id","MKeyField":"Id","MKeyValue":"","DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"主题":{"DtId":2,"DB":1,"CId":1,"FL":-1},"总结":{"DtId":6,"DB":1,"CId":28,"FL":-1},"计划":{"DtId":6,"DB":1,"CId":28,"FL":-1},"领导评阅":{"DtId":6,"DB":1,"CId":28,"FL":-1},"评阅人":{"DtId":2,"DB":1,"CId":3,"FL":-1},"已评阅":{"DtId":4,"DB":1,"CId":7,"FL":-1},"评阅时间":{"DtId":2,"DB":1,"CId":1,"FL":-1},"类别":{"DtId":2,"DB":1,"CId":7,"FL":-1},"创建人":{"DtId":2,"DB":1,"CId":4,"FL":-1},"创建时间":{"DtId":2,"DB":1,"CId":4,"FL":-1},"所属用户":{"DtId":2,"DB":1,"CId":4,"FL":-1}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_1594.EntMsg.E1594.GetDataRowModel=function()
{
    return {"主题":"","总结":"","计划":"","领导评阅":"","评阅人":"","已评阅":false,"评阅时间":"","类别":"","创建人":"","创建时间":"","所属用户":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":"","DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_1594.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1594,''AjaxF_'',buildNew,closeDlg);

}',[LoadingSql]='<$1594$>select [主题],[总结],[计划],[领导评阅],[评阅人],[已评阅],[评阅时间],[类别],[创建人],[创建时间],[所属用户],[Id] from ERP_总结计划 where [Id]=''{$keyfieldvalue}''</$1594$>',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='1594*Id*2**2*ERP_总结计划*总结报告',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 7:02:48',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-16 18:42:39',[AccountId]=1 where  [EntId]=1594 
      end




--Dcx_AjaxFormField_Run
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='9f974ecb-3465-4657-9d5d-fda2edbb1b1f'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2393,'9f974ecb-3465-4657-9d5d-fda2edbb1b1f',1594,1594,'00000000-0000-0000-0000-000000000000','主题',2,2,2,'',5,1,null,0,1,1,0,1,-1,0,0,'','','','','<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="1594" groupid="176" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="666" class="li-area-title" scroll="no" style="width: 77px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">总结报告</span></div>
</li>
<li areaid="667" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
<li areaid="668" class="li-area1" scroll="no" style="display: none; position: static;">
<a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.AjaxF_1594.SubmitForm(false);">
<span class="op_bt_i">保存</span> </a></li>
<li areaid="669" class="li-area1" scroll="no" style="display: none; position: static;">
<a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(1594,''AjaxF_'');"><span class="op_bt_i">新建</span>
</a></li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="177" entid="1594" class="ul-mform" ctrlprex="AjaxF_" isrple="1">
<li areaid="670" style="height: 38px; width: 792px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2393" istitle="1">主题 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d1594_主题"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1594,''AjaxF_'',1594,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1594,''AjaxF_'',1594);" EntId="1594" IsField=1 DBField=1 IsPost=1 FieldName="主题" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="2393" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1594,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2393,[Form_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='主题',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=2,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="1594" groupid="176" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="666" class="li-area-title" scroll="no" style="width: 77px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">总结报告</span></div>
</li>
<li areaid="667" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
<li areaid="668" class="li-area1" scroll="no" style="display: none; position: static;">
<a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.AjaxF_1594.SubmitForm(false);">
<span class="op_bt_i">保存</span> </a></li>
<li areaid="669" class="li-area1" scroll="no" style="display: none; position: static;">
<a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(1594,''AjaxF_'');"><span class="op_bt_i">新建</span>
</a></li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="177" entid="1594" class="ul-mform" ctrlprex="AjaxF_" isrple="1">
<li areaid="670" style="height: 38px; width: 792px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2393" istitle="1">主题 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1594_主题"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1594,''AjaxF_'',1594,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1594,''AjaxF_'',1594);" EntId="1594" IsField=1 DBField=1 IsPost=1 FieldName="主题" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="2393" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1594,' where  [FldUId]='9f974ecb-3465-4657-9d5d-fda2edbb1b1f' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='921bd1ec-891c-49a8-9a13-ea612d2cf604'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2394,'921bd1ec-891c-49a8-9a13-ea612d2cf604',1594,1594,'00000000-0000-0000-0000-000000000000','总结',6,2,3,'',5,5,null,0,28,1,0,2,-1,0,0,'','','','','</span>
</div>
</li>
<li areaid="671" style="height: 455px; width: 792px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2394" istitle="1">总结 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1594_总结" class="form-txts"  style="width:600px;height:235px;" EntId="1594" IsField=1 DBField=1 IsPost=1 FieldName="总结" dType="6" Vtp="5" RDT="2" Isc="0" RId="5" CId="28" FId="2394" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1594,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2394,[Form_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='总结',[FieldDataTypeId]=6,[RunDataTypeId]=2,[DBFieldId]=3,[DefaultValue]='',[ValueType]=5,[RunValueType]=5,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=28,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=2,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="671" style="height: 455px; width: 792px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2394" istitle="1">总结 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1594_总结" class="form-txts"  style="width:600px;height:235px;" EntId="1594" IsField=1 DBField=1 IsPost=1 FieldName="总结" dType="6" Vtp="5" RDT="2" Isc="0" RId="5" CId="28" FId="2394" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1594,' where  [FldUId]='921bd1ec-891c-49a8-9a13-ea612d2cf604' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='53a9d0bf-4e80-4c1d-a3f5-f3cf0cf85f9b'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2395,'53a9d0bf-4e80-4c1d-a3f5-f3cf0cf85f9b',1594,1594,'00000000-0000-0000-0000-000000000000','计划',6,2,4,'',5,5,null,0,28,1,0,3,-1,0,0,'','','','','</span>
</div>
</li>
<li areaid="672" style="height: 455px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2395">计划  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1594_计划" class="form-txts"  style="width:600px;height:235px;" EntId="1594" IsField=1 DBField=1 IsPost=1 FieldName="计划" dType="6" Vtp="5" RDT="2" Isc="0" RId="5" CId="28" FId="2395" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1594,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2395,[Form_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='计划',[FieldDataTypeId]=6,[RunDataTypeId]=2,[DBFieldId]=4,[DefaultValue]='',[ValueType]=5,[RunValueType]=5,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=28,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=3,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="672" style="height: 455px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2395">计划  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1594_计划" class="form-txts"  style="width:600px;height:235px;" EntId="1594" IsField=1 DBField=1 IsPost=1 FieldName="计划" dType="6" Vtp="5" RDT="2" Isc="0" RId="5" CId="28" FId="2395" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1594,' where  [FldUId]='53a9d0bf-4e80-4c1d-a3f5-f3cf0cf85f9b' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='d890c776-b39b-4adb-bd2a-fde74bb0d0f6'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2396,'d890c776-b39b-4adb-bd2a-fde74bb0d0f6',1594,1594,'00000000-0000-0000-0000-000000000000','领导评阅',6,2,5,'',5,5,null,0,28,1,0,4,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="673" style="height: 455px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2396">领导评阅  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1594_领导评阅" class="form-txts"  style="width:600px;height:235px;"  readonly="readonly"   EntId="1594" IsField=1 DBField=1 IsPost=1 FieldName="领导评阅" dType="6" Vtp="5" RDT="2" Isc="0" RId="5" CId="28" FId="2396" vlk=0    UUT=1  disabled ="disabled"  >','</textarea>','',-1,-1,-1,-1,0,'1594,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2396,[Form_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='领导评阅',[FieldDataTypeId]=6,[RunDataTypeId]=2,[DBFieldId]=5,[DefaultValue]='',[ValueType]=5,[RunValueType]=5,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=28,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=4,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="673" style="height: 455px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2396">领导评阅  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1594_领导评阅" class="form-txts"  style="width:600px;height:235px;"  readonly="readonly"   EntId="1594" IsField=1 DBField=1 IsPost=1 FieldName="领导评阅" dType="6" Vtp="5" RDT="2" Isc="0" RId="5" CId="28" FId="2396" vlk=0    UUT=1  disabled ="disabled"  >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1594,' where  [FldUId]='d890c776-b39b-4adb-bd2a-fde74bb0d0f6' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='86a57eb1-4893-4668-b8a0-45b900537a57'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2397,'86a57eb1-4893-4668-b8a0-45b900537a57',1594,1594,'00000000-0000-0000-0000-000000000000','评阅人',2,2,6,'SELECT distinct [UserName] FROM [Dcx_USER]  where ltrim(rtrim([ROLE]))=''销售经理''',2,1,null,0,3,1,0,5,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="674" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2397">评阅人  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<select id="d1594_评阅人" name="d1594_评阅人" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1594,''AjaxF_'',1594,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1594,''AjaxF_'',1594);" EntId="1594" IsField=1 DBField=1 IsPost=1 FieldName="评阅人" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="3" FId="2397" vlk=0    style="width:201px;">','</select>','',-1,-1,-1,-1,0,'1594,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2397,[Form_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='评阅人',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=6,[DefaultValue]='SELECT distinct [UserName] FROM [Dcx_USER]  where ltrim(rtrim([ROLE]))=''销售经理''',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=5,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="674" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2397">评阅人  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1594_评阅人" name="d1594_评阅人" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1594,''AjaxF_'',1594,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1594,''AjaxF_'',1594);" EntId="1594" IsField=1 DBField=1 IsPost=1 FieldName="评阅人" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="3" FId="2397" vlk=0    style="width:201px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1594,' where  [FldUId]='86a57eb1-4893-4668-b8a0-45b900537a57' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='5842d616-9d3e-4840-994c-671c205fd76a'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2398,'5842d616-9d3e-4840-994c-671c205fd76a',1594,1594,'00000000-0000-0000-0000-000000000000','已评阅',4,4,7,'',1,7,null,0,7,1,0,6,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="675" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2398">已评阅  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<div id="d1594_已评阅" class="form-radio" style="" EntId="1594" IsField=1 DBField=1 IsPost=1 FieldName="已评阅" dType="4" Vtp="1" RDT="4" Isc="0" RId="7" CId="7" FId="2398" vlk=0    UUT=1  disabled ="disabled"  disabled="disabled"  Type="1"  onclick ="javascript:DcxVld.Validate(this,1594,''AjaxF_'',1594);" onfocus ="javascript:DcxVld.ValidateFocus(this,1594,''AjaxF_'',1594);"><span class="form-radio-item"  >
<input id="ddcx_1594_已评阅_0"  name="ddcx_1594_已评阅"  type="radio"  text="否"  value="False"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1594_已评阅_0">否</label></span>
<span class="form-radio-item"  >
<input id="ddcx_1594_已评阅_1"  name="ddcx_1594_已评阅"  type="radio"  text="是"  value="True"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1594_已评阅_1">是</label></span>
<span class="clearfix"></span>','</div>','',-1,-1,-1,-1,0,'1594,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2398,[Form_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='已评阅',[FieldDataTypeId]=4,[RunDataTypeId]=4,[DBFieldId]=7,[DefaultValue]='',[ValueType]=1,[RunValueType]=7,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=7,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=6,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="675" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2398">已评阅  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d1594_已评阅" class="form-radio" style="" EntId="1594" IsField=1 DBField=1 IsPost=1 FieldName="已评阅" dType="4" Vtp="1" RDT="4" Isc="0" RId="7" CId="7" FId="2398" vlk=0    UUT=1  disabled ="disabled"  disabled="disabled"  Type="1"  onclick ="javascript:DcxVld.Validate(this,1594,''AjaxF_'',1594);" onfocus ="javascript:DcxVld.ValidateFocus(this,1594,''AjaxF_'',1594);"><span class="form-radio-item"  >
<input id="ddcx_1594_已评阅_0"  name="ddcx_1594_已评阅"  type="radio"  text="否"  value="False"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1594_已评阅_0">否</label></span>
<span class="form-radio-item"  >
<input id="ddcx_1594_已评阅_1"  name="ddcx_1594_已评阅"  type="radio"  text="是"  value="True"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1594_已评阅_1">是</label></span>
<span class="clearfix"></span>',[CtrlbackHtml]='</div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1594,' where  [FldUId]='5842d616-9d3e-4840-994c-671c205fd76a' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='428aa926-85d5-41ea-9578-99b514c79ffa'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2399,'428aa926-85d5-41ea-9578-99b514c79ffa',1594,1594,'00000000-0000-0000-0000-000000000000','评阅时间',2,2,8,'',5,1,null,0,1,1,0,7,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="676" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2399">评阅时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1594_评阅时间"   type="text" class="form-txt"  style="width:201px;"  readonly="readonly"   onblur ="javascript:if(!DcxVld.Validate(this,1594,''AjaxF_'',1594,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1594,''AjaxF_'',1594);" EntId="1594" IsField=1 DBField=1 IsPost=1 FieldName="评阅时间" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="2399" vlk=0    UUT=1  disabled ="disabled"  value="','"/>','',-1,-1,-1,-1,0,'1594,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2399,[Form_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='评阅时间',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=8,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=7,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="676" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2399">评阅时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1594_评阅时间"   type="text" class="form-txt"  style="width:201px;"  readonly="readonly"   onblur ="javascript:if(!DcxVld.Validate(this,1594,''AjaxF_'',1594,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1594,''AjaxF_'',1594);" EntId="1594" IsField=1 DBField=1 IsPost=1 FieldName="评阅时间" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="2399" vlk=0    UUT=1  disabled ="disabled"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1594,' where  [FldUId]='428aa926-85d5-41ea-9578-99b514c79ffa' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='58fa0a0d-e874-4681-baaa-f14622496abe'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2400,'58fa0a0d-e874-4681-baaa-f14622496abe',1594,1594,'00000000-0000-0000-0000-000000000000','类别',2,2,9,'',1,7,null,0,7,1,0,8,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="677" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2400">类别  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<div id="d1594_类别" class="form-radio" style="" EntId="1594" IsField=1 DBField=1 IsPost=1 FieldName="类别" dType="2" Vtp="1" RDT="2" Isc="0" RId="7" CId="7" FId="2400" vlk=0    Type="1"  onclick ="javascript:DcxVld.Validate(this,1594,''AjaxF_'',1594);" onfocus ="javascript:DcxVld.ValidateFocus(this,1594,''AjaxF_'',1594);"><span class="form-radio-item"  >
<input id="ddcx_1594_类别_0"  name="ddcx_1594_类别"  type="radio"  text="周报告"  value="周报告"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1594_类别_0">周报告</label></span>
<span class="form-radio-item"  >
<input id="ddcx_1594_类别_1"  name="ddcx_1594_类别"  type="radio"  text="月报告"  value="月报告"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1594_类别_1">月报告</label></span>
<span class="clearfix"></span>','</div>','',-1,-1,-1,-1,0,'1594,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2400,[Form_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='类别',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=9,[DefaultValue]='',[ValueType]=1,[RunValueType]=7,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=7,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=8,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="677" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2400">类别  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d1594_类别" class="form-radio" style="" EntId="1594" IsField=1 DBField=1 IsPost=1 FieldName="类别" dType="2" Vtp="1" RDT="2" Isc="0" RId="7" CId="7" FId="2400" vlk=0    Type="1"  onclick ="javascript:DcxVld.Validate(this,1594,''AjaxF_'',1594);" onfocus ="javascript:DcxVld.ValidateFocus(this,1594,''AjaxF_'',1594);"><span class="form-radio-item"  >
<input id="ddcx_1594_类别_0"  name="ddcx_1594_类别"  type="radio"  text="周报告"  value="周报告"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1594_类别_0">周报告</label></span>
<span class="form-radio-item"  >
<input id="ddcx_1594_类别_1"  name="ddcx_1594_类别"  type="radio"  text="月报告"  value="月报告"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1594_类别_1">月报告</label></span>
<span class="clearfix"></span>',[CtrlbackHtml]='</div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1594,' where  [FldUId]='58fa0a0d-e874-4681-baaa-f14622496abe' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='2f4c0ba5-d4fa-4e38-8772-80bbd3290ec3'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2401,'2f4c0ba5-d4fa-4e38-8772-80bbd3290ec3',1594,1594,'00000000-0000-0000-0000-000000000000','创建人',2,2,10,'{$UserName}',0,9,null,0,4,1,0,9,-1,0,0,'','','','{$username},','</span>
  </div>
</li>
<li areaid="678" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2401">创建人  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d1594_创建人" class="form-lbl" style="width:201px;" IsForField=1 EntId="1594" CId="4" FId="2401" Vtp="0"  >','</span><input id="d1594_创建人_hid" type="hidden"  EntId="1594" IsField=1 DBField=1 IsPost=1 FieldName="创建人" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="2401" vlk=0    value="','" />',-1,-1,-1,-1,0,'1594,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2401,[Form_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='创建人',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=10,[DefaultValue]='{$UserName}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=9,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$username},',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="678" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2401">创建人  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1594_创建人" class="form-lbl" style="width:201px;" IsForField=1 EntId="1594" CId="4" FId="2401" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d1594_创建人_hid" type="hidden"  EntId="1594" IsField=1 DBField=1 IsPost=1 FieldName="创建人" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="2401" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1594,' where  [FldUId]='2f4c0ba5-d4fa-4e38-8772-80bbd3290ec3' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='cb45fe88-51b7-42df-94be-7a03d7b4e7ec'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2402,'cb45fe88-51b7-42df-94be-7a03d7b4e7ec',1594,1594,'00000000-0000-0000-0000-000000000000','创建时间',2,2,11,'select   convert(char(20),getdate(),120)',2,9,null,0,4,1,0,10,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="679" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2402">创建时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d1594_创建时间" class="form-lbl" style="width:201px;" IsForField=1 EntId="1594" CId="4" FId="2402" Vtp="2"  >','</span><input id="d1594_创建时间_hid" type="hidden"  EntId="1594" IsField=1 DBField=1 IsPost=1 FieldName="创建时间" dType="2" Vtp="2" RDT="2" Isc="0" RId="9" CId="4" FId="2402" vlk=0    value="','" />',-1,-1,-1,-1,0,'1594,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2402,[Form_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='创建时间',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=11,[DefaultValue]='select   convert(char(20),getdate(),120)',[ValueType]=2,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=10,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="679" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2402">创建时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1594_创建时间" class="form-lbl" style="width:201px;" IsForField=1 EntId="1594" CId="4" FId="2402" Vtp="2"  >',[CtrlbackHtml]='</span><input id="d1594_创建时间_hid" type="hidden"  EntId="1594" IsField=1 DBField=1 IsPost=1 FieldName="创建时间" dType="2" Vtp="2" RDT="2" Isc="0" RId="9" CId="4" FId="2402" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1594,' where  [FldUId]='cb45fe88-51b7-42df-94be-7a03d7b4e7ec' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='d59afb84-292e-4d47-ae00-7de18d35e017'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2403,'d59afb84-292e-4d47-ae00-7de18d35e017',1594,1594,'00000000-0000-0000-0000-000000000000','所属用户',2,2,12,'{$UserName}',0,9,null,0,4,1,0,11,-1,0,0,'','','','{$username},','</span>
  </div>
</li>
<li areaid="680" style="height: 38px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2403">所属用户  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','</span>
  </div>
</li>
</ul>
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="178" entid="1594" class="tab_ul" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="681" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li areaid="682" istab="1" tabid="2" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1" style="display: none;">
<ul isgroup="1" groupid="179" entid="1594" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="683" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: block;">
<ul isgroup="1" groupid="180" entid="1594" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="684" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="1594" groupid="181" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="685" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
<li areaid="686" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>','','','<span id="d1594_所属用户" class="form-lbl" style="width:201px;" IsForField=1 EntId="1594" CId="4" FId="2403" Vtp="0"  >','</span><input id="d1594_所属用户_hid" type="hidden"  EntId="1594" IsField=1 DBField=1 IsPost=1 FieldName="所属用户" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="2403" vlk=0    value="','" />',-1,-1,-1,-1,0,'1594,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2403,[Form_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='所属用户',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=12,[DefaultValue]='{$UserName}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=11,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$username},',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="680" style="height: 38px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2403">所属用户  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
  </div>
</li>
</ul>
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="178" entid="1594" class="tab_ul" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="681" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li areaid="682" istab="1" tabid="2" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1" style="display: none;">
<ul isgroup="1" groupid="179" entid="1594" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="683" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: block;">
<ul isgroup="1" groupid="180" entid="1594" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="684" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="1594" groupid="181" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="685" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
<li areaid="686" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1594_所属用户" class="form-lbl" style="width:201px;" IsForField=1 EntId="1594" CId="4" FId="2403" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d1594_所属用户_hid" type="hidden"  EntId="1594" IsField=1 DBField=1 IsPost=1 FieldName="所属用户" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="2403" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1594,' where  [FldUId]='d59afb84-292e-4d47-ae00-7de18d35e017' 
      end



Delete from [Dcx_SearchForm_Run]  where [EntId]=1594

--Dcx_SearchForm_Run
      if (select count(1) from [Dcx_SearchForm_Run] where  [EntId]=1594  )<1 
      begin 
           Insert into [Dcx_SearchForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('d986ec80-d4fc-4746-a0c3-9d8cdddd8e09','总结报告',1594,9,'','',0,'','','DcxRun.SearchF_1594= {"MenuId":2777,"MEntId":1594,"EntName":"总结报告","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1594":{"EntId":1594,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_1594.EntMsg.E1594.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"ERP_总结计划","EntId":1594,"KeyField":"Id","MKeyField":"Id","MKeyValue":"","DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"已评阅":{"DtId":4,"DB":1,"CId":3,"FL":100},"类别":{"DtId":2,"DB":1,"CId":3,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.SearchF_1594.EntMsg.E1594.GetDataRowModel=function()
{
    return {"已评阅":false,"类别":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":"","DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_1594.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1594,''SearchF_'',buildNew,closeDlg);

}','',20,'','','','1594*Id*2**2*ERP_总结计划*总结报告',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 5:45:57',3,'admin','2013-11-16 17:40:34',1)
      end
      else 
      begin 
           update [Dcx_SearchForm_Run] set [FormId]='d986ec80-d4fc-4746-a0c3-9d8cdddd8e09',[FormName]='总结报告',[ModuleId]=9,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.SearchF_1594= {"MenuId":2777,"MEntId":1594,"EntName":"总结报告","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1594":{"EntId":1594,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_1594.EntMsg.E1594.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"ERP_总结计划","EntId":1594,"KeyField":"Id","MKeyField":"Id","MKeyValue":"","DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"已评阅":{"DtId":4,"DB":1,"CId":3,"FL":100},"类别":{"DtId":2,"DB":1,"CId":3,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.SearchF_1594.EntMsg.E1594.GetDataRowModel=function()
{
    return {"已评阅":false,"类别":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":"","DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_1594.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1594,''SearchF_'',buildNew,closeDlg);

}',[LoadingSql]='',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='1594*Id*2**2*ERP_总结计划*总结报告',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 5:45:57',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-16 17:40:34',[AccountId]=1 where  [EntId]=1594 
      end




--Dcx_SearchFormField_Run
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='d9ec9b5d-2fce-457b-b76b-2300d26db29b'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'d9ec9b5d-2fce-457b-b76b-2300d26db29b',1594,1594,'00000000-0000-0000-0000-000000000000',1,'=','已评阅',4,4,7,'',1,1,1,0,3,1,0,-1,1,0,'','','','','<div class="searchform">
<ul isgroup="1" groupid="27" entid="1594" class="search-block w920" ctrlprex="SearchF_" isrple="1">
<li areaid="79" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="3">已评阅</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">','','','','<select id="d1594_已评阅" name="d1594_已评阅" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1594,''SearchF_'',1594,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1594,''SearchF_'',1594);" EntId="1594" IsField=1 DBField=1 IsPost=1 FieldName="已评阅" dType="4" Vtp="1" RDT="4" Isc="1" RId="1" CId="3" FId="3" vlk=0    Cpre="="  style="width:150px;">','</select>','',1,-1,-1,-1,-1,0,'1594,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=3,[Form_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[CompareOperatorType]='=',[FieldName]='已评阅',[FieldDataTypeId]=4,[RunDataTypeId]=4,[DBFieldId]=7,[DefaultValue]='',[ValueType]=1,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="searchform">
<ul isgroup="1" groupid="27" entid="1594" class="search-block w920" ctrlprex="SearchF_" isrple="1">
<li areaid="79" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="3">已评阅</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1594_已评阅" name="d1594_已评阅" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1594,''SearchF_'',1594,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1594,''SearchF_'',1594);" EntId="1594" IsField=1 DBField=1 IsPost=1 FieldName="已评阅" dType="4" Vtp="1" RDT="4" Isc="1" RId="1" CId="3" FId="3" vlk=0    Cpre="="  style="width:150px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1594,' where  [FldUId]='d9ec9b5d-2fce-457b-b76b-2300d26db29b' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='d00c3c2a-d7e2-4722-991c-9073b381ed8d'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'d00c3c2a-d7e2-4722-991c-9073b381ed8d',1594,1594,'00000000-0000-0000-0000-000000000000',2,'=','类别',2,2,9,'',1,1,1,0,3,1,0,-1,1,0,'','','','','</span>
  </div>
</li>
<li areaid="80" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="4">类别</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">','</span>
  </div>
</li>
<li areaid="81" class="search-li w100 h32" scroll="no" style="position: static;">
<div class="searchform-button" onclick="javascript:return VL_Search(1594);">
<div class="search-btn">&nbsp;</div>
<a href="javascript:void(0);" id="1594_searchBT">搜索</a>
</div>
</li>
</ul>
</div>','','','<select id="d1594_类别" name="d1594_类别" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1594,''SearchF_'',1594,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1594,''SearchF_'',1594);" EntId="1594" IsField=1 DBField=1 IsPost=1 FieldName="类别" dType="2" Vtp="1" RDT="2" Isc="1" RId="1" CId="3" FId="4" vlk=0    Cpre="="  style="width:150px;">','<option  value="周报告"  >周报告</option>
<option  value="月报告"  >月报告</option>
</select>','',1,-1,-1,-1,-1,0,'1594,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=4,[Form_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[CompareOperatorType]='=',[FieldName]='类别',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=9,[DefaultValue]='',[ValueType]=1,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="80" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="4">类别</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
  </div>
</li>
<li areaid="81" class="search-li w100 h32" scroll="no" style="position: static;">
<div class="searchform-button" onclick="javascript:return VL_Search(1594);">
<div class="search-btn">&nbsp;</div>
<a href="javascript:void(0);" id="1594_searchBT">搜索</a>
</div>
</li>
</ul>
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1594_类别" name="d1594_类别" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1594,''SearchF_'',1594,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1594,''SearchF_'',1594);" EntId="1594" IsField=1 DBField=1 IsPost=1 FieldName="类别" dType="2" Vtp="1" RDT="2" Isc="1" RId="1" CId="3" FId="4" vlk=0    Cpre="="  style="width:150px;">',[CtrlbackHtml]='<option  value="周报告"  >周报告</option>
<option  value="月报告"  >月报告</option>
</select>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1594,' where  [FldUId]='d00c3c2a-d7e2-4722-991c-9073b381ed8d' 
      end



Delete from [Dcx_BrowseReport_Run]  where [EntId]=1594

--Dcx_BrowseReport_Run
      if (select count(1) from [Dcx_BrowseReport_Run] where  [EntId]=1594  )<1 
      begin 
           Insert into [Dcx_BrowseReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[DIYJsCss],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('4e15f88f-9e92-4f50-b3ce-0f1f7d8fd00f','总结报告',1594,31,'','<$1594$>select [所属用户],[主题],[总结],[计划],[领导评阅],[评阅人],[已评阅],[评阅时间],[类别],[创建人],[创建时间],[所属部门],[Id] from ERP_总结计划 where [Id]=''{$keyfieldvalue}''</$1594$>',1,1,20,'','DcxRun.MChildR_1594= {"MenuId":2777,"MEntId":1594,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"总结报告","EntMsg":{"E1594":{"EntId":1594,"EntName":"总结报告","KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1594*Id*2**2*ERP_总结计划*总结报告',3,'','2012-12-21 11:03:02',3,'','2013-11-17 3:17:27',1)
      end
      else 
      begin 
           update [Dcx_BrowseReport_Run] set [ReportId]='4e15f88f-9e92-4f50-b3ce-0f1f7d8fd00f',[ReportName]='总结报告',[ModuleId]=31,[StaticHtml]='',[LoadingSql]='<$1594$>select [所属用户],[主题],[总结],[计划],[领导评阅],[评阅人],[已评阅],[评阅时间],[类别],[创建人],[创建时间],[所属部门],[Id] from ERP_总结计划 where [Id]=''{$keyfieldvalue}''</$1594$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[DIYJsCss]='',[AutoPublicJs]='DcxRun.MChildR_1594= {"MenuId":2777,"MEntId":1594,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"总结报告","EntMsg":{"E1594":{"EntId":1594,"EntName":"总结报告","KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1594*Id*2**2*ERP_总结计划*总结报告',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-21 11:03:02',[EditorId]=3,[Editor]='',[EditTime]='2013-11-17 3:17:27',[AccountId]=1 where  [EntId]=1594 
      end




--Dcx_BrowseReportField_Run
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='3c9838e7-b9b9-480a-9bed-dac1a0736596'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'3c9838e7-b9b9-480a-9bed-dac1a0736596',1594,1594,'00000000-0000-0000-0000-000000000000',12,'所属用户',1,1,'varchar',2,1,0,'','','','<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1594" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="547" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">总结报告</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1594" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="548" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">所属用户  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1594" fieldname="所属用户" fldid="2" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1594,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=2,[Report_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=12,[FieldName]='所属用户',[FieldNO]=1,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1594" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="547" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">总结报告</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1594" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="548" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">所属用户  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1594" fieldname="所属用户" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1594,' where  [FldUId]='3c9838e7-b9b9-480a-9bed-dac1a0736596' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='9d777283-08c2-4110-8dbd-8dd943cdefef'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'9d777283-08c2-4110-8dbd-8dd943cdefef',1594,1594,'00000000-0000-0000-0000-000000000000',2,'主题',2,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="549" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">主题  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1594" fieldname="主题" fldid="3" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1594,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=3,[Report_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='主题',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="549" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">主题  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1594" fieldname="主题" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1594,' where  [FldUId]='9d777283-08c2-4110-8dbd-8dd943cdefef' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='2ac9d889-a7e9-4869-9389-6bca5241f3cb'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'2ac9d889-a7e9-4869-9389-6bca5241f3cb',1594,1594,'00000000-0000-0000-0000-000000000000',3,'总结',3,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="550" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">总结  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1594" fieldname="总结" fldid="4" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1594,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=4,[Report_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='总结',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="550" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">总结  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1594" fieldname="总结" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1594,' where  [FldUId]='2ac9d889-a7e9-4869-9389-6bca5241f3cb' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='3e9ad1d0-fda4-447a-b664-b19aacf0b9ce'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'3e9ad1d0-fda4-447a-b664-b19aacf0b9ce',1594,1594,'00000000-0000-0000-0000-000000000000',4,'计划',4,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="551" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">计划  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1594" fieldname="计划" fldid="5" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1594,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=5,[Report_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=4,[FieldName]='计划',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="551" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">计划  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1594" fieldname="计划" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1594,' where  [FldUId]='3e9ad1d0-fda4-447a-b664-b19aacf0b9ce' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='17d41d28-da51-463c-968c-a3076b4b77bb'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'17d41d28-da51-463c-968c-a3076b4b77bb',1594,1594,'00000000-0000-0000-0000-000000000000',5,'领导评阅',5,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="552" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">领导评阅  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1594" fieldname="领导评阅" fldid="6" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1594,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=6,[Report_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=5,[FieldName]='领导评阅',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="552" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">领导评阅  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1594" fieldname="领导评阅" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1594,' where  [FldUId]='17d41d28-da51-463c-968c-a3076b4b77bb' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='d9c2c8e4-f0e7-4dfb-86d2-1db6583bdab7'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'d9c2c8e4-f0e7-4dfb-86d2-1db6583bdab7',1594,1594,'00000000-0000-0000-0000-000000000000',6,'评阅人',6,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="553" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">评阅人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1594" fieldname="评阅人" fldid="7" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1594,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=7,[Report_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=6,[FieldName]='评阅人',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="553" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">评阅人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1594" fieldname="评阅人" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1594,' where  [FldUId]='d9c2c8e4-f0e7-4dfb-86d2-1db6583bdab7' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='248994e4-da1e-46cf-b9a4-55a98aa9fdc9'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'248994e4-da1e-46cf-b9a4-55a98aa9fdc9',1594,1594,'00000000-0000-0000-0000-000000000000',7,'已评阅',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="554" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="8">已评阅  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1594" fieldname="已评阅" fldid="8" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1594,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=8,[Report_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=7,[FieldName]='已评阅',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="554" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="8">已评阅  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1594" fieldname="已评阅" fldid="8" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1594,' where  [FldUId]='248994e4-da1e-46cf-b9a4-55a98aa9fdc9' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='21f27ac0-3226-42a2-8489-48adf33b4134'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'21f27ac0-3226-42a2-8489-48adf33b4134',1594,1594,'00000000-0000-0000-0000-000000000000',8,'评阅时间',8,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="555" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="9">评阅时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1594" fieldname="评阅时间" fldid="9" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1594,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=9,[Report_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=8,[FieldName]='评阅时间',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="555" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="9">评阅时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1594" fieldname="评阅时间" fldid="9" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1594,' where  [FldUId]='21f27ac0-3226-42a2-8489-48adf33b4134' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='6d8645bc-21ef-4e08-b0fb-ef2352046026'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'6d8645bc-21ef-4e08-b0fb-ef2352046026',1594,1594,'00000000-0000-0000-0000-000000000000',9,'类别',9,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="556" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="10">类别  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1594" fieldname="类别" fldid="10" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1594,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=10,[Report_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=9,[FieldName]='类别',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="556" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="10">类别  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1594" fieldname="类别" fldid="10" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1594,' where  [FldUId]='6d8645bc-21ef-4e08-b0fb-ef2352046026' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='521ddf70-979c-44ba-a6cc-72752ff14c3c'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'521ddf70-979c-44ba-a6cc-72752ff14c3c',1594,1594,'00000000-0000-0000-0000-000000000000',10,'创建人',10,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="557" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="11">创建人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1594" fieldname="创建人" fldid="11" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1594,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=11,[Report_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=10,[FieldName]='创建人',[FieldNO]=10,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="557" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="11">创建人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1594" fieldname="创建人" fldid="11" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1594,' where  [FldUId]='521ddf70-979c-44ba-a6cc-72752ff14c3c' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='9ba31d49-98ef-44dc-9b6d-e6c5e1bb9154'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(12,'9ba31d49-98ef-44dc-9b6d-e6c5e1bb9154',1594,1594,'00000000-0000-0000-0000-000000000000',11,'创建时间',11,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="558" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="12">创建时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1594" fieldname="创建时间" fldid="12" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1594,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=12,[Report_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=11,[FieldName]='创建时间',[FieldNO]=11,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="558" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="12">创建时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1594" fieldname="创建时间" fldid="12" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1594,' where  [FldUId]='9ba31d49-98ef-44dc-9b6d-e6c5e1bb9154' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='292614a7-36af-4d61-adaa-8310aba2e344'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(13,'292614a7-36af-4d61-adaa-8310aba2e344',1594,1594,'00000000-0000-0000-0000-000000000000',13,'所属部门',12,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="559" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="13">所属部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1594" fieldname="所属部门" fldid="13" columntypeid="1" class="form-ctr">','</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1594" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="564" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="565" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1594" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="566" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1594" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="567" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1594" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="568" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="569" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',-1,-1,-1,-1,0,'1594,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=13,[Report_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=13,[FieldName]='所属部门',[FieldNO]=12,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="559" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="13">所属部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1594" fieldname="所属部门" fldid="13" columntypeid="1" class="form-ctr">',[LastHtml]='</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1594" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="564" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="565" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1594" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="566" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1594" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="567" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1594" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="568" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="569" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1594,' where  [FldUId]='292614a7-36af-4d61-adaa-8310aba2e344' 
      end



Delete from [Dcx_ListReport_Run]  where [EntId]=1594

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=1594  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('e04bcc80-c73c-4283-bf51-8267d346e901','总结报告',1594,1,'','','<$1594$>select *  from (select row_number() over( order by [Id])as dcx_rowid,[所属用户],[主题],[总结],[计划],[领导评阅],[评阅人],[已评阅],[评阅时间],[类别],[创建人],[创建时间],[所属部门],[Id] from ERP_总结计划  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1594$><$1594:Count$>select count([Id]) from ERP_总结计划 where {$SearchArea}</$1594:Count$>',1,1,20,'DcxRun.ListR_1594= {"MenuId":2777,"MEntId":1594,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"总结报告","EntMsg":{"E1594":{"EntId":1594,"EntName":"总结报告","KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1594*Id*2**2*ERP_总结计划*总结报告',3,'','2012-12-22 5:16:19',3,'','2013-11-16 20:15:41',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='e04bcc80-c73c-4283-bf51-8267d346e901',[ReportName]='总结报告',[ModuleId]=1,[StaticHtml]='',[DIYJsCss]='',[LoadingSql]='<$1594$>select *  from (select row_number() over( order by [Id])as dcx_rowid,[所属用户],[主题],[总结],[计划],[领导评阅],[评阅人],[已评阅],[评阅时间],[类别],[创建人],[创建时间],[所属部门],[Id] from ERP_总结计划  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1594$><$1594:Count$>select count([Id]) from ERP_总结计划 where {$SearchArea}</$1594:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[AutoPublicJs]='DcxRun.ListR_1594= {"MenuId":2777,"MEntId":1594,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"总结报告","EntMsg":{"E1594":{"EntId":1594,"EntName":"总结报告","KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1594*Id*2**2*ERP_总结计划*总结报告',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-22 5:16:19',[EditorId]=3,[Editor]='',[EditTime]='2013-11-16 20:15:41',[AccountId]=1 where  [EntId]=1594 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='c893e489-a3c4-f373-913e-4bee32c65439'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(194,'c893e489-a3c4-f373-913e-4bee32c65439',1594,1594,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="61" entid="1594" style="width: 1500px;" ctrlprex="ListR_" isrple="1"> <li areaid="1152" class="tool-li" style="position: static;">
</li><li areaid="1153" class="tool-li" style="position: static;"><a id="ListR_1594_btn_buildNew" class="list-bt-add" title="添   加" href="javascript:void(0);" onclick="javascript:DcxCom.ShowAddDataDlg(1594,''ListR_'');">添   加</a></li>
<li areaid="1154" class="tool-li" style="position: static;"><a id="ListR_1594_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1594,''ListR_'');">删   除</a></li>
<li areaid="1155" class="tool-li" style="position: static;"><a id="ListR_1594_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1594,''ListR_'');">导   出</a></li>
<li areaid="1156" class="tool-li" style="position: static;"><a id="ListR_1594_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1594,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1594" style="position: static;">
<a id="ListR_1594_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1594,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1594_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1594,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1594_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1594,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1594_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="62" entid="1594" class="list-head-ul" style="width: 1552px;" ctrlprex="ListR_" isrple="1">
<li areaid="1158" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1594" onclick="javascript:DcxCom.CheckedAll(this,1594,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="1159" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">所属用户 </label></li><li areaid="1160" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">主题 </label></li><li areaid="1161" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">总结 </label></li><li areaid="1162" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">计划 </label></li><li areaid="1163" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">领导评阅 </label></li><li areaid="1164" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">评阅人 </label></li><li areaid="1165" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">已评阅 </label></li><li areaid="1166" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">评阅时间 </label></li><li areaid="1167" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">类别 </label></li><li areaid="1168" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">创建人 </label></li><li areaid="1169" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">创建时间 </label></li><li areaid="1170" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">所属部门 </label></li><li areaid="1171" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="编辑"><span class="i">编辑</span></a></div></li><li areaid="1172" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="1173" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">','',-1,63,-1,-1,1,'1594,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=194,[Report_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="61" entid="1594" style="width: 1500px;" ctrlprex="ListR_" isrple="1"> <li areaid="1152" class="tool-li" style="position: static;">
</li><li areaid="1153" class="tool-li" style="position: static;"><a id="ListR_1594_btn_buildNew" class="list-bt-add" title="添   加" href="javascript:void(0);" onclick="javascript:DcxCom.ShowAddDataDlg(1594,''ListR_'');">添   加</a></li>
<li areaid="1154" class="tool-li" style="position: static;"><a id="ListR_1594_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1594,''ListR_'');">删   除</a></li>
<li areaid="1155" class="tool-li" style="position: static;"><a id="ListR_1594_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1594,''ListR_'');">导   出</a></li>
<li areaid="1156" class="tool-li" style="position: static;"><a id="ListR_1594_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1594,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1594" style="position: static;">
<a id="ListR_1594_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1594,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1594_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1594,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1594_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1594,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1594_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="62" entid="1594" class="list-head-ul" style="width: 1552px;" ctrlprex="ListR_" isrple="1">
<li areaid="1158" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1594" onclick="javascript:DcxCom.CheckedAll(this,1594,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="1159" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">所属用户 </label></li><li areaid="1160" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">主题 </label></li><li areaid="1161" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">总结 </label></li><li areaid="1162" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">计划 </label></li><li areaid="1163" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">领导评阅 </label></li><li areaid="1164" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">评阅人 </label></li><li areaid="1165" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">已评阅 </label></li><li areaid="1166" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">评阅时间 </label></li><li areaid="1167" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">类别 </label></li><li areaid="1168" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">创建人 </label></li><li areaid="1169" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">创建时间 </label></li><li areaid="1170" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">所属部门 </label></li><li areaid="1171" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="编辑"><span class="i">编辑</span></a></div></li><li areaid="1172" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="1173" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=63,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1594,' where  [FldUId]='c893e489-a3c4-f373-913e-4bee32c65439' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='562a4870-e068-4717-900d-da820a5f72a8'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(154,'562a4870-e068-4717-900d-da820a5f72a8',1594,1594,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',2,1,'',2,21,0,'','','','islonly="1" isgroup="1" groupid="63" class="list-body-ul" style="width: 1552px;" isrple="1">
<li areaid="1174" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1594" issyscheck="1" keyvalue="','',-1,63,-1,-1,1,'1594,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=154,[Report_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='islonly="1" isgroup="1" groupid="63" class="list-body-ul" style="width: 1552px;" isrple="1">
<li areaid="1174" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1594" issyscheck="1" keyvalue="',[LastHtml]='',[RowIndex]=-1,[TableIndex]=63,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1594,' where  [FldUId]='562a4870-e068-4717-900d-da820a5f72a8' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='0f9f3598-6107-4fed-b054-b0a52d6eed6a'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'0f9f3598-6107-4fed-b054-b0a52d6eed6a',1594,1594,'00000000-0000-0000-0000-000000000000',12,'所属用户',3,1,'varchar',2,1,0,'','','','" type="checkbox"></li><li areaid="1175" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1594" fieldname="所属用户" fldid="2" columntypeid="1" class="form-ctr">','',-1,63,-1,-1,1,'1594,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=2,[Report_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=12,[FieldName]='所属用户',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='" type="checkbox"></li><li areaid="1175" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1594" fieldname="所属用户" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=63,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1594,' where  [FldUId]='0f9f3598-6107-4fed-b054-b0a52d6eed6a' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='745ae172-7cef-4557-ab79-9954de5d015b'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'745ae172-7cef-4557-ab79-9954de5d015b',1594,1594,'00000000-0000-0000-0000-000000000000',2,'主题',4,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1176" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1594" fieldname="主题" fldid="3" columntypeid="1" class="form-ctr">','',-1,63,-1,-1,1,'1594,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=3,[Report_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='主题',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1176" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1594" fieldname="主题" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=63,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1594,' where  [FldUId]='745ae172-7cef-4557-ab79-9954de5d015b' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='6f4fa40d-5135-47f4-a113-30d8aa58650e'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'6f4fa40d-5135-47f4-a113-30d8aa58650e',1594,1594,'00000000-0000-0000-0000-000000000000',3,'总结',5,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1177" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1594" fieldname="总结" fldid="4" columntypeid="1" class="form-ctr">','',-1,63,-1,-1,1,'1594,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=4,[Report_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='总结',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1177" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1594" fieldname="总结" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=63,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1594,' where  [FldUId]='6f4fa40d-5135-47f4-a113-30d8aa58650e' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='3133c741-318a-4cfa-b774-8ef23cc96e79'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'3133c741-318a-4cfa-b774-8ef23cc96e79',1594,1594,'00000000-0000-0000-0000-000000000000',4,'计划',6,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1178" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1594" fieldname="计划" fldid="5" columntypeid="1" class="form-ctr">','',-1,63,-1,-1,1,'1594,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=5,[Report_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=4,[FieldName]='计划',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1178" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1594" fieldname="计划" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=63,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1594,' where  [FldUId]='3133c741-318a-4cfa-b774-8ef23cc96e79' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='47cc9558-3009-42de-a4ce-b91e7cc5804e'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'47cc9558-3009-42de-a4ce-b91e7cc5804e',1594,1594,'00000000-0000-0000-0000-000000000000',5,'领导评阅',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1179" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1594" fieldname="领导评阅" fldid="6" columntypeid="1" class="form-ctr">','',-1,63,-1,-1,1,'1594,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=6,[Report_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=5,[FieldName]='领导评阅',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1179" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1594" fieldname="领导评阅" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=63,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1594,' where  [FldUId]='47cc9558-3009-42de-a4ce-b91e7cc5804e' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='97ea7b5d-f8dd-447e-a577-6fbce936691e'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'97ea7b5d-f8dd-447e-a577-6fbce936691e',1594,1594,'00000000-0000-0000-0000-000000000000',6,'评阅人',8,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1180" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1594" fieldname="评阅人" fldid="7" columntypeid="1" class="form-ctr">','',-1,63,-1,-1,1,'1594,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=7,[Report_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=6,[FieldName]='评阅人',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1180" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1594" fieldname="评阅人" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=63,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1594,' where  [FldUId]='97ea7b5d-f8dd-447e-a577-6fbce936691e' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='a83a95d4-ea2a-435f-9965-db61cd6700f4'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'a83a95d4-ea2a-435f-9965-db61cd6700f4',1594,1594,'00000000-0000-0000-0000-000000000000',7,'已评阅',9,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1181" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1594" fieldname="已评阅" fldid="8" columntypeid="1" class="form-ctr">','',-1,63,-1,-1,1,'1594,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=8,[Report_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=7,[FieldName]='已评阅',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1181" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1594" fieldname="已评阅" fldid="8" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=63,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1594,' where  [FldUId]='a83a95d4-ea2a-435f-9965-db61cd6700f4' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='16ceb12f-1791-4f0d-a02f-e66a2243a5bb'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'16ceb12f-1791-4f0d-a02f-e66a2243a5bb',1594,1594,'00000000-0000-0000-0000-000000000000',8,'评阅时间',10,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1182" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1594" fieldname="评阅时间" fldid="9" columntypeid="1" class="form-ctr">','',-1,63,-1,-1,1,'1594,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=9,[Report_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=8,[FieldName]='评阅时间',[FieldNO]=10,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1182" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1594" fieldname="评阅时间" fldid="9" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=63,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1594,' where  [FldUId]='16ceb12f-1791-4f0d-a02f-e66a2243a5bb' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='d6a87167-744a-4a23-ab17-c9f7c4288042'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'d6a87167-744a-4a23-ab17-c9f7c4288042',1594,1594,'00000000-0000-0000-0000-000000000000',9,'类别',11,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1183" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1594" fieldname="类别" fldid="10" columntypeid="1" class="form-ctr">','',-1,63,-1,-1,1,'1594,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=10,[Report_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=9,[FieldName]='类别',[FieldNO]=11,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1183" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1594" fieldname="类别" fldid="10" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=63,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1594,' where  [FldUId]='d6a87167-744a-4a23-ab17-c9f7c4288042' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='db159115-381a-4611-84a2-149cb7a7c7c7'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'db159115-381a-4611-84a2-149cb7a7c7c7',1594,1594,'00000000-0000-0000-0000-000000000000',10,'创建人',12,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1184" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1594" fieldname="创建人" fldid="11" columntypeid="1" class="form-ctr">','',-1,63,-1,-1,1,'1594,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=11,[Report_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=10,[FieldName]='创建人',[FieldNO]=12,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1184" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1594" fieldname="创建人" fldid="11" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=63,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1594,' where  [FldUId]='db159115-381a-4611-84a2-149cb7a7c7c7' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='82bbe1f1-8cb7-4357-ac16-92ad32f21403'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(12,'82bbe1f1-8cb7-4357-ac16-92ad32f21403',1594,1594,'00000000-0000-0000-0000-000000000000',11,'创建时间',13,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1185" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1594" fieldname="创建时间" fldid="12" columntypeid="1" class="form-ctr">','',-1,63,-1,-1,1,'1594,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=12,[Report_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=11,[FieldName]='创建时间',[FieldNO]=13,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1185" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1594" fieldname="创建时间" fldid="12" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=63,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1594,' where  [FldUId]='82bbe1f1-8cb7-4357-ac16-92ad32f21403' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='f6eb19bb-5ca5-4815-925a-76d3e297d800'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(13,'f6eb19bb-5ca5-4815-925a-76d3e297d800',1594,1594,'00000000-0000-0000-0000-000000000000',13,'所属部门',14,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1186" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1594" fieldname="所属部门" fldid="13" columntypeid="1" class="form-ctr">','',-1,63,-1,-1,1,'1594,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=13,[Report_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=13,[FieldName]='所属部门',[FieldNO]=14,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1186" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1594" fieldname="所属部门" fldid="13" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=63,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1594,' where  [FldUId]='f6eb19bb-5ca5-4815-925a-76d3e297d800' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='dbc4afde-57ff-4a44-ba5e-9a08d43821aa'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(155,'dbc4afde-57ff-4a44-ba5e-9a08d43821aa',1594,1594,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',15,1,'',2,21,0,'','','','</span>
  </div>
</li><li areaid="1187" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,1594,''ListR_'',''','',-1,63,-1,-1,1,'1594,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=155,[Report_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=15,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1187" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,1594,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=63,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1594,' where  [FldUId]='dbc4afde-57ff-4a44-ba5e-9a08d43821aa' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='f388ccde-fdf9-44b4-aa8a-662e7418ebb5'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(156,'f388ccde-fdf9-44b4-aa8a-662e7418ebb5',1594,1594,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',16,1,'',2,21,0,'','','',''',null,1040,480);">
<span class="i">编辑</span></a></div>
</li><li areaid="1188" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1594,''ListR_'',''','',-1,63,-1,-1,1,'1594,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=156,[Report_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=16,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">编辑</span></a></div>
</li><li areaid="1188" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1594,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=63,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1594,' where  [FldUId]='f388ccde-fdf9-44b4-aa8a-662e7418ebb5' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='84aee101-5379-49ae-8029-7b40bae0cc6b'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(157,'84aee101-5379-49ae-8029-7b40bae0cc6b',1594,1594,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',17,1,'',2,21,0,'','','',''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="1189" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,1594,''ListR_'',''','',-1,63,-1,-1,1,'1594,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=157,[Report_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=17,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="1189" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,1594,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=63,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1594,' where  [FldUId]='84aee101-5379-49ae-8029-7b40bae0cc6b' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='b09f0df7-0eb1-c3fb-115c-ade956b09f59'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(195,'b09f0df7-0eb1-c3fb-115c-ade956b09f59',1594,1594,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',18,-1,'varchar',2,13,0,'','','',''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>','</div>
</div>
<!-- 结束 --></div>',-1,63,-1,-1,1,'1594,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=195,[Report_EntId]=1594,[EntId]=1594,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=18,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>',[LastHtml]='</div>
</div>
<!-- 结束 --></div>',[RowIndex]=-1,[TableIndex]=63,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1594,' where  [FldUId]='b09f0df7-0eb1-c3fb-115c-ade956b09f59' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=570

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=570  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(570,null,'ERP_总结计划','ERP_总结计划',0,0,0,0,0,0,30,1,3,'admin','2013-12-15 17:32:31',3,'admin','2013-12-15 17:32:31',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='ERP_总结计划',[DBTableByName]='ERP_总结计划',[IsForbid]=0,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=30,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:31',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:31',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=570 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=570  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18694,1,30,570,'int',1,1,1,'ERP_总结计划','Id','Id','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_总结计划',[FieldName]='Id',[FieldByname]='Id',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=570  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=570  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18695,2,30,570,'varchar',2,1,1,'ERP_总结计划','主题','主题','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_总结计划',[FieldName]='主题',[FieldByname]='主题',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=570  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=570  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18696,3,30,570,'varchar',2,1,1,'ERP_总结计划','总结','总结','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_总结计划',[FieldName]='总结',[FieldByname]='总结',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=570  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=570  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18697,4,30,570,'varchar',2,1,1,'ERP_总结计划','计划','计划','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_总结计划',[FieldName]='计划',[FieldByname]='计划',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=570  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=570  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18698,5,30,570,'varchar',2,1,1,'ERP_总结计划','领导评阅','领导评阅','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_总结计划',[FieldName]='领导评阅',[FieldByname]='领导评阅',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=570  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=570  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18699,6,30,570,'varchar',2,1,1,'ERP_总结计划','评阅人','评阅人','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_总结计划',[FieldName]='评阅人',[FieldByname]='评阅人',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=570  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=570  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18700,7,30,570,'bit',4,1,1,'ERP_总结计划','已评阅','已评阅','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_总结计划',[FieldName]='已评阅',[FieldByname]='已评阅',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=570  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=570  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18701,8,30,570,'varchar',2,1,1,'ERP_总结计划','评阅时间','评阅时间','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_总结计划',[FieldName]='评阅时间',[FieldByname]='评阅时间',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=570  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=570  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18702,9,30,570,'varchar',2,1,1,'ERP_总结计划','类别','类别','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_总结计划',[FieldName]='类别',[FieldByname]='类别',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=570  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=570  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18703,10,30,570,'varchar',2,1,1,'ERP_总结计划','创建人','创建人','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_总结计划',[FieldName]='创建人',[FieldByname]='创建人',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=570  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=570  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18704,11,30,570,'varchar',2,1,1,'ERP_总结计划','创建时间','创建时间','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_总结计划',[FieldName]='创建时间',[FieldByname]='创建时间',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=570  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=570  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18705,12,30,570,'varchar',2,1,1,'ERP_总结计划','所属用户','所属用户','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_总结计划',[FieldName]='所属用户',[FieldByname]='所属用户',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=570  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=570  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18706,13,30,570,'varchar',2,1,1,'ERP_总结计划','所属部门','所属部门','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_总结计划',[FieldName]='所属部门',[FieldByname]='所属部门',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=570  and  [FieldId]=13 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=2778  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2778,'d8a6ffb0-5121-4e21-bb38-2bd476c4c684','评阅报告',2040,'/Template/default/ListReport/ListReport_Tree001.aspx',1,'/images/default.gif','/images/default.gif',15,'',null,0,null,30,0,30,1,1,1,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='d8a6ffb0-5121-4e21-bb38-2bd476c4c684',[MenuName]='评阅报告',[ParentId]=2040,[ProPath]='/Template/default/ListReport/ListReport_Tree001.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=15,[Target]='',[IsOpen]=null,[IsHidden]=0,[Remark]=null,[SSystemId]=30,[SMenuId]=0,[SystemId]=30,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=2778 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=2778  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(566,2778,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=2778  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=1595  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(1595,2778,'总结报告',1,570,0,'ERP_总结计划',0,0,1,30,1595,null,null,30,null,null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=2778,[EntName]='总结报告',[MEnt]=1,[DBTableId]=570,[DBConnectId]=0,[DBTableName]='ERP_总结计划',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=30,[SEntId]=1595,[FSystemId]=null,[FEntId]=null,[SystemId]=30,[Remark]=null,[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=1595 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=1595

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=1595  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(10733,2778,1595,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=2778,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=1595  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=1595

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1595  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20528,30,2778,1595,13,1,1,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=2778,[TemplateId]=13,[ModuleId]=1,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1595  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1595  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20529,30,2778,1595,13,2,9,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=2778,[TemplateId]=13,[ModuleId]=9,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=1595  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1595  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20530,30,2778,1595,13,3,14,1,4,2,'/Template/Default/Form/AjaxForm/AjaxForm008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=2778,[TemplateId]=13,[ModuleId]=14,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='/Template/Default/Form/AjaxForm/AjaxForm008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1595  and  [ModuleTypeId]=3 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=1595  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20531,30,2778,1595,13,16,31,1,5,2,'/Template/Default/Browse/Browse008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=2778,[TemplateId]=13,[ModuleId]=31,[GroupId]=1,[AreaId]=5,[ShowMode]=2,[AreaUrl]='/Template/Default/Browse/Browse008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=1595  and  [ModuleTypeId]=16 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_AjaxForm_Run]  where [EntId]=1595

--Dcx_AjaxForm_Run
      if (select count(1) from [Dcx_AjaxForm_Run] where  [EntId]=1595  )<1 
      begin 
           Insert into [Dcx_AjaxForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('f75adde2-8551-4a96-9460-9db117376f6e','总结报告',1595,14,'','',0,'<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>','','DcxRun.AjaxF_1595= {"MenuId":2778,"MEntId":1595,"EntName":"总结报告","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1595":{"EntId":1595,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{
DcxForm.CreateHtmlEditor(''d1595_总结'',1595,''AjaxF_'',''总结'',600,235,true,1,false);
DcxForm.CreateHtmlEditor(''d1595_计划'',1595,''AjaxF_'',''计划'',600,235,true,1,false);
DcxForm.CreateHtmlEditor(''d1595_领导评阅'',1595,''AjaxF_'',''领导评阅'',600,235,false,1,false);

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_1595.EntMsg.E1595.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"ERP_总结计划","EntId":1595,"KeyField":"Id","MKeyField":"Id","MKeyValue":"","DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"主题":{"DtId":2,"DB":1,"CId":1,"FL":0},"总结":{"DtId":6,"DB":1,"CId":28,"FL":0},"计划":{"DtId":6,"DB":1,"CId":28,"FL":0},"领导评阅":{"DtId":6,"DB":1,"CId":28,"FL":0},"评阅人":{"DtId":2,"DB":1,"CId":3,"FL":0},"已评阅":{"DtId":4,"DB":1,"CId":7,"FL":0},"评阅时间":{"DtId":2,"DB":1,"CId":1,"FL":0},"类别":{"DtId":2,"DB":1,"CId":7,"FL":0},"创建人":{"DtId":2,"DB":1,"CId":4,"FL":0},"创建时间":{"DtId":2,"DB":1,"CId":4,"FL":0},"所属用户":{"DtId":2,"DB":1,"CId":4,"FL":0}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_1595.EntMsg.E1595.GetDataRowModel=function()
{
    return {"主题":"","总结":"","计划":"","领导评阅":"","评阅人":"","已评阅":false,"评阅时间":"","类别":"","创建人":"","创建时间":"","所属用户":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":"","DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_1595.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1595,''AjaxF_'',buildNew,closeDlg);

}','<$1595$>select [主题],[总结],[计划],[领导评阅],[评阅人],[已评阅],[评阅时间],[类别],[创建人],[创建时间],[所属用户],[Id] from ERP_总结计划 where [Id]=''{$keyfieldvalue}''</$1595$>',20,'','','','1595*Id*2**2*ERP_总结计划*总结报告',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 7:02:48',3,'admin','2013-11-16 18:42:40',1)
      end
      else 
      begin 
           update [Dcx_AjaxForm_Run] set [FormId]='f75adde2-8551-4a96-9460-9db117376f6e',[FormName]='总结报告',[ModuleId]=14,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.AjaxF_1595= {"MenuId":2778,"MEntId":1595,"EntName":"总结报告","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1595":{"EntId":1595,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{
DcxForm.CreateHtmlEditor(''d1595_总结'',1595,''AjaxF_'',''总结'',600,235,true,1,false);
DcxForm.CreateHtmlEditor(''d1595_计划'',1595,''AjaxF_'',''计划'',600,235,true,1,false);
DcxForm.CreateHtmlEditor(''d1595_领导评阅'',1595,''AjaxF_'',''领导评阅'',600,235,false,1,false);

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_1595.EntMsg.E1595.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"ERP_总结计划","EntId":1595,"KeyField":"Id","MKeyField":"Id","MKeyValue":"","DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"主题":{"DtId":2,"DB":1,"CId":1,"FL":0},"总结":{"DtId":6,"DB":1,"CId":28,"FL":0},"计划":{"DtId":6,"DB":1,"CId":28,"FL":0},"领导评阅":{"DtId":6,"DB":1,"CId":28,"FL":0},"评阅人":{"DtId":2,"DB":1,"CId":3,"FL":0},"已评阅":{"DtId":4,"DB":1,"CId":7,"FL":0},"评阅时间":{"DtId":2,"DB":1,"CId":1,"FL":0},"类别":{"DtId":2,"DB":1,"CId":7,"FL":0},"创建人":{"DtId":2,"DB":1,"CId":4,"FL":0},"创建时间":{"DtId":2,"DB":1,"CId":4,"FL":0},"所属用户":{"DtId":2,"DB":1,"CId":4,"FL":0}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_1595.EntMsg.E1595.GetDataRowModel=function()
{
    return {"主题":"","总结":"","计划":"","领导评阅":"","评阅人":"","已评阅":false,"评阅时间":"","类别":"","创建人":"","创建时间":"","所属用户":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":"","DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_1595.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1595,''AjaxF_'',buildNew,closeDlg);

}',[LoadingSql]='<$1595$>select [主题],[总结],[计划],[领导评阅],[评阅人],[已评阅],[评阅时间],[类别],[创建人],[创建时间],[所属用户],[Id] from ERP_总结计划 where [Id]=''{$keyfieldvalue}''</$1595$>',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='1595*Id*2**2*ERP_总结计划*总结报告',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 7:02:48',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-16 18:42:40',[AccountId]=1 where  [EntId]=1595 
      end




--Dcx_AjaxFormField_Run
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='500a3e93-8a52-477f-961a-328747cf0f06'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2404,'500a3e93-8a52-477f-961a-328747cf0f06',1595,1595,'00000000-0000-0000-0000-000000000000','主题',2,2,2,'',5,1,null,0,1,1,0,1,-1,0,0,'','','','','<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="1595" groupid="176" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="666" class="li-area-title" scroll="no" style="width: 77px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">总结报告</span></div>
</li>
<li areaid="667" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
<li areaid="668" class="li-area1" scroll="no" style="display: none; position: static;">
<a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.AjaxF_1595.SubmitForm(false);">
<span class="op_bt_i">保存</span> </a></li>
<li areaid="669" class="li-area1" scroll="no" style="display: none; position: static;">
<a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(1595,''AjaxF_'');"><span class="op_bt_i">新建</span>
</a></li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="177" entid="1595" class="ul-mform" ctrlprex="AjaxF_" isrple="1">
<li areaid="670" style="height: 38px; width: 792px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2404" istitle="1">主题 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d1595_主题"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1595,''AjaxF_'',1595,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1595,''AjaxF_'',1595);" EntId="1595" IsField=1 DBField=1 IsPost=1 FieldName="主题" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="2404" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1595,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2404,[Form_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='主题',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=2,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="ajaxform">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" entid="1595" groupid="176" isgroup="1" ctrlprex="AjaxF_" isrple="1">
<li areaid="666" class="li-area-title" scroll="no" style="width: 77px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">总结报告</span></div>
</li>
<li areaid="667" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
<li areaid="668" class="li-area1" scroll="no" style="display: none; position: static;">
<a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.AjaxF_1595.SubmitForm(false);">
<span class="op_bt_i">保存</span> </a></li>
<li areaid="669" class="li-area1" scroll="no" style="display: none; position: static;">
<a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(1595,''AjaxF_'');"><span class="op_bt_i">新建</span>
</a></li>
</ul>
</div> 
<div class="frame-div">
<ul isgroup="1" groupid="177" entid="1595" class="ul-mform" ctrlprex="AjaxF_" isrple="1">
<li areaid="670" style="height: 38px; width: 792px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2404" istitle="1">主题 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1595_主题"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1595,''AjaxF_'',1595,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1595,''AjaxF_'',1595);" EntId="1595" IsField=1 DBField=1 IsPost=1 FieldName="主题" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="2404" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1595,' where  [FldUId]='500a3e93-8a52-477f-961a-328747cf0f06' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='df1b1346-f9ac-4047-aec2-1b2ab4581609'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2405,'df1b1346-f9ac-4047-aec2-1b2ab4581609',1595,1595,'00000000-0000-0000-0000-000000000000','总结',6,2,3,'',5,5,null,0,28,1,0,2,-1,0,0,'','','','','</span>
</div>
</li>
<li areaid="671" style="height: 455px; width: 792px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2405" istitle="1">总结 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1595_总结" class="form-txts"  style="width:600px;height:235px;"  readonly="readonly"   EntId="1595" IsField=1 DBField=1 IsPost=1 FieldName="总结" dType="6" Vtp="5" RDT="2" Isc="0" RId="5" CId="28" FId="2405" vlk=0    UUT=1  disabled ="disabled"  >','</textarea>','',-1,-1,-1,-1,0,'1595,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2405,[Form_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='总结',[FieldDataTypeId]=6,[RunDataTypeId]=2,[DBFieldId]=3,[DefaultValue]='',[ValueType]=5,[RunValueType]=5,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=28,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=2,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="671" style="height: 455px; width: 792px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="2405" istitle="1">总结 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1595_总结" class="form-txts"  style="width:600px;height:235px;"  readonly="readonly"   EntId="1595" IsField=1 DBField=1 IsPost=1 FieldName="总结" dType="6" Vtp="5" RDT="2" Isc="0" RId="5" CId="28" FId="2405" vlk=0    UUT=1  disabled ="disabled"  >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1595,' where  [FldUId]='df1b1346-f9ac-4047-aec2-1b2ab4581609' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='795f873d-11bb-429f-9da7-a6f397df8a67'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2406,'795f873d-11bb-429f-9da7-a6f397df8a67',1595,1595,'00000000-0000-0000-0000-000000000000','计划',6,2,4,'',5,5,null,0,28,1,0,3,-1,0,0,'','','','','</span>
</div>
</li>
<li areaid="672" style="height: 455px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2406">计划  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1595_计划" class="form-txts"  style="width:600px;height:235px;"  readonly="readonly"   EntId="1595" IsField=1 DBField=1 IsPost=1 FieldName="计划" dType="6" Vtp="5" RDT="2" Isc="0" RId="5" CId="28" FId="2406" vlk=0    UUT=1  disabled ="disabled"  >','</textarea>','',-1,-1,-1,-1,0,'1595,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2406,[Form_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='计划',[FieldDataTypeId]=6,[RunDataTypeId]=2,[DBFieldId]=4,[DefaultValue]='',[ValueType]=5,[RunValueType]=5,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=28,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=3,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
<li areaid="672" style="height: 455px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2406">计划  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1595_计划" class="form-txts"  style="width:600px;height:235px;"  readonly="readonly"   EntId="1595" IsField=1 DBField=1 IsPost=1 FieldName="计划" dType="6" Vtp="5" RDT="2" Isc="0" RId="5" CId="28" FId="2406" vlk=0    UUT=1  disabled ="disabled"  >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1595,' where  [FldUId]='795f873d-11bb-429f-9da7-a6f397df8a67' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='3dc52d04-5285-46cd-b878-62561a8b09a0'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2407,'3dc52d04-5285-46cd-b878-62561a8b09a0',1595,1595,'00000000-0000-0000-0000-000000000000','领导评阅',6,2,5,'',5,5,null,0,28,1,0,4,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="673" style="height: 455px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2407">领导评阅  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<textarea  id="d1595_领导评阅" class="form-txts"  style="width:600px;height:235px;" EntId="1595" IsField=1 DBField=1 IsPost=1 FieldName="领导评阅" dType="6" Vtp="5" RDT="2" Isc="0" RId="5" CId="28" FId="2407" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'1595,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2407,[Form_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='领导评阅',[FieldDataTypeId]=6,[RunDataTypeId]=2,[DBFieldId]=5,[DefaultValue]='',[ValueType]=5,[RunValueType]=5,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=28,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=4,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="673" style="height: 455px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2407">领导评阅  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d1595_领导评阅" class="form-txts"  style="width:600px;height:235px;" EntId="1595" IsField=1 DBField=1 IsPost=1 FieldName="领导评阅" dType="6" Vtp="5" RDT="2" Isc="0" RId="5" CId="28" FId="2407" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1595,' where  [FldUId]='3dc52d04-5285-46cd-b878-62561a8b09a0' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='70c2d6d5-b8a5-4ed5-a10c-9a0f0de2f12d'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2408,'70c2d6d5-b8a5-4ed5-a10c-9a0f0de2f12d',1595,1595,'00000000-0000-0000-0000-000000000000','评阅人',2,2,6,'SELECT distinct [UserName] FROM [Dcx_User]  where UserId in(select A.UserId from Dcx_UserInRole as A where RoleId=152)',2,1,null,0,3,1,0,5,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="674" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2408">评阅人  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<select id="d1595_评阅人" name="d1595_评阅人" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1595,''AjaxF_'',1595,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1595,''AjaxF_'',1595);" EntId="1595" IsField=1 DBField=1 IsPost=1 FieldName="评阅人" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="3" FId="2408" vlk=0    style="width:201px;">','</select>','',-1,-1,-1,-1,0,'1595,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2408,[Form_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='评阅人',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=6,[DefaultValue]='SELECT distinct [UserName] FROM [Dcx_User]  where UserId in(select A.UserId from Dcx_UserInRole as A where RoleId=152)',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=5,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="674" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2408">评阅人  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1595_评阅人" name="d1595_评阅人" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1595,''AjaxF_'',1595,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1595,''AjaxF_'',1595);" EntId="1595" IsField=1 DBField=1 IsPost=1 FieldName="评阅人" dType="2" Vtp="2" RDT="2" Isc="0" RId="1" CId="3" FId="2408" vlk=0    style="width:201px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1595,' where  [FldUId]='70c2d6d5-b8a5-4ed5-a10c-9a0f0de2f12d' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='919c3711-a309-45ff-8ed1-dc598dd0819c'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2409,'919c3711-a309-45ff-8ed1-dc598dd0819c',1595,1595,'00000000-0000-0000-0000-000000000000','已评阅',4,4,7,'',1,7,null,0,7,1,0,6,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="675" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2409">已评阅  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<div id="d1595_已评阅" class="form-radio" style="" EntId="1595" IsField=1 DBField=1 IsPost=1 FieldName="已评阅" dType="4" Vtp="1" RDT="4" Isc="0" RId="7" CId="7" FId="2409" vlk=0    UUT=1  disabled ="disabled"  disabled="disabled"  Type="1"  onclick ="javascript:DcxVld.Validate(this,1595,''AjaxF_'',1595);" onfocus ="javascript:DcxVld.ValidateFocus(this,1595,''AjaxF_'',1595);"><span class="form-radio-item"  >
<input id="ddcx_1595_已评阅_0"  name="ddcx_1595_已评阅"  type="radio"  text="是"  value="True"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1595_已评阅_0">是</label></span>
<span class="clearfix"></span>','</div>','',-1,-1,-1,-1,0,'1595,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2409,[Form_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='已评阅',[FieldDataTypeId]=4,[RunDataTypeId]=4,[DBFieldId]=7,[DefaultValue]='',[ValueType]=1,[RunValueType]=7,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=7,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=6,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="675" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2409">已评阅  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d1595_已评阅" class="form-radio" style="" EntId="1595" IsField=1 DBField=1 IsPost=1 FieldName="已评阅" dType="4" Vtp="1" RDT="4" Isc="0" RId="7" CId="7" FId="2409" vlk=0    UUT=1  disabled ="disabled"  disabled="disabled"  Type="1"  onclick ="javascript:DcxVld.Validate(this,1595,''AjaxF_'',1595);" onfocus ="javascript:DcxVld.ValidateFocus(this,1595,''AjaxF_'',1595);"><span class="form-radio-item"  >
<input id="ddcx_1595_已评阅_0"  name="ddcx_1595_已评阅"  type="radio"  text="是"  value="True"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1595_已评阅_0">是</label></span>
<span class="clearfix"></span>',[CtrlbackHtml]='</div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1595,' where  [FldUId]='919c3711-a309-45ff-8ed1-dc598dd0819c' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='97433da0-0b49-47af-8489-c937f2c08b1b'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2410,'97433da0-0b49-47af-8489-c937f2c08b1b',1595,1595,'00000000-0000-0000-0000-000000000000','评阅时间',2,2,8,'',5,1,null,0,1,1,0,7,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="676" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2410">评阅时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<input  id="d1595_评阅时间"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1595,''AjaxF_'',1595,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1595,''AjaxF_'',1595);" EntId="1595" IsField=1 DBField=1 IsPost=1 FieldName="评阅时间" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="2410" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'1595,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2410,[Form_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='评阅时间',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=8,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=7,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="676" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2410">评阅时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d1595_评阅时间"   type="text" class="form-txt"  style="width:201px;" onblur ="javascript:if(!DcxVld.Validate(this,1595,''AjaxF_'',1595,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,1595,''AjaxF_'',1595);" EntId="1595" IsField=1 DBField=1 IsPost=1 FieldName="评阅时间" dType="2" Vtp="5" RDT="2" Isc="0" RId="1" CId="1" FId="2410" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1595,' where  [FldUId]='97433da0-0b49-47af-8489-c937f2c08b1b' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='9e4aa3f2-cb65-4b15-b3fc-d7c3cb5e8d94'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2411,'9e4aa3f2-cb65-4b15-b3fc-d7c3cb5e8d94',1595,1595,'00000000-0000-0000-0000-000000000000','类别',2,2,9,'',1,7,null,0,7,1,0,8,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="677" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2411">类别  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<div id="d1595_类别" class="form-radio" style="" EntId="1595" IsField=1 DBField=1 IsPost=1 FieldName="类别" dType="2" Vtp="1" RDT="2" Isc="0" RId="7" CId="7" FId="2411" vlk=0    Type="1"  onclick ="javascript:DcxVld.Validate(this,1595,''AjaxF_'',1595);" onfocus ="javascript:DcxVld.ValidateFocus(this,1595,''AjaxF_'',1595);"><span class="form-radio-item"  >
<input id="ddcx_1595_类别_0"  name="ddcx_1595_类别"  type="radio"  text="周报告"  value="周报告"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1595_类别_0">周报告</label></span>
<span class="form-radio-item"  >
<input id="ddcx_1595_类别_1"  name="ddcx_1595_类别"  type="radio"  text="月报告"  value="月报告"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1595_类别_1">月报告</label></span>
<span class="clearfix"></span>','</div>','',-1,-1,-1,-1,0,'1595,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2411,[Form_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='类别',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=9,[DefaultValue]='',[ValueType]=1,[RunValueType]=7,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=7,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=8,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="677" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2411">类别  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d1595_类别" class="form-radio" style="" EntId="1595" IsField=1 DBField=1 IsPost=1 FieldName="类别" dType="2" Vtp="1" RDT="2" Isc="0" RId="7" CId="7" FId="2411" vlk=0    Type="1"  onclick ="javascript:DcxVld.Validate(this,1595,''AjaxF_'',1595);" onfocus ="javascript:DcxVld.ValidateFocus(this,1595,''AjaxF_'',1595);"><span class="form-radio-item"  >
<input id="ddcx_1595_类别_0"  name="ddcx_1595_类别"  type="radio"  text="周报告"  value="周报告"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1595_类别_0">周报告</label></span>
<span class="form-radio-item"  >
<input id="ddcx_1595_类别_1"  name="ddcx_1595_类别"  type="radio"  text="月报告"  value="月报告"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_1595_类别_1">月报告</label></span>
<span class="clearfix"></span>',[CtrlbackHtml]='</div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1595,' where  [FldUId]='9e4aa3f2-cb65-4b15-b3fc-d7c3cb5e8d94' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='96849ef8-05ea-4b89-891f-31b1a457b36c'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2412,'96849ef8-05ea-4b89-891f-31b1a457b36c',1595,1595,'00000000-0000-0000-0000-000000000000','创建人',2,2,10,'{$UserName}',0,9,null,0,4,1,0,9,-1,0,0,'','','','{$username},','</span>
  </div>
</li>
<li areaid="678" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2412">创建人  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d1595_创建人" class="form-lbl" style="width:201px;" IsForField=1 EntId="1595" CId="4" FId="2412" Vtp="0"  >','</span><input id="d1595_创建人_hid" type="hidden"  EntId="1595" IsField=1 DBField=1 IsPost=1 FieldName="创建人" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="2412" vlk=0    value="','" />',-1,-1,-1,-1,0,'1595,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2412,[Form_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='创建人',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=10,[DefaultValue]='{$UserName}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=9,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$username},',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="678" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2412">创建人  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1595_创建人" class="form-lbl" style="width:201px;" IsForField=1 EntId="1595" CId="4" FId="2412" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d1595_创建人_hid" type="hidden"  EntId="1595" IsField=1 DBField=1 IsPost=1 FieldName="创建人" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="2412" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1595,' where  [FldUId]='96849ef8-05ea-4b89-891f-31b1a457b36c' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='062eccc7-e091-485a-ba08-342b114db5a4'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2413,'062eccc7-e091-485a-ba08-342b114db5a4',1595,1595,'00000000-0000-0000-0000-000000000000','创建时间',2,2,11,'select   convert(char(20),getdate(),120)',2,9,null,0,4,1,0,10,-1,0,0,'','','','','</span>
  </div>
</li>
<li areaid="679" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2413">创建时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','','','','<span id="d1595_创建时间" class="form-lbl" style="width:201px;" IsForField=1 EntId="1595" CId="4" FId="2413" Vtp="2"  >','</span><input id="d1595_创建时间_hid" type="hidden"  EntId="1595" IsField=1 DBField=1 IsPost=1 FieldName="创建时间" dType="2" Vtp="2" RDT="2" Isc="0" RId="9" CId="4" FId="2413" vlk=0    value="','" />',-1,-1,-1,-1,0,'1595,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2413,[Form_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='创建时间',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=11,[DefaultValue]='select   convert(char(20),getdate(),120)',[ValueType]=2,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=10,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="679" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2413">创建时间  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1595_创建时间" class="form-lbl" style="width:201px;" IsForField=1 EntId="1595" CId="4" FId="2413" Vtp="2"  >',[CtrlbackHtml]='</span><input id="d1595_创建时间_hid" type="hidden"  EntId="1595" IsField=1 DBField=1 IsPost=1 FieldName="创建时间" dType="2" Vtp="2" RDT="2" Isc="0" RId="9" CId="4" FId="2413" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1595,' where  [FldUId]='062eccc7-e091-485a-ba08-342b114db5a4' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='a35ae9a1-5c11-4404-a95f-7a0c65ffc0a0'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2414,'a35ae9a1-5c11-4404-a95f-7a0c65ffc0a0',1595,1595,'00000000-0000-0000-0000-000000000000','所属用户',2,2,12,'{$UserName}',0,9,null,0,4,1,0,11,-1,0,0,'','','','{$username},','</span>
  </div>
</li>
<li areaid="680" style="height: 38px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2414">所属用户  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">','</span>
  </div>
</li>
</ul>
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="178" entid="1595" class="tab_ul" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="681" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li areaid="682" istab="1" tabid="2" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1" style="display: none;">
<ul isgroup="1" groupid="179" entid="1595" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="683" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: block;">
<ul isgroup="1" groupid="180" entid="1595" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="684" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="1595" groupid="181" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="685" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
<li areaid="686" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>','','','<span id="d1595_所属用户" class="form-lbl" style="width:201px;" IsForField=1 EntId="1595" CId="4" FId="2414" Vtp="0"  >','</span><input id="d1595_所属用户_hid" type="hidden"  EntId="1595" IsField=1 DBField=1 IsPost=1 FieldName="所属用户" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="2414" vlk=0    value="','" />',-1,-1,-1,-1,0,'1595,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2414,[Form_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='所属用户',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=12,[DefaultValue]='{$UserName}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=null,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=0,[FieldNO]=11,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$username},',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="680" style="height: 38px; width: 792px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="2414">所属用户  </label>
  <div class="field-content pad4">
   <span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
  </div>
</li>
</ul>
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="178" entid="1595" class="tab_ul" istab="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="681" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li areaid="682" istab="1" tabid="2" style="height: 29px; width: 70px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1" style="display: none;">
<ul isgroup="1" groupid="179" entid="1595" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="683" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: block;">
<ul isgroup="1" groupid="180" entid="1595" class="ul-mform" style="width: 960px;" ctrlprex="AjaxF_" isrple="1">
<li areaid="684" style="width: 395px; height: 38px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
</ul>
</div>
</div> 
<div class="form-bottom" style="display:none;">
<ul class="ul-mform" entid="1595" groupid="181" isgroup="1" style="" ctrlprex="AjaxF_" isrple="1">
<li areaid="685" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
<li areaid="686" style="height: 38px; width: 395px; position: static;" class="li-area" scroll="no">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div> 
</div> 
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d1595_所属用户" class="form-lbl" style="width:201px;" IsForField=1 EntId="1595" CId="4" FId="2414" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d1595_所属用户_hid" type="hidden"  EntId="1595" IsField=1 DBField=1 IsPost=1 FieldName="所属用户" dType="2" Vtp="0" RDT="2" Isc="0" RId="9" CId="4" FId="2414" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1595,' where  [FldUId]='a35ae9a1-5c11-4404-a95f-7a0c65ffc0a0' 
      end



Delete from [Dcx_SearchForm_Run]  where [EntId]=1595

--Dcx_SearchForm_Run
      if (select count(1) from [Dcx_SearchForm_Run] where  [EntId]=1595  )<1 
      begin 
           Insert into [Dcx_SearchForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('6a107c48-f34b-4a01-bb88-72e7a2670f52','总结报告',1595,9,'','',0,'','','DcxRun.SearchF_1595= {"MenuId":2778,"MEntId":1595,"EntName":"总结报告","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1595":{"EntId":1595,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_1595.EntMsg.E1595.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"ERP_总结计划","EntId":1595,"KeyField":"Id","MKeyField":"Id","MKeyValue":"","DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"所属用户":{"DtId":2,"DB":1,"CId":3,"FL":100},"已评阅":{"DtId":4,"DB":1,"CId":3,"FL":100},"类别":{"DtId":2,"DB":1,"CId":3,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.SearchF_1595.EntMsg.E1595.GetDataRowModel=function()
{
    return {"所属用户":"","已评阅":false,"类别":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":"","DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_1595.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1595,''SearchF_'',buildNew,closeDlg);

}','',20,'','','','1595*Id*2**2*ERP_总结计划*总结报告',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-22 5:45:57',3,'admin','2013-11-16 17:40:35',1)
      end
      else 
      begin 
           update [Dcx_SearchForm_Run] set [FormId]='6a107c48-f34b-4a01-bb88-72e7a2670f52',[FormName]='总结报告',[ModuleId]=9,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.SearchF_1595= {"MenuId":2778,"MEntId":1595,"EntName":"总结报告","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E1595":{"EntId":1595,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_1595.EntMsg.E1595.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"ERP_总结计划","EntId":1595,"KeyField":"Id","MKeyField":"Id","MKeyValue":"","DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"所属用户":{"DtId":2,"DB":1,"CId":3,"FL":100},"已评阅":{"DtId":4,"DB":1,"CId":3,"FL":100},"类别":{"DtId":2,"DB":1,"CId":3,"FL":100}},"Data":{"Row":[]}};
}
DcxRun.SearchF_1595.EntMsg.E1595.GetDataRowModel=function()
{
    return {"所属用户":"","已评阅":false,"类别":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":"","DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_1595.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(1595,''SearchF_'',buildNew,closeDlg);

}',[LoadingSql]='',[PageSize]=20,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='1595*Id*2**2*ERP_总结计划*总结报告',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-22 5:45:57',[EditorId]=3,[Editor]='admin',[EditTime]='2013-11-16 17:40:35',[AccountId]=1 where  [EntId]=1595 
      end




--Dcx_SearchFormField_Run
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='c189621e-61ca-4f65-ad07-e13c98124d4f'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'c189621e-61ca-4f65-ad07-e13c98124d4f',1595,1595,'00000000-0000-0000-0000-000000000000',1,'=','所属用户',2,2,12,'select ''''  union  SELECT distinct [USERNAME] FROM [Dcx_user]',2,1,1,0,3,1,0,-1,1,0,'','','','','<div class="searchform">
<ul isgroup="1" groupid="27" entid="1595" class="search-block w920" ctrlprex="SearchF_" isrple="1">
<li areaid="105" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="2">所属用户</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">','','','','<select id="d1595_所属用户" name="d1595_所属用户" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1595,''SearchF_'',1595,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1595,''SearchF_'',1595);" EntId="1595" IsField=1 DBField=1 IsPost=1 FieldName="所属用户" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="3" FId="2" vlk=0    Cpre="="  style="width:150px;">','</select>','',1,-1,-1,-1,-1,0,'1595,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=2,[Form_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[CompareOperatorType]='=',[FieldName]='所属用户',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=12,[DefaultValue]='select ''''  union  SELECT distinct [USERNAME] FROM [Dcx_user]',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="searchform">
<ul isgroup="1" groupid="27" entid="1595" class="search-block w920" ctrlprex="SearchF_" isrple="1">
<li areaid="105" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="2">所属用户</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1595_所属用户" name="d1595_所属用户" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1595,''SearchF_'',1595,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1595,''SearchF_'',1595);" EntId="1595" IsField=1 DBField=1 IsPost=1 FieldName="所属用户" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="3" FId="2" vlk=0    Cpre="="  style="width:150px;">',[CtrlbackHtml]='</select>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1595,' where  [FldUId]='c189621e-61ca-4f65-ad07-e13c98124d4f' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='9734b68c-b849-423c-866d-9964a31ec19f'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'9734b68c-b849-423c-866d-9964a31ec19f',1595,1595,'00000000-0000-0000-0000-000000000000',2,'=','已评阅',4,4,7,'',1,1,1,0,3,1,0,-1,1,0,'','','','','</span>
  </div>
</li>
<li areaid="106" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="3">已评阅</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">','','','','<select id="d1595_已评阅" name="d1595_已评阅" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1595,''SearchF_'',1595,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1595,''SearchF_'',1595);" EntId="1595" IsField=1 DBField=1 IsPost=1 FieldName="已评阅" dType="4" Vtp="1" RDT="4" Isc="1" RId="1" CId="3" FId="3" vlk=0    Cpre="="  style="width:150px;">','<option  value="True"  >已评阅</option>
<option  value="False"  >未评阅</option>
</select>','',1,-1,-1,-1,-1,0,'1595,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=3,[Form_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[CompareOperatorType]='=',[FieldName]='已评阅',[FieldDataTypeId]=4,[RunDataTypeId]=4,[DBFieldId]=7,[DefaultValue]='',[ValueType]=1,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="106" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="3">已评阅</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1595_已评阅" name="d1595_已评阅" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1595,''SearchF_'',1595,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1595,''SearchF_'',1595);" EntId="1595" IsField=1 DBField=1 IsPost=1 FieldName="已评阅" dType="4" Vtp="1" RDT="4" Isc="1" RId="1" CId="3" FId="3" vlk=0    Cpre="="  style="width:150px;">',[CtrlbackHtml]='<option  value="True"  >已评阅</option>
<option  value="False"  >未评阅</option>
</select>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1595,' where  [FldUId]='9734b68c-b849-423c-866d-9964a31ec19f' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='de3e2778-2967-45ea-b24e-b036319bf57c'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'de3e2778-2967-45ea-b24e-b036319bf57c',1595,1595,'00000000-0000-0000-0000-000000000000',3,'=','类别',2,2,9,'',1,1,1,0,3,1,0,-1,1,0,'','','','','</span>
  </div>
</li>
<li areaid="107" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="4">类别</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">','</span>
  </div>
</li>
<li areaid="108" class="search-li w100 h32" scroll="no" style="position: static;">
<div class="searchform-button" onclick="javascript:return VL_Search(1595);">
<div class="search-btn">&nbsp;</div>
<a href="javascript:void(0);" id="1595_searchBT">搜索</a>
</div>
</li>
</ul>
</div>','','','<select id="d1595_类别" name="d1595_类别" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1595,''SearchF_'',1595,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1595,''SearchF_'',1595);" EntId="1595" IsField=1 DBField=1 IsPost=1 FieldName="类别" dType="2" Vtp="1" RDT="2" Isc="1" RId="1" CId="3" FId="4" vlk=0    Cpre="="  style="width:150px;">','<option  value="周报告"  >周报告</option>
<option  value="月报告"  >月报告</option>
</select>','',1,-1,-1,-1,-1,0,'1595,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=4,[Form_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[CompareOperatorType]='=',[FieldName]='类别',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=9,[DefaultValue]='',[ValueType]=1,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=0,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="107" class="search-li w240 h32" scroll="no" style="position: static;">
<label class="search-title pad7" istitle="1" fldid="4">类别</label>
<div class="field-content pad3">
<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
  </div>
</li>
<li areaid="108" class="search-li w100 h32" scroll="no" style="position: static;">
<div class="searchform-button" onclick="javascript:return VL_Search(1595);">
<div class="search-btn">&nbsp;</div>
<a href="javascript:void(0);" id="1595_searchBT">搜索</a>
</div>
</li>
</ul>
</div>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d1595_类别" name="d1595_类别" class="form-select"  onchange ="javascript:DcxVld.Validate(this,1595,''SearchF_'',1595,false,$(this).val());" onfocus ="javascript:DcxVld.ValidateFocus(this,1595,''SearchF_'',1595);" EntId="1595" IsField=1 DBField=1 IsPost=1 FieldName="类别" dType="2" Vtp="1" RDT="2" Isc="1" RId="1" CId="3" FId="4" vlk=0    Cpre="="  style="width:150px;">',[CtrlbackHtml]='<option  value="周报告"  >周报告</option>
<option  value="月报告"  >月报告</option>
</select>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1595,' where  [FldUId]='de3e2778-2967-45ea-b24e-b036319bf57c' 
      end



Delete from [Dcx_BrowseReport_Run]  where [EntId]=1595

--Dcx_BrowseReport_Run
      if (select count(1) from [Dcx_BrowseReport_Run] where  [EntId]=1595  )<1 
      begin 
           Insert into [Dcx_BrowseReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[DIYJsCss],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('2d788d6c-0446-4567-8a14-670ad5b71842','总结报告',1595,31,'','<$1595$>select [所属用户],[主题],[总结],[计划],[领导评阅],[评阅人],[已评阅],[评阅时间],[类别],[创建人],[创建时间],[所属部门],[Id] from ERP_总结计划 where [Id]=''{$keyfieldvalue}''</$1595$>',1,1,20,'','DcxRun.MChildR_1595= {"MenuId":2778,"MEntId":1595,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"总结报告","EntMsg":{"E1595":{"EntId":1595,"EntName":"总结报告","KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1595*Id*2**2*ERP_总结计划*总结报告',3,'','2012-12-21 11:03:02',3,'','2013-11-17 3:17:30',1)
      end
      else 
      begin 
           update [Dcx_BrowseReport_Run] set [ReportId]='2d788d6c-0446-4567-8a14-670ad5b71842',[ReportName]='总结报告',[ModuleId]=31,[StaticHtml]='',[LoadingSql]='<$1595$>select [所属用户],[主题],[总结],[计划],[领导评阅],[评阅人],[已评阅],[评阅时间],[类别],[创建人],[创建时间],[所属部门],[Id] from ERP_总结计划 where [Id]=''{$keyfieldvalue}''</$1595$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[DIYJsCss]='',[AutoPublicJs]='DcxRun.MChildR_1595= {"MenuId":2778,"MEntId":1595,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"总结报告","EntMsg":{"E1595":{"EntId":1595,"EntName":"总结报告","KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1595*Id*2**2*ERP_总结计划*总结报告',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-21 11:03:02',[EditorId]=3,[Editor]='',[EditTime]='2013-11-17 3:17:30',[AccountId]=1 where  [EntId]=1595 
      end




--Dcx_BrowseReportField_Run
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='cfb542a6-18eb-4f7e-b623-a8c80f24d4f7'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'cfb542a6-18eb-4f7e-b623-a8c80f24d4f7',1595,1595,'00000000-0000-0000-0000-000000000000',12,'所属用户',1,1,'varchar',2,1,0,'','','','<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1595" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="547" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">总结报告</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1595" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="548" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">所属用户  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1595" fieldname="所属用户" fldid="2" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1595,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=2,[Report_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=12,[FieldName]='所属用户',[FieldNO]=1,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="browse">
<div class="browse-top">
<div class="browse-title">
<ul class="ul-title" entid="1595" groupid="131" isgroup="1" ctrlprex="MChildR_" isrple="1">
<li areaid="547" class="li-area-title" scroll="no" style="position: static;">
<div class="Report-title5" id="div_head1">
<span class="title-name" id="h2_title">总结报告</span></div>
</li>
</ul>
</div> 
<div class="browse-body">
<ul isgroup="1" groupid="132" entid="1595" class="ul-group ul-content" ctrlprex="MChildR_" isrple="1">
<li areaid="548" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="2">所属用户  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1595" fieldname="所属用户" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1595,' where  [FldUId]='cfb542a6-18eb-4f7e-b623-a8c80f24d4f7' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='4ffd76ea-e800-4892-853f-7884ab097513'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'4ffd76ea-e800-4892-853f-7884ab097513',1595,1595,'00000000-0000-0000-0000-000000000000',2,'主题',2,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="549" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">主题  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1595" fieldname="主题" fldid="3" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1595,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=3,[Report_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='主题',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="549" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="3">主题  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1595" fieldname="主题" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1595,' where  [FldUId]='4ffd76ea-e800-4892-853f-7884ab097513' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='9a4e86fe-917c-4436-a643-57cc92dd0a6b'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'9a4e86fe-917c-4436-a643-57cc92dd0a6b',1595,1595,'00000000-0000-0000-0000-000000000000',3,'总结',3,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="550" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">总结  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1595" fieldname="总结" fldid="4" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1595,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=4,[Report_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='总结',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="550" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="4">总结  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1595" fieldname="总结" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1595,' where  [FldUId]='9a4e86fe-917c-4436-a643-57cc92dd0a6b' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='b105bd9d-1d8d-4c44-bc5d-4b81beac3978'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'b105bd9d-1d8d-4c44-bc5d-4b81beac3978',1595,1595,'00000000-0000-0000-0000-000000000000',4,'计划',4,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="551" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">计划  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1595" fieldname="计划" fldid="5" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1595,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=5,[Report_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=4,[FieldName]='计划',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="551" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="5">计划  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1595" fieldname="计划" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1595,' where  [FldUId]='b105bd9d-1d8d-4c44-bc5d-4b81beac3978' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='f6255e1e-8d21-4ab9-9b29-c8963c7863e9'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'f6255e1e-8d21-4ab9-9b29-c8963c7863e9',1595,1595,'00000000-0000-0000-0000-000000000000',5,'领导评阅',5,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="552" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">领导评阅  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1595" fieldname="领导评阅" fldid="6" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1595,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=6,[Report_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=5,[FieldName]='领导评阅',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="552" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="6">领导评阅  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1595" fieldname="领导评阅" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1595,' where  [FldUId]='f6255e1e-8d21-4ab9-9b29-c8963c7863e9' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='298b4609-0f0e-40ee-90aa-b0e6658105fc'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'298b4609-0f0e-40ee-90aa-b0e6658105fc',1595,1595,'00000000-0000-0000-0000-000000000000',6,'评阅人',6,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="553" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">评阅人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1595" fieldname="评阅人" fldid="7" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1595,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=7,[Report_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=6,[FieldName]='评阅人',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="553" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="7">评阅人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1595" fieldname="评阅人" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1595,' where  [FldUId]='298b4609-0f0e-40ee-90aa-b0e6658105fc' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='820307fd-d15e-4a65-b1bb-2d583170387b'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'820307fd-d15e-4a65-b1bb-2d583170387b',1595,1595,'00000000-0000-0000-0000-000000000000',7,'已评阅',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="554" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="8">已评阅  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1595" fieldname="已评阅" fldid="8" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1595,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=8,[Report_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=7,[FieldName]='已评阅',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="554" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="8">已评阅  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1595" fieldname="已评阅" fldid="8" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1595,' where  [FldUId]='820307fd-d15e-4a65-b1bb-2d583170387b' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='3dda7f28-607c-4f2f-81c9-080be8979ecf'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'3dda7f28-607c-4f2f-81c9-080be8979ecf',1595,1595,'00000000-0000-0000-0000-000000000000',8,'评阅时间',8,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="555" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="9">评阅时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1595" fieldname="评阅时间" fldid="9" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1595,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=9,[Report_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=8,[FieldName]='评阅时间',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="555" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="9">评阅时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1595" fieldname="评阅时间" fldid="9" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1595,' where  [FldUId]='3dda7f28-607c-4f2f-81c9-080be8979ecf' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='762614e8-bd9d-4bdf-bc5e-4ad4826f4ab4'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'762614e8-bd9d-4bdf-bc5e-4ad4826f4ab4',1595,1595,'00000000-0000-0000-0000-000000000000',9,'类别',9,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="556" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="10">类别  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1595" fieldname="类别" fldid="10" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1595,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=10,[Report_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=9,[FieldName]='类别',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="556" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="10">类别  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1595" fieldname="类别" fldid="10" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1595,' where  [FldUId]='762614e8-bd9d-4bdf-bc5e-4ad4826f4ab4' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='2c208a27-b829-4e1a-abb2-27df9caca089'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'2c208a27-b829-4e1a-abb2-27df9caca089',1595,1595,'00000000-0000-0000-0000-000000000000',10,'创建人',10,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="557" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="11">创建人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1595" fieldname="创建人" fldid="11" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1595,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=11,[Report_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=10,[FieldName]='创建人',[FieldNO]=10,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="557" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="11">创建人  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1595" fieldname="创建人" fldid="11" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1595,' where  [FldUId]='2c208a27-b829-4e1a-abb2-27df9caca089' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='9177d42c-86ac-4588-bab8-1c1b0e001d11'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(12,'9177d42c-86ac-4588-bab8-1c1b0e001d11',1595,1595,'00000000-0000-0000-0000-000000000000',11,'创建时间',11,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="558" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="12">创建时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1595" fieldname="创建时间" fldid="12" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'1595,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=12,[Report_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=11,[FieldName]='创建时间',[FieldNO]=11,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="558" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="12">创建时间  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1595" fieldname="创建时间" fldid="12" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1595,' where  [FldUId]='9177d42c-86ac-4588-bab8-1c1b0e001d11' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='00aff0e0-89da-481f-a74e-592660a1cb55'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(13,'00aff0e0-89da-481f-a74e-592660a1cb55',1595,1595,'00000000-0000-0000-0000-000000000000',13,'所属部门',12,1,'varchar',2,1,0,'','','','</span>
  </div>
</li>
<li areaid="559" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="13">所属部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1595" fieldname="所属部门" fldid="13" columntypeid="1" class="form-ctr">','</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1595" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="564" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="565" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1595" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="566" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1595" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="567" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1595" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="568" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="569" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',-1,-1,-1,-1,0,'1595,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=13,[Report_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=13,[FieldName]='所属部门',[FieldNO]=12,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li>
<li areaid="559" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="13">所属部门  </label>
  <div class="field-content pad7">
   <span isfield="1" entid="1595" fieldname="所属部门" fldid="13" columntypeid="1" class="form-ctr">',[LastHtml]='</span>
  </div>
</li>




</ul>
</div> 
</div> 
<div class="div_tabs" style="display:none;">
<ul islonly="1" isgroup="1" groupid="133" entid="1595" class="tab_ul" istab="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="564" istab="1" tabid="1" style="position: static;" class="de-selected ui-droppable"><a href="javascript:void(0);" tabid="1" class="tab_a">选项卡1</a></li>
<li areaid="565" istab="1" tabid="2" style="position: static;" class="li-tab ui-droppable"><a href="javascript:void(0);" tabid="2" class="tab_a">选项卡2</a></li>
</ul><div class="tabs-content" tabid="1">
<ul isgroup="1" groupid="134" entid="1595" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="566" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
<div class="tabs-content" tabid="2" style="display: none;">
<ul isgroup="1" groupid="135" entid="1595" class="ul-mform" style="width: 960px;" ctrlprex="MChildR_" isrple="1">
<li areaid="567" style="width: 958px; height: 38px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad4">
请编辑..
  </div>
</li>
</ul>
</div>
</div> 
<div class="browse-bottom" style="display:none;">
<ul class="ul-group ul-content" entid="1595" groupid="136" isgroup="1" style="" ctrlprex="MChildR_" isrple="1">
<li areaid="568" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
<li areaid="569" style="height: 38px; width: 395px; position: static;" class="li-area">
  <label class="area-title pad7" istitle="1" fldid="-1">请编辑..  </label>
  <div class="field-content pad7">
请编辑..
  </div>
</li>
</ul>
</div> 
</div>',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='1595,' where  [FldUId]='00aff0e0-89da-481f-a74e-592660a1cb55' 
      end



Delete from [Dcx_ListReport_Run]  where [EntId]=1595

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=1595  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('9cb44651-c3c2-4811-a3ad-4e5fc1bb1f02','总结报告',1595,1,'','','<$1595$>select *  from (select row_number() over( order by [Id])as dcx_rowid,[所属用户],[主题],[总结],[计划],[领导评阅],[评阅人],[已评阅],[评阅时间],[类别],[创建人],[创建时间],[所属部门],[Id] from ERP_总结计划  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1595$><$1595:Count$>select count([Id]) from ERP_总结计划 where {$SearchArea}</$1595:Count$>',1,1,20,'DcxRun.ListR_1595= {"MenuId":2778,"MEntId":1595,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"总结报告","EntMsg":{"E1595":{"EntId":1595,"EntName":"总结报告","KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','1595*Id*2**2*ERP_总结计划*总结报告',3,'','2012-12-22 5:16:19',3,'','2013-11-16 20:15:42',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='9cb44651-c3c2-4811-a3ad-4e5fc1bb1f02',[ReportName]='总结报告',[ModuleId]=1,[StaticHtml]='',[DIYJsCss]='',[LoadingSql]='<$1595$>select *  from (select row_number() over( order by [Id])as dcx_rowid,[所属用户],[主题],[总结],[计划],[领导评阅],[评阅人],[已评阅],[评阅时间],[类别],[创建人],[创建时间],[所属部门],[Id] from ERP_总结计划  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$1595$><$1595:Count$>select count([Id]) from ERP_总结计划 where {$SearchArea}</$1595:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=20,[AutoPublicJs]='DcxRun.ListR_1595= {"MenuId":2778,"MEntId":1595,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"总结报告","EntMsg":{"E1595":{"EntId":1595,"EntName":"总结报告","KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"","JKeydtId":2,"PageSize":20,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='1595*Id*2**2*ERP_总结计划*总结报告',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-22 5:16:19',[EditorId]=3,[Editor]='',[EditTime]='2013-11-16 20:15:42',[AccountId]=1 where  [EntId]=1595 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='a7e7504a-87a4-6bdd-5d1d-a24d85fbeaae'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(194,'a7e7504a-87a4-6bdd-5d1d-a24d85fbeaae',1595,1595,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="61" entid="1595" style="width: 1500px;" ctrlprex="ListR_" isrple="1"> <li areaid="1152" class="tool-li" style="position: static;">
</li><li areaid="1153" class="tool-li" style="position: static;"><a id="ListR_1595_btn_buildNew" class="list-bt-add" title="添   加" href="javascript:void(0);" onclick="javascript:DcxCom.ShowAddDataDlg(1595,''ListR_'');">添   加</a></li>
<li areaid="1154" class="tool-li" style="position: static;"><a id="ListR_1595_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1595,''ListR_'');">删   除</a></li>
<li areaid="1155" class="tool-li" style="position: static;"><a id="ListR_1595_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1595,''ListR_'');">导   出</a></li>
<li areaid="1156" class="tool-li" style="position: static;"><a id="ListR_1595_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1595,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1595" style="position: static;">
<a id="ListR_1595_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1595,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1595_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1595,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1595_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1595,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1595_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="62" entid="1595" class="list-head-ul" style="width: 1552px;" ctrlprex="ListR_" isrple="1">
<li areaid="1158" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1595" onclick="javascript:DcxCom.CheckedAll(this,1595,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="1159" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">所属用户 </label></li><li areaid="1160" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">主题 </label></li><li areaid="1161" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">总结 </label></li><li areaid="1162" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">计划 </label></li><li areaid="1163" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">领导评阅 </label></li><li areaid="1164" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">评阅人 </label></li><li areaid="1165" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">已评阅 </label></li><li areaid="1166" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">评阅时间 </label></li><li areaid="1167" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">类别 </label></li><li areaid="1168" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">创建人 </label></li><li areaid="1169" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">创建时间 </label></li><li areaid="1170" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">所属部门 </label></li><li areaid="1171" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="编辑"><span class="i">编辑</span></a></div></li><li areaid="1172" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="1173" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">','',-1,63,-1,-1,1,'1595,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=194,[Report_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<!-- 开始 -->
<div class="listreport">
<!-- 功能键栏 -->
<div class="toolbar">
<!--功能键栏-->
<ul islonly="1" class="tool-ul clearfix" istoolbar="1" isgroup="1" groupid="61" entid="1595" style="width: 1500px;" ctrlprex="ListR_" isrple="1"> <li areaid="1152" class="tool-li" style="position: static;">
</li><li areaid="1153" class="tool-li" style="position: static;"><a id="ListR_1595_btn_buildNew" class="list-bt-add" title="添   加" href="javascript:void(0);" onclick="javascript:DcxCom.ShowAddDataDlg(1595,''ListR_'');">添   加</a></li>
<li areaid="1154" class="tool-li" style="position: static;"><a id="ListR_1595_deletebut" class="list-bt-other" title="删   除" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteDatas(1595,''ListR_'');">删   除</a></li>
<li areaid="1155" class="tool-li" style="position: static;"><a id="ListR_1595_ExportToExcelbut" class="list-bt-other" title="导   出" href="javascript:void(0);" onclick="javascript:DcxCom.ExportExcel(1595,''ListR_'');">导   出</a></li>
<li areaid="1156" class="tool-li" style="position: static;"><a id="ListR_1595_refreshbut" class="list-bt-other" title="刷   新" href="javascript:void(0);" onclick="javascript:DcxCom.ReLoad(1595,''ListR_'');">刷   新</a></li>

<!--分页栏-->
<li ispage="1" areaid="-1" class="pages" ispagearea="1" id="li2_ListR_1595" style="position: static;">
<a id="ListR_1595_PrevPage" isprevpage="1" class="list-pages  list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(1595,''ListR_'',''p'');" href="javascript:void(0);">上一页</a>
<span class="ddl_pageindex list-pagesdown">
<select id="ddl_ListR_1595_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(1595,''ListR_'',''a'',this);">
</select>
</span>
<a id="ListR_1595_NextPage" isnextpage="1" class="list-pages  list-nextpage" onclick="javascript:DcxSch.GetHtml(1595,''ListR_'',''n'');" href="javascript:void(0);" title="下一页">下一页</a>
<span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_ListR_1595_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">
条记录</span>
</li>
</ul>
</div>
<div class="list-area dcx-scroll">
<div class="list-head">
<ul islonly="1" isgroup="1" islisthead="1" groupid="62" entid="1595" class="list-head-ul" style="width: 1552px;" ctrlprex="ListR_" isrple="1">
<li areaid="1158" class="list-head-select" style="position: static;">
<input class="chPut ifselect" id="ckb_CheckAllListR_1595" onclick="javascript:DcxCom.CheckedAll(this,1595,''ListR_'');" rel="chkall" type="checkbox"></li><li areaid="1159" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">所属用户 </label></li><li areaid="1160" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">主题 </label></li><li areaid="1161" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">总结 </label></li><li areaid="1162" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">计划 </label></li><li areaid="1163" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">领导评阅 </label></li><li areaid="1164" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">评阅人 </label></li><li areaid="1165" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">已评阅 </label></li><li areaid="1166" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">评阅时间 </label></li><li areaid="1167" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">类别 </label></li><li areaid="1168" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">创建人 </label></li><li areaid="1169" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">创建时间 </label></li><li areaid="1170" class="list-head-li" style="position: static;">
<label class="head-label" istitle="1">所属部门 </label></li><li areaid="1171" class="list-head-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="编辑"><span class="i">编辑</span></a></div></li><li areaid="1172" class="list-head-op" style="position: static;">
<div class="detail"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="查看详细"><span class="i">查看详细</span></a></div></li><li areaid="1173" class="list-head-op" style="position: static;">
<div class="delete"><a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除记录"><span class="i">删除记录</span></a></div></li> </ul>
</div>
<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=63,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1595,' where  [FldUId]='a7e7504a-87a4-6bdd-5d1d-a24d85fbeaae' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='718fb517-18d5-4d8b-a2d5-50b4c26fcda7'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(154,'718fb517-18d5-4d8b-a2d5-50b4c26fcda7',1595,1595,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',2,1,'',2,21,0,'','','','islonly="1" isgroup="1" groupid="63" class="list-body-ul" style="width: 1552px;" isrple="1">
<li areaid="1174" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1595" issyscheck="1" keyvalue="','',-1,63,-1,-1,1,'1595,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=154,[Report_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='islonly="1" isgroup="1" groupid="63" class="list-body-ul" style="width: 1552px;" isrple="1">
<li areaid="1174" class="list-body-select" style="position: static;">
<input class="ckb_del" ctrlprex="ListR_" entid="1595" issyscheck="1" keyvalue="',[LastHtml]='',[RowIndex]=-1,[TableIndex]=63,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1595,' where  [FldUId]='718fb517-18d5-4d8b-a2d5-50b4c26fcda7' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='a7e24c1c-a965-4358-88c9-35d726e2c0a4'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'a7e24c1c-a965-4358-88c9-35d726e2c0a4',1595,1595,'00000000-0000-0000-0000-000000000000',12,'所属用户',3,1,'varchar',2,1,0,'','','','" type="checkbox"></li><li areaid="1175" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1595" fieldname="所属用户" fldid="2" columntypeid="1" class="form-ctr">','',-1,63,-1,-1,1,'1595,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=2,[Report_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=12,[FieldName]='所属用户',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='" type="checkbox"></li><li areaid="1175" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1595" fieldname="所属用户" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=63,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1595,' where  [FldUId]='a7e24c1c-a965-4358-88c9-35d726e2c0a4' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='84f99fcd-8247-4d63-8ce8-e49cc0a37094'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'84f99fcd-8247-4d63-8ce8-e49cc0a37094',1595,1595,'00000000-0000-0000-0000-000000000000',2,'主题',4,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1176" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1595" fieldname="主题" fldid="3" columntypeid="1" class="form-ctr">','',-1,63,-1,-1,1,'1595,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=3,[Report_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='主题',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1176" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1595" fieldname="主题" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=63,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1595,' where  [FldUId]='84f99fcd-8247-4d63-8ce8-e49cc0a37094' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='3b2f8d87-8c09-489d-b6e1-55ebfd6e6ed8'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'3b2f8d87-8c09-489d-b6e1-55ebfd6e6ed8',1595,1595,'00000000-0000-0000-0000-000000000000',3,'总结',5,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1177" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1595" fieldname="总结" fldid="4" columntypeid="1" class="form-ctr">','',-1,63,-1,-1,1,'1595,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=4,[Report_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='总结',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1177" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1595" fieldname="总结" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=63,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1595,' where  [FldUId]='3b2f8d87-8c09-489d-b6e1-55ebfd6e6ed8' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='a2dc3913-258f-4e00-8414-f606ad77e66c'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'a2dc3913-258f-4e00-8414-f606ad77e66c',1595,1595,'00000000-0000-0000-0000-000000000000',4,'计划',6,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1178" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1595" fieldname="计划" fldid="5" columntypeid="1" class="form-ctr">','',-1,63,-1,-1,1,'1595,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=5,[Report_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=4,[FieldName]='计划',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1178" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1595" fieldname="计划" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=63,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1595,' where  [FldUId]='a2dc3913-258f-4e00-8414-f606ad77e66c' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='bc817eaa-f7b7-4ed7-a2b2-6e8d6d6d2c34'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'bc817eaa-f7b7-4ed7-a2b2-6e8d6d6d2c34',1595,1595,'00000000-0000-0000-0000-000000000000',5,'领导评阅',7,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1179" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1595" fieldname="领导评阅" fldid="6" columntypeid="1" class="form-ctr">','',-1,63,-1,-1,1,'1595,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=6,[Report_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=5,[FieldName]='领导评阅',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1179" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1595" fieldname="领导评阅" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=63,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1595,' where  [FldUId]='bc817eaa-f7b7-4ed7-a2b2-6e8d6d6d2c34' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='b071b2e7-e583-4049-8b7d-05a99f89011f'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'b071b2e7-e583-4049-8b7d-05a99f89011f',1595,1595,'00000000-0000-0000-0000-000000000000',6,'评阅人',8,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1180" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1595" fieldname="评阅人" fldid="7" columntypeid="1" class="form-ctr">','',-1,63,-1,-1,1,'1595,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=7,[Report_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=6,[FieldName]='评阅人',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1180" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1595" fieldname="评阅人" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=63,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1595,' where  [FldUId]='b071b2e7-e583-4049-8b7d-05a99f89011f' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='f51dcfed-572c-4d32-b8b4-5f029d92a05a'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'f51dcfed-572c-4d32-b8b4-5f029d92a05a',1595,1595,'00000000-0000-0000-0000-000000000000',7,'已评阅',9,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1181" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1595" fieldname="已评阅" fldid="8" columntypeid="1" class="form-ctr">','',-1,63,-1,-1,1,'1595,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=8,[Report_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=7,[FieldName]='已评阅',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1181" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1595" fieldname="已评阅" fldid="8" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=63,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1595,' where  [FldUId]='f51dcfed-572c-4d32-b8b4-5f029d92a05a' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='f5339a64-d385-4622-af7a-db2dc5a3f89e'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'f5339a64-d385-4622-af7a-db2dc5a3f89e',1595,1595,'00000000-0000-0000-0000-000000000000',8,'评阅时间',10,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1182" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1595" fieldname="评阅时间" fldid="9" columntypeid="1" class="form-ctr">','',-1,63,-1,-1,1,'1595,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=9,[Report_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=8,[FieldName]='评阅时间',[FieldNO]=10,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1182" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1595" fieldname="评阅时间" fldid="9" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=63,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1595,' where  [FldUId]='f5339a64-d385-4622-af7a-db2dc5a3f89e' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='7043c010-12bd-4f5e-a062-c8a499526b94'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'7043c010-12bd-4f5e-a062-c8a499526b94',1595,1595,'00000000-0000-0000-0000-000000000000',9,'类别',11,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1183" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1595" fieldname="类别" fldid="10" columntypeid="1" class="form-ctr">','',-1,63,-1,-1,1,'1595,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=10,[Report_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=9,[FieldName]='类别',[FieldNO]=11,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1183" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1595" fieldname="类别" fldid="10" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=63,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1595,' where  [FldUId]='7043c010-12bd-4f5e-a062-c8a499526b94' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='450238df-d4cf-485f-b2a3-4ea72780320e'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'450238df-d4cf-485f-b2a3-4ea72780320e',1595,1595,'00000000-0000-0000-0000-000000000000',10,'创建人',12,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1184" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1595" fieldname="创建人" fldid="11" columntypeid="1" class="form-ctr">','',-1,63,-1,-1,1,'1595,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=11,[Report_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=10,[FieldName]='创建人',[FieldNO]=12,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1184" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1595" fieldname="创建人" fldid="11" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=63,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1595,' where  [FldUId]='450238df-d4cf-485f-b2a3-4ea72780320e' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='b4261d53-0432-4d00-a6ad-9f3e55e6b42c'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(12,'b4261d53-0432-4d00-a6ad-9f3e55e6b42c',1595,1595,'00000000-0000-0000-0000-000000000000',11,'创建时间',13,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1185" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1595" fieldname="创建时间" fldid="12" columntypeid="1" class="form-ctr">','',-1,63,-1,-1,1,'1595,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=12,[Report_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=11,[FieldName]='创建时间',[FieldNO]=13,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1185" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1595" fieldname="创建时间" fldid="12" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=63,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1595,' where  [FldUId]='b4261d53-0432-4d00-a6ad-9f3e55e6b42c' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='f2599dde-2898-4d09-8099-515e7d446cb5'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(13,'f2599dde-2898-4d09-8099-515e7d446cb5',1595,1595,'00000000-0000-0000-0000-000000000000',13,'所属部门',14,1,'varchar',2,1,0,'','','','</span>
  </div>
</li><li areaid="1186" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1595" fieldname="所属部门" fldid="13" columntypeid="1" class="form-ctr">','',-1,63,-1,-1,1,'1595,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=13,[Report_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=13,[FieldName]='所属部门',[FieldNO]=14,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1186" class="list-body-li" style="position: static;">
   <div class="list-li-field">
   <span isfield="1" entid="1595" fieldname="所属部门" fldid="13" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=63,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1595,' where  [FldUId]='f2599dde-2898-4d09-8099-515e7d446cb5' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='27f99e77-505b-4ae5-979c-91da14b8023d'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(155,'27f99e77-505b-4ae5-979c-91da14b8023d',1595,1595,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',15,1,'',2,21,0,'','','','</span>
  </div>
</li><li areaid="1187" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,1595,''ListR_'',''','',-1,63,-1,-1,1,'1595,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=155,[Report_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=15,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
  </div>
</li><li areaid="1187" class="list-body-op" style="position: static;">
<div class="edit"><a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,1595,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=63,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1595,' where  [FldUId]='27f99e77-505b-4ae5-979c-91da14b8023d' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='e9c3b198-7bb4-4a32-93ca-511da2e460ec'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(156,'e9c3b198-7bb4-4a32-93ca-511da2e460ec',1595,1595,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',16,1,'',2,21,0,'','','',''',null,1040,480);">
<span class="i">编辑</span></a></div>
</li><li areaid="1188" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1595,''ListR_'',''','',-1,63,-1,-1,1,'1595,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=156,[Report_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=16,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">编辑</span></a></div>
</li><li areaid="1188" class="list-body-op" style="position: static;">
<div class="detail"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxCom.ShowBrowseDlg(this,1595,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=63,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1595,' where  [FldUId]='e9c3b198-7bb4-4a32-93ca-511da2e460ec' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='d50e657f-a3ea-4608-954e-3ce4e1c4a86f'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(157,'d50e657f-a3ea-4608-954e-3ce4e1c4a86f',1595,1595,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',17,1,'',2,21,0,'','','',''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="1189" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,1595,''ListR_'',''','',-1,63,-1,-1,1,'1595,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=157,[Report_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=17,[ColumnTypeId]=1,[FieldDataType]='',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''');">
<span class="i">浏览详细</span></a></div>
</li><li areaid="1189" class="list-body-op" style="position: static;">
<div class="delete"><a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,1595,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=63,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1595,' where  [FldUId]='d50e657f-a3ea-4608-954e-3ce4e1c4a86f' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='bd28d323-3bdc-bddf-377e-09fe4ab9d322'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(195,'bd28d323-3bdc-bddf-377e-09fe4ab9d322',1595,1595,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',18,-1,'varchar',2,13,0,'','','',''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>','</div>
</div>
<!-- 结束 --></div>',-1,63,-1,-1,1,'1595,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=195,[Report_EntId]=1595,[EntId]=1595,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=18,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);">
<span class="i">删除</span></a></div>
</li>    </ul>',[LastHtml]='</div>
</div>
<!-- 结束 --></div>',[RowIndex]=-1,[TableIndex]=63,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='1595,' where  [FldUId]='bd28d323-3bdc-bddf-377e-09fe4ab9d322' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=570

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=570  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(570,null,'ERP_总结计划','ERP_总结计划',0,0,0,0,0,0,30,1,3,'admin','2013-12-15 17:32:31',3,'admin','2013-12-15 17:32:31',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='ERP_总结计划',[DBTableByName]='ERP_总结计划',[IsForbid]=0,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=30,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:31',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:31',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=570 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=570  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18694,1,30,570,'int',1,1,1,'ERP_总结计划','Id','Id','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_总结计划',[FieldName]='Id',[FieldByname]='Id',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=570  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=570  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18695,2,30,570,'varchar',2,1,1,'ERP_总结计划','主题','主题','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_总结计划',[FieldName]='主题',[FieldByname]='主题',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=570  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=570  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18696,3,30,570,'varchar',2,1,1,'ERP_总结计划','总结','总结','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_总结计划',[FieldName]='总结',[FieldByname]='总结',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=570  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=570  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18697,4,30,570,'varchar',2,1,1,'ERP_总结计划','计划','计划','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_总结计划',[FieldName]='计划',[FieldByname]='计划',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=570  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=570  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18698,5,30,570,'varchar',2,1,1,'ERP_总结计划','领导评阅','领导评阅','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_总结计划',[FieldName]='领导评阅',[FieldByname]='领导评阅',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=570  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=570  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18699,6,30,570,'varchar',2,1,1,'ERP_总结计划','评阅人','评阅人','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_总结计划',[FieldName]='评阅人',[FieldByname]='评阅人',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=570  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=570  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18700,7,30,570,'bit',4,1,1,'ERP_总结计划','已评阅','已评阅','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_总结计划',[FieldName]='已评阅',[FieldByname]='已评阅',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=570  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=570  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18701,8,30,570,'varchar',2,1,1,'ERP_总结计划','评阅时间','评阅时间','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_总结计划',[FieldName]='评阅时间',[FieldByname]='评阅时间',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=570  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=570  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18702,9,30,570,'varchar',2,1,1,'ERP_总结计划','类别','类别','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_总结计划',[FieldName]='类别',[FieldByname]='类别',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=570  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=570  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18703,10,30,570,'varchar',2,1,1,'ERP_总结计划','创建人','创建人','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_总结计划',[FieldName]='创建人',[FieldByname]='创建人',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=570  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=570  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18704,11,30,570,'varchar',2,1,1,'ERP_总结计划','创建时间','创建时间','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_总结计划',[FieldName]='创建时间',[FieldByname]='创建时间',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=570  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=570  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18705,12,30,570,'varchar',2,1,1,'ERP_总结计划','所属用户','所属用户','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_总结计划',[FieldName]='所属用户',[FieldByname]='所属用户',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=570  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=570  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18706,13,30,570,'varchar',2,1,1,'ERP_总结计划','所属部门','所属部门','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='ERP_总结计划',[FieldName]='所属部门',[FieldByname]='所属部门',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=570  and  [FieldId]=13 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=2996  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2996,'1efdb61d-d57a-4421-aaec-0e4d7a80c16d','沟通平台',948,'/MyApp/ComumicationMain.aspx',1,'/images/default.gif','/images/default.gif',2,'',0,1,'',30,0,30,0,1,1,'2013-3-2 16:39:28','',0,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='1efdb61d-d57a-4421-aaec-0e4d7a80c16d',[MenuName]='沟通平台',[ParentId]=948,[ProPath]='/MyApp/ComumicationMain.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=2,[Target]='',[IsOpen]=0,[IsHidden]=1,[Remark]='',[SSystemId]=30,[SMenuId]=0,[SystemId]=30,[EntityCount]=0,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]='2013-3-2 16:39:28',[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=2996 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=2996  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(772,2996,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=2996  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=3019  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(3019,'acab0a8b-325d-4f73-95a7-2161f79048c3','生活助手',948,'http://life.hao123.com/',1,'/images/default.gif','/images/default.gif',15,'',0,0,'',30,0,30,0,1,1,null,'',0,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='acab0a8b-325d-4f73-95a7-2161f79048c3',[MenuName]='生活助手',[ParentId]=948,[ProPath]='http://life.hao123.com/',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=15,[Target]='',[IsOpen]=0,[IsHidden]=0,[Remark]='',[SSystemId]=30,[SMenuId]=0,[SystemId]=30,[EntityCount]=0,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=3019 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3019  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(795,3019,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3019  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=3310  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(3310,'061aedf6-956a-4d44-a688-cf6fc15884f9','微邮',948,'/MyApp/WMail/WMail.html?menuid=10',1,'/images/default.gif','/images/default.gif',1,'rightFrame',0,0,'',30,-1,30,5,1,1,null,'',0,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='061aedf6-956a-4d44-a688-cf6fc15884f9',[MenuName]='微邮',[ParentId]=948,[ProPath]='/MyApp/WMail/WMail.html?menuid=10',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=1,[Target]='rightFrame',[IsOpen]=0,[IsHidden]=0,[Remark]='',[SSystemId]=30,[SMenuId]=-1,[SystemId]=30,[EntityCount]=5,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=3310 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3310  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(1005,3310,'新电子邮箱','Public',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='新电子邮箱',[RoleName]='Public',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3310  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2070  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2070,3310,'收件箱',1,207,0,'Dcx_IMail',0,0,1,30,2070,null,null,30,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3310,[EntName]='收件箱',[MEnt]=1,[DBTableId]=207,[DBConnectId]=0,[DBTableName]='Dcx_IMail',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=30,[SEntId]=2070,[FSystemId]=null,[FEntId]=null,[SystemId]=30,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2070 
      end
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2071  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2071,3310,'发邮件',1,207,0,'Dcx_IMail',0,0,1,30,2071,null,null,30,'',0,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3310,[EntName]='发邮件',[MEnt]=1,[DBTableId]=207,[DBConnectId]=0,[DBTableName]='Dcx_IMail',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=30,[SEntId]=2071,[FSystemId]=null,[FEntId]=null,[SystemId]=30,[Remark]='',[IsFlow]=0,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2071 
      end
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2072  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2072,3310,'已发送',1,207,0,'Dcx_IMail',0,0,1,30,2072,null,null,30,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3310,[EntName]='已发送',[MEnt]=1,[DBTableId]=207,[DBConnectId]=0,[DBTableName]='Dcx_IMail',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=30,[SEntId]=2072,[FSystemId]=null,[FEntId]=null,[SystemId]=30,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2072 
      end
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2073  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2073,3310,'废件箱',1,207,0,'Dcx_IMail',0,0,1,30,2073,null,null,30,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3310,[EntName]='废件箱',[MEnt]=1,[DBTableId]=207,[DBConnectId]=0,[DBTableName]='Dcx_IMail',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=30,[SEntId]=2073,[FSystemId]=null,[FEntId]=null,[SystemId]=30,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2073 
      end
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2074  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2074,3310,'邮件附件',0,208,0,'Dcx_IMail_Attachment',2071,0,1,30,2074,null,null,30,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3310,[EntName]='邮件附件',[MEnt]=0,[DBTableId]=208,[DBConnectId]=0,[DBTableName]='Dcx_IMail_Attachment',[ParentId]=2071,[OrderBy]=0,[CheckPower]=1,[SSystemId]=30,[SEntId]=2074,[FSystemId]=null,[FEntId]=null,[SystemId]=30,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2074 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=2070

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2070  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11104,-1,2070,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2070  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2070

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2070  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20532,30,3310,2070,73,2,9,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=3310,[TemplateId]=73,[ModuleId]=9,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2070  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2070  and  [ModuleTypeId]=5  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20533,30,3310,2070,73,5,25,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=3310,[TemplateId]=73,[ModuleId]=25,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2070  and  [ModuleTypeId]=5 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2070  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20534,30,3310,2070,73,1,1,1,3,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=3310,[TemplateId]=73,[ModuleId]=1,[GroupId]=1,[AreaId]=3,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2070  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2070  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20535,30,3310,2070,73,3,14,1,4,2,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=3310,[TemplateId]=73,[ModuleId]=14,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2070  and  [ModuleTypeId]=3 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2070  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20536,30,3310,2070,73,16,31,1,5,2,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=3310,[TemplateId]=73,[ModuleId]=31,[GroupId]=1,[AreaId]=5,[ShowMode]=2,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2070  and  [ModuleTypeId]=16 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_SearchForm_Run]  where [EntId]=2070

--Dcx_SearchForm_Run
      if (select count(1) from [Dcx_SearchForm_Run] where  [EntId]=2070  )<1 
      begin 
           Insert into [Dcx_SearchForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('28416c49-ee35-5973-72c6-8d86c92e8dc1','收件箱',2070,-1,'','',0,'','','DcxRun.SearchF_2070= {"MenuId":3310,"MEntId":2070,"EntName":"收件箱","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2070":{"EntId":2070,"KeyFieldValue":"","DBTableName":"","KeyField":"MailId","KeydtId":2,"JoinKeyField":"MailId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_2070.EntMsg.E2070.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_IMail","EntId":2070,"KeyField":"MailId","MKeyField":"MailId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"Title":{"DtId":2,"DB":1,"CId":1,"FL":500},"SenderUserName":{"DtId":2,"DB":1,"CId":1,"FL":50}},"Data":{"Row":[]}};
}
DcxRun.SearchF_2070.EntMsg.E2070.GetDataRowModel=function()
{
    return {"Title":"","SenderUserName":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"MailId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_2070.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2070,''SearchF_'',buildNew,closeDlg);

}','',10,'','','','2070*MailId*2*MailId*2*Dcx_IMail*收件箱',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-24 5:32:16',3,'admin','2013-8-22 5:58:47',1)
      end
      else 
      begin 
           update [Dcx_SearchForm_Run] set [FormId]='28416c49-ee35-5973-72c6-8d86c92e8dc1',[FormName]='收件箱',[ModuleId]=-1,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.SearchF_2070= {"MenuId":3310,"MEntId":2070,"EntName":"收件箱","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2070":{"EntId":2070,"KeyFieldValue":"","DBTableName":"","KeyField":"MailId","KeydtId":2,"JoinKeyField":"MailId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_2070.EntMsg.E2070.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_IMail","EntId":2070,"KeyField":"MailId","MKeyField":"MailId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"Title":{"DtId":2,"DB":1,"CId":1,"FL":500},"SenderUserName":{"DtId":2,"DB":1,"CId":1,"FL":50}},"Data":{"Row":[]}};
}
DcxRun.SearchF_2070.EntMsg.E2070.GetDataRowModel=function()
{
    return {"Title":"","SenderUserName":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"MailId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_2070.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2070,''SearchF_'',buildNew,closeDlg);

}',[LoadingSql]='',[PageSize]=10,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='2070*MailId*2*MailId*2*Dcx_IMail*收件箱',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-24 5:32:16',[EditorId]=3,[Editor]='admin',[EditTime]='2013-8-22 5:58:47',[AccountId]=1 where  [EntId]=2070 
      end




--Dcx_SearchFormField_Run
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='8a289bc4-f5f1-3d39-5e31-f4f42444cc3b'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'8a289bc4-f5f1-3d39-5e31-f4f42444cc3b',2070,2070,'00000000-0000-0000-0000-000000000000',1,'Like','Title',2,2,4,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','<div class="searchform">
<ul class="search-block" groupid="1" isgroup="1" isrple="1">
<li style="width: 270px; height: 31px; position: static;" class="search-li" areaid="5" scroll="no"><label class="search-Title pad7" fldid="1" istitle="1">标题</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">','','','','<input  id="d2070_Title"   type="text" class="form-txt"  style="width:150px;" EntId="2070" IsField=1 DBField=1 IsPost=1 FieldName="Title" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'2070,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=1,[Form_EntId]=2070,[EntId]=2070,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[CompareOperatorType]='Like',[FieldName]='Title',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=4,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="searchform">
<ul class="search-block" groupid="1" isgroup="1" isrple="1">
<li style="width: 270px; height: 31px; position: static;" class="search-li" areaid="5" scroll="no"><label class="search-Title pad7" fldid="1" istitle="1">标题</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2070_Title"   type="text" class="form-txt"  style="width:150px;" EntId="2070" IsField=1 DBField=1 IsPost=1 FieldName="Title" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2070,' where  [FldUId]='8a289bc4-f5f1-3d39-5e31-f4f42444cc3b' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='680d9930-0a0b-e233-8e60-7b4e30681c42'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'680d9930-0a0b-e233-8e60-7b4e30681c42',2070,2070,'00000000-0000-0000-0000-000000000000',2,'Like','SenderUserName',2,2,3,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span> </div></li>
<li style="position: static; width: 270px; height: 31px;" class="search-li" areaid="7" scroll="no"><label class="search-Title pad7" fldid="2" istitle="1">发送人</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">','</span> </div></li>
<li style="width: 82px; height: 33px; position: static;" class="" areaid="8" scroll="no">
<div class="searchform-button " onclick="javascript:return VL_Search(2070);">
<div class="search-btn">&nbsp;</div><a id="2070_searchBT" href="javascript:void(0);">搜索</a></div></li></ul></div><br>','','','<input  id="d2070_SenderUserName"   type="text" class="form-txt"  style="width:150px;" EntId="2070" IsField=1 DBField=1 IsPost=1 FieldName="SenderUserName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'2070,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=2,[Form_EntId]=2070,[EntId]=2070,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[CompareOperatorType]='Like',[FieldName]='SenderUserName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=3,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="position: static; width: 270px; height: 31px;" class="search-li" areaid="7" scroll="no"><label class="search-Title pad7" fldid="2" istitle="1">发送人</label> 
<div class="field-content pad3"><span class="form-ctr" isfcontain="1">',[LastHtml]='</span> </div></li>
<li style="width: 82px; height: 33px; position: static;" class="" areaid="8" scroll="no">
<div class="searchform-button " onclick="javascript:return VL_Search(2070);">
<div class="search-btn">&nbsp;</div><a id="2070_searchBT" href="javascript:void(0);">搜索</a></div></li></ul></div><br>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2070_SenderUserName"   type="text" class="form-txt"  style="width:150px;" EntId="2070" IsField=1 DBField=1 IsPost=1 FieldName="SenderUserName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2070,' where  [FldUId]='680d9930-0a0b-e233-8e60-7b4e30681c42' 
      end



Delete from [Dcx_BrowseReport_Run]  where [EntId]=2070

--Dcx_BrowseReport_Run
      if (select count(1) from [Dcx_BrowseReport_Run] where  [EntId]=2070  )<1 
      begin 
           Insert into [Dcx_BrowseReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[DIYJsCss],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('f8c4e747-4983-8f88-b533-637fa91d6183','收件箱',2070,-1,'','<$2070$>select [SenderUserName],[SenderDate],[ReceiverUserNames],[Title],[Body],[MailId] from Dcx_IMail where [MailId]=''{$keyfieldvalue}''</$2070$><$2074$>select [AttachmentId],[MailId] from Dcx_IMail_Attachment where [MailId]=''{$mkeyValue}''</$2074$>',1,1,10,'','DcxRun.MChildR_2070= {"MenuId":3310,"MEntId":2070,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"收件箱","EntMsg":{"E2070":{"EntId":2070,"EntName":"收件箱","KeyFieldValue":"","DBTableName":"Dcx_IMail","KeyField":"MailId","KeydtId":2,"JoinKeyField":"MailId","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null},"E2074":{"EntId":2074,"EntName":"邮件附件","KeyFieldValue":"","DBTableName":"Dcx_IMail_Attachment","KeyField":"AttachmentId","KeydtId":2,"JoinKeyField":"MailId","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":false,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','2070*MailId*2*MailId*2*Dcx_IMail*收件箱,2074*AttachmentId*2*MailId*2*Dcx_IMail_Attachment*邮件附件',3,'','2012-12-26 3:31:25',3,'','2013-7-30 2:56:12',1)
      end
      else 
      begin 
           update [Dcx_BrowseReport_Run] set [ReportId]='f8c4e747-4983-8f88-b533-637fa91d6183',[ReportName]='收件箱',[ModuleId]=-1,[StaticHtml]='',[LoadingSql]='<$2070$>select [SenderUserName],[SenderDate],[ReceiverUserNames],[Title],[Body],[MailId] from Dcx_IMail where [MailId]=''{$keyfieldvalue}''</$2070$><$2074$>select [AttachmentId],[MailId] from Dcx_IMail_Attachment where [MailId]=''{$mkeyValue}''</$2074$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=10,[DIYJsCss]='',[AutoPublicJs]='DcxRun.MChildR_2070= {"MenuId":3310,"MEntId":2070,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"收件箱","EntMsg":{"E2070":{"EntId":2070,"EntName":"收件箱","KeyFieldValue":"","DBTableName":"Dcx_IMail","KeyField":"MailId","KeydtId":2,"JoinKeyField":"MailId","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null},"E2074":{"EntId":2074,"EntName":"邮件附件","KeyFieldValue":"","DBTableName":"Dcx_IMail_Attachment","KeyField":"AttachmentId","KeydtId":2,"JoinKeyField":"MailId","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":false,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='2070*MailId*2*MailId*2*Dcx_IMail*收件箱,2074*AttachmentId*2*MailId*2*Dcx_IMail_Attachment*邮件附件',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-26 3:31:25',[EditorId]=3,[Editor]='',[EditTime]='2013-7-30 2:56:12',[AccountId]=1 where  [EntId]=2070 
      end




--Dcx_BrowseReportField_Run
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='a8095a8a-9b29-8d40-3e12-1b73f1cf73ca'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'a8095a8a-9b29-8d40-3e12-1b73f1cf73ca',2070,2070,'00000000-0000-0000-0000-000000000000',3,'SenderUserName',1,1,'varchar',2,1,0,'','','','<div class="browse">
	<div class="browse-title">
		<ul class="" groupid="26" isgroup="1" isrple="1">
			<li areaid="63" class="" style="width: 596px; height: 26px; position: static;">
				<label fldid="-1" istitle="1" style="text-align:left;">邮件明细</label></li>
		</ul>
	</div>
	<div class="browse-body">
		<ul class="ul-group ul-content" groupid="21" isgroup="1" style="wIdth: 600px;" isrple="1">
			<li areaid="64" class="" style="width: 598px; height: 38px; position: static;"><table>
	<tbody>
		<tr>
			<td class="browse-li-label" style="wIdth:150px;">
				<label fldid="1" istitle="1">发件人</label></td>
			<td class="pad09">
		<span isfield="1" entid="2070" fieldname="SenderUserName" fldid="1" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'2070,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=1,[Report_EntId]=2070,[EntId]=2070,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='SenderUserName',[FieldNO]=1,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="browse">
	<div class="browse-title">
		<ul class="" groupid="26" isgroup="1" isrple="1">
			<li areaid="63" class="" style="width: 596px; height: 26px; position: static;">
				<label fldid="-1" istitle="1" style="text-align:left;">邮件明细</label></li>
		</ul>
	</div>
	<div class="browse-body">
		<ul class="ul-group ul-content" groupid="21" isgroup="1" style="wIdth: 600px;" isrple="1">
			<li areaid="64" class="" style="width: 598px; height: 38px; position: static;"><table>
	<tbody>
		<tr>
			<td class="browse-li-label" style="wIdth:150px;">
				<label fldid="1" istitle="1">发件人</label></td>
			<td class="pad09">
		<span isfield="1" entid="2070" fieldname="SenderUserName" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2070,' where  [FldUId]='a8095a8a-9b29-8d40-3e12-1b73f1cf73ca' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='a7c4c942-93b9-2a16-4d8c-84e04a344b10'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'a7c4c942-93b9-2a16-4d8c-84e04a344b10',2070,2070,'00000000-0000-0000-0000-000000000000',6,'SenderDate',2,1,'datetime',3,1,0,'','','','</span>

</td>
		</tr>
	</tbody>
</table>





 </li>
			<li areaid="65" class="" style="width: 598px; height: 38px; position: static;"><table>
	<tbody>
		<tr>
			<td class="browse-li-label" style="wIdth:150px;">
				<label fldid="2" istitle="1">发件日期</label></td>
			<td class="pad09"><span isfield="1" entid="2070" fieldname="SenderDate" fldid="2" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'2070,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=2,[Report_EntId]=2070,[EntId]=2070,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=6,[FieldName]='SenderDate',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='datetime',[FieldDataTypeId]=3,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>

</td>
		</tr>
	</tbody>
</table>





 </li>
			<li areaid="65" class="" style="width: 598px; height: 38px; position: static;"><table>
	<tbody>
		<tr>
			<td class="browse-li-label" style="wIdth:150px;">
				<label fldid="2" istitle="1">发件日期</label></td>
			<td class="pad09"><span isfield="1" entid="2070" fieldname="SenderDate" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2070,' where  [FldUId]='a7c4c942-93b9-2a16-4d8c-84e04a344b10' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='6e6311c5-59bb-8ff9-94c4-1b0a34713d5d'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'6e6311c5-59bb-8ff9-94c4-1b0a34713d5d',2070,2070,'00000000-0000-0000-0000-000000000000',11,'ReceiverUserNames',3,1,'varchar',2,1,0,'','','','</span>

</td>
		</tr>
	</tbody>
</table></li><li areaid="87" class="" style="width: 598px; height: 38px; position: static;"><table>
	<tbody>
		<tr>
			<td class="browse-li-label" style="wIdth:150px;">
				<label fldid="3" istitle="1">收件人</label></td>
			<td class="pad09"><span isfield="1" entid="2070" fieldname="ReceiverUserNames" fldid="3" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'2070,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=3,[Report_EntId]=2070,[EntId]=2070,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=11,[FieldName]='ReceiverUserNames',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>

</td>
		</tr>
	</tbody>
</table></li><li areaid="87" class="" style="width: 598px; height: 38px; position: static;"><table>
	<tbody>
		<tr>
			<td class="browse-li-label" style="wIdth:150px;">
				<label fldid="3" istitle="1">收件人</label></td>
			<td class="pad09"><span isfield="1" entid="2070" fieldname="ReceiverUserNames" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2070,' where  [FldUId]='6e6311c5-59bb-8ff9-94c4-1b0a34713d5d' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='43bbc935-fb98-3069-e6ce-42f46a3358b1'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'43bbc935-fb98-3069-e6ce-42f46a3358b1',2070,2070,'00000000-0000-0000-0000-000000000000',4,'Title',4,1,'varchar',2,1,0,'','','','</span>
</td>
		</tr>
	</tbody>
</table></li><li areaid="86" class="" style="width: 598px; height: 38px; position: static;"><table>
	<tbody>
		<tr>
			<td class="browse-li-label" style="wIdth:150px;">
				<label fldid="4" istitle="1">主题</label></td>
			<td class="pad09"><span isfield="1" entid="2070" fieldname="Title" fldid="4" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'2070,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=4,[Report_EntId]=2070,[EntId]=2070,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=4,[FieldName]='Title',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
</td>
		</tr>
	</tbody>
</table></li><li areaid="86" class="" style="width: 598px; height: 38px; position: static;"><table>
	<tbody>
		<tr>
			<td class="browse-li-label" style="wIdth:150px;">
				<label fldid="4" istitle="1">主题</label></td>
			<td class="pad09"><span isfield="1" entid="2070" fieldname="Title" fldid="4" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2070,' where  [FldUId]='43bbc935-fb98-3069-e6ce-42f46a3358b1' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='a7b2812f-9ee8-49f1-9218-f71c86f8fe6f'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'a7b2812f-9ee8-49f1-9218-f71c86f8fe6f',2070,2070,'00000000-0000-0000-0000-000000000000',5,'Body',5,1,'varchar',2,1,0,'','','','</span>








</td>
		</tr>
	</tbody>
</table></li><li areaid="85" class="" style="width: 598px; height: 30px; position: static;"><table>
	<tbody>
		<tr>
			<td style="wIdth:550px;padding-left:25px;text-decoration: none;color:#069;">
				<a href="#" id="hy_Print" onclick="javascript:mailPrint(522,'''');">邮件预览打印</a> | <a href="writemail.aspx?Id=522&amp;type=hf" id="Hy_hf" target="main">回复</a> | <a href="writemail.aspx?Id=522&amp;type=zf" id="Hy_zf" target="main">转发</a> | <a href="javascript:__doPostBack(''But_del'','''')" id="But_del">删除</a> | <a href="javascript:__doPostBack(''But_delete'','''')" id="But_delete">彻底删除</a> | <a href="#" id="HyperLink1" onclick="javascript:window.history.back();" target="main">返回</a></td>
			<td class="pad09">
				&nbsp;</td>
		</tr>
	</tbody>
</table></li><li areaid="84" class="" style="width: 598px; min-height: 300px; height: auto; position: static;"><table>
	<tbody>
		<tr>
			
			<td class="pad09" style="padding:30px 8px 8px 25px;">
	<span isfield="1" entid="2070" fieldname="Body" fldid="5" columntypeid="1" class="form-ctr">','</span>






</td>
		</tr>
	</tbody>
</table>




 </li><li areaid="83" class="" style="width: 598px; height: 38px; display: none; position: static;"><table>
	<tbody>
		<tr>
			<td class="browse-li-label" style="wIdth:150px;">
				<label fldid="-1" istitle="1">请编辑</label></td>
			<td class="pad09">
				请编辑</td>
		</tr>
	</tbody>
</table>
</li>
			
			
			
			
		</ul>
	</div>
	<div class="div_tabs" style="display:none;">
		<ul class="tab_ul" groupid="22" isgroup="1" islonly="1" istab="1" style="" isrple="1">
			<li areaid="70" class="ui-droppable  li-tab de-selected" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;">
				<a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
			<li areaid="71" class="ui-droppable  li-tab" istab="1" tabid="2" style="position: static;">
				<a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
		</ul>
		<div class="tabs_content" style="display:block; " tabid="1">
			<ul class="ul-group ul-content dcx-scroll" groupid="23" isgroup="1" style="" isrple="1">
				<li areaid="72" class="" style="position: static;">
					<table>
						<tbody>
							<tr>
								<td class="browse-li-label">
									<label fldid="-1" istitle="1">请编辑</label></td>
								<td class="pad09">
									请编辑</td>
							</tr>
						</tbody>
					</table>
				</li>
				<li areaid="73" class="" style="position: static;">
					<table>
						<tbody>
							<tr>
								<td class="browse-li-label">
									<label fldid="-1" istitle="1">请编辑</label></td>
								<td class="pad09">
									请编辑</td>
							</tr>
						</tbody>
					</table>
				</li>
				<li areaid="74" class="" style="position: static;">
					<table>
						<tbody>
							<tr>
								<td class="browse-li-label">
									<label fldid="-1" istitle="1">请编辑</label></td>
								<td class="pad09">
									请编辑</td>
							</tr>
						</tbody>
					</table>
				</li>
				<li areaid="75" class="" style="position: static;">
					<table>
						<tbody>
							<tr>
								<td class="browse-li-label">
									<label fldid="-1" istitle="1">请编辑</label></td>
								<td class="pad09">
									请编辑</td>
							</tr>
						</tbody>
					</table>
				</li>
				<li areaid="76" class="" style="position: static;">
					<table>
						<tbody>
							<tr>
								<td class="browse-li-label">
									<label fldid="-1" istitle="1">请编辑</label></td>
								<td class="pad09">
									请编辑</td>
							</tr>
						</tbody>
					</table>
				</li>
				<li areaid="77" class="" style="position: static;">
					<table>
						<tbody>
							<tr>
								<td class="browse-li-label">
									<label fldid="-1" istitle="1">请编辑</label></td>
								<td class="pad09">
									请编辑</td>
							</tr>
						</tbody>
					</table>
				</li>
				<li areaid="78" class="" style="position: static;">
					<table>
						<tbody>
							<tr>
								<td class="browse-li-label">
									<label fldid="-1" istitle="1">请编辑</label></td>
								<td class="pad09">
									请编辑</td>
							</tr>
						</tbody>
					</table>
				</li>
			</ul>
		</div>
		<div class="tabs_content" style="display: none;" tabid="2">
			<ul class="ul-group ul-content dcx-scroll" groupid="24" isgroup="1" style="" isrple="1">
				<li areaid="79" class="" style="position: static;">
					<table>
						<tbody>
							<tr>
								<td class="browse-li-label">
									<label fldid="-1" istitle="1">请编辑</label></td>
								<td class="pad09">
									请编辑</td>
							</tr>
						</tbody>
					</table>
				</li>
				<li areaid="80" class="" style="position: static;">
					<table>
						<tbody>
							<tr>
								<td class="browse-li-label">
									<label fldid="-1" istitle="1">请编辑</label></td>
								<td class="pad09">
									请编辑</td>
							</tr>
						</tbody>
					</table>
				</li>
			</ul>
		</div>
	</div>
</div>',-1,-1,-1,-1,0,'2070,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=5,[Report_EntId]=2070,[EntId]=2070,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=5,[FieldName]='Body',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>








</td>
		</tr>
	</tbody>
</table></li><li areaid="85" class="" style="width: 598px; height: 30px; position: static;"><table>
	<tbody>
		<tr>
			<td style="wIdth:550px;padding-left:25px;text-decoration: none;color:#069;">
				<a href="#" id="hy_Print" onclick="javascript:mailPrint(522,'''');">邮件预览打印</a> | <a href="writemail.aspx?Id=522&amp;type=hf" id="Hy_hf" target="main">回复</a> | <a href="writemail.aspx?Id=522&amp;type=zf" id="Hy_zf" target="main">转发</a> | <a href="javascript:__doPostBack(''But_del'','''')" id="But_del">删除</a> | <a href="javascript:__doPostBack(''But_delete'','''')" id="But_delete">彻底删除</a> | <a href="#" id="HyperLink1" onclick="javascript:window.history.back();" target="main">返回</a></td>
			<td class="pad09">
				&nbsp;</td>
		</tr>
	</tbody>
</table></li><li areaid="84" class="" style="width: 598px; min-height: 300px; height: auto; position: static;"><table>
	<tbody>
		<tr>
			
			<td class="pad09" style="padding:30px 8px 8px 25px;">
	<span isfield="1" entid="2070" fieldname="Body" fldid="5" columntypeid="1" class="form-ctr">',[LastHtml]='</span>






</td>
		</tr>
	</tbody>
</table>




 </li><li areaid="83" class="" style="width: 598px; height: 38px; display: none; position: static;"><table>
	<tbody>
		<tr>
			<td class="browse-li-label" style="wIdth:150px;">
				<label fldid="-1" istitle="1">请编辑</label></td>
			<td class="pad09">
				请编辑</td>
		</tr>
	</tbody>
</table>
</li>
			
			
			
			
		</ul>
	</div>
	<div class="div_tabs" style="display:none;">
		<ul class="tab_ul" groupid="22" isgroup="1" islonly="1" istab="1" style="" isrple="1">
			<li areaid="70" class="ui-droppable  li-tab de-selected" istab="1" tabid="1" style="height: 29px; width: 70px; position: static;">
				<a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
			<li areaid="71" class="ui-droppable  li-tab" istab="1" tabid="2" style="position: static;">
				<a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
		</ul>
		<div class="tabs_content" style="display:block; " tabid="1">
			<ul class="ul-group ul-content dcx-scroll" groupid="23" isgroup="1" style="" isrple="1">
				<li areaid="72" class="" style="position: static;">
					<table>
						<tbody>
							<tr>
								<td class="browse-li-label">
									<label fldid="-1" istitle="1">请编辑</label></td>
								<td class="pad09">
									请编辑</td>
							</tr>
						</tbody>
					</table>
				</li>
				<li areaid="73" class="" style="position: static;">
					<table>
						<tbody>
							<tr>
								<td class="browse-li-label">
									<label fldid="-1" istitle="1">请编辑</label></td>
								<td class="pad09">
									请编辑</td>
							</tr>
						</tbody>
					</table>
				</li>
				<li areaid="74" class="" style="position: static;">
					<table>
						<tbody>
							<tr>
								<td class="browse-li-label">
									<label fldid="-1" istitle="1">请编辑</label></td>
								<td class="pad09">
									请编辑</td>
							</tr>
						</tbody>
					</table>
				</li>
				<li areaid="75" class="" style="position: static;">
					<table>
						<tbody>
							<tr>
								<td class="browse-li-label">
									<label fldid="-1" istitle="1">请编辑</label></td>
								<td class="pad09">
									请编辑</td>
							</tr>
						</tbody>
					</table>
				</li>
				<li areaid="76" class="" style="position: static;">
					<table>
						<tbody>
							<tr>
								<td class="browse-li-label">
									<label fldid="-1" istitle="1">请编辑</label></td>
								<td class="pad09">
									请编辑</td>
							</tr>
						</tbody>
					</table>
				</li>
				<li areaid="77" class="" style="position: static;">
					<table>
						<tbody>
							<tr>
								<td class="browse-li-label">
									<label fldid="-1" istitle="1">请编辑</label></td>
								<td class="pad09">
									请编辑</td>
							</tr>
						</tbody>
					</table>
				</li>
				<li areaid="78" class="" style="position: static;">
					<table>
						<tbody>
							<tr>
								<td class="browse-li-label">
									<label fldid="-1" istitle="1">请编辑</label></td>
								<td class="pad09">
									请编辑</td>
							</tr>
						</tbody>
					</table>
				</li>
			</ul>
		</div>
		<div class="tabs_content" style="display: none;" tabid="2">
			<ul class="ul-group ul-content dcx-scroll" groupid="24" isgroup="1" style="" isrple="1">
				<li areaid="79" class="" style="position: static;">
					<table>
						<tbody>
							<tr>
								<td class="browse-li-label">
									<label fldid="-1" istitle="1">请编辑</label></td>
								<td class="pad09">
									请编辑</td>
							</tr>
						</tbody>
					</table>
				</li>
				<li areaid="80" class="" style="position: static;">
					<table>
						<tbody>
							<tr>
								<td class="browse-li-label">
									<label fldid="-1" istitle="1">请编辑</label></td>
								<td class="pad09">
									请编辑</td>
							</tr>
						</tbody>
					</table>
				</li>
			</ul>
		</div>
	</div>
</div>',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2070,' where  [FldUId]='a7b2812f-9ee8-49f1-9218-f71c86f8fe6f' 
      end



Delete from [Dcx_ListReport_Run]  where [EntId]=2070

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=2070  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('8bd17dae-392b-bf85-1c5b-9047ae46e538','<span style="padding:0px 20px;">收件箱<span>',2070,-1,'','','<$2070$>
--获取 
declare @UserId as int
set @UserId={$userId}  

EXEC	[dbo].[DcxRun_EMail_GetList2]
		@userId =@UserId,
		@query = N''{$SearchArea}'',
		@ordertype = N''SenderDate'',
		@PageLowerBound = {$startRow},
		@PageUpperBound = {$endRow},
		@dotype = 3
 
 </$2070$>

<$2070:Count$>
--获取数量 
declare @UserId as int
set @UserId={$userId} 
EXEC	[dbo].[DcxRun_EMail_GetList2]
		@userId =@UserId,
		@query = N''{$SearchArea}'',
		@ordertype = N''rq'',
		@PageLowerBound = 1,
		@PageUpperBound = 1,
		@dotype = 1
</$2070:Count$>',1,1,10,'DcxRun.ListR_2070= {"MenuId":3310,"MEntId":2070,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"<span style="padding:0px 20px;">收件箱<span>","EntMsg":{"E2070":{"EntId":2070,"EntName":"收件箱","KeyFieldValue":"","DBTableName":"Dcx_IMail","KeyField":"MailId","KeydtId":2,"JoinKeyField":"MailId","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','try{
   runObj.FielDeal={"MaxDealId":5,"Ent":[{"EntId":2070,"Fld":[{"FldId":12,"Deal":[{"cdn":[{"fid":12,"b":"","l":"==0"}],"typeId":6,"dlV":[{"fid":-1,"b":"<img src=\"/MyApp/NewMail/Images/ico_mailtitle.gif\" style=\"border:0px;margin-top:7px;\" />","l":""}]},{"cdn":[{"fid":12,"b":"","l":"==1"}],"typeId":6,"dlV":[{"fid":-1,"b":"<img src=\"/MyApp/NewMail/Images/ico_mailtitle.gif\" style=\"border:0px;margin-top:7px;display:none;\" />","l":""}]}]}],"Deal":[]}]};
 DcxReport.DealField(2070,''ListR_'',true);}
catch(err){}','','2070*MailId*2*MailId*2*Dcx_IMail*收件箱',3,'','2012-12-24 5:32:40',3,'','2013-7-30 2:51:16',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='8bd17dae-392b-bf85-1c5b-9047ae46e538',[ReportName]='<span style="padding:0px 20px;">收件箱<span>',[ModuleId]=-1,[StaticHtml]='',[DIYJsCss]='',[LoadingSql]='<$2070$>
--获取 
declare @UserId as int
set @UserId={$userId}  

EXEC	[dbo].[DcxRun_EMail_GetList2]
		@userId =@UserId,
		@query = N''{$SearchArea}'',
		@ordertype = N''SenderDate'',
		@PageLowerBound = {$startRow},
		@PageUpperBound = {$endRow},
		@dotype = 3
 
 </$2070$>

<$2070:Count$>
--获取数量 
declare @UserId as int
set @UserId={$userId} 
EXEC	[dbo].[DcxRun_EMail_GetList2]
		@userId =@UserId,
		@query = N''{$SearchArea}'',
		@ordertype = N''rq'',
		@PageLowerBound = 1,
		@PageUpperBound = 1,
		@dotype = 1
</$2070:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=10,[AutoPublicJs]='DcxRun.ListR_2070= {"MenuId":3310,"MEntId":2070,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"<span style="padding:0px 20px;">收件箱<span>","EntMsg":{"E2070":{"EntId":2070,"EntName":"收件箱","KeyFieldValue":"","DBTableName":"Dcx_IMail","KeyField":"MailId","KeydtId":2,"JoinKeyField":"MailId","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='try{
   runObj.FielDeal={"MaxDealId":5,"Ent":[{"EntId":2070,"Fld":[{"FldId":12,"Deal":[{"cdn":[{"fid":12,"b":"","l":"==0"}],"typeId":6,"dlV":[{"fid":-1,"b":"<img src=\"/MyApp/NewMail/Images/ico_mailtitle.gif\" style=\"border:0px;margin-top:7px;\" />","l":""}]},{"cdn":[{"fid":12,"b":"","l":"==1"}],"typeId":6,"dlV":[{"fid":-1,"b":"<img src=\"/MyApp/NewMail/Images/ico_mailtitle.gif\" style=\"border:0px;margin-top:7px;display:none;\" />","l":""}]}]}],"Deal":[]}]};
 DcxReport.DealField(2070,''ListR_'',true);}
catch(err){}',[AutoOtherJS]='',[OtherMsg]='2070*MailId*2*MailId*2*Dcx_IMail*收件箱',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-24 5:32:40',[EditorId]=3,[Editor]='',[EditTime]='2013-7-30 2:51:16',[AccountId]=1 where  [EntId]=2070 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='f3a06877-c3e1-ea89-0c26-0c932104c5b8'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(215,'f3a06877-c3e1-ea89-0c26-0c932104c5b8',2070,2070,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<div class="listreport">
<div class="toolbar">
<ul style="WIdTH: 810px" class="tool-ul" istoolbar="1" isgroup="1" groupid="2" isrple="1">
<li style="width: 64px; height: 29px; display: none; position: static;" class="tool-li" areaid="27"><a id="ListR_2070_btn_buildNew" class="list-bt-add" title="添   加" onclick="javascript:DcxCom.ShowAddDataDlg(2070,''ListR_'');" href="javascript:void(0);">添 加</a></li>

<li style="width: 64px; height: 29px; display: none; position: static;" class="tool-li" areaid="29"><a id="ListR_2070_ExportToExcelbut" class="list-bt-other" title="导   出" onclick="javascript:DcxCom.ExportExcel(2070,''ListR_'');" href="javascript:void(0);">导 出</a></li>
<li style="width: 64px; height: 29px; position: static;" class="tool-li" areaid="30"><a id="ListR_2070_refreshbut" class="list-bt-add" title="刷   新" onclick="javascript:DcxCom.ReLoad(2070,''ListR_'');" href="javascript:void(0);">刷 新</a></li><li style="position: static;" class="tool-li" areaid="28"><a id="ListR_2070_deletebut" class="list-bt-other" title="删   除" onclick="javascript:DcxReport.DeleteDatas(2070,''ListR_'');" href="javascript:void(0);">删 除</a></li><!--分页栏-->
<li style="width: 160px; height: 24px; position: static;" id="li2_ListR_2070" class="pages" areaid="31"><a id="ListR_2070_PrevPage" class="list-pages list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(2070,''ListR_'',''p'');" href="javascript:void(0);" isfirstpage="1">上一页</a> <span class="ddl_pageindex list-pagesdown"><select id="ddl_ListR_2070_PageIndex" onchange="javascript:DcxSch.GetHtml(2070,''ListR_'',''a'',this);" isddlpage="1"></select> </span><a id="ListR_2070_NextPage" class="list-pages list-nextpage" title="下一页" onclick="javascript:DcxSch.GetHtml(2070,''ListR_'',''n'');" href="javascript:void(0);" isnextpage="1">下一页</a> <span class="list-data-amount">共</span>&nbsp; <span id="ListR_2070_RecCount_lbl" class="list-data-amount" isrecortcount="1">0</span> <span class="list-data-amount">条记录</span></li></ul></div><!-- 列表主体-->
<div class="list-area dcx-scroll">
<div class="list-head">
<ul style="width: 836px; border-left-width: 0px; overflow: hidden;" class="list-head-ul" isgroup="1" groupid="3" isrple="1">
<li style="float: left; border-left-width: 0px; height: 26px; clear: none; border-right-width: 0px; width: 32px; position: static;" class="list-if-select" areaid="32"><div class="list-li-field" style="padding-top:3px;">
	<input class="chPut ifselect" id="ckb_CheckAllListR_2070" onclick="javascript:DcxCom.CheckedAll(this,2070,''ListR_'');" rel="chkall" type="checkbox" value="on">
</div></li>
<li style="width: 50px; float: left; border-left-width: 0px; height: 26px; border-right-width: 0px; clear: none; position: static;" class="list-head-li" areaid="33"><div class="list-li-field" style="PADDING-TOP: 7px">
	<label istitle="1"><img src="/MyApp/NewMail/Images/ico_mailTitle.gif"></label></div>
</li>
<li style="width: 130px; float: left; border-left-width: 0px; height: 26px; border-right-width: 0px; clear: none; position: static;" class="list-head-li" areaid="35"><div class="list-li-field">
	<label istitle="1" style="line-height: 26px;">发送人</label></div>
</li><li style="width: 410px; float: left; border-left-width: 0px; height: 26px; border-right-width: 0px; clear: none; position: static;" class="list-head-li" areaid="34"><div class="list-li-field">
	<label istitle="1" style="line-height: 26px;">标题</label></div>
</li>

<li style="width: 180px; float: left; border-left-width: 0px; height: 26px; border-right-width: 0px; clear: right; position: static;" class="list-head-li" areaid="36"><div class="list-li-field">
	<label istitle="1" style="line-height: 26px;">发件时间</label></div>
</li></ul></div>
<div class="list-body">','',-1,4,-1,-1,1,'2070,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=215,[Report_EntId]=2070,[EntId]=2070,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="listreport">
<div class="toolbar">
<ul style="WIdTH: 810px" class="tool-ul" istoolbar="1" isgroup="1" groupid="2" isrple="1">
<li style="width: 64px; height: 29px; display: none; position: static;" class="tool-li" areaid="27"><a id="ListR_2070_btn_buildNew" class="list-bt-add" title="添   加" onclick="javascript:DcxCom.ShowAddDataDlg(2070,''ListR_'');" href="javascript:void(0);">添 加</a></li>

<li style="width: 64px; height: 29px; display: none; position: static;" class="tool-li" areaid="29"><a id="ListR_2070_ExportToExcelbut" class="list-bt-other" title="导   出" onclick="javascript:DcxCom.ExportExcel(2070,''ListR_'');" href="javascript:void(0);">导 出</a></li>
<li style="width: 64px; height: 29px; position: static;" class="tool-li" areaid="30"><a id="ListR_2070_refreshbut" class="list-bt-add" title="刷   新" onclick="javascript:DcxCom.ReLoad(2070,''ListR_'');" href="javascript:void(0);">刷 新</a></li><li style="position: static;" class="tool-li" areaid="28"><a id="ListR_2070_deletebut" class="list-bt-other" title="删   除" onclick="javascript:DcxReport.DeleteDatas(2070,''ListR_'');" href="javascript:void(0);">删 除</a></li><!--分页栏-->
<li style="width: 160px; height: 24px; position: static;" id="li2_ListR_2070" class="pages" areaid="31"><a id="ListR_2070_PrevPage" class="list-pages list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(2070,''ListR_'',''p'');" href="javascript:void(0);" isfirstpage="1">上一页</a> <span class="ddl_pageindex list-pagesdown"><select id="ddl_ListR_2070_PageIndex" onchange="javascript:DcxSch.GetHtml(2070,''ListR_'',''a'',this);" isddlpage="1"></select> </span><a id="ListR_2070_NextPage" class="list-pages list-nextpage" title="下一页" onclick="javascript:DcxSch.GetHtml(2070,''ListR_'',''n'');" href="javascript:void(0);" isnextpage="1">下一页</a> <span class="list-data-amount">共</span>&nbsp; <span id="ListR_2070_RecCount_lbl" class="list-data-amount" isrecortcount="1">0</span> <span class="list-data-amount">条记录</span></li></ul></div><!-- 列表主体-->
<div class="list-area dcx-scroll">
<div class="list-head">
<ul style="width: 836px; border-left-width: 0px; overflow: hidden;" class="list-head-ul" isgroup="1" groupid="3" isrple="1">
<li style="float: left; border-left-width: 0px; height: 26px; clear: none; border-right-width: 0px; width: 32px; position: static;" class="list-if-select" areaid="32"><div class="list-li-field" style="padding-top:3px;">
	<input class="chPut ifselect" id="ckb_CheckAllListR_2070" onclick="javascript:DcxCom.CheckedAll(this,2070,''ListR_'');" rel="chkall" type="checkbox" value="on">
</div></li>
<li style="width: 50px; float: left; border-left-width: 0px; height: 26px; border-right-width: 0px; clear: none; position: static;" class="list-head-li" areaid="33"><div class="list-li-field" style="PADDING-TOP: 7px">
	<label istitle="1"><img src="/MyApp/NewMail/Images/ico_mailTitle.gif"></label></div>
</li>
<li style="width: 130px; float: left; border-left-width: 0px; height: 26px; border-right-width: 0px; clear: none; position: static;" class="list-head-li" areaid="35"><div class="list-li-field">
	<label istitle="1" style="line-height: 26px;">发送人</label></div>
</li><li style="width: 410px; float: left; border-left-width: 0px; height: 26px; border-right-width: 0px; clear: none; position: static;" class="list-head-li" areaid="34"><div class="list-li-field">
	<label istitle="1" style="line-height: 26px;">标题</label></div>
</li>

<li style="width: 180px; float: left; border-left-width: 0px; height: 26px; border-right-width: 0px; clear: right; position: static;" class="list-head-li" areaid="36"><div class="list-li-field">
	<label istitle="1" style="line-height: 26px;">发件时间</label></div>
</li></ul></div>
<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2070,' where  [FldUId]='f3a06877-c3e1-ea89-0c26-0c932104c5b8' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='79997639-a65d-3fab-501e-f05fed350b71'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'79997639-a65d-3fab-501e-f05fed350b71',2070,2070,'00000000-0000-0000-0000-000000000000',23,'KeyFieldValue',2,1,'varchar',2,1,0,'','','','style="width: 836px; border-left-width: 0px;" class="list-body-ul" isgroup="1" groupid="4" isrple="1">
<li style="float: left; border-right-width: 0px; border-left-width: 0px; height: 40px; clear: none; width: 32px; position: static;" class="list-if-select" areaid="41">
<div class="list-li-field" style="padding-top:8px;">
	<input class="ckb_del" ctrlprex="ListR_" entid="2070" issyscheck="1" keyvalue="','',-1,4,-1,-1,1,'2070,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=2,[Report_EntId]=2070,[EntId]=2070,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=23,[FieldName]='KeyFieldValue',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='style="width: 836px; border-left-width: 0px;" class="list-body-ul" isgroup="1" groupid="4" isrple="1">
<li style="float: left; border-right-width: 0px; border-left-width: 0px; height: 40px; clear: none; width: 32px; position: static;" class="list-if-select" areaid="41">
<div class="list-li-field" style="padding-top:8px;">
	<input class="ckb_del" ctrlprex="ListR_" entid="2070" issyscheck="1" keyvalue="',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2070,' where  [FldUId]='79997639-a65d-3fab-501e-f05fed350b71' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='36a69777-becd-0c9d-75da-1cd6a3a9b7a2'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(12,'36a69777-becd-0c9d-75da-1cd6a3a9b7a2',2070,2070,'00000000-0000-0000-0000-000000000000',-1,'IsReaded',3,1,'varchar',2,1,0,'','','','" type="checkbox" value="on">
</div>
</li>
<li style="width: 50px; float: left; border-left-width: 0px; border-right-width: 0px; height: 40px; clear: none; position: static;" class="list-body-li" areaid="42"><div class="list-li-field" style="padding-top:6px;">
	<span isfield="1" entid="2070" fieldname="IsReaded" fldid="12" columntypeid="1" class="form-ctr">','',42,4,-1,-1,1,'2070,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=12,[Report_EntId]=2070,[EntId]=2070,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='IsReaded',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='" type="checkbox" value="on">
</div>
</li>
<li style="width: 50px; float: left; border-left-width: 0px; border-right-width: 0px; height: 40px; clear: none; position: static;" class="list-body-li" areaid="42"><div class="list-li-field" style="padding-top:6px;">
	<span isfield="1" entid="2070" fieldname="IsReaded" fldid="12" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=42,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2070,' where  [FldUId]='36a69777-becd-0c9d-75da-1cd6a3a9b7a2' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='67ceaf5a-754a-6b07-7763-71d827d66e23'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(49,'67ceaf5a-754a-6b07-7763-71d827d66e23',2070,2070,'00000000-0000-0000-0000-000000000000',3,'SenderUserName',4,1,'varchar',2,1,0,'','','','</span>
</div>
</li>
<li style="position: static; width: 130px; float: left; border-left-width: 0px; border-right-width: 0px; height: 40px; clear: none;" class="list-body-li" areaid="44"><div class="list-li-field" style="padding-top:4px;font-size:15px !important;font-weight: 700;color: #222;font-size:14px !important;">
	<span isfield="1" entid="2070" fieldname="SenderUserName" fldid="49" columntypeid="1" class="form-ctr">','',-1,4,-1,-1,1,'2070,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=49,[Report_EntId]=2070,[EntId]=2070,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='SenderUserName',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
</div>
</li>
<li style="position: static; width: 130px; float: left; border-left-width: 0px; border-right-width: 0px; height: 40px; clear: none;" class="list-body-li" areaid="44"><div class="list-li-field" style="padding-top:4px;font-size:15px !important;font-weight: 700;color: #222;font-size:14px !important;">
	<span isfield="1" entid="2070" fieldname="SenderUserName" fldid="49" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2070,' where  [FldUId]='67ceaf5a-754a-6b07-7763-71d827d66e23' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='fcc7eaea-ce8b-e61a-6288-7ef1e3d1d674'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(68,'fcc7eaea-ce8b-e61a-6288-7ef1e3d1d674',2070,2070,'00000000-0000-0000-0000-000000000000',1,'MailId',5,1,'int',1,1,0,'','','','</span>
</div></li><li style="position: static; width: 410px; float: left; border-left-width: 0px; border-right-width: 0px; height: 40px; clear: none;" class="list-body-li" areaid="43"><div class="list-li-field" style="padding-top:4px;text-align:left;padding-left:6px;">
	<a style="color: #222;font-weight: 700;font-size:15px !important;" href="/Template/default/Browse/Browse002.aspx?EntId=2070&amp;MenuId=3310&amp;mkfv=','',43,4,-1,-1,1,'2070,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=68,[Report_EntId]=2070,[EntId]=2070,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=1,[FieldName]='MailId',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
</div></li><li style="position: static; width: 410px; float: left; border-left-width: 0px; border-right-width: 0px; height: 40px; clear: none;" class="list-body-li" areaid="43"><div class="list-li-field" style="padding-top:4px;text-align:left;padding-left:6px;">
	<a style="color: #222;font-weight: 700;font-size:15px !important;" href="/Template/default/Browse/Browse002.aspx?EntId=2070&amp;MenuId=3310&amp;mkfv=',[LastHtml]='',[RowIndex]=43,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2070,' where  [FldUId]='fcc7eaea-ce8b-e61a-6288-7ef1e3d1d674' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='106852c9-1d73-605c-f2c2-00b2fd28d949'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(48,'106852c9-1d73-605c-f2c2-00b2fd28d949',2070,2070,'00000000-0000-0000-0000-000000000000',4,'Title',6,1,'varchar',2,1,0,'','','','" target="_blank"><span isfield="1" entid="2070" fieldname="Title" fldid="48" columntypeid="1" class="form-ctr">','',-1,4,-1,-1,1,'2070,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=48,[Report_EntId]=2070,[EntId]=2070,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=4,[FieldName]='Title',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='" target="_blank"><span isfield="1" entid="2070" fieldname="Title" fldid="48" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2070,' where  [FldUId]='106852c9-1d73-605c-f2c2-00b2fd28d949' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='753e527d-2c74-d394-068f-2aa5a5f936dc'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(45,'753e527d-2c74-d394-068f-2aa5a5f936dc',2070,2070,'00000000-0000-0000-0000-000000000000',6,'SenderDate',7,1,'datetime',3,1,0,'','','','</span>
 </a></div></li>

<li style="width: 180px; float: left; border-left-width: 0px; height: 40px; border-right-width: 0px; clear: right; position: static;" class="list-body-li" areaid="45"><div class="list-li-field" style="padding-top:4px;color: #bbb;font-size:14px !important;">
	<span isfield="1" entid="2070" fieldname="SenderDate" fldid="45" columntypeid="1" class="form-ctr">','',45,4,-1,-1,1,'2070,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=45,[Report_EntId]=2070,[EntId]=2070,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=6,[FieldName]='SenderDate',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='datetime',[FieldDataTypeId]=3,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
 </a></div></li>

<li style="width: 180px; float: left; border-left-width: 0px; height: 40px; border-right-width: 0px; clear: right; position: static;" class="list-body-li" areaid="45"><div class="list-li-field" style="padding-top:4px;color: #bbb;font-size:14px !important;">
	<span isfield="1" entid="2070" fieldname="SenderDate" fldid="45" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=45,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2070,' where  [FldUId]='753e527d-2c74-d394-068f-2aa5a5f936dc' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='897d80ad-5739-d77f-bb88-d02b0c0ec560'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(216,'897d80ad-5739-d77f-bb88-d02b0c0ec560',2070,2070,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',8,-1,'varchar',2,13,0,'','','','</span>

</div></li></ul>','</div></div></div><br>',-1,4,-1,-1,1,'2070,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=216,[Report_EntId]=2070,[EntId]=2070,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=8,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>

</div></li></ul>',[LastHtml]='</div></div></div><br>',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2070,' where  [FldUId]='897d80ad-5739-d77f-bb88-d02b0c0ec560' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=207

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=207  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(207,null,'Dcx_IMail','Dcx_IMail',1,0,0,0,0,0,30,1,3,'admin','2013-12-15 17:32:16',3,'admin','2013-12-15 17:32:16',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='Dcx_IMail',[DBTableByName]='Dcx_IMail',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=30,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:16',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:16',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=207 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18246,1,30,207,'int',1,1,1,'Dcx_IMail','MailId','MailId','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='MailId',[FieldByname]='MailId',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18247,2,30,207,'int',1,1,1,'Dcx_IMail','SenderUserId','SenderUserId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='SenderUserId',[FieldByname]='SenderUserId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18248,3,30,207,'varchar',2,1,1,'Dcx_IMail','SenderUserName','SenderUserName','',0,0,0,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='SenderUserName',[FieldByname]='SenderUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18249,4,30,207,'varchar',2,1,1,'Dcx_IMail','Title','Title','',0,0,0,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='Title',[FieldByname]='Title',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18250,5,30,207,'varchar',2,1,1,'Dcx_IMail','Body','Body','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='Body',[FieldByname]='Body',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18251,6,30,207,'datetime',3,1,1,'Dcx_IMail','SenderDate','SenderDate','',0,0,0,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='SenderDate',[FieldByname]='SenderDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18252,7,30,207,'bit',4,1,1,'Dcx_IMail','SendSms','SendSms','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='SendSms',[FieldByname]='SendSms',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18253,8,30,207,'bit',4,1,1,'Dcx_IMail','SendEMail','SendEMail','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='SendEMail',[FieldByname]='SendEMail',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18254,9,30,207,'varchar',2,1,1,'Dcx_IMail','SenderMsgFlag','SenderMsgFlag','',0,0,1,20,20,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='SenderMsgFlag',[FieldByname]='SenderMsgFlag',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=20,[Precision]=20,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18255,10,30,207,'varchar',2,1,1,'Dcx_IMail','ReceiverUserIds','ReceiverUserIds','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='ReceiverUserIds',[FieldByname]='ReceiverUserIds',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18256,11,30,207,'varchar',2,1,1,'Dcx_IMail','ReceiverUserNames','ReceiverUserNames','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='ReceiverUserNames',[FieldByname]='ReceiverUserNames',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18257,12,30,207,'varchar',2,1,1,'Dcx_IMail','ReadUserIds','ReadUserIds','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='ReadUserIds',[FieldByname]='ReadUserIds',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18258,13,30,207,'varchar',2,1,1,'Dcx_IMail','ReadUserNames','ReadUserNames','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='ReadUserNames',[FieldByname]='ReadUserNames',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18259,14,30,207,'varchar',2,1,1,'Dcx_IMail','DelUserIds','DelUserIds','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='DelUserIds',[FieldByname]='DelUserIds',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18260,15,30,207,'varchar',2,1,1,'Dcx_IMail','DeleteUseIds','DeleteUseIds','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='DeleteUseIds',[FieldByname]='DeleteUseIds',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18261,16,30,207,'bit',4,1,1,'Dcx_IMail','IsDeleted','IsDeleted','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='IsDeleted',[FieldByname]='IsDeleted',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18262,17,30,207,'bit',4,1,1,'Dcx_IMail','MeetReceipt','MeetReceipt','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='MeetReceipt',[FieldByname]='MeetReceipt',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18263,18,30,207,'bit',4,1,1,'Dcx_IMail','SendDcxSms','SendDcxSms','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='SendDcxSms',[FieldByname]='SendDcxSms',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18264,19,30,207,'bit',4,1,1,'Dcx_IMail','HaveAttachment','HaveAttachment','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='HaveAttachment',[FieldByname]='HaveAttachment',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18265,20,30,207,'tinyint',23,1,1,'Dcx_IMail','Flag','Flag','',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='Flag',[FieldByname]='Flag',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18266,21,30,207,'int',1,1,1,'Dcx_IMail','EntId','EntId','0',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='EntId',[FieldByname]='EntId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18267,22,30,207,'int',1,1,1,'Dcx_IMail','MenuId','MenuId','0',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='MenuId',[FieldByname]='MenuId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18268,23,30,207,'varchar',2,1,1,'Dcx_IMail','KeyFieldValue','KeyFieldValue','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='KeyFieldValue',[FieldByname]='KeyFieldValue',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=23 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 



Delete from [Dcx_EntityPrivilege]  where [EntId]=2071

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2071  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11105,-1,2071,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2071  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2071

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2071  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20537,30,3310,2071,73,3,14,3,10,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=3310,[TemplateId]=73,[ModuleId]=14,[GroupId]=3,[AreaId]=10,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2071  and  [ModuleTypeId]=3 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_AjaxForm_Run]  where [EntId]=2071

--Dcx_AjaxForm_Run
      if (select count(1) from [Dcx_AjaxForm_Run] where  [EntId]=2071  )<1 
      begin 
           Insert into [Dcx_AjaxForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('2654c441-0db7-d0d8-9b3a-eec47b4063f9','发邮件',2071,-1,'','',0,'<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>
<script src="/Js/Control/LTreeRList/LTreeRList.js"></script>','','DcxRun.AjaxF_2071= {"MenuId":3310,"MEntId":2071,"EntName":"发邮件","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2071":{"EntId":2071,"KeyFieldValue":"","DBTableName":"","KeyField":"MailId","KeydtId":2,"JoinKeyField":"MailId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""},"E2074":{"EntId":2074,"KeyFieldValue":"","DBTableName":"","KeyField":"AttachmentId","KeydtId":2,"JoinKeyField":"MailId","JKeydtId":2,"IsMEnt":false,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{
DcxForm.CreateHtmlEditor(''d2071_Body'',2071,''AjaxF_'',''Body'',690,350,false,1,false);

}


if(runObj.NoInit)
{
   entMsg.E2074.FormData=null;
   mEntMsg.RowCount=0;mEntMsg.RecortCount=0;entMsg.E2074.RowCount=0;

}

 DcxForm.InitSheetForm(2074,''AjaxF_'',entMsg.E2074.FormData,entMsg.E2074.$listContainer);
GetLinkCtrlData_AjaxF_2071_490(null,null);
GetLinkCtrlData_AjaxF_2071_491(null,null);


}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":24,"Ent":[{"EntId":2071,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,500}$","err":"限制0-500个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":2,"Vld":[{"Id":4,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":6,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":3,"Vld":[{"Id":7,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":8,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":4,"Vld":[]},{"FldId":5,"Vld":[]},{"FldId":6,"Vld":[{"Id":9,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":10,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-)) (20|21|22|23|[0-1]?\\d):[0-5]?\\d:[0-5]?\\d|((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))","err":"格式要求为日期时间格式：yyyy-mm-dd  hh:mm:ss","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":7,"Vld":[]},{"FldId":8,"Vld":[{"Id":11,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,500}$","err":"限制0-500个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":13,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":9,"Vld":[]},{"FldId":50,"Vld":[{"Id":23,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":79,"Vld":[{"Id":24,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,1000}$","err":"限制0-1000个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]}]},{"EntId":2074,"Fld":[{"FldId":10,"Vld":[{"Id":15,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":16,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":17,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":14,"Vld":[{"Id":19,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,300}$","err":"限制0-300个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":15,"Vld":[{"Id":20,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,300}$","err":"限制0-300个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":22,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]}]}]};
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_2071.EntMsg.E2071.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_IMail","EntId":2071,"KeyField":"MailId","MKeyField":"MailId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":1},"FieldDefine":{"Title":{"DtId":2,"DB":1,"CId":1,"FL":500},"SenderUserId":{"DtId":1,"DB":1,"CId":1,"FL":4},"SenderUserName":{"DtId":2,"DB":1,"CId":4,"FL":50},"SendSms":{"DtId":4,"DB":1,"CId":13,"FL":1},"SendEMail":{"DtId":4,"DB":1,"CId":13,"FL":1},"SenderDate":{"DtId":3,"DB":1,"CId":1,"FL":8},"MeetReceipt":{"DtId":4,"DB":1,"CId":13,"FL":1},"ReceiverUserIds":{"DtId":2,"DB":1,"CId":1,"FL":500},"Body":{"DtId":6,"DB":1,"CId":28,"FL":16},"ReadUserNames":{"DtId":2,"DB":1,"CId":1,"FL":1000}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_2071.EntMsg.E2071.GetDataRowModel=function()
{
    return {"Title":"","SenderUserId":-1,"SenderUserName":"","SendSms":false,"SendEMail":false,"SenderDate":new Date(),"MeetReceipt":false,"ReceiverUserIds":"","Body":"","ReadUserNames":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"MailId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
DcxRun.AjaxF_2071.EntMsg.E2074.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_IMail_Attachment","EntId":2074,"KeyField":"AttachmentId","MKeyField":"AttachmentId","MKeyValue":-1,"DataTypeId":2,"JoinKeyField":"MailId","JKeydtId":2,"OpType":1,"IsMEnt":false,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null},"FieldDefine":{"FilePath":{"DtId":2,"DB":1,"CId":33,"FL":300}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_2071.EntMsg.E2074.GetDataRowModel=function()
{
    return {"FilePath":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"AttachmentId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_AjaxF_2071_490(obj,curFieldName){
 var EntId=2071;
 var FldId=8;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''ReceiverUserIds'';
 var $formContainer=DcxForm.GetHtmlContainer(2071,''AjaxF_'');
 var $ddlContainer=null;
var strCode="'',''+''{@ReceiverUserIds2}''+'',''" ;
var v_f1=null;
if(''ReceiverUserIds2''==curFieldName)
  v_f1=DcxForm.GetBindingVCtrlValue($(obj));
else 
  v_f1=DcxForm.GetDdlValue(null,2071,''AjaxF_'',''ReceiverUserIds2'',40,$formContainer,false,false);
if(v_f1==null)
   v_f1='''';
strCode=strCode.replaceAll("{@ReceiverUserIds2}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d2071_ReceiverUserIds");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
function GetLinkCtrlData_AjaxF_2071_491(obj,curFieldName){
 var EntId=2071;
 var FldId=79;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''ReadUserNames'';
 var $formContainer=DcxForm.GetHtmlContainer(2071,''AjaxF_'');
 var $ddlContainer=null;
var strCode="''{@ReceiverUserIds2&}''" ;
var v_f1=null;
if(''ReceiverUserIds2''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,2071,''AjaxF_'',''ReceiverUserIds2'',40,$formContainer,false,true);
if(v_f1==null)
   v_f1='''';
strCode=strCode.replaceAll("{@ReceiverUserIds2&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d2071_ReadUserNames");
$AcceptObj.val(myVal);
$AcceptObj.change();
}



 function GetLinkCtrl_AjaxF_2074(obj,FieldName,EntId)
{

}
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_2071.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2071,''AjaxF_'',buildNew,closeDlg);

}','<$2071$>select [SenderUserName],[Title],[ReceiverUserIds],[ReadUserNames],[Body],[MeetReceipt],[SendSms],[SenderDate],[SenderUserId],[SendEMail],[MailId] from Dcx_IMail where [MailId]=''{$keyfieldvalue}''</$2071$><$2074$>select [FilePath],[AttachmentId],[MailId] from Dcx_IMail_Attachment where [MailId]=''{$mkeyValue}''</$2074$>',10,'','','','2071*MailId*2*MailId*2*Dcx_IMail*发邮件,2074*AttachmentId*2*MailId*2*Dcx_IMail_Attachment*邮件附件',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-24 6:43:03',3,'admin','2013-10-2 18:25:46',1)
      end
      else 
      begin 
           update [Dcx_AjaxForm_Run] set [FormId]='2654c441-0db7-d0d8-9b3a-eec47b4063f9',[FormName]='发邮件',[ModuleId]=-1,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>
<script src="/Js/Control/LTreeRList/LTreeRList.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.AjaxF_2071= {"MenuId":3310,"MEntId":2071,"EntName":"发邮件","CtrlPrex":"AjaxF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2071":{"EntId":2071,"KeyFieldValue":"","DBTableName":"","KeyField":"MailId","KeydtId":2,"JoinKeyField":"MailId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""},"E2074":{"EntId":2074,"KeyFieldValue":"","DBTableName":"","KeyField":"AttachmentId","KeydtId":2,"JoinKeyField":"MailId","JKeydtId":2,"IsMEnt":false,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{
DcxForm.CreateHtmlEditor(''d2071_Body'',2071,''AjaxF_'',''Body'',690,350,false,1,false);

}


if(runObj.NoInit)
{
   entMsg.E2074.FormData=null;
   mEntMsg.RowCount=0;mEntMsg.RecortCount=0;entMsg.E2074.RowCount=0;

}

 DcxForm.InitSheetForm(2074,''AjaxF_'',entMsg.E2074.FormData,entMsg.E2074.$listContainer);
GetLinkCtrlData_AjaxF_2071_490(null,null);
GetLinkCtrlData_AjaxF_2071_491(null,null);


}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":24,"Ent":[{"EntId":2071,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,500}$","err":"限制0-500个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":2,"Vld":[{"Id":4,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":6,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":3,"Vld":[{"Id":7,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":8,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":4,"Vld":[]},{"FldId":5,"Vld":[]},{"FldId":6,"Vld":[{"Id":9,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":10,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-)) (20|21|22|23|[0-1]?\\d):[0-5]?\\d:[0-5]?\\d|((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))","err":"格式要求为日期时间格式：yyyy-mm-dd  hh:mm:ss","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":7,"Vld":[]},{"FldId":8,"Vld":[{"Id":11,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,500}$","err":"限制0-500个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":13,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":9,"Vld":[]},{"FldId":50,"Vld":[{"Id":23,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":79,"Vld":[{"Id":24,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,1000}$","err":"限制0-1000个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]}]},{"EntId":2074,"Fld":[{"FldId":10,"Vld":[{"Id":15,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":16,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":17,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":14,"Vld":[{"Id":19,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,300}$","err":"限制0-300个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":15,"Vld":[{"Id":20,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,300}$","err":"限制0-300个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":22,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]}]}]};
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.AjaxF_2071.EntMsg.E2071.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_IMail","EntId":2071,"KeyField":"MailId","MKeyField":"MailId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":1},"FieldDefine":{"Title":{"DtId":2,"DB":1,"CId":1,"FL":500},"SenderUserId":{"DtId":1,"DB":1,"CId":1,"FL":4},"SenderUserName":{"DtId":2,"DB":1,"CId":4,"FL":50},"SendSms":{"DtId":4,"DB":1,"CId":13,"FL":1},"SendEMail":{"DtId":4,"DB":1,"CId":13,"FL":1},"SenderDate":{"DtId":3,"DB":1,"CId":1,"FL":8},"MeetReceipt":{"DtId":4,"DB":1,"CId":13,"FL":1},"ReceiverUserIds":{"DtId":2,"DB":1,"CId":1,"FL":500},"Body":{"DtId":6,"DB":1,"CId":28,"FL":16},"ReadUserNames":{"DtId":2,"DB":1,"CId":1,"FL":1000}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_2071.EntMsg.E2071.GetDataRowModel=function()
{
    return {"Title":"","SenderUserId":-1,"SenderUserName":"","SendSms":false,"SendEMail":false,"SenderDate":new Date(),"MeetReceipt":false,"ReceiverUserIds":"","Body":"","ReadUserNames":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"MailId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
DcxRun.AjaxF_2071.EntMsg.E2074.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_IMail_Attachment","EntId":2074,"KeyField":"AttachmentId","MKeyField":"AttachmentId","MKeyValue":-1,"DataTypeId":2,"JoinKeyField":"MailId","JKeydtId":2,"OpType":1,"IsMEnt":false,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null},"FieldDefine":{"FilePath":{"DtId":2,"DB":1,"CId":33,"FL":300}},"Data":{"Row":[]}};
}
DcxRun.AjaxF_2071.EntMsg.E2074.GetDataRowModel=function()
{
    return {"FilePath":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"AttachmentId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_AjaxF_2071_490(obj,curFieldName){
 var EntId=2071;
 var FldId=8;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''ReceiverUserIds'';
 var $formContainer=DcxForm.GetHtmlContainer(2071,''AjaxF_'');
 var $ddlContainer=null;
var strCode="'',''+''{@ReceiverUserIds2}''+'',''" ;
var v_f1=null;
if(''ReceiverUserIds2''==curFieldName)
  v_f1=DcxForm.GetBindingVCtrlValue($(obj));
else 
  v_f1=DcxForm.GetDdlValue(null,2071,''AjaxF_'',''ReceiverUserIds2'',40,$formContainer,false,false);
if(v_f1==null)
   v_f1='''';
strCode=strCode.replaceAll("{@ReceiverUserIds2}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d2071_ReceiverUserIds");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
function GetLinkCtrlData_AjaxF_2071_491(obj,curFieldName){
 var EntId=2071;
 var FldId=79;
 var CtrlPrex=''AjaxF_'';
 var FieldName=''ReadUserNames'';
 var $formContainer=DcxForm.GetHtmlContainer(2071,''AjaxF_'');
 var $ddlContainer=null;
var strCode="''{@ReceiverUserIds2&}''" ;
var v_f1=null;
if(''ReceiverUserIds2''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,2071,''AjaxF_'',''ReceiverUserIds2'',40,$formContainer,false,true);
if(v_f1==null)
   v_f1='''';
strCode=strCode.replaceAll("{@ReceiverUserIds2&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d2071_ReadUserNames");
$AcceptObj.val(myVal);
$AcceptObj.change();
}



 function GetLinkCtrl_AjaxF_2074(obj,FieldName,EntId)
{

}
/****************上：AJAX回调函数******************/


DcxRun.AjaxF_2071.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2071,''AjaxF_'',buildNew,closeDlg);

}',[LoadingSql]='<$2071$>select [SenderUserName],[Title],[ReceiverUserIds],[ReadUserNames],[Body],[MeetReceipt],[SendSms],[SenderDate],[SenderUserId],[SendEMail],[MailId] from Dcx_IMail where [MailId]=''{$keyfieldvalue}''</$2071$><$2074$>select [FilePath],[AttachmentId],[MailId] from Dcx_IMail_Attachment where [MailId]=''{$mkeyValue}''</$2074$>',[PageSize]=10,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='2071*MailId*2*MailId*2*Dcx_IMail*发邮件,2074*AttachmentId*2*MailId*2*Dcx_IMail_Attachment*邮件附件',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-24 6:43:03',[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-2 18:25:46',[AccountId]=1 where  [EntId]=2071 
      end




--Dcx_AjaxFormField_Run
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='9937273b-4163-bf13-f610-15ab8e2ebc6a'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'9937273b-4163-bf13-f610-15ab8e2ebc6a',2071,2071,'00000000-0000-0000-0000-000000000000','SenderUserName',2,2,3,'{$UserName}',0,9,1,0,4,1,-1,1,-1,1,0,'','','','{$username},','<div class="ajaxform ">
	<div class="div_top">
		<div class="Title-div">
			<ul class="ul-Title" groupid="5" isgroup="1" isrple="1">
				<li areaid="20" class="li-area-title" scroll="no" style="position: static;">
					<div class="form-Title5" id="div_head1">
						<span class="Title-name" id="h2_Title">发邮件</span></div>
				</li>
				<li areaid="21" class="li-area1" scroll="no" style="position: static;">
					<a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
				
				<li areaid="23" class="li-area1" scroll="no" style="width: 90px; height: 36px; position: static;">
					<a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(2071,''AjaxF_'');"><span class="op_bt_i">清空</span> </a></li><li areaid="22" class="li-area1" scroll="no" style="position: static; width: 90px; height: 36px;">
					<a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.AjaxF_2071.SubmitForm(false);"><span class="op_bt_i">发送</span> </a></li>
			</ul>
		</div>
		<div class="frame-div">
			<ul class="ul-mform" groupid="1" isgroup="1" style="width: 854px;" isrple="1">
				<li areaid="37" class="li-area" scroll="no" style="height: 38px; width: 852px; position: static;"><label class="area-title pad7" fldid="3" istitle="1" style="width:120px;">发送人</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d2071_SenderUserName" class="form-lbl" style="width:200px;" IsForField=1 EntId="2071" CId="4" FId="3" Vtp="0"  >','</span><input id="d2071_SenderUserName_hid" type="hidden"  EntId="2071" IsField=1 DBField=1 IsPost=1 FieldName="SenderUserName" dType="2" Vtp="0" RDT="2" Isc="1" RId="9" CId="4" FId="3" vlk=0    value="','" />',-1,-1,-1,-1,0,'2071,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=3,[Form_EntId]=2071,[EntId]=2071,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='SenderUserName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=3,[DefaultValue]='{$UserName}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$username},',[BeforeHtml]='<div class="ajaxform ">
	<div class="div_top">
		<div class="Title-div">
			<ul class="ul-Title" groupid="5" isgroup="1" isrple="1">
				<li areaid="20" class="li-area-title" scroll="no" style="position: static;">
					<div class="form-Title5" id="div_head1">
						<span class="Title-name" id="h2_Title">发邮件</span></div>
				</li>
				<li areaid="21" class="li-area1" scroll="no" style="position: static;">
					<a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
				
				<li areaid="23" class="li-area1" scroll="no" style="width: 90px; height: 36px; position: static;">
					<a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(2071,''AjaxF_'');"><span class="op_bt_i">清空</span> </a></li><li areaid="22" class="li-area1" scroll="no" style="position: static; width: 90px; height: 36px;">
					<a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.AjaxF_2071.SubmitForm(false);"><span class="op_bt_i">发送</span> </a></li>
			</ul>
		</div>
		<div class="frame-div">
			<ul class="ul-mform" groupid="1" isgroup="1" style="width: 854px;" isrple="1">
				<li areaid="37" class="li-area" scroll="no" style="height: 38px; width: 852px; position: static;"><label class="area-title pad7" fldid="3" istitle="1" style="width:120px;">发送人</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d2071_SenderUserName" class="form-lbl" style="width:200px;" IsForField=1 EntId="2071" CId="4" FId="3" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d2071_SenderUserName_hid" type="hidden"  EntId="2071" IsField=1 DBField=1 IsPost=1 FieldName="SenderUserName" dType="2" Vtp="0" RDT="2" Isc="1" RId="9" CId="4" FId="3" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2071,' where  [FldUId]='9937273b-4163-bf13-f610-15ab8e2ebc6a' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='f66a380f-6404-308e-fbb5-e0207c2fe5f1'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'f66a380f-6404-308e-fbb5-e0207c2fe5f1',2071,2071,'00000000-0000-0000-0000-000000000000','Title',2,2,4,'',5,1,1,0,1,1,-1,2,-1,1,0,'','','','','</span>





</div></li><li areaid="24" class="li-area" scroll="no" style="height: 38px; width: 852px; position: static;"><label class="area-title pad7" fldid="1" istitle="1" style="width:120px;">主题</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2071_Title"   type="text" class="form-txt"  style="width:500px;" onblur ="javascript:if(!DcxVld.Validate(this,2071,''AjaxF_'',2071,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2071,''AjaxF_'',2071);" EntId="2071" IsField=1 DBField=1 IsPost=1 FieldName="Title" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2071,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=1,[Form_EntId]=2071,[EntId]=2071,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='Title',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=4,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=2,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>





</div></li><li areaid="24" class="li-area" scroll="no" style="height: 38px; width: 852px; position: static;"><label class="area-title pad7" fldid="1" istitle="1" style="width:120px;">主题</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2071_Title"   type="text" class="form-txt"  style="width:500px;" onblur ="javascript:if(!DcxVld.Validate(this,2071,''AjaxF_'',2071,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2071,''AjaxF_'',2071);" EntId="2071" IsField=1 DBField=1 IsPost=1 FieldName="Title" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2071,' where  [FldUId]='f66a380f-6404-308e-fbb5-e0207c2fe5f1' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='454bdb8a-f27c-b689-cf04-d00e6cbec27e'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(50,'454bdb8a-f27c-b689-cf04-d00e6cbec27e',2071,2071,'00000000-0000-0000-0000-000000000000','ReceiverUserIds2',2,2,-1,'',5,2,1,0,40,3,-1,3,29,0,0,'','','','','</span>
</div>
</li><li areaid="41" class="li-area" scroll="no" style="height: 38px; width: 852px; position: static;"><label class="area-title pad7" fldid="8" istitle="1" style="width:120px;">收件人</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<div id="d2071_ReceiverUserIds2" class="form-ddl" style="" CBack=1  IsForField=1 EntId="2071" FId="50" Vtp="5" RId="2" Isc="1" CId="40" FieldName="ReceiverUserIds2" ><input  id="d2071_ReceiverUserIds2_Text" type="text" class="form-ddl-txt" readonly="readOnly"  CId="40" FId="50" Vtp="5"  RId="2" Isc="1"  style="width:500px;" onclick ="javascript:DcxTree.ShowDialogAf(this,29,2071,''ReceiverUserIds2'',false);" onchange ="javascript:GetLinkCtrlData_AjaxF_2071_490(this,''ReceiverUserIds2'');GetLinkCtrlData_AjaxF_2071_491(this,''ReceiverUserIds2'');if(!DcxVld.Validate(this,2071,''AjaxF_'',2071,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2071,''AjaxF_'',2071);" onkeyup ="javascript:DcxTree.ShowDialogAf(this,29,2071,''ReceiverUserIds2'',true);" CBack=1  value="','" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2071_ReceiverUserIds2_hid" type="hidden"  EntId="2071" IsField=1 DBField=0 IsPost=0 FieldName="ReceiverUserIds2" dType="2" Vtp="5" RDT="2" Isc="1" RId="2" CId="40" FId="50" vlk=0   TId=29  TFN="ReadUserNames"  value="','" />',1,41,-1,-1,0,'2071,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=50,[Form_EntId]=2071,[EntId]=2071,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='ReceiverUserIds2',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=2,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=40,[FieldTypeId]=3,[RepeatColumns]=-1,[FieldNO]=3,[TreeId]=29,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li areaid="41" class="li-area" scroll="no" style="height: 38px; width: 852px; position: static;"><label class="area-title pad7" fldid="8" istitle="1" style="width:120px;">收件人</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2071_ReceiverUserIds2" class="form-ddl" style="" CBack=1  IsForField=1 EntId="2071" FId="50" Vtp="5" RId="2" Isc="1" CId="40" FieldName="ReceiverUserIds2" ><input  id="d2071_ReceiverUserIds2_Text" type="text" class="form-ddl-txt" readonly="readOnly"  CId="40" FId="50" Vtp="5"  RId="2" Isc="1"  style="width:500px;" onclick ="javascript:DcxTree.ShowDialogAf(this,29,2071,''ReceiverUserIds2'',false);" onchange ="javascript:GetLinkCtrlData_AjaxF_2071_490(this,''ReceiverUserIds2'');GetLinkCtrlData_AjaxF_2071_491(this,''ReceiverUserIds2'');if(!DcxVld.Validate(this,2071,''AjaxF_'',2071,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2071,''AjaxF_'',2071);" onkeyup ="javascript:DcxTree.ShowDialogAf(this,29,2071,''ReceiverUserIds2'',true);" CBack=1  value="',[CtrlbackHtml]='" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2071_ReceiverUserIds2_hid" type="hidden"  EntId="2071" IsField=1 DBField=0 IsPost=0 FieldName="ReceiverUserIds2" dType="2" Vtp="5" RDT="2" Isc="1" RId="2" CId="40" FId="50" vlk=0   TId=29  TFN="ReadUserNames"  value="',[CtrlLastHtml]='" />',[TableIndex]=1,[RowIndex]=41,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2071,' where  [FldUId]='454bdb8a-f27c-b689-cf04-d00e6cbec27e' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='05fe56b4-d56c-4dcb-da74-9533c9a452ea'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'05fe56b4-d56c-4dcb-da74-9533c9a452ea',2071,2071,'00000000-0000-0000-0000-000000000000','ReceiverUserIds',2,2,10,'',3,1,1,0,1,1,-1,4,-1,1,0,'','','','','</span>


 <span class="form-ctr" isfcontain="1">','','','','<input  id="d2071_ReceiverUserIds"   type="text" class="form-txt hide"  style="width:40px;display:none;" onblur ="javascript:if(!DcxVld.Validate(this,2071,''AjaxF_'',2071,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2071,''AjaxF_'',2071);" EntId="2071" IsField=1 DBField=1 IsPost=1 FieldName="ReceiverUserIds" dType="2" Vtp="3" RDT="2" Isc="1" RId="1" CId="1" FId="8" vlk=0   TId=29  value="','"/>','',-1,-1,-1,-1,0,'2071,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=8,[Form_EntId]=2071,[EntId]=2071,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='ReceiverUserIds',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=10,[DefaultValue]='',[ValueType]=3,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=4,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>


 <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2071_ReceiverUserIds"   type="text" class="form-txt hide"  style="width:40px;display:none;" onblur ="javascript:if(!DcxVld.Validate(this,2071,''AjaxF_'',2071,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2071,''AjaxF_'',2071);" EntId="2071" IsField=1 DBField=1 IsPost=1 FieldName="ReceiverUserIds" dType="2" Vtp="3" RDT="2" Isc="1" RId="1" CId="1" FId="8" vlk=0   TId=29  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2071,' where  [FldUId]='05fe56b4-d56c-4dcb-da74-9533c9a452ea' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='3b23556b-93a8-93b8-2cfc-30b36114a53f'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(79,'3b23556b-93a8-93b8-2cfc-30b36114a53f',2071,2071,'00000000-0000-0000-0000-000000000000','ReadUserNames',2,2,13,'',3,1,1,0,1,1,-1,5,-1,1,0,'','','','','</span>


<span class="form-ctr" isfcontain="1">','','','','<input  id="d2071_ReadUserNames"   type="text" class="form-txt hide"  style="width:40px;display:none;" onblur ="javascript:if(!DcxVld.Validate(this,2071,''AjaxF_'',2071,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2071,''AjaxF_'',2071);" EntId="2071" IsField=1 DBField=1 IsPost=1 FieldName="ReadUserNames" dType="2" Vtp="3" RDT="2" Isc="1" RId="1" CId="1" FId="79" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2071,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=79,[Form_EntId]=2071,[EntId]=2071,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='ReadUserNames',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=13,[DefaultValue]='',[ValueType]=3,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=5,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>


<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2071_ReadUserNames"   type="text" class="form-txt hide"  style="width:40px;display:none;" onblur ="javascript:if(!DcxVld.Validate(this,2071,''AjaxF_'',2071,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2071,''AjaxF_'',2071);" EntId="2071" IsField=1 DBField=1 IsPost=1 FieldName="ReadUserNames" dType="2" Vtp="3" RDT="2" Isc="1" RId="1" CId="1" FId="79" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2071,' where  [FldUId]='3b23556b-93a8-93b8-2cfc-30b36114a53f' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='1e1ea291-a5e5-a107-5b8a-e85de8623f05'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'1e1ea291-a5e5-a107-5b8a-e85de8623f05',2071,2071,'00000000-0000-0000-0000-000000000000','Body',6,2,5,'',5,5,1,0,28,1,-1,6,-1,1,0,'','','','','</span>



	<div class="form-vld" iserr="1">
		&nbsp;</div>
	</div>
</li>
				<li areaid="42" class="li-area" scroll="no" style="height: 420px; width: 852px; position: static;"><label class="area-title pad7" fldid="9" istitle="1" style="width:120px;">内容</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<textarea  id="d2071_Body" class="form-txts"  style="width:690px;height:350px;" EntId="2071" IsField=1 DBField=1 IsPost=1 FieldName="Body" dType="6" Vtp="5" RDT="2" Isc="1" RId="5" CId="28" FId="9" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'2071,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=9,[Form_EntId]=2071,[EntId]=2071,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='Body',[FieldDataTypeId]=6,[RunDataTypeId]=2,[DBFieldId]=5,[DefaultValue]='',[ValueType]=5,[RunValueType]=5,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=28,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=6,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>



	<div class="form-vld" iserr="1">
		&nbsp;</div>
	</div>
</li>
				<li areaid="42" class="li-area" scroll="no" style="height: 420px; width: 852px; position: static;"><label class="area-title pad7" fldid="9" istitle="1" style="width:120px;">内容</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d2071_Body" class="form-txts"  style="width:690px;height:350px;" EntId="2071" IsField=1 DBField=1 IsPost=1 FieldName="Body" dType="6" Vtp="5" RDT="2" Isc="1" RId="5" CId="28" FId="9" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2071,' where  [FldUId]='1e1ea291-a5e5-a107-5b8a-e85de8623f05' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='93ddae45-6951-31c6-30f3-16fa77c7b936'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(100,'93ddae45-6951-31c6-30f3-16fa77c7b936',2071,2074,'00000000-0000-0000-0000-000000000000','CEntBegin',-1,2,-1,'',5,-1,1,0,-1,10,-1,7,-1,0,0,'','','','','</span>

<div iserr="1" class="form-vld"></div>









</div></li><li entname="邮件附件" class="li-area w958" areaid="45" style="width: 852px; position: static;" scroll="no"><div class="field-content pad7" entid="2074" ischildentity="1">
	<!-- 开始 -->
	<div class="child-Title" style="display:none;">
		<span class="group-Title pad7" istitle="1">邮件附件 </span></div>
	<!-- 功能键栏 -->
	<div class="ajaxform toolbar-opt">
		<!--功能键栏-->
		<ul class="ul-toolbar repUl1" groupid="6" isgroup="1" istoolbar="1" isrple="1">
			<li areaid="47" class="list-tit" scroll="no" style="width: 77px; height: 25px; position: static;">
				<a class="lform-bt-add" href="javascript:void(0);" id="AjaxF_2074_btn_buildNew" onclick="javascript:DcxForm.AddRow(this,1,2074,''AjaxF_'');" title="添   加">添加附件</a></li>
			<li areaid="50" class="list-tit" scroll="no" style="width: 98px; height: 25px; position: static;">
				<a class="lform-bt-delete" href="javascript:void(0);" id="AjaxF_2074_deletebut" onclick="javascript:DcxForm.DeleteRow(this,2074,''AjaxF_'');" title="删   除">删除附件</a></li>
		</ul>
	</div>
	<div class="ajaxform listarea">
		<div class="lf-head">
			<ul class="ul-listTitle" groupid="7" isgroup="1" islisthead="1" islonly="1" style="display: none; width: 644px;" isrple="1">
				<li areaid="53" class="li-head-item" scroll="no" style="width: 270px; height: 30px; clear: none; float: left; display: none; position: static;">
					<label class="head-label" istitle="1">文件名称 </label></li>
				<li areaid="55" class="li-head-item" scroll="no" style="width: 370px; height: 30px; clear: right; float: left; display: none; position: static;">
					<label class="head-label" istitle="1">上传附件</label></li>
			</ul>
		</div>
		<div class="lf-Body">','','','','','','',8,-1,-1,-1,1,'2074,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=100,[Form_EntId]=2071,[EntId]=2074,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='CEntBegin',[FieldDataTypeId]=-1,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=-1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=-1,[FieldTypeId]=10,[RepeatColumns]=-1,[FieldNO]=7,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

<div iserr="1" class="form-vld"></div>









</div></li><li entname="邮件附件" class="li-area w958" areaid="45" style="width: 852px; position: static;" scroll="no"><div class="field-content pad7" entid="2074" ischildentity="1">
	<!-- 开始 -->
	<div class="child-Title" style="display:none;">
		<span class="group-Title pad7" istitle="1">邮件附件 </span></div>
	<!-- 功能键栏 -->
	<div class="ajaxform toolbar-opt">
		<!--功能键栏-->
		<ul class="ul-toolbar repUl1" groupid="6" isgroup="1" istoolbar="1" isrple="1">
			<li areaid="47" class="list-tit" scroll="no" style="width: 77px; height: 25px; position: static;">
				<a class="lform-bt-add" href="javascript:void(0);" id="AjaxF_2074_btn_buildNew" onclick="javascript:DcxForm.AddRow(this,1,2074,''AjaxF_'');" title="添   加">添加附件</a></li>
			<li areaid="50" class="list-tit" scroll="no" style="width: 98px; height: 25px; position: static;">
				<a class="lform-bt-delete" href="javascript:void(0);" id="AjaxF_2074_deletebut" onclick="javascript:DcxForm.DeleteRow(this,2074,''AjaxF_'');" title="删   除">删除附件</a></li>
		</ul>
	</div>
	<div class="ajaxform listarea">
		<div class="lf-head">
			<ul class="ul-listTitle" groupid="7" isgroup="1" islisthead="1" islonly="1" style="display: none; width: 644px;" isrple="1">
				<li areaid="53" class="li-head-item" scroll="no" style="width: 270px; height: 30px; clear: none; float: left; display: none; position: static;">
					<label class="head-label" istitle="1">文件名称 </label></li>
				<li areaid="55" class="li-head-item" scroll="no" style="width: 370px; height: 30px; clear: right; float: left; display: none; position: static;">
					<label class="head-label" istitle="1">上传附件</label></li>
			</ul>
		</div>
		<div class="lf-Body">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='',[CtrlbackHtml]='',[CtrlLastHtml]='',[TableIndex]=8,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2074,' where  [FldUId]='93ddae45-6951-31c6-30f3-16fa77c7b936' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='ec6c5603-f125-b2a1-54f4-3f8183828bfc'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(15,'ec6c5603-f125-b2a1-54f4-3f8183828bfc',2071,2074,'00000000-0000-0000-0000-000000000000','FilePath',2,2,3,'',5,10,1,0,33,1,-1,8,-1,1,0,'','','','','class="ul-listfield" groupid="8" isgroup="1" islonly="1" style="width: 720px; border-width: 0px;" isrple="1"><li areaid="56" class="li-listfield" scroll="no" style="border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; width: 718px; height: 55px; position: static; clear: right; float: left;">
					<div class="list-field">
						<span class="form-ctr" isfcontain="1">','','','<div id="d2074_FilePath%trindex%" CtrlPrex="AjaxF_"','class="form-upimg" style="width:200px;" IsForField=1 EntId="2074" FId="15" Vtp="5" RId="10" Isc="1" CId="33" FieldName="FilePath"  onclick ="javascript:DcxVld.Validate(this,2074,''AjaxF_'',2071);" onfocus ="javascript:DcxVld.ValidateFocus(this,2074,''AjaxF_'',2071);"><div class="upfile"> <a href="javascript:void(0);" iconcls="icon-add">
<span class="upfile-left"><span class="upfile-text icon-add">上传文件</span></span>
</a>
<div class="file">
<input id="d2074_FilePath%trindex%_file" name="d2074_FilePath%trindex%_file" type="file"  onclick ="javascript:RememberUpFile(this,2074,''AjaxF_'',true,false);" onchange ="javascript:ChangeUpFile(this,2074,''AjaxF_'',true,false);"/>
</div>
</div> </div> <input id="d2074_FilePath%trindex%_hid" CtrlPrex="AjaxF_" type="hidden"  EntId="2074" IsField=1 DBField=1 IsPost=1 FieldName="FilePath" dType="2" Vtp="5" RDT="2" Isc="1" RId="10" CId="33" FId="15" vlk=0   />','','',8,-1,-1,-1,1,'2074,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=15,[Form_EntId]=2071,[EntId]=2074,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='FilePath',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=3,[DefaultValue]='',[ValueType]=5,[RunValueType]=10,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=33,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=8,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='class="ul-listfield" groupid="8" isgroup="1" islonly="1" style="width: 720px; border-width: 0px;" isrple="1"><li areaid="56" class="li-listfield" scroll="no" style="border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; width: 718px; height: 55px; position: static; clear: right; float: left;">
					<div class="list-field">
						<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='<div id="d2074_FilePath%trindex%" CtrlPrex="AjaxF_"',[CtrlfrontHtml]='class="form-upimg" style="width:200px;" IsForField=1 EntId="2074" FId="15" Vtp="5" RId="10" Isc="1" CId="33" FieldName="FilePath"  onclick ="javascript:DcxVld.Validate(this,2074,''AjaxF_'',2071);" onfocus ="javascript:DcxVld.ValidateFocus(this,2074,''AjaxF_'',2071);"><div class="upfile"> <a href="javascript:void(0);" iconcls="icon-add">
<span class="upfile-left"><span class="upfile-text icon-add">上传文件</span></span>
</a>
<div class="file">
<input id="d2074_FilePath%trindex%_file" name="d2074_FilePath%trindex%_file" type="file"  onclick ="javascript:RememberUpFile(this,2074,''AjaxF_'',true,false);" onchange ="javascript:ChangeUpFile(this,2074,''AjaxF_'',true,false);"/>
</div>
</div> </div> <input id="d2074_FilePath%trindex%_hid" CtrlPrex="AjaxF_" type="hidden"  EntId="2074" IsField=1 DBField=1 IsPost=1 FieldName="FilePath" dType="2" Vtp="5" RDT="2" Isc="1" RId="10" CId="33" FId="15" vlk=0   />',[CtrlbackHtml]='',[CtrlLastHtml]='',[TableIndex]=8,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2074,' where  [FldUId]='ec6c5603-f125-b2a1-54f4-3f8183828bfc' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='284333e5-ccec-8b96-8489-198abf05157a'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(101,'284333e5-ccec-8b96-8489-198abf05157a',2071,2074,'00000000-0000-0000-0000-000000000000','CEntEnd',-1,2,-1,'',5,-1,1,0,-1,11,-1,9,-1,0,0,'','','','','</span>








						<div class="form-vld" iserr="1">
							&nbsp;</div>
					</div>
				</li>
				
				
			</ul>','','','','','','',8,-1,-1,-1,1,'2074,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=101,[Form_EntId]=2071,[EntId]=2074,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='CEntEnd',[FieldDataTypeId]=-1,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=-1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=-1,[FieldTypeId]=11,[RepeatColumns]=-1,[FieldNO]=9,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>








						<div class="form-vld" iserr="1">
							&nbsp;</div>
					</div>
				</li>
				
				
			</ul>',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='',[CtrlbackHtml]='',[CtrlLastHtml]='',[TableIndex]=8,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2074,' where  [FldUId]='284333e5-ccec-8b96-8489-198abf05157a' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='68f9789e-3f72-b7fd-e4cc-713902f425ba'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'68f9789e-3f72-b7fd-e4cc-713902f425ba',2071,2071,'00000000-0000-0000-0000-000000000000','MeetReceipt',4,4,17,'',1,6,1,0,13,1,-1,10,-1,1,0,'','','','','</div>
	</div>
	<!-- 结束 --></div>
</li><li areaid="39" class="li-area" scroll="no" style="height: 38px; width: 395px; position: static;"><label class="area-title pad7" fldid="7" istitle="1" style="width:120px;">是否需要回执</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<div class="form-radio" ><span class="form-radio-item" ><input id="d2071_MeetReceipt"  name="d2071_MeetReceipt" type="checkbox" class="form-ckb" yesv=''1'' nov=''0''  EntId="2071" IsField=1 DBField=1 IsPost=1 FieldName="MeetReceipt" dType="4" Vtp="1" RDT="4" Isc="1" RId="6" CId="13" FId="7" vlk=0','/><label for="d2071_MeetReceipt">需要</label></span></div>','',-1,-1,-1,-1,0,'2071,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=7,[Form_EntId]=2071,[EntId]=2071,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='MeetReceipt',[FieldDataTypeId]=4,[RunDataTypeId]=4,[DBFieldId]=17,[DefaultValue]='',[ValueType]=1,[RunValueType]=6,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=13,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=10,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</div>
	</div>
	<!-- 结束 --></div>
</li><li areaid="39" class="li-area" scroll="no" style="height: 38px; width: 395px; position: static;"><label class="area-title pad7" fldid="7" istitle="1" style="width:120px;">是否需要回执</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-radio" ><span class="form-radio-item" ><input id="d2071_MeetReceipt"  name="d2071_MeetReceipt" type="checkbox" class="form-ckb" yesv=''1'' nov=''0''  EntId="2071" IsField=1 DBField=1 IsPost=1 FieldName="MeetReceipt" dType="4" Vtp="1" RDT="4" Isc="1" RId="6" CId="13" FId="7" vlk=0',[CtrlbackHtml]='/><label for="d2071_MeetReceipt">需要</label></span></div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2071,' where  [FldUId]='68f9789e-3f72-b7fd-e4cc-713902f425ba' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='77fec042-64c8-b569-0cd1-ab8d6977b164'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'77fec042-64c8-b569-0cd1-ab8d6977b164',2071,2071,'00000000-0000-0000-0000-000000000000','SendSms',4,4,7,'',1,6,1,0,13,1,-1,11,-1,1,0,'','','','','</span>




</div></li><li areaid="36" class="li-area" scroll="no" style="height: 38px; width: 455px; position: static;"><label class="area-title pad7" fldid="4" istitle="1" style="width:120px;">是否发送短信</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<div class="form-radio" ><span class="form-radio-item" ><input id="d2071_SendSms"  name="d2071_SendSms" type="checkbox" class="form-ckb" yesv=''1'' nov=''0''  EntId="2071" IsField=1 DBField=1 IsPost=1 FieldName="SendSms" dType="4" Vtp="1" RDT="4" Isc="1" RId="6" CId="13" FId="4" vlk=0','/><label for="d2071_SendSms">需要</label></span></div>','',-1,-1,-1,-1,0,'2071,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=4,[Form_EntId]=2071,[EntId]=2071,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='SendSms',[FieldDataTypeId]=4,[RunDataTypeId]=4,[DBFieldId]=7,[DefaultValue]='',[ValueType]=1,[RunValueType]=6,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=13,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=11,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>




</div></li><li areaid="36" class="li-area" scroll="no" style="height: 38px; width: 455px; position: static;"><label class="area-title pad7" fldid="4" istitle="1" style="width:120px;">是否发送短信</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-radio" ><span class="form-radio-item" ><input id="d2071_SendSms"  name="d2071_SendSms" type="checkbox" class="form-ckb" yesv=''1'' nov=''0''  EntId="2071" IsField=1 DBField=1 IsPost=1 FieldName="SendSms" dType="4" Vtp="1" RDT="4" Isc="1" RId="6" CId="13" FId="4" vlk=0',[CtrlbackHtml]='/><label for="d2071_SendSms">需要</label></span></div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2071,' where  [FldUId]='77fec042-64c8-b569-0cd1-ab8d6977b164' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='d888e7c6-14b7-16ae-50f4-9004441898f6'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'d888e7c6-14b7-16ae-50f4-9004441898f6',2071,2071,'00000000-0000-0000-0000-000000000000','SenderDate',3,3,6,'{$datetime}',0,1,1,0,1,1,-1,12,-1,1,0,'','','','{$datetime},','</span>





</div></li><li areaid="44" class="li-area" scroll="no" style="height: 38px; width: 852px; position: static; display: none;"><label class="area-title pad7" fldid="-1" istitle="1" style="width:120px;">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div></li><li areaid="40" class="li-area" scroll="no" style="height: 38px; width: 395px; position: static; display: none;"><label class="area-title pad7" fldid="6" istitle="1" style="width:120px;">发送时间</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2071_SenderDate"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2071,''AjaxF_'',2071,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2071,''AjaxF_'',2071);" EntId="2071" IsField=1 DBField=1 IsPost=1 FieldName="SenderDate" dType="3" Vtp="0" RDT="3" Isc="1" RId="1" CId="1" FId="6" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2071,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=6,[Form_EntId]=2071,[EntId]=2071,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='SenderDate',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=6,[DefaultValue]='{$datetime}',[ValueType]=0,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=12,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$datetime},',[BeforeHtml]='</span>





</div></li><li areaid="44" class="li-area" scroll="no" style="height: 38px; width: 852px; position: static; display: none;"><label class="area-title pad7" fldid="-1" istitle="1" style="width:120px;">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div></li><li areaid="40" class="li-area" scroll="no" style="height: 38px; width: 395px; position: static; display: none;"><label class="area-title pad7" fldid="6" istitle="1" style="width:120px;">发送时间</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2071_SenderDate"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2071,''AjaxF_'',2071,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2071,''AjaxF_'',2071);" EntId="2071" IsField=1 DBField=1 IsPost=1 FieldName="SenderDate" dType="3" Vtp="0" RDT="3" Isc="1" RId="1" CId="1" FId="6" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2071,' where  [FldUId]='d888e7c6-14b7-16ae-50f4-9004441898f6' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='eee18264-340c-fb5e-8d4b-3488147aa6df'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'eee18264-340c-fb5e-8d4b-3488147aa6df',2071,2071,'00000000-0000-0000-0000-000000000000','SenderUserId',1,1,2,'{$userId}',0,1,1,0,1,1,-1,13,-1,1,0,'','','','{$userId},','</span>


</div></li><li areaid="38" class="li-area" scroll="no" style="height: 38px; width: 395px; display: none; position: static;"><label class="area-title pad7" fldid="2" istitle="1" style="width:120px;">发送人ID</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2071_SenderUserId"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2071,''AjaxF_'',2071,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2071,''AjaxF_'',2071);" EntId="2071" IsField=1 DBField=1 IsPost=1 FieldName="SenderUserId" dType="1" Vtp="0" RDT="1" Isc="1" RId="1" CId="1" FId="2" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2071,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=2,[Form_EntId]=2071,[EntId]=2071,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='SenderUserId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=2,[DefaultValue]='{$userId}',[ValueType]=0,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=13,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$userId},',[BeforeHtml]='</span>


</div></li><li areaid="38" class="li-area" scroll="no" style="height: 38px; width: 395px; display: none; position: static;"><label class="area-title pad7" fldid="2" istitle="1" style="width:120px;">发送人ID</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2071_SenderUserId"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2071,''AjaxF_'',2071,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2071,''AjaxF_'',2071);" EntId="2071" IsField=1 DBField=1 IsPost=1 FieldName="SenderUserId" dType="1" Vtp="0" RDT="1" Isc="1" RId="1" CId="1" FId="2" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2071,' where  [FldUId]='eee18264-340c-fb5e-8d4b-3488147aa6df' 
      end
      if (select count(1) from [Dcx_AjaxFormField_Run] where  [FldUId]='37130d48-ebf2-ec16-ec72-ab595da51c73'  )<1 
      begin 
           Insert into [Dcx_AjaxFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[FieldNO],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'37130d48-ebf2-ec16-ec72-ab595da51c73',2071,2071,'00000000-0000-0000-0000-000000000000','SendEMail',4,4,8,'',1,6,1,0,13,1,-1,14,-1,1,0,'','','','','</span>




</div></li><li areaid="35" class="li-area" scroll="no" style="height: 38px; width: 395px; display: none; position: static;"><label class="area-title pad7" fldid="5" istitle="1" style="width:120px;">是否立刻发送</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','</span>


</div></li><li areaid="43" class="li-area" scroll="no" style="height: 38px; width: 395px; position: static; display: none;"><label class="area-title pad7" fldid="-1" istitle="1" style="width:120px;">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div></li>
			</ul>
		</div>
		<div class="div_tabs" style="display:none;">
			<ul class="tab_ul" groupid="2" isgroup="1" islonly="1" istab="1" style="" isrple="1">
				<li areaid="26" class="ui-droppable  li-tab de-selected" istab="1" scroll="no" style="height: 29px; width: 70px; position: static;" tabid="1">
					<a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
				<li areaid="27" class="ui-droppable  li-tab" istab="1" scroll="no" style="position: static;" tabid="2">
					<a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
			</ul>
			<div class="tabs-content" style="" tabid="1">
				<ul class="ul-mform" groupid="3" isgroup="1" style="" isrple="1">
					<li areaid="28" class="li-area" scroll="no" style="width: 395px; height: 38px; position: static;">
						<label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
					<li areaid="29" class="li-area" fldid="-1" scroll="no" style="width: 395px; height: 38px; position: static;">
						<label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
				</ul>
			</div>
			<div class="tabs-content" style="display: none;" tabid="2">
				<ul class="ul-mform" groupid="4" isgroup="1" style="" isrple="1">
					<li areaid="30" class="li-area" scroll="no" style="width: 395px; height: 38px; position: static;">
						<label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
					<li areaid="31" class="li-area" scroll="no" style="width: 395px; height: 38px; position: static;">
						<label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
				</ul>
			</div>
		</div>
	</div>
</div>
<br>','','','<div class="form-radio" ><span class="form-radio-item" ><input id="d2071_SendEMail"  name="d2071_SendEMail" type="checkbox" class="form-ckb" yesv=''1'' nov=''0''  EntId="2071" IsField=1 DBField=1 IsPost=1 FieldName="SendEMail" dType="4" Vtp="1" RDT="4" Isc="1" RId="6" CId="13" FId="5" vlk=0','/><label for="d2071_SendEMail">需要</label></span></div>','',-1,-1,-1,-1,0,'2071,')
      end
      else 
      begin 
           update [Dcx_AjaxFormField_Run] set [FldId]=5,[Form_EntId]=2071,[EntId]=2071,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldName]='SendEMail',[FieldDataTypeId]=4,[RunDataTypeId]=4,[DBFieldId]=8,[DefaultValue]='',[ValueType]=1,[RunValueType]=6,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=13,[FieldTypeId]=1,[RepeatColumns]=-1,[FieldNO]=14,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>




</div></li><li areaid="35" class="li-area" scroll="no" style="height: 38px; width: 395px; display: none; position: static;"><label class="area-title pad7" fldid="5" istitle="1" style="width:120px;">是否立刻发送</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>


</div></li><li areaid="43" class="li-area" scroll="no" style="height: 38px; width: 395px; position: static; display: none;"><label class="area-title pad7" fldid="-1" istitle="1" style="width:120px;">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div></li>
			</ul>
		</div>
		<div class="div_tabs" style="display:none;">
			<ul class="tab_ul" groupid="2" isgroup="1" islonly="1" istab="1" style="" isrple="1">
				<li areaid="26" class="ui-droppable  li-tab de-selected" istab="1" scroll="no" style="height: 29px; width: 70px; position: static;" tabid="1">
					<a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
				<li areaid="27" class="ui-droppable  li-tab" istab="1" scroll="no" style="position: static;" tabid="2">
					<a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
			</ul>
			<div class="tabs-content" style="" tabid="1">
				<ul class="ul-mform" groupid="3" isgroup="1" style="" isrple="1">
					<li areaid="28" class="li-area" scroll="no" style="width: 395px; height: 38px; position: static;">
						<label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
					<li areaid="29" class="li-area" fldid="-1" scroll="no" style="width: 395px; height: 38px; position: static;">
						<label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
				</ul>
			</div>
			<div class="tabs-content" style="display: none;" tabid="2">
				<ul class="ul-mform" groupid="4" isgroup="1" style="" isrple="1">
					<li areaid="30" class="li-area" scroll="no" style="width: 395px; height: 38px; position: static;">
						<label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
					<li areaid="31" class="li-area" scroll="no" style="width: 395px; height: 38px; position: static;">
						<label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
				</ul>
			</div>
		</div>
	</div>
</div>
<br>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-radio" ><span class="form-radio-item" ><input id="d2071_SendEMail"  name="d2071_SendEMail" type="checkbox" class="form-ckb" yesv=''1'' nov=''0''  EntId="2071" IsField=1 DBField=1 IsPost=1 FieldName="SendEMail" dType="4" Vtp="1" RDT="4" Isc="1" RId="6" CId="13" FId="5" vlk=0',[CtrlbackHtml]='/><label for="d2071_SendEMail">需要</label></span></div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2071,' where  [FldUId]='37130d48-ebf2-ec16-ec72-ab595da51c73' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=207

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=207  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(207,null,'Dcx_IMail','Dcx_IMail',1,0,0,0,0,0,30,1,3,'admin','2013-12-15 17:32:16',3,'admin','2013-12-15 17:32:16',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='Dcx_IMail',[DBTableByName]='Dcx_IMail',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=30,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:16',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:16',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=207 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18246,1,30,207,'int',1,1,1,'Dcx_IMail','MailId','MailId','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='MailId',[FieldByname]='MailId',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18247,2,30,207,'int',1,1,1,'Dcx_IMail','SenderUserId','SenderUserId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='SenderUserId',[FieldByname]='SenderUserId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18248,3,30,207,'varchar',2,1,1,'Dcx_IMail','SenderUserName','SenderUserName','',0,0,0,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='SenderUserName',[FieldByname]='SenderUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18249,4,30,207,'varchar',2,1,1,'Dcx_IMail','Title','Title','',0,0,0,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='Title',[FieldByname]='Title',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18250,5,30,207,'varchar',2,1,1,'Dcx_IMail','Body','Body','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='Body',[FieldByname]='Body',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18251,6,30,207,'datetime',3,1,1,'Dcx_IMail','SenderDate','SenderDate','',0,0,0,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='SenderDate',[FieldByname]='SenderDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18252,7,30,207,'bit',4,1,1,'Dcx_IMail','SendSms','SendSms','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='SendSms',[FieldByname]='SendSms',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18253,8,30,207,'bit',4,1,1,'Dcx_IMail','SendEMail','SendEMail','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='SendEMail',[FieldByname]='SendEMail',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18254,9,30,207,'varchar',2,1,1,'Dcx_IMail','SenderMsgFlag','SenderMsgFlag','',0,0,1,20,20,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='SenderMsgFlag',[FieldByname]='SenderMsgFlag',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=20,[Precision]=20,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18255,10,30,207,'varchar',2,1,1,'Dcx_IMail','ReceiverUserIds','ReceiverUserIds','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='ReceiverUserIds',[FieldByname]='ReceiverUserIds',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18256,11,30,207,'varchar',2,1,1,'Dcx_IMail','ReceiverUserNames','ReceiverUserNames','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='ReceiverUserNames',[FieldByname]='ReceiverUserNames',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18257,12,30,207,'varchar',2,1,1,'Dcx_IMail','ReadUserIds','ReadUserIds','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='ReadUserIds',[FieldByname]='ReadUserIds',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18258,13,30,207,'varchar',2,1,1,'Dcx_IMail','ReadUserNames','ReadUserNames','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='ReadUserNames',[FieldByname]='ReadUserNames',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18259,14,30,207,'varchar',2,1,1,'Dcx_IMail','DelUserIds','DelUserIds','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='DelUserIds',[FieldByname]='DelUserIds',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18260,15,30,207,'varchar',2,1,1,'Dcx_IMail','DeleteUseIds','DeleteUseIds','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='DeleteUseIds',[FieldByname]='DeleteUseIds',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18261,16,30,207,'bit',4,1,1,'Dcx_IMail','IsDeleted','IsDeleted','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='IsDeleted',[FieldByname]='IsDeleted',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18262,17,30,207,'bit',4,1,1,'Dcx_IMail','MeetReceipt','MeetReceipt','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='MeetReceipt',[FieldByname]='MeetReceipt',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18263,18,30,207,'bit',4,1,1,'Dcx_IMail','SendDcxSms','SendDcxSms','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='SendDcxSms',[FieldByname]='SendDcxSms',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18264,19,30,207,'bit',4,1,1,'Dcx_IMail','HaveAttachment','HaveAttachment','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='HaveAttachment',[FieldByname]='HaveAttachment',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18265,20,30,207,'tinyint',23,1,1,'Dcx_IMail','Flag','Flag','',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='Flag',[FieldByname]='Flag',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18266,21,30,207,'int',1,1,1,'Dcx_IMail','EntId','EntId','0',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='EntId',[FieldByname]='EntId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18267,22,30,207,'int',1,1,1,'Dcx_IMail','MenuId','MenuId','0',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='MenuId',[FieldByname]='MenuId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18268,23,30,207,'varchar',2,1,1,'Dcx_IMail','KeyFieldValue','KeyFieldValue','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='KeyFieldValue',[FieldByname]='KeyFieldValue',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=23 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--WF_FlowType

     SET IDENTITY_INSERT [WF_FlowType] ON 
      if (select count(1) from [WF_FlowType] where  [FlowId]=111  )<1 
      begin 
           Insert into [WF_FlowType] ([FlowId],[FlowName],[FlowNo],[SortId],[EntId],[EntName],[AutoName],[ManageUsers],[ManageNames],[QueryUsers],[QueryNames],[CanQueryRoles],[CanQueryRolesId],[CanManageRoles],[CanManageRolesId],[CanStartUsers],[CanStartNames],[CanStartRoles],[CanStartRolesId],[AttachMaxSize],[FlowAttach],[IsPigeonhole],[PigeonholedSQL],[IsFreeFlow],[QueryItem],[LaunchIsOpen],[FormUrl],[BrowseUrl],[ListUrl],[Detail],[CreatorId],[Creator],[CreateTime],[EditTime],[Editor],[EditorId],[AccountId])values(111,'薪酬申请',0,25,2071,'发邮件',null,'admin','admin','admin','admin','系统管理员','3','系统管理员','3',null,null,'Public','1',0,1,0,'',null,null,null,'','/Template/Default/Browse/Browse008.aspx','/Template/Default/ListReport/ListReport001.aspx','',0,'admin','2013-11-30 1:06:40',null,null,null,1)
      end
      else 
      begin 
           update [WF_FlowType] set [FlowName]='薪酬申请',[FlowNo]=0,[SortId]=25,[EntId]=2071,[EntName]='发邮件',[AutoName]=null,[ManageUsers]='admin',[ManageNames]='admin',[QueryUsers]='admin',[QueryNames]='admin',[CanQueryRoles]='系统管理员',[CanQueryRolesId]='3',[CanManageRoles]='系统管理员',[CanManageRolesId]='3',[CanStartUsers]=null,[CanStartNames]=null,[CanStartRoles]='Public',[CanStartRolesId]='1',[AttachMaxSize]=0,[FlowAttach]=1,[IsPigeonhole]=0,[PigeonholedSQL]='',[IsFreeFlow]=null,[QueryItem]=null,[LaunchIsOpen]=null,[FormUrl]='',[BrowseUrl]='/Template/Default/Browse/Browse008.aspx',[ListUrl]='/Template/Default/ListReport/ListReport001.aspx',[Detail]='',[CreatorId]=0,[Creator]='admin',[CreateTime]='2013-11-30 1:06:40',[EditTime]=null,[Editor]=null,[EditorId]=null,[AccountId]=1 where  [FlowId]=111 
      end

     SET IDENTITY_INSERT [WF_FlowType] OFF 



Delete from [WF_FlowNode]  where isnull([FlowId],0)=111 

--WF_FlowNode

     SET IDENTITY_INSERT [WF_FlowNode] ON 
      if (select count(1) from [WF_FlowNode] where  [NodeId]=601  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(601,111,'提交薪酬表',1,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','603',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',null,null,0,0,null,null,null,null,null,null,null,null,null,null,null,null,null,'',null,null,null,null,null,null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=111,[NodeName]='提交薪酬表',[Step]=1,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='603',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]=null,[TriggerAfter]=null,[CanReject]=0,[CanPigeonhole]=0,[PigeonholedSQL]=null,[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]=null,[PositionDeptNames]=null,[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=601 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=602  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(602,111,'',2,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',null,0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',null,null,0,0,null,null,null,null,null,null,null,null,null,null,null,null,null,'',null,null,null,null,null,null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=111,[NodeName]='',[Step]=2,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]=null,[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]=null,[TriggerAfter]=null,[CanReject]=0,[CanPigeonhole]=0,[PigeonholedSQL]=null,[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]=null,[PositionDeptNames]=null,[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=602 
      end
      if (select count(1) from [WF_FlowNode] where  [NodeId]=603  )<1 
      begin 
           Insert into [WF_FlowNode] ([NodeId],[FlowId],[NodeName],[Step],[PrcsUsers],[PrcsDepts],[PrcsPositions],[PrcsRoles],[PrcsTo],[AllowLastNodeBoss],[AllowWorkCreator],[NextNames],[PrcsUserNames],[PrcsDeptNames],[PrcsRoleNames],[PrcsPositionNames],[TriggerBefore],[TriggerAfter],[CanReject],[CanPigeonhole],[PigeonholedSQL],[Pointx],[Pointy],[Width],[Height],[NodeType],[ApproveType],[ToNextType],[ArriveType],[NotifyMode],[NotifyType],[NotifyContent],[TurnFlowId],[PrcsItem],[PrcsItem2],[Json_Validate],[EntId],[PositionDept],[PositionDeptNames],[CountersignType],[CountersignVisType],[DeliverType],[CanCircularize],[MainUserType],[FilterUserType],[AutoSelectUserType],[RebutType],[LimitHour],[CountTimeType],[CanSetLimitHour],[OnlyCountWorkTime])values(603,111,'部门经理审批2',2,'3','61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62','18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37','153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6','-1',0,0,null,'admin','财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室','CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理','普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',null,null,0,0,null,null,null,null,null,null,null,null,null,null,null,null,null,'',null,null,null,null,null,null,null,null,null,null,0,0,0,0,0,0,0)
      end
      else 
      begin 
           update [WF_FlowNode] set [FlowId]=111,[NodeName]='部门经理审批2',[Step]=2,[PrcsUsers]='3',[PrcsDepts]='61,72,75,76,69,68,80,74,78,73,66,63,70,67,64,71,65,62',[PrcsPositions]='18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37',[PrcsRoles]='153,1,124,5,155,157,158,8,161,164,141,7,163,179,177,200,174,136,4,159,169,176,175,160,162,3,171,172,152,154,204,178,167,201,203,166,6',[PrcsTo]='-1',[AllowLastNodeBoss]=0,[AllowWorkCreator]=0,[NextNames]=null,[PrcsUserNames]='admin',[PrcsDeptNames]='财务部,采购部,产品部,广东项目部,海外事业部,后勤部,湖南项目部,技术部,江西项目部,客服部,人力资源部,市场部,项目部,销售部,行政部,研发部,总裁室,总经理室',[PrcsRoleNames]='CEO,Public,办公室负责人,部门领导,部门主管,财务经理,财务主管,财务总监,车辆管理处,出纳,档案管理员,董事长,法务人员,改卷人,工资管理员,工作流设计人员,客户部经理,秘书,普通员工,人力资源总监,人事专员,市场主管,市场总监,图书管理员,文书,系统管理员,项目负责人,项目经理,销售经理,销售员,新闻发布员,行政部负责人,行政副总,应用开发人员,知识管理员,资产管理员,总经理',[PrcsPositionNames]='普通员工,文员,助理,秘书,组长,部门主管,部门经理,项目经理,总经理,副经理,总裁,副总裁,会计,出纳,CFO,COO,人事专员,项目经理,项目助理,CTO',[TriggerBefore]=null,[TriggerAfter]=null,[CanReject]=0,[CanPigeonhole]=0,[PigeonholedSQL]=null,[Pointx]=null,[Pointy]=null,[Width]=null,[Height]=null,[NodeType]=null,[ApproveType]=null,[ToNextType]=null,[ArriveType]=null,[NotifyMode]=null,[NotifyType]=null,[NotifyContent]=null,[TurnFlowId]=null,[PrcsItem]='',[PrcsItem2]=null,[Json_Validate]=null,[EntId]=null,[PositionDept]=null,[PositionDeptNames]=null,[CountersignType]=null,[CountersignVisType]=null,[DeliverType]=null,[CanCircularize]=null,[MainUserType]=null,[FilterUserType]=0,[AutoSelectUserType]=0,[RebutType]=0,[LimitHour]=0,[CountTimeType]=0,[CanSetLimitHour]=0,[OnlyCountWorkTime]=0 where  [NodeId]=603 
      end

     SET IDENTITY_INSERT [WF_FlowNode] OFF 



Delete from [Dcx_EntityPrivilege]  where [EntId]=2072

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2072  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11106,-1,2072,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2072  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2072

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2072  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20538,30,3310,2072,73,2,9,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=3310,[TemplateId]=73,[ModuleId]=9,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2072  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2072  and  [ModuleTypeId]=5  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20539,30,3310,2072,73,5,25,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=3310,[TemplateId]=73,[ModuleId]=25,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2072  and  [ModuleTypeId]=5 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2072  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20540,30,3310,2072,73,1,1,1,3,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=3310,[TemplateId]=73,[ModuleId]=1,[GroupId]=1,[AreaId]=3,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2072  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2072  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20541,30,3310,2072,73,3,14,1,4,2,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=3310,[TemplateId]=73,[ModuleId]=14,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2072  and  [ModuleTypeId]=3 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2072  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20542,30,3310,2072,73,16,31,1,5,2,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=3310,[TemplateId]=73,[ModuleId]=31,[GroupId]=1,[AreaId]=5,[ShowMode]=2,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2072  and  [ModuleTypeId]=16 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_SearchForm_Run]  where [EntId]=2072

--Dcx_SearchForm_Run
      if (select count(1) from [Dcx_SearchForm_Run] where  [EntId]=2072  )<1 
      begin 
           Insert into [Dcx_SearchForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('091d638d-724a-b5fb-48fd-7e3b5342ab5f','已发送',2072,-1,'','',0,'','','DcxRun.SearchF_2072= {"MenuId":3310,"MEntId":2072,"EntName":"已发送","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2072":{"EntId":2072,"KeyFieldValue":"","DBTableName":"","KeyField":"MailId","KeydtId":2,"JoinKeyField":"MailId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_2072.EntMsg.E2072.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_IMail","EntId":2072,"KeyField":"MailId","MKeyField":"MailId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"Title":{"DtId":2,"DB":1,"CId":1,"FL":500}},"Data":{"Row":[]}};
}
DcxRun.SearchF_2072.EntMsg.E2072.GetDataRowModel=function()
{
    return {"Title":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"MailId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_2072.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2072,''SearchF_'',buildNew,closeDlg);

}','',10,'','','','2072*MailId*2*MailId*2*Dcx_IMail*已发送',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-24 12:11:30',3,'admin','2013-8-22 5:58:48',1)
      end
      else 
      begin 
           update [Dcx_SearchForm_Run] set [FormId]='091d638d-724a-b5fb-48fd-7e3b5342ab5f',[FormName]='已发送',[ModuleId]=-1,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.SearchF_2072= {"MenuId":3310,"MEntId":2072,"EntName":"已发送","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2072":{"EntId":2072,"KeyFieldValue":"","DBTableName":"","KeyField":"MailId","KeydtId":2,"JoinKeyField":"MailId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_2072.EntMsg.E2072.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_IMail","EntId":2072,"KeyField":"MailId","MKeyField":"MailId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"Title":{"DtId":2,"DB":1,"CId":1,"FL":500}},"Data":{"Row":[]}};
}
DcxRun.SearchF_2072.EntMsg.E2072.GetDataRowModel=function()
{
    return {"Title":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"MailId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_2072.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2072,''SearchF_'',buildNew,closeDlg);

}',[LoadingSql]='',[PageSize]=10,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='2072*MailId*2*MailId*2*Dcx_IMail*已发送',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-24 12:11:30',[EditorId]=3,[Editor]='admin',[EditTime]='2013-8-22 5:58:48',[AccountId]=1 where  [EntId]=2072 
      end




--Dcx_SearchFormField_Run
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='c1b5fcb3-f2dc-95fd-8e0b-419de4086293'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'c1b5fcb3-f2dc-95fd-8e0b-419de4086293',2072,2072,'00000000-0000-0000-0000-000000000000',1,'Like','Title',2,2,4,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','<div class="searchform">
	<ul class="search-block" groupid="1" isgroup="1" isrple="1">
		<li areaid="5" class="search-li" scroll="no" style="width: 270px; height: 31px; position: static;"><label class="search-Title pad7" fldid="1" istitle="1">标题</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">','</span>
</div>
</li>
		
		
		<li areaid="8" class="" scroll="no" style="position: static;">
			<div class="searchform-button " onclick="javascript:return VL_Search(2072);">
				<div class="search-btn">
					&nbsp;</div>
				<a href="javascript:void(0);" id="2072_searchBT">搜索</a></div>
		</li>
	</ul>
</div>
<br>','','','<input  id="d2072_Title"   type="text" class="form-txt"  style="width:150px;" EntId="2072" IsField=1 DBField=1 IsPost=1 FieldName="Title" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'2072,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=1,[Form_EntId]=2072,[EntId]=2072,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[CompareOperatorType]='Like',[FieldName]='Title',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=4,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="searchform">
	<ul class="search-block" groupid="1" isgroup="1" isrple="1">
		<li areaid="5" class="search-li" scroll="no" style="width: 270px; height: 31px; position: static;"><label class="search-Title pad7" fldid="1" istitle="1">标题</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
</div>
</li>
		
		
		<li areaid="8" class="" scroll="no" style="position: static;">
			<div class="searchform-button " onclick="javascript:return VL_Search(2072);">
				<div class="search-btn">
					&nbsp;</div>
				<a href="javascript:void(0);" id="2072_searchBT">搜索</a></div>
		</li>
	</ul>
</div>
<br>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2072_Title"   type="text" class="form-txt"  style="width:150px;" EntId="2072" IsField=1 DBField=1 IsPost=1 FieldName="Title" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2072,' where  [FldUId]='c1b5fcb3-f2dc-95fd-8e0b-419de4086293' 
      end



Delete from [Dcx_ListReport_Run]  where [EntId]=2072

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=2072  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('d85dde96-37a1-b1b1-a15c-b8cd58256d32','已发送',2072,-1,'','','<$2072$>select *  from (select row_number() over( order by [MailId])as dcx_rowid,[KeyFieldValue],[Title],[SenderUserName],[SenderDate],[MailId] from Dcx_IMail  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$2072$><$2072:Count$>select count([MailId]) from Dcx_IMail where {$SearchArea}</$2072:Count$>',1,1,10,'DcxRun.ListR_2072= {"MenuId":3310,"MEntId":2072,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"已发送","EntMsg":{"E2072":{"EntId":2072,"EntName":"已发送","KeyFieldValue":"","DBTableName":"Dcx_IMail","KeyField":"MailId","KeydtId":2,"JoinKeyField":"MailId","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','2072*MailId*2*MailId*2*Dcx_IMail*已发送',3,'','2012-12-24 12:02:17',3,'','2013-7-30 2:51:17',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='d85dde96-37a1-b1b1-a15c-b8cd58256d32',[ReportName]='已发送',[ModuleId]=-1,[StaticHtml]='',[DIYJsCss]='',[LoadingSql]='<$2072$>select *  from (select row_number() over( order by [MailId])as dcx_rowid,[KeyFieldValue],[Title],[SenderUserName],[SenderDate],[MailId] from Dcx_IMail  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$2072$><$2072:Count$>select count([MailId]) from Dcx_IMail where {$SearchArea}</$2072:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=10,[AutoPublicJs]='DcxRun.ListR_2072= {"MenuId":3310,"MEntId":2072,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"已发送","EntMsg":{"E2072":{"EntId":2072,"EntName":"已发送","KeyFieldValue":"","DBTableName":"Dcx_IMail","KeyField":"MailId","KeydtId":2,"JoinKeyField":"MailId","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='2072*MailId*2*MailId*2*Dcx_IMail*已发送',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-24 12:02:17',[EditorId]=3,[Editor]='',[EditTime]='2013-7-30 2:51:17',[AccountId]=1 where  [EntId]=2072 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='b325385b-0524-a521-2817-adeb215182e7'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(47,'b325385b-0524-a521-2817-adeb215182e7',2072,2072,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<div class="listreport">
	<div class="toolbar">
		<ul class="tool-ul" groupid="2" isgroup="1" istoolbar="1" style="wIdth: 826px;" isrple="1">
			<li areaid="27" class="tool-li" style="position: static;">
				<a class="list-bt-add" href="javascript:void(0);" id="ListR_2072_btn_buildNew" onclick="javascript:DcxCom.ShowAddDataDlg(2072,''ListR_'');" title="添   加">添 加</a></li>
			<li areaid="28" class="tool-li" style="position: static;">
				<a class="list-bt-other" href="javascript:void(0);" id="ListR_2072_deletebut" onclick="javascript:DcxReport.DeleteDatas(2072,''ListR_'');" title="删   除">删 除</a></li>
			
			<li areaid="30" class="tool-li" style="width: 64px; height: 29px; position: static;">
				<a class="list-bt-other" href="javascript:void(0);" id="ListR_2072_refreshbut" onclick="javascript:DcxCom.ReLoad(2072,''ListR_'');" title="刷   新">刷 新</a></li>
			<!--分页栏-->
			<li areaid="31" class="pages" id="li2_ListR_2072" style="width: 160px; height: 24px; position: static;"><a class="list-pages list-prepage" href="javascript:void(0);" id="ListR_2072_PrevPage" isfirstpage="1" onclick="javascript:DcxSch.GetHtml(2072,''ListR_'',''p'');" title="上一页">上一页</a> <span class="ddl_pageindex list-pagesdown"><select id="ddl_ListR_2072_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(2072,''ListR_'',''a'',this);"></select> </span><a class="list-pages list-nextpage" href="javascript:void(0);" id="ListR_2072_NextPage" isnextpage="1" onclick="javascript:DcxSch.GetHtml(2072,''ListR_'',''n'');" title="下一页">下一页</a> <span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_2072_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">条记录</span></li>
		</ul>
	</div>
	<!-- 列表主体-->
	<div class="list-area dcx-scroll">
		<div class="list-head">
			<ul class="list-head-ul" groupid="3" isgroup="1" style="width: 807px;" isrple="1">
				<li areaid="32" class="list-if-select" style="clear: none; float: left; height: 30px; position: static;">
					<input class="chPut ifselect" id="ckb_CheckAllListR_2072" onclick="javascript:DcxCom.CheckedAll(this,2072,''ListR_'');" rel="chkall" type="checkbox"></li>
				<li areaid="33" class="list-head-li" style="width: 50px; height: 30px; clear: none; float: left; position: static;"><div class="list-li-field" style="padding-top:9px;">
	<label istitle="1"><img src="/MyApp/NewMail/Images/ico_mailTitle.gif"></label></div>
</li>
				<li areaid="34" class="list-head-li" style="clear: none; float: left; height: 30px; width: 410px; position: static;"><div class="list-li-field">
	<label istitle="1">标题</label></div>
</li>
				<li areaid="35" class="list-head-li" style="clear: none; float: left; height: 30px; width: 130px; position: static;">
					<div class="list-li-field">
						<label istitle="1">发送人</label></div>
				</li>
				<li areaid="36" class="list-head-li" style="clear: right; float: left; height: 30px; width: 170px; position: static;"><div class="list-li-field">
	<label istitle="1">发件时间</label></div>
</li>
				
				
				
				
			</ul>
		</div>
		<div class="list-body">','',-1,4,-1,-1,1,'2072,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=47,[Report_EntId]=2072,[EntId]=2072,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="listreport">
	<div class="toolbar">
		<ul class="tool-ul" groupid="2" isgroup="1" istoolbar="1" style="wIdth: 826px;" isrple="1">
			<li areaid="27" class="tool-li" style="position: static;">
				<a class="list-bt-add" href="javascript:void(0);" id="ListR_2072_btn_buildNew" onclick="javascript:DcxCom.ShowAddDataDlg(2072,''ListR_'');" title="添   加">添 加</a></li>
			<li areaid="28" class="tool-li" style="position: static;">
				<a class="list-bt-other" href="javascript:void(0);" id="ListR_2072_deletebut" onclick="javascript:DcxReport.DeleteDatas(2072,''ListR_'');" title="删   除">删 除</a></li>
			
			<li areaid="30" class="tool-li" style="width: 64px; height: 29px; position: static;">
				<a class="list-bt-other" href="javascript:void(0);" id="ListR_2072_refreshbut" onclick="javascript:DcxCom.ReLoad(2072,''ListR_'');" title="刷   新">刷 新</a></li>
			<!--分页栏-->
			<li areaid="31" class="pages" id="li2_ListR_2072" style="width: 160px; height: 24px; position: static;"><a class="list-pages list-prepage" href="javascript:void(0);" id="ListR_2072_PrevPage" isfirstpage="1" onclick="javascript:DcxSch.GetHtml(2072,''ListR_'',''p'');" title="上一页">上一页</a> <span class="ddl_pageindex list-pagesdown"><select id="ddl_ListR_2072_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(2072,''ListR_'',''a'',this);"></select> </span><a class="list-pages list-nextpage" href="javascript:void(0);" id="ListR_2072_NextPage" isnextpage="1" onclick="javascript:DcxSch.GetHtml(2072,''ListR_'',''n'');" title="下一页">下一页</a> <span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_2072_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">条记录</span></li>
		</ul>
	</div>
	<!-- 列表主体-->
	<div class="list-area dcx-scroll">
		<div class="list-head">
			<ul class="list-head-ul" groupid="3" isgroup="1" style="width: 807px;" isrple="1">
				<li areaid="32" class="list-if-select" style="clear: none; float: left; height: 30px; position: static;">
					<input class="chPut ifselect" id="ckb_CheckAllListR_2072" onclick="javascript:DcxCom.CheckedAll(this,2072,''ListR_'');" rel="chkall" type="checkbox"></li>
				<li areaid="33" class="list-head-li" style="width: 50px; height: 30px; clear: none; float: left; position: static;"><div class="list-li-field" style="padding-top:9px;">
	<label istitle="1"><img src="/MyApp/NewMail/Images/ico_mailTitle.gif"></label></div>
</li>
				<li areaid="34" class="list-head-li" style="clear: none; float: left; height: 30px; width: 410px; position: static;"><div class="list-li-field">
	<label istitle="1">标题</label></div>
</li>
				<li areaid="35" class="list-head-li" style="clear: none; float: left; height: 30px; width: 130px; position: static;">
					<div class="list-li-field">
						<label istitle="1">发送人</label></div>
				</li>
				<li areaid="36" class="list-head-li" style="clear: right; float: left; height: 30px; width: 170px; position: static;"><div class="list-li-field">
	<label istitle="1">发件时间</label></div>
</li>
				
				
				
				
			</ul>
		</div>
		<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2072,' where  [FldUId]='b325385b-0524-a521-2817-adeb215182e7' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='5239f8bc-60f3-08e9-0878-7ff5e9d2ab80'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'5239f8bc-60f3-08e9-0878-7ff5e9d2ab80',2072,2072,'00000000-0000-0000-0000-000000000000',23,'KeyFieldValue',2,1,'varchar',2,1,0,'','','','class="list-body-ul" groupid="4" isgroup="1" style="width: 807px;" isrple="1">
				<li areaid="41" class="list-if-select" style="clear: none; float: left; height: 30px; position: static;">
					<input class="ckb_del" ctrlprex="ListR_" entid="2072" issyscheck="1" keyvalue="','',-1,4,-1,-1,1,'2072,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=2,[Report_EntId]=2072,[EntId]=2072,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=23,[FieldName]='KeyFieldValue',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='class="list-body-ul" groupid="4" isgroup="1" style="width: 807px;" isrple="1">
				<li areaid="41" class="list-if-select" style="clear: none; float: left; height: 30px; position: static;">
					<input class="ckb_del" ctrlprex="ListR_" entid="2072" issyscheck="1" keyvalue="',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2072,' where  [FldUId]='5239f8bc-60f3-08e9-0878-7ff5e9d2ab80' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='d686316f-a25b-3d6e-c697-3bcfcce52f10'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(27,'d686316f-a25b-3d6e-c697-3bcfcce52f10',2072,2072,'00000000-0000-0000-0000-000000000000',-1,'IsReaded',3,1,'varchar',2,3,0,'','','','" type="checkbox"></li>
				<li areaid="42" class="list-body-li" style="clear: none; float: left; height: 30px; width: 50px; position: static;"><div class="list-li-field">
	<span isfield="1" entid="2072" fieldname="IsReaded" fldid="27" columntypeid="1" class="form-ctr">','',42,4,-1,-1,1,'2072,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=27,[Report_EntId]=2072,[EntId]=2072,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='IsReaded',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=3,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='" type="checkbox"></li>
				<li areaid="42" class="list-body-li" style="clear: none; float: left; height: 30px; width: 50px; position: static;"><div class="list-li-field">
	<span isfield="1" entid="2072" fieldname="IsReaded" fldid="27" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=42,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2072,' where  [FldUId]='d686316f-a25b-3d6e-c697-3bcfcce52f10' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='7e3322d8-2d2f-3189-fa62-84d1f27f982e'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(28,'7e3322d8-2d2f-3189-fa62-84d1f27f982e',2072,2072,'00000000-0000-0000-0000-000000000000',4,'Title',4,1,'varchar',2,1,0,'','','','</span>
</div>
</li>
				<li areaid="44" class="list-body-li" style="clear: none; float: left; height: 30px; width: 410px; position: static;"><div class="list-li-field"><span isfield="1" entid="2072" fieldname="Title" fldid="28" columntypeid="1" class="form-ctr">','',-1,4,-1,-1,1,'2072,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=28,[Report_EntId]=2072,[EntId]=2072,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=4,[FieldName]='Title',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
</div>
</li>
				<li areaid="44" class="list-body-li" style="clear: none; float: left; height: 30px; width: 410px; position: static;"><div class="list-li-field"><span isfield="1" entid="2072" fieldname="Title" fldid="28" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2072,' where  [FldUId]='7e3322d8-2d2f-3189-fa62-84d1f27f982e' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='2362a30d-81bb-b87f-3689-714bb37d0592'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(29,'2362a30d-81bb-b87f-3689-714bb37d0592',2072,2072,'00000000-0000-0000-0000-000000000000',3,'SenderUserName',5,1,'varchar',2,1,0,'','','','</span>


</div>

 </li><li areaid="45" class="list-body-li" style="width: 130px; height: 30px; clear: none; float: left; position: static;">

<div class="list-li-field"><span isfield="1" entid="2072" fieldname="SenderUserName" fldid="29" columntypeid="1" class="form-ctr">','',-1,4,-1,-1,1,'2072,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=29,[Report_EntId]=2072,[EntId]=2072,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='SenderUserName',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>


</div>

 </li><li areaid="45" class="list-body-li" style="width: 130px; height: 30px; clear: none; float: left; position: static;">

<div class="list-li-field"><span isfield="1" entid="2072" fieldname="SenderUserName" fldid="29" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2072,' where  [FldUId]='2362a30d-81bb-b87f-3689-714bb37d0592' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='96d6a96c-2f5f-8d13-7bf2-a2d18677ef09'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(30,'96d6a96c-2f5f-8d13-7bf2-a2d18677ef09',2072,2072,'00000000-0000-0000-0000-000000000000',6,'SenderDate',6,1,'datetime',3,1,0,'','','','</span>



</div></li><li areaid="43" class="list-body-li" style="clear: right; float: left; height: 30px; width: 170px; position: static;"><div class="list-li-field"><span isfield="1" entid="2072" fieldname="SenderDate" fldid="30" columntypeid="1" class="form-ctr">','',-1,4,-1,-1,1,'2072,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=30,[Report_EntId]=2072,[EntId]=2072,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=6,[FieldName]='SenderDate',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='datetime',[FieldDataTypeId]=3,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>



</div></li><li areaid="43" class="list-body-li" style="clear: right; float: left; height: 30px; width: 170px; position: static;"><div class="list-li-field"><span isfield="1" entid="2072" fieldname="SenderDate" fldid="30" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2072,' where  [FldUId]='96d6a96c-2f5f-8d13-7bf2-a2d18677ef09' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='4bd6a15e-0779-25c5-f4bd-9b01c69f25e0'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(48,'4bd6a15e-0779-25c5-f4bd-9b01c69f25e0',2072,2072,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',7,-1,'varchar',2,13,0,'','','','</span>



</div>


</li>
				
				
				
				
				
				
			</ul>','</div>
	</div>
</div>
<br>',-1,4,-1,-1,1,'2072,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=48,[Report_EntId]=2072,[EntId]=2072,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=7,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>



</div>


</li>
				
				
				
				
				
				
			</ul>',[LastHtml]='</div>
	</div>
</div>
<br>',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2072,' where  [FldUId]='4bd6a15e-0779-25c5-f4bd-9b01c69f25e0' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=207

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=207  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(207,null,'Dcx_IMail','Dcx_IMail',1,0,0,0,0,0,30,1,3,'admin','2013-12-15 17:32:16',3,'admin','2013-12-15 17:32:16',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='Dcx_IMail',[DBTableByName]='Dcx_IMail',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=30,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:16',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:16',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=207 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18246,1,30,207,'int',1,1,1,'Dcx_IMail','MailId','MailId','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='MailId',[FieldByname]='MailId',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18247,2,30,207,'int',1,1,1,'Dcx_IMail','SenderUserId','SenderUserId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='SenderUserId',[FieldByname]='SenderUserId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18248,3,30,207,'varchar',2,1,1,'Dcx_IMail','SenderUserName','SenderUserName','',0,0,0,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='SenderUserName',[FieldByname]='SenderUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18249,4,30,207,'varchar',2,1,1,'Dcx_IMail','Title','Title','',0,0,0,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='Title',[FieldByname]='Title',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18250,5,30,207,'varchar',2,1,1,'Dcx_IMail','Body','Body','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='Body',[FieldByname]='Body',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18251,6,30,207,'datetime',3,1,1,'Dcx_IMail','SenderDate','SenderDate','',0,0,0,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='SenderDate',[FieldByname]='SenderDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18252,7,30,207,'bit',4,1,1,'Dcx_IMail','SendSms','SendSms','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='SendSms',[FieldByname]='SendSms',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18253,8,30,207,'bit',4,1,1,'Dcx_IMail','SendEMail','SendEMail','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='SendEMail',[FieldByname]='SendEMail',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18254,9,30,207,'varchar',2,1,1,'Dcx_IMail','SenderMsgFlag','SenderMsgFlag','',0,0,1,20,20,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='SenderMsgFlag',[FieldByname]='SenderMsgFlag',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=20,[Precision]=20,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18255,10,30,207,'varchar',2,1,1,'Dcx_IMail','ReceiverUserIds','ReceiverUserIds','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='ReceiverUserIds',[FieldByname]='ReceiverUserIds',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18256,11,30,207,'varchar',2,1,1,'Dcx_IMail','ReceiverUserNames','ReceiverUserNames','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='ReceiverUserNames',[FieldByname]='ReceiverUserNames',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18257,12,30,207,'varchar',2,1,1,'Dcx_IMail','ReadUserIds','ReadUserIds','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='ReadUserIds',[FieldByname]='ReadUserIds',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18258,13,30,207,'varchar',2,1,1,'Dcx_IMail','ReadUserNames','ReadUserNames','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='ReadUserNames',[FieldByname]='ReadUserNames',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18259,14,30,207,'varchar',2,1,1,'Dcx_IMail','DelUserIds','DelUserIds','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='DelUserIds',[FieldByname]='DelUserIds',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18260,15,30,207,'varchar',2,1,1,'Dcx_IMail','DeleteUseIds','DeleteUseIds','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='DeleteUseIds',[FieldByname]='DeleteUseIds',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18261,16,30,207,'bit',4,1,1,'Dcx_IMail','IsDeleted','IsDeleted','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='IsDeleted',[FieldByname]='IsDeleted',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18262,17,30,207,'bit',4,1,1,'Dcx_IMail','MeetReceipt','MeetReceipt','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='MeetReceipt',[FieldByname]='MeetReceipt',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18263,18,30,207,'bit',4,1,1,'Dcx_IMail','SendDcxSms','SendDcxSms','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='SendDcxSms',[FieldByname]='SendDcxSms',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18264,19,30,207,'bit',4,1,1,'Dcx_IMail','HaveAttachment','HaveAttachment','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='HaveAttachment',[FieldByname]='HaveAttachment',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18265,20,30,207,'tinyint',23,1,1,'Dcx_IMail','Flag','Flag','',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='Flag',[FieldByname]='Flag',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18266,21,30,207,'int',1,1,1,'Dcx_IMail','EntId','EntId','0',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='EntId',[FieldByname]='EntId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18267,22,30,207,'int',1,1,1,'Dcx_IMail','MenuId','MenuId','0',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='MenuId',[FieldByname]='MenuId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18268,23,30,207,'varchar',2,1,1,'Dcx_IMail','KeyFieldValue','KeyFieldValue','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='KeyFieldValue',[FieldByname]='KeyFieldValue',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=23 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 



Delete from [Dcx_EntityPrivilege]  where [EntId]=2073

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2073  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11107,-1,2073,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2073  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2073

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2073  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20543,30,3310,2073,73,2,9,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=3310,[TemplateId]=73,[ModuleId]=9,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2073  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2073  and  [ModuleTypeId]=5  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20544,30,3310,2073,73,5,25,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=3310,[TemplateId]=73,[ModuleId]=25,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2073  and  [ModuleTypeId]=5 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2073  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20545,30,3310,2073,73,1,1,1,3,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=3310,[TemplateId]=73,[ModuleId]=1,[GroupId]=1,[AreaId]=3,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2073  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2073  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20546,30,3310,2073,73,3,14,1,4,2,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=3310,[TemplateId]=73,[ModuleId]=14,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2073  and  [ModuleTypeId]=3 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2073  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20547,30,3310,2073,73,16,31,1,5,2,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=3310,[TemplateId]=73,[ModuleId]=31,[GroupId]=1,[AreaId]=5,[ShowMode]=2,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2073  and  [ModuleTypeId]=16 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_SearchForm_Run]  where [EntId]=2073

--Dcx_SearchForm_Run
      if (select count(1) from [Dcx_SearchForm_Run] where  [EntId]=2073  )<1 
      begin 
           Insert into [Dcx_SearchForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('056bdb13-c46e-6118-da1c-2314cc045a15','废件箱',2073,-1,'','',0,'','','DcxRun.SearchF_2073= {"MenuId":3310,"MEntId":2073,"EntName":"废件箱","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2073":{"EntId":2073,"KeyFieldValue":"","DBTableName":"","KeyField":"MailId","KeydtId":2,"JoinKeyField":"MailId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_2073.EntMsg.E2073.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_IMail","EntId":2073,"KeyField":"MailId","MKeyField":"MailId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"Title":{"DtId":2,"DB":1,"CId":1,"FL":500}},"Data":{"Row":[]}};
}
DcxRun.SearchF_2073.EntMsg.E2073.GetDataRowModel=function()
{
    return {"Title":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"MailId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_2073.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2073,''SearchF_'',buildNew,closeDlg);

}','',10,'','','','2073*MailId*2*MailId*2*Dcx_IMail*废件箱',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-24 12:16:05',3,'admin','2013-8-22 5:58:48',1)
      end
      else 
      begin 
           update [Dcx_SearchForm_Run] set [FormId]='056bdb13-c46e-6118-da1c-2314cc045a15',[FormName]='废件箱',[ModuleId]=-1,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.SearchF_2073= {"MenuId":3310,"MEntId":2073,"EntName":"废件箱","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2073":{"EntId":2073,"KeyFieldValue":"","DBTableName":"","KeyField":"MailId","KeydtId":2,"JoinKeyField":"MailId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_2073.EntMsg.E2073.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_IMail","EntId":2073,"KeyField":"MailId","MKeyField":"MailId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"Title":{"DtId":2,"DB":1,"CId":1,"FL":500}},"Data":{"Row":[]}};
}
DcxRun.SearchF_2073.EntMsg.E2073.GetDataRowModel=function()
{
    return {"Title":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"MailId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_2073.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2073,''SearchF_'',buildNew,closeDlg);

}',[LoadingSql]='',[PageSize]=10,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='2073*MailId*2*MailId*2*Dcx_IMail*废件箱',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-24 12:16:05',[EditorId]=3,[Editor]='admin',[EditTime]='2013-8-22 5:58:48',[AccountId]=1 where  [EntId]=2073 
      end




--Dcx_SearchFormField_Run
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='05df31cb-8bf2-e81f-0bc9-4159eda3033b'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'05df31cb-8bf2-e81f-0bc9-4159eda3033b',2073,2073,'00000000-0000-0000-0000-000000000000',1,'=','Title',2,2,4,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','<div class="searchform">
	<ul class="search-block" groupid="1" isgroup="1" isrple="1">
		<li areaid="5" class="search-li" scroll="no" style="width: 270px; height: 31px; position: static;"><label class="search-Title pad7" fldid="1" istitle="1">标题</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">','</span>
</div>
</li>
		
		
		<li areaid="8" class="" scroll="no" style="position: static;">
			<div class="searchform-button " onclick="javascript:return VL_Search(2073);">
				<div class="search-btn">
					&nbsp;</div>
				<a href="javascript:void(0);" id="2073_searchBT">搜索</a></div>
		</li>
	</ul>
</div>
<br>','','','<input  id="d2073_Title"   type="text" class="form-txt"  style="width:150px;" EntId="2073" IsField=1 DBField=1 IsPost=1 FieldName="Title" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="="  value="','"/>','',1,-1,-1,-1,-1,0,'2073,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=1,[Form_EntId]=2073,[EntId]=2073,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[CompareOperatorType]='=',[FieldName]='Title',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=4,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="searchform">
	<ul class="search-block" groupid="1" isgroup="1" isrple="1">
		<li areaid="5" class="search-li" scroll="no" style="width: 270px; height: 31px; position: static;"><label class="search-Title pad7" fldid="1" istitle="1">标题</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
</div>
</li>
		
		
		<li areaid="8" class="" scroll="no" style="position: static;">
			<div class="searchform-button " onclick="javascript:return VL_Search(2073);">
				<div class="search-btn">
					&nbsp;</div>
				<a href="javascript:void(0);" id="2073_searchBT">搜索</a></div>
		</li>
	</ul>
</div>
<br>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2073_Title"   type="text" class="form-txt"  style="width:150px;" EntId="2073" IsField=1 DBField=1 IsPost=1 FieldName="Title" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="1" vlk=0    Cpre="="  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2073,' where  [FldUId]='05df31cb-8bf2-e81f-0bc9-4159eda3033b' 
      end



Delete from [Dcx_ListReport_Run]  where [EntId]=2073

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=2073  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('d1140444-1379-f736-c732-b92fb5d44775','废件箱',2073,-1,'','','<$2073$>select *  from (select row_number() over( order by [MailId])as dcx_rowid,[KeyFieldValue],[Title],[SenderUserName],[SenderDate],[MailId] from Dcx_IMail  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$2073$><$2073:Count$>select count([MailId]) from Dcx_IMail where {$SearchArea}</$2073:Count$>',1,1,10,'DcxRun.ListR_2073= {"MenuId":3310,"MEntId":2073,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"废件箱","EntMsg":{"E2073":{"EntId":2073,"EntName":"废件箱","KeyFieldValue":"","DBTableName":"Dcx_IMail","KeyField":"MailId","KeydtId":2,"JoinKeyField":"MailId","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','2073*MailId*2*MailId*2*Dcx_IMail*废件箱',3,'','2012-12-24 12:12:53',3,'','2013-7-30 2:51:17',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='d1140444-1379-f736-c732-b92fb5d44775',[ReportName]='废件箱',[ModuleId]=-1,[StaticHtml]='',[DIYJsCss]='',[LoadingSql]='<$2073$>select *  from (select row_number() over( order by [MailId])as dcx_rowid,[KeyFieldValue],[Title],[SenderUserName],[SenderDate],[MailId] from Dcx_IMail  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$2073$><$2073:Count$>select count([MailId]) from Dcx_IMail where {$SearchArea}</$2073:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=10,[AutoPublicJs]='DcxRun.ListR_2073= {"MenuId":3310,"MEntId":2073,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"废件箱","EntMsg":{"E2073":{"EntId":2073,"EntName":"废件箱","KeyFieldValue":"","DBTableName":"Dcx_IMail","KeyField":"MailId","KeydtId":2,"JoinKeyField":"MailId","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='2073*MailId*2*MailId*2*Dcx_IMail*废件箱',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-24 12:12:53',[EditorId]=3,[Editor]='',[EditTime]='2013-7-30 2:51:17',[AccountId]=1 where  [EntId]=2073 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='a5959b05-3f4f-a619-9a00-eacc8b2cdb02'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(18,'a5959b05-3f4f-a619-9a00-eacc8b2cdb02',2073,2073,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<div class="listreport">
	<div class="toolbar">
		<ul class="tool-ul" groupid="2" isgroup="1" istoolbar="1" style="WIdTH: 810px" isrple="1">
			<li areaid="27" class="tool-li" style="position: static;">
				<a class="list-bt-add" href="javascript:void(0);" id="ListR_2073_btn_buildNew" onclick="javascript:DcxCom.ShowAddDataDlg(2073,''ListR_'');" title="添   加">添 加</a></li>
			<li areaid="28" class="tool-li" style="position: static;">
				<a class="list-bt-other" href="javascript:void(0);" id="ListR_2073_deletebut" onclick="javascript:DcxReport.DeleteDatas(2073,''ListR_'');" title="删   除">删 除</a></li>
			<li areaid="29" class="tool-li" style="position: static;">
				<a class="list-bt-other" href="javascript:void(0);" id="ListR_2073_ExportToExcelbut" onclick="javascript:DcxCom.ExportExcel(2073,''ListR_'');" title="导   出">导 出</a></li>
			<li areaid="30" class="tool-li" style="position: static;">
				<a class="list-bt-other" href="javascript:void(0);" id="ListR_2073_refreshbut" onclick="javascript:DcxCom.ReLoad(2073,''ListR_'');" title="刷   新">刷 新</a></li>
			<!--分页栏-->
			<li areaid="31" class="pages" id="li2_ListR_2073" style="width: 160px; height: 24px; position: static;">
				<a class="list-pages list-prepage" href="javascript:void(0);" id="ListR_2073_PrevPage" isfirstpage="1" onclick="javascript:DcxSch.GetHtml(2073,''ListR_'',''p'');" title="上一页">上一页</a> <span class="ddl_pageindex list-pagesdown"><select id="ddl_ListR_2073_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(2073,''ListR_'',''a'',this);"></select> </span><a class="list-pages list-nextpage" href="javascript:void(0);" id="ListR_2073_NextPage" isnextpage="1" onclick="javascript:DcxSch.GetHtml(2073,''ListR_'',''n'');" title="下一页">下一页</a> <span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_2073_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">条记录</span></li>
		</ul>
	</div>
	<!-- 列表主体-->
	<div class="list-area dcx-scroll">
		<div class="list-head">
			<ul class="list-head-ul" groupid="3" isgroup="1" style="width: 807px;" isrple="1">
				<li areaid="32" class="list-if-select" style="clear: none; float: left; height: 30px; position: static;">
					<input class="chPut ifselect" id="ckb_CheckAllListR_2073" onclick="javascript:DcxCom.CheckedAll(this,2073,''ListR_'');" rel="chkall" type="checkbox"></li>
				<li areaid="33" class="list-head-li" style="width: 50px; height: 30px; clear: none; float: left; position: static;"><div class="list-li-field" style="padding-top:9px;">
	<label istitle="1"><img src="/MyApp/NewMail/Images/ico_mailTitle.gif"></label></div>
</li>
				<li areaid="34" class="list-head-li" style="clear: none; float: left; height: 30px; width: 410px; position: static;"><div class="list-li-field">
	<label istitle="1">标题</label></div>
</li>
				<li areaid="35" class="list-head-li" style="clear: none; float: left; height: 30px; width: 130px; position: static;">
					<div class="list-li-field">
						<label istitle="1">发送人</label></div>
				</li>
				<li areaid="36" class="list-head-li" style="clear: right; float: left; height: 30px; width: 170px; position: static;"><div class="list-li-field">
	<label istitle="1">发件时间</label></div>
</li>
				
				
				
				
			</ul>
		</div>
		<div class="list-body">','',-1,4,-1,-1,1,'2073,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=18,[Report_EntId]=2073,[EntId]=2073,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="listreport">
	<div class="toolbar">
		<ul class="tool-ul" groupid="2" isgroup="1" istoolbar="1" style="WIdTH: 810px" isrple="1">
			<li areaid="27" class="tool-li" style="position: static;">
				<a class="list-bt-add" href="javascript:void(0);" id="ListR_2073_btn_buildNew" onclick="javascript:DcxCom.ShowAddDataDlg(2073,''ListR_'');" title="添   加">添 加</a></li>
			<li areaid="28" class="tool-li" style="position: static;">
				<a class="list-bt-other" href="javascript:void(0);" id="ListR_2073_deletebut" onclick="javascript:DcxReport.DeleteDatas(2073,''ListR_'');" title="删   除">删 除</a></li>
			<li areaid="29" class="tool-li" style="position: static;">
				<a class="list-bt-other" href="javascript:void(0);" id="ListR_2073_ExportToExcelbut" onclick="javascript:DcxCom.ExportExcel(2073,''ListR_'');" title="导   出">导 出</a></li>
			<li areaid="30" class="tool-li" style="position: static;">
				<a class="list-bt-other" href="javascript:void(0);" id="ListR_2073_refreshbut" onclick="javascript:DcxCom.ReLoad(2073,''ListR_'');" title="刷   新">刷 新</a></li>
			<!--分页栏-->
			<li areaid="31" class="pages" id="li2_ListR_2073" style="width: 160px; height: 24px; position: static;">
				<a class="list-pages list-prepage" href="javascript:void(0);" id="ListR_2073_PrevPage" isfirstpage="1" onclick="javascript:DcxSch.GetHtml(2073,''ListR_'',''p'');" title="上一页">上一页</a> <span class="ddl_pageindex list-pagesdown"><select id="ddl_ListR_2073_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(2073,''ListR_'',''a'',this);"></select> </span><a class="list-pages list-nextpage" href="javascript:void(0);" id="ListR_2073_NextPage" isnextpage="1" onclick="javascript:DcxSch.GetHtml(2073,''ListR_'',''n'');" title="下一页">下一页</a> <span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_2073_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">条记录</span></li>
		</ul>
	</div>
	<!-- 列表主体-->
	<div class="list-area dcx-scroll">
		<div class="list-head">
			<ul class="list-head-ul" groupid="3" isgroup="1" style="width: 807px;" isrple="1">
				<li areaid="32" class="list-if-select" style="clear: none; float: left; height: 30px; position: static;">
					<input class="chPut ifselect" id="ckb_CheckAllListR_2073" onclick="javascript:DcxCom.CheckedAll(this,2073,''ListR_'');" rel="chkall" type="checkbox"></li>
				<li areaid="33" class="list-head-li" style="width: 50px; height: 30px; clear: none; float: left; position: static;"><div class="list-li-field" style="padding-top:9px;">
	<label istitle="1"><img src="/MyApp/NewMail/Images/ico_mailTitle.gif"></label></div>
</li>
				<li areaid="34" class="list-head-li" style="clear: none; float: left; height: 30px; width: 410px; position: static;"><div class="list-li-field">
	<label istitle="1">标题</label></div>
</li>
				<li areaid="35" class="list-head-li" style="clear: none; float: left; height: 30px; width: 130px; position: static;">
					<div class="list-li-field">
						<label istitle="1">发送人</label></div>
				</li>
				<li areaid="36" class="list-head-li" style="clear: right; float: left; height: 30px; width: 170px; position: static;"><div class="list-li-field">
	<label istitle="1">发件时间</label></div>
</li>
				
				
				
				
			</ul>
		</div>
		<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2073,' where  [FldUId]='a5959b05-3f4f-a619-9a00-eacc8b2cdb02' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='7f332b42-c9cf-c16c-9280-82e5c4a092ae'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'7f332b42-c9cf-c16c-9280-82e5c4a092ae',2073,2073,'00000000-0000-0000-0000-000000000000',23,'KeyFieldValue',2,1,'varchar',2,1,0,'','','','class="list-body-ul" groupid="4" isgroup="1" style="width: 807px;" isrple="1">
				<li areaid="41" class="list-if-select" style="clear: none; float: left; height: 30px; position: static;">
					<input class="ckb_del" ctrlprex="ListR_" entid="2073" issyscheck="1" keyvalue="','',-1,4,-1,-1,1,'2073,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=2,[Report_EntId]=2073,[EntId]=2073,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=23,[FieldName]='KeyFieldValue',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='class="list-body-ul" groupid="4" isgroup="1" style="width: 807px;" isrple="1">
				<li areaid="41" class="list-if-select" style="clear: none; float: left; height: 30px; position: static;">
					<input class="ckb_del" ctrlprex="ListR_" entid="2073" issyscheck="1" keyvalue="',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2073,' where  [FldUId]='7f332b42-c9cf-c16c-9280-82e5c4a092ae' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='9c8e18d3-662a-4cb5-49ef-a50930f6549f'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'9c8e18d3-662a-4cb5-49ef-a50930f6549f',2073,2073,'00000000-0000-0000-0000-000000000000',-1,'IsReaded',3,1,'varchar',2,3,0,'','','','" type="checkbox"></li>
				<li areaid="42" class="list-body-li" style="clear: none; float: left; height: 30px; width: 50px; position: static;">
					<div class="list-li-field">
						<span isfield="1" entid="2073" fieldname="IsReaded" fldid="8" columntypeid="1" class="form-ctr">','',42,4,-1,-1,1,'2073,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=8,[Report_EntId]=2073,[EntId]=2073,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='IsReaded',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=3,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='" type="checkbox"></li>
				<li areaid="42" class="list-body-li" style="clear: none; float: left; height: 30px; width: 50px; position: static;">
					<div class="list-li-field">
						<span isfield="1" entid="2073" fieldname="IsReaded" fldid="8" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=42,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2073,' where  [FldUId]='9c8e18d3-662a-4cb5-49ef-a50930f6549f' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='08bde40f-6a11-a5d3-c1fc-af09f8bf0994'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'08bde40f-6a11-a5d3-c1fc-af09f8bf0994',2073,2073,'00000000-0000-0000-0000-000000000000',4,'Title',4,1,'varchar',2,1,0,'','','','</span>
</div>
				</li>
				<li areaid="43" class="list-body-li" style="width: 410px; height: 30px; clear: none; float: left; position: static;">
					<div class="list-li-field">
						<span isfield="1" entid="2073" fieldname="Title" fldid="9" columntypeid="1" class="form-ctr">','',-1,4,-1,-1,1,'2073,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=9,[Report_EntId]=2073,[EntId]=2073,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=4,[FieldName]='Title',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
</div>
				</li>
				<li areaid="43" class="list-body-li" style="width: 410px; height: 30px; clear: none; float: left; position: static;">
					<div class="list-li-field">
						<span isfield="1" entid="2073" fieldname="Title" fldid="9" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2073,' where  [FldUId]='08bde40f-6a11-a5d3-c1fc-af09f8bf0994' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='2e247a51-0dcc-f066-b659-c575b72e2f0c'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'2e247a51-0dcc-f066-b659-c575b72e2f0c',2073,2073,'00000000-0000-0000-0000-000000000000',3,'SenderUserName',5,1,'varchar',2,1,0,'','','','</span>
</div>
				</li>
				<li areaid="44" class="list-body-li" style="clear: none; float: left; height: 30px; width: 130px; position: static;">
					<div class="list-li-field">
						<span isfield="1" entid="2073" fieldname="SenderUserName" fldid="10" columntypeid="1" class="form-ctr">','',-1,4,-1,-1,1,'2073,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=10,[Report_EntId]=2073,[EntId]=2073,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='SenderUserName',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
</div>
				</li>
				<li areaid="44" class="list-body-li" style="clear: none; float: left; height: 30px; width: 130px; position: static;">
					<div class="list-li-field">
						<span isfield="1" entid="2073" fieldname="SenderUserName" fldid="10" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2073,' where  [FldUId]='2e247a51-0dcc-f066-b659-c575b72e2f0c' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='9657bd1c-2d8e-cddf-3f39-150600753a23'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'9657bd1c-2d8e-cddf-3f39-150600753a23',2073,2073,'00000000-0000-0000-0000-000000000000',6,'SenderDate',6,1,'datetime',3,1,0,'','','','</span>
</div>
				</li>
				<li areaid="45" class="list-body-li" style="clear: right; float: left; height: 30px; width: 170px; position: static;">
					<div class="list-li-field">
						<span isfield="1" entid="2073" fieldname="SenderDate" fldid="11" columntypeid="1" class="form-ctr">','',-1,4,-1,-1,1,'2073,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=11,[Report_EntId]=2073,[EntId]=2073,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=6,[FieldName]='SenderDate',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='datetime',[FieldDataTypeId]=3,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
</div>
				</li>
				<li areaid="45" class="list-body-li" style="clear: right; float: left; height: 30px; width: 170px; position: static;">
					<div class="list-li-field">
						<span isfield="1" entid="2073" fieldname="SenderDate" fldid="11" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2073,' where  [FldUId]='9657bd1c-2d8e-cddf-3f39-150600753a23' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='4ff8065d-0328-1665-91ff-5b57e1629463'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(19,'4ff8065d-0328-1665-91ff-5b57e1629463',2073,2073,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',7,-1,'varchar',2,13,0,'','','','</span>
</div>
				</li>
				
				
				
				
			</ul>','</div>
	</div>
</div>
<br>',-1,4,-1,-1,1,'2073,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=19,[Report_EntId]=2073,[EntId]=2073,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=7,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
</div>
				</li>
				
				
				
				
			</ul>',[LastHtml]='</div>
	</div>
</div>
<br>',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2073,' where  [FldUId]='4ff8065d-0328-1665-91ff-5b57e1629463' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=207

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=207  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(207,null,'Dcx_IMail','Dcx_IMail',1,0,0,0,0,0,30,1,3,'admin','2013-12-15 17:32:16',3,'admin','2013-12-15 17:32:16',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='Dcx_IMail',[DBTableByName]='Dcx_IMail',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=30,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:16',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:16',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=207 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18246,1,30,207,'int',1,1,1,'Dcx_IMail','MailId','MailId','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='MailId',[FieldByname]='MailId',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18247,2,30,207,'int',1,1,1,'Dcx_IMail','SenderUserId','SenderUserId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='SenderUserId',[FieldByname]='SenderUserId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18248,3,30,207,'varchar',2,1,1,'Dcx_IMail','SenderUserName','SenderUserName','',0,0,0,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='SenderUserName',[FieldByname]='SenderUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18249,4,30,207,'varchar',2,1,1,'Dcx_IMail','Title','Title','',0,0,0,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='Title',[FieldByname]='Title',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18250,5,30,207,'varchar',2,1,1,'Dcx_IMail','Body','Body','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='Body',[FieldByname]='Body',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18251,6,30,207,'datetime',3,1,1,'Dcx_IMail','SenderDate','SenderDate','',0,0,0,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='SenderDate',[FieldByname]='SenderDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18252,7,30,207,'bit',4,1,1,'Dcx_IMail','SendSms','SendSms','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='SendSms',[FieldByname]='SendSms',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18253,8,30,207,'bit',4,1,1,'Dcx_IMail','SendEMail','SendEMail','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='SendEMail',[FieldByname]='SendEMail',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18254,9,30,207,'varchar',2,1,1,'Dcx_IMail','SenderMsgFlag','SenderMsgFlag','',0,0,1,20,20,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='SenderMsgFlag',[FieldByname]='SenderMsgFlag',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=20,[Precision]=20,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18255,10,30,207,'varchar',2,1,1,'Dcx_IMail','ReceiverUserIds','ReceiverUserIds','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='ReceiverUserIds',[FieldByname]='ReceiverUserIds',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18256,11,30,207,'varchar',2,1,1,'Dcx_IMail','ReceiverUserNames','ReceiverUserNames','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='ReceiverUserNames',[FieldByname]='ReceiverUserNames',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18257,12,30,207,'varchar',2,1,1,'Dcx_IMail','ReadUserIds','ReadUserIds','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='ReadUserIds',[FieldByname]='ReadUserIds',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18258,13,30,207,'varchar',2,1,1,'Dcx_IMail','ReadUserNames','ReadUserNames','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='ReadUserNames',[FieldByname]='ReadUserNames',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18259,14,30,207,'varchar',2,1,1,'Dcx_IMail','DelUserIds','DelUserIds','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='DelUserIds',[FieldByname]='DelUserIds',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18260,15,30,207,'varchar',2,1,1,'Dcx_IMail','DeleteUseIds','DeleteUseIds','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='DeleteUseIds',[FieldByname]='DeleteUseIds',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18261,16,30,207,'bit',4,1,1,'Dcx_IMail','IsDeleted','IsDeleted','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='IsDeleted',[FieldByname]='IsDeleted',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18262,17,30,207,'bit',4,1,1,'Dcx_IMail','MeetReceipt','MeetReceipt','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='MeetReceipt',[FieldByname]='MeetReceipt',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18263,18,30,207,'bit',4,1,1,'Dcx_IMail','SendDcxSms','SendDcxSms','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='SendDcxSms',[FieldByname]='SendDcxSms',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18264,19,30,207,'bit',4,1,1,'Dcx_IMail','HaveAttachment','HaveAttachment','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='HaveAttachment',[FieldByname]='HaveAttachment',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18265,20,30,207,'tinyint',23,1,1,'Dcx_IMail','Flag','Flag','',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='Flag',[FieldByname]='Flag',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18266,21,30,207,'int',1,1,1,'Dcx_IMail','EntId','EntId','0',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='EntId',[FieldByname]='EntId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18267,22,30,207,'int',1,1,1,'Dcx_IMail','MenuId','MenuId','0',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='MenuId',[FieldByname]='MenuId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=207  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18268,23,30,207,'varchar',2,1,1,'Dcx_IMail','KeyFieldValue','KeyFieldValue','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_IMail',[FieldName]='KeyFieldValue',[FieldByname]='KeyFieldValue',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=207  and  [FieldId]=23 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 



Delete from [Dcx_EntityPrivilege]  where [EntId]=2074

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2074  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11108,-1,2074,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2074  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=3311  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(3311,'b18874c8-0aa2-4f24-ab02-93336feaa79b','私信',948,'/MyApp/WLetter/WLetter.html?menuid=11',1,'/images/default.gif','/images/default.gif',2,'rightFrame',0,0,'',30,-1,30,3,1,1,null,'',0,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='b18874c8-0aa2-4f24-ab02-93336feaa79b',[MenuName]='私信',[ParentId]=948,[ProPath]='/MyApp/WLetter/WLetter.html?menuid=11',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=2,[Target]='rightFrame',[IsOpen]=0,[IsHidden]=0,[Remark]='',[SSystemId]=30,[SMenuId]=-1,[SystemId]=30,[EntityCount]=3,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=3311 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=3311  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(1006,3311,'新内部短信','Public',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]='新内部短信',[RoleName]='Public',[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=3311  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2075  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2075,3311,'收信箱',1,223,0,'Dcx_INote',0,0,1,30,2075,null,null,30,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3311,[EntName]='收信箱',[MEnt]=1,[DBTableId]=223,[DBConnectId]=0,[DBTableName]='Dcx_INote',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=30,[SEntId]=2075,[FSystemId]=null,[FEntId]=null,[SystemId]=30,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2075 
      end
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2076  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2076,3311,'发短信',1,223,0,'Dcx_INote',0,0,1,30,2076,null,null,30,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3311,[EntName]='发短信',[MEnt]=1,[DBTableId]=223,[DBConnectId]=0,[DBTableName]='Dcx_INote',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=30,[SEntId]=2076,[FSystemId]=null,[FEntId]=null,[SystemId]=30,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2076 
      end
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2077  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2077,3311,'已发短信',1,223,0,'Dcx_INote',0,0,1,30,2077,null,null,30,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=3311,[EntName]='已发短信',[MEnt]=1,[DBTableId]=223,[DBConnectId]=0,[DBTableName]='Dcx_INote',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=30,[SEntId]=2077,[FSystemId]=null,[FEntId]=null,[SystemId]=30,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2077 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=2075

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2075  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11109,-1,2075,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2075  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2075

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2075  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20548,30,3311,2075,73,2,9,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=3311,[TemplateId]=73,[ModuleId]=9,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2075  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2075  and  [ModuleTypeId]=5  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20549,30,3311,2075,73,5,25,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=3311,[TemplateId]=73,[ModuleId]=25,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2075  and  [ModuleTypeId]=5 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2075  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20550,30,3311,2075,73,1,1,1,3,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=3311,[TemplateId]=73,[ModuleId]=1,[GroupId]=1,[AreaId]=3,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2075  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2075  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20551,30,3311,2075,73,3,14,1,4,2,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=3311,[TemplateId]=73,[ModuleId]=14,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2075  and  [ModuleTypeId]=3 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2075  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20552,30,3311,2075,73,16,31,1,5,2,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=3311,[TemplateId]=73,[ModuleId]=31,[GroupId]=1,[AreaId]=5,[ShowMode]=2,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2075  and  [ModuleTypeId]=16 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_ListReport_Run]  where [EntId]=2075

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=2075  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('4021652a-a91c-1a98-235e-5c590b85ef16','收信箱',2075,-1,'','','<$2075$>select *  from (select row_number() over( order by [NoteId])as dcx_rowid,[ReadFlag],[SenderName],[NoteContent],[SentDate],[NoteId] from Dcx_INote  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$2075$><$2075:Count$>select count([NoteId]) from Dcx_INote where {$SearchArea}</$2075:Count$>',1,1,10,'DcxRun.ListR_2075= {"MenuId":3311,"MEntId":2075,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"收信箱","EntMsg":{"E2075":{"EntId":2075,"EntName":"收信箱","KeyFieldValue":"","DBTableName":"Dcx_INote","KeyField":"NoteId","KeydtId":2,"JoinKeyField":"NoteId","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','2075*NoteId*2*NoteId*2*Dcx_INote*收信箱',3,'','2012-12-26 4:14:28',3,'','2013-7-30 2:51:17',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='4021652a-a91c-1a98-235e-5c590b85ef16',[ReportName]='收信箱',[ModuleId]=-1,[StaticHtml]='',[DIYJsCss]='',[LoadingSql]='<$2075$>select *  from (select row_number() over( order by [NoteId])as dcx_rowid,[ReadFlag],[SenderName],[NoteContent],[SentDate],[NoteId] from Dcx_INote  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$2075$><$2075:Count$>select count([NoteId]) from Dcx_INote where {$SearchArea}</$2075:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=10,[AutoPublicJs]='DcxRun.ListR_2075= {"MenuId":3311,"MEntId":2075,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"收信箱","EntMsg":{"E2075":{"EntId":2075,"EntName":"收信箱","KeyFieldValue":"","DBTableName":"Dcx_INote","KeyField":"NoteId","KeydtId":2,"JoinKeyField":"NoteId","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='2075*NoteId*2*NoteId*2*Dcx_INote*收信箱',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-26 4:14:28',[EditorId]=3,[Editor]='',[EditTime]='2013-7-30 2:51:17',[AccountId]=1 where  [EntId]=2075 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='4fd7719e-3836-89d4-8329-5ebf4708a33a'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(14,'4fd7719e-3836-89d4-8329-5ebf4708a33a',2075,2075,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<div class="listreport">
	<div class="toolbar">
		<ul class="tool-ul" groupid="2" isgroup="1" istoolbar="1" style="wIdth: 844px;" isrple="1">
			<li areaid="27" class="tool-li" style="position: static;">
				<a class="list-bt-add" href="javascript:void(0);" id="ListR_2075_btn_buildNew" onclick="javascript:DcxCom.ShowAddDataDlg(2075,''ListR_'');" title="添   加">添 加</a></li>
			<li areaid="28" class="tool-li" style="position: static;">
				<a class="list-bt-other" href="javascript:void(0);" id="ListR_2075_deletebut" onclick="javascript:DcxReport.DeleteDatas(2075,''ListR_'');" title="删   除">删 除</a></li>
			<li areaid="29" class="tool-li" style="position: static;">
				<a class="list-bt-other" href="javascript:void(0);" id="ListR_2075_ExportToExcelbut" onclick="javascript:DcxCom.ExportExcel(2075,''ListR_'');" title="导   出">导 出</a></li>
			<li areaid="30" class="tool-li" style="position: static;">
				<a class="list-bt-other" href="javascript:void(0);" id="ListR_2075_refreshbut" onclick="javascript:DcxCom.ReLoad(2075,''ListR_'');" title="刷   新">刷 新</a></li>
			<!--分页栏-->
			<li areaid="31" class="pages" id="li2_ListR_2075" style="width: 160px; height: 24px; position: static;">
				<a class="list-pages list-prepage" href="javascript:void(0);" id="ListR_2075_PrevPage" isfirstpage="1" onclick="javascript:DcxSch.GetHtml(2075,''ListR_'',''p'');" title="上一页">上一页</a> <span class="ddl_pageindex list-pagesdown"><select id="ddl_ListR_2075_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(2075,''ListR_'',''a'',this);"></select> </span><a class="list-pages list-nextpage" href="javascript:void(0);" id="ListR_2075_NextPage" isnextpage="1" onclick="javascript:DcxSch.GetHtml(2075,''ListR_'',''n'');" title="下一页">下一页</a> <span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_2075_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">条记录</span></li>
		</ul>
	</div>
	<!-- 列表主体-->
	<div class="list-area dcx-scroll">
		<div class="list-head">
			<ul class="list-head-ul" groupid="3" isgroup="1" style="width: 825px;" isrple="1">
				<li areaid="32" class="list-if-select" style="clear: none; float: left; height: 30px; position: static;">
					<input class="chPut ifselect" id="ckb_CheckAllListR_2075" onclick="javascript:DcxCom.CheckedAll(this,2075,''ListR_'');" rel="chkall" type="checkbox"></li>
				<li areaid="33" class="list-head-li" style="width: 60px; height: 30px; clear: none; float: left; position: static;"><div class="list-li-field">
	<label istitle="1">已阅读</label></div>
</li>
				<li areaid="34" class="list-head-li" style="clear: none; float: left; height: 30px; width: 90px; position: static;"><div class="list-li-field">
	<label istitle="1">发送人</label></div>
</li>
				<li areaid="35" class="list-head-li" style="clear: none; float: left; height: 30px; width: 450px; position: static;">
					<div class="list-li-field">
						<label istitle="1">内容</label></div>
				</li>
				<li areaid="36" class="list-head-li" style="clear: none; float: left; height: 30px; width: 110px; position: static;">
					<div class="list-li-field">
						<label istitle="1">发送时间</label></div>
				</li>
				
				
				<li areaid="39" class="list-operate" style="clear: none; float: left; height: 30px; width: 32px; position: static;">
					<div class="edit">
						<a class="li-item-btn btn-pink " href="javascript:void(0);" title="编辑"><span class="i">编辑</span></a></div>
				</li>
				<li areaid="40" class="list-operate" style="clear: right; float: left; height: 30px; position: static;">
					<div class="delete">
						<a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除"><span class="i">删除</span></a></div>
				</li>
			</ul>
		</div>
		<div class="list-body">','',-1,4,-1,-1,1,'2075,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=14,[Report_EntId]=2075,[EntId]=2075,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="listreport">
	<div class="toolbar">
		<ul class="tool-ul" groupid="2" isgroup="1" istoolbar="1" style="wIdth: 844px;" isrple="1">
			<li areaid="27" class="tool-li" style="position: static;">
				<a class="list-bt-add" href="javascript:void(0);" id="ListR_2075_btn_buildNew" onclick="javascript:DcxCom.ShowAddDataDlg(2075,''ListR_'');" title="添   加">添 加</a></li>
			<li areaid="28" class="tool-li" style="position: static;">
				<a class="list-bt-other" href="javascript:void(0);" id="ListR_2075_deletebut" onclick="javascript:DcxReport.DeleteDatas(2075,''ListR_'');" title="删   除">删 除</a></li>
			<li areaid="29" class="tool-li" style="position: static;">
				<a class="list-bt-other" href="javascript:void(0);" id="ListR_2075_ExportToExcelbut" onclick="javascript:DcxCom.ExportExcel(2075,''ListR_'');" title="导   出">导 出</a></li>
			<li areaid="30" class="tool-li" style="position: static;">
				<a class="list-bt-other" href="javascript:void(0);" id="ListR_2075_refreshbut" onclick="javascript:DcxCom.ReLoad(2075,''ListR_'');" title="刷   新">刷 新</a></li>
			<!--分页栏-->
			<li areaid="31" class="pages" id="li2_ListR_2075" style="width: 160px; height: 24px; position: static;">
				<a class="list-pages list-prepage" href="javascript:void(0);" id="ListR_2075_PrevPage" isfirstpage="1" onclick="javascript:DcxSch.GetHtml(2075,''ListR_'',''p'');" title="上一页">上一页</a> <span class="ddl_pageindex list-pagesdown"><select id="ddl_ListR_2075_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(2075,''ListR_'',''a'',this);"></select> </span><a class="list-pages list-nextpage" href="javascript:void(0);" id="ListR_2075_NextPage" isnextpage="1" onclick="javascript:DcxSch.GetHtml(2075,''ListR_'',''n'');" title="下一页">下一页</a> <span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_2075_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">条记录</span></li>
		</ul>
	</div>
	<!-- 列表主体-->
	<div class="list-area dcx-scroll">
		<div class="list-head">
			<ul class="list-head-ul" groupid="3" isgroup="1" style="width: 825px;" isrple="1">
				<li areaid="32" class="list-if-select" style="clear: none; float: left; height: 30px; position: static;">
					<input class="chPut ifselect" id="ckb_CheckAllListR_2075" onclick="javascript:DcxCom.CheckedAll(this,2075,''ListR_'');" rel="chkall" type="checkbox"></li>
				<li areaid="33" class="list-head-li" style="width: 60px; height: 30px; clear: none; float: left; position: static;"><div class="list-li-field">
	<label istitle="1">已阅读</label></div>
</li>
				<li areaid="34" class="list-head-li" style="clear: none; float: left; height: 30px; width: 90px; position: static;"><div class="list-li-field">
	<label istitle="1">发送人</label></div>
</li>
				<li areaid="35" class="list-head-li" style="clear: none; float: left; height: 30px; width: 450px; position: static;">
					<div class="list-li-field">
						<label istitle="1">内容</label></div>
				</li>
				<li areaid="36" class="list-head-li" style="clear: none; float: left; height: 30px; width: 110px; position: static;">
					<div class="list-li-field">
						<label istitle="1">发送时间</label></div>
				</li>
				
				
				<li areaid="39" class="list-operate" style="clear: none; float: left; height: 30px; width: 32px; position: static;">
					<div class="edit">
						<a class="li-item-btn btn-pink " href="javascript:void(0);" title="编辑"><span class="i">编辑</span></a></div>
				</li>
				<li areaid="40" class="list-operate" style="clear: right; float: left; height: 30px; position: static;">
					<div class="delete">
						<a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除"><span class="i">删除</span></a></div>
				</li>
			</ul>
		</div>
		<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2075,' where  [FldUId]='4fd7719e-3836-89d4-8329-5ebf4708a33a' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='0c91e363-2e91-f7a8-3ebd-69ff6cbced69'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'0c91e363-2e91-f7a8-3ebd-69ff6cbced69',2075,2075,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',2,1,'varchar',2,21,0,'','','','class="list-body-ul" groupid="4" isgroup="1" style="width: 825px;" isrple="1">
				<li areaid="41" class="list-if-select" style="clear: none; float: left; height: 30px; position: static;">
					<input class="ckb_del" ctrlprex="ListR_" entid="2075" issyscheck="1" keyvalue="','',-1,4,-1,-1,1,'2075,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=2,[Report_EntId]=2075,[EntId]=2075,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='class="list-body-ul" groupid="4" isgroup="1" style="width: 825px;" isrple="1">
				<li areaid="41" class="list-if-select" style="clear: none; float: left; height: 30px; position: static;">
					<input class="ckb_del" ctrlprex="ListR_" entid="2075" issyscheck="1" keyvalue="',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2075,' where  [FldUId]='0c91e363-2e91-f7a8-3ebd-69ff6cbced69' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='2e55806c-7767-b902-01ab-0cd7b479d3d5'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'2e55806c-7767-b902-01ab-0cd7b479d3d5',2075,2075,'00000000-0000-0000-0000-000000000000',9,'ReadFlag',3,1,'bit',4,1,0,'','','','" type="checkbox"></li>
				<li areaid="42" class="list-body-li" style="width: 60px; height: 30px; clear: none; float: left; position: static;"><div class="list-li-field">
	<span isfield="1" entid="2075" fieldname="ReadFlag" fldid="6" columntypeid="1" class="form-ctr">','',-1,4,-1,-1,1,'2075,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=6,[Report_EntId]=2075,[EntId]=2075,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=9,[FieldName]='ReadFlag',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='bit',[FieldDataTypeId]=4,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='" type="checkbox"></li>
				<li areaid="42" class="list-body-li" style="width: 60px; height: 30px; clear: none; float: left; position: static;"><div class="list-li-field">
	<span isfield="1" entid="2075" fieldname="ReadFlag" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2075,' where  [FldUId]='2e55806c-7767-b902-01ab-0cd7b479d3d5' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='286f4a74-e5dc-539a-2dea-8cd755be0a99'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'286f4a74-e5dc-539a-2dea-8cd755be0a99',2075,2075,'00000000-0000-0000-0000-000000000000',3,'SenderName',4,1,'varchar',2,1,0,'','','','</span>

</div>
</li>
				<li areaid="43" class="list-body-li" style="clear: none; float: left; height: 30px; width: 90px; position: static;"><div class="list-li-field">
	<span isfield="1" entid="2075" fieldname="SenderName" fldid="7" columntypeid="1" class="form-ctr">','',-1,4,-1,-1,1,'2075,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=7,[Report_EntId]=2075,[EntId]=2075,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='SenderName',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>

</div>
</li>
				<li areaid="43" class="list-body-li" style="clear: none; float: left; height: 30px; width: 90px; position: static;"><div class="list-li-field">
	<span isfield="1" entid="2075" fieldname="SenderName" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2075,' where  [FldUId]='286f4a74-e5dc-539a-2dea-8cd755be0a99' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='ea49717a-8f2e-ba18-4443-b3d33afbf2b7'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'ea49717a-8f2e-ba18-4443-b3d33afbf2b7',2075,2075,'00000000-0000-0000-0000-000000000000',6,'NoteContent',5,1,'varchar',2,1,0,'','','','</span>

</div>
</li>
				<li areaid="44" class="list-body-li" style="clear: none; float: left; height: 30px; width: 450px; position: static;"><div class="list-li-field">
	<span isfield="1" entid="2075" fieldname="NoteContent" fldid="8" columntypeid="1" class="form-ctr">','',-1,4,-1,-1,1,'2075,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=8,[Report_EntId]=2075,[EntId]=2075,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=6,[FieldName]='NoteContent',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>

</div>
</li>
				<li areaid="44" class="list-body-li" style="clear: none; float: left; height: 30px; width: 450px; position: static;"><div class="list-li-field">
	<span isfield="1" entid="2075" fieldname="NoteContent" fldid="8" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2075,' where  [FldUId]='ea49717a-8f2e-ba18-4443-b3d33afbf2b7' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='af93e005-0365-8abd-dcf8-00acb5e0fb4e'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'af93e005-0365-8abd-dcf8-00acb5e0fb4e',2075,2075,'00000000-0000-0000-0000-000000000000',7,'SentDate',6,1,'datetime',3,1,0,'','','','</span>






</div>
</li>
				<li areaid="45" class="list-body-li" style="clear: none; float: left; height: 30px; width: 110px; position: static;"><div class="list-li-field">
	<span isfield="1" entid="2075" fieldname="SentDate" fldid="9" columntypeid="1" class="form-ctr">','',-1,4,-1,-1,1,'2075,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=9,[Report_EntId]=2075,[EntId]=2075,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=7,[FieldName]='SentDate',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='datetime',[FieldDataTypeId]=3,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>






</div>
</li>
				<li areaid="45" class="list-body-li" style="clear: none; float: left; height: 30px; width: 110px; position: static;"><div class="list-li-field">
	<span isfield="1" entid="2075" fieldname="SentDate" fldid="9" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2075,' where  [FldUId]='af93e005-0365-8abd-dcf8-00acb5e0fb4e' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='3c924873-f3ed-8dda-472e-96525eefe417'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'3c924873-f3ed-8dda-472e-96525eefe417',2075,2075,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',7,1,'varchar',2,21,0,'','','','</span>



</div>
</li>
				
				
				<li areaid="48" class="list-operate" style="clear: none; float: left; height: 30px; position: static; width: 32px;">
					<div class="edit">
						<a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,2075,''ListR_'',''','',-1,4,-1,-1,1,'2075,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=3,[Report_EntId]=2075,[EntId]=2075,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>



</div>
</li>
				
				
				<li areaid="48" class="list-operate" style="clear: none; float: left; height: 30px; position: static; width: 32px;">
					<div class="edit">
						<a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,2075,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2075,' where  [FldUId]='3c924873-f3ed-8dda-472e-96525eefe417' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='0481d37f-79b0-7b96-619b-fee143a3bf50'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'0481d37f-79b0-7b96-619b-fee143a3bf50',2075,2075,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',8,1,'varchar',2,21,0,'','','',''',null,1040,480);"><span class="i">编辑</span></a></div>
				</li>
				<li areaid="49" class="list-operate" style="clear: right; float: left; height: 30px; position: static;">
					<div class="delete">
						<a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,2075,''ListR_'',''','',-1,4,-1,-1,1,'2075,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=4,[Report_EntId]=2075,[EntId]=2075,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);"><span class="i">编辑</span></a></div>
				</li>
				<li areaid="49" class="list-operate" style="clear: right; float: left; height: 30px; position: static;">
					<div class="delete">
						<a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,2075,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2075,' where  [FldUId]='0481d37f-79b0-7b96-619b-fee143a3bf50' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='3b690b02-711a-7ab2-a924-261910bb5682'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(15,'3b690b02-711a-7ab2-a924-261910bb5682',2075,2075,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',9,-1,'varchar',2,13,0,'','','',''');"><span class="i">删除</span></a></div>
				</li>
			</ul>','</div>
	</div>
</div>
<br>',-1,4,-1,-1,1,'2075,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=15,[Report_EntId]=2075,[EntId]=2075,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=9,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''');"><span class="i">删除</span></a></div>
				</li>
			</ul>',[LastHtml]='</div>
	</div>
</div>
<br>',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2075,' where  [FldUId]='3b690b02-711a-7ab2-a924-261910bb5682' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=223

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=223  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(223,null,'Dcx_INote','Dcx_INote',1,0,0,0,0,0,30,1,3,'admin','2013-12-15 17:32:17',3,'admin','2013-12-15 17:32:17',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='Dcx_INote',[DBTableByName]='Dcx_INote',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=30,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:17',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:17',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=223 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=223  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18559,1,30,223,'int',1,1,1,'Dcx_INote','NoteId','NoteId','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_INote',[FieldName]='NoteId',[FieldByname]='NoteId',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=223  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=223  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18560,2,30,223,'int',1,1,1,'Dcx_INote','SenderId','SenderId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_INote',[FieldName]='SenderId',[FieldByname]='SenderId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=223  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=223  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18561,3,30,223,'varchar',2,1,1,'Dcx_INote','SenderName','SenderName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_INote',[FieldName]='SenderName',[FieldByname]='SenderName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=223  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=223  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18562,4,30,223,'int',1,1,1,'Dcx_INote','ReceiverId','ReceiverId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_INote',[FieldName]='ReceiverId',[FieldByname]='ReceiverId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=223  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=223  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18563,5,30,223,'varchar',2,1,1,'Dcx_INote','ReceiverName','ReceiverName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_INote',[FieldName]='ReceiverName',[FieldByname]='ReceiverName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=223  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=223  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18564,6,30,223,'varchar',2,1,1,'Dcx_INote','NoteContent','NoteContent','',0,0,0,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_INote',[FieldName]='NoteContent',[FieldByname]='NoteContent',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=223  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=223  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18565,7,30,223,'datetime',3,1,1,'Dcx_INote','SentDate','SentDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_INote',[FieldName]='SentDate',[FieldByname]='SentDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=223  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=223  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18566,8,30,223,'datetime',3,1,1,'Dcx_INote','ReadDate','ReadDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_INote',[FieldName]='ReadDate',[FieldByname]='ReadDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=223  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=223  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18567,9,30,223,'bit',4,1,1,'Dcx_INote','ReadFlag','ReadFlag','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_INote',[FieldName]='ReadFlag',[FieldByname]='ReadFlag',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=223  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=223  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18568,10,30,223,'bit',4,1,1,'Dcx_INote','NoteFlag','NoteFlag','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_INote',[FieldName]='NoteFlag',[FieldByname]='NoteFlag',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=223  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=223  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18569,11,30,223,'bit',4,1,1,'Dcx_INote','SenderDelete','SenderDelete','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_INote',[FieldName]='SenderDelete',[FieldByname]='SenderDelete',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=223  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=223  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18570,12,30,223,'bit',4,1,1,'Dcx_INote','ReceiverDelete','ReceiverDelete','0',0,0,0,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_INote',[FieldName]='ReceiverDelete',[FieldByname]='ReceiverDelete',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=223  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=223  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18571,13,30,223,'bit',4,1,1,'Dcx_INote','IsDeleted','IsDeleted','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_INote',[FieldName]='IsDeleted',[FieldByname]='IsDeleted',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=223  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=223  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18572,14,30,223,'bit',4,1,1,'Dcx_INote','PhoneSms','PhoneSms','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_INote',[FieldName]='PhoneSms',[FieldByname]='PhoneSms',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=223  and  [FieldId]=14 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 



Delete from [Dcx_EntityPrivilege]  where [EntId]=2076

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2076  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11110,-1,2076,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2076  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2076

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2076  and  [ModuleTypeId]=5  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20553,30,3311,2076,73,5,25,4,11,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=3311,[TemplateId]=73,[ModuleId]=25,[GroupId]=4,[AreaId]=11,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2076  and  [ModuleTypeId]=5 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2076  and  [ModuleTypeId]=18  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20554,30,3311,2076,73,18,49,4,12,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=3311,[TemplateId]=73,[ModuleId]=49,[GroupId]=4,[AreaId]=12,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2076  and  [ModuleTypeId]=18 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_DefaultForm_Run]  where [EntId]=2076

--Dcx_DefaultForm_Run
      if (select count(1) from [Dcx_DefaultForm_Run] where  [EntId]=2076  )<1 
      begin 
           Insert into [Dcx_DefaultForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[OtherMsg],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('6d2d5909-19d9-24e5-614a-09a4d3355c2b','发短信',2076,-1,'','',0,'<script src="/Js/Control/LTreeRList/LTreeRList.js"></script>
<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>','','DcxRun.DefaultF_2076= {"MenuId":3311,"MEntId":2076,"EntName":"发短信","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2076":{"EntId":2076,"KeyFieldValue":"","DBTableName":"","KeyField":"NoteId","KeydtId":2,"JoinKeyField":"NoteId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{
DcxForm.CreateHtmlEditor(''d2076_NoteContent'',2076,''DefaultF_'',''NoteContent'',600,280,false,1,false);

}
GetLinkCtrlData_DefaultF_2076_408(null,null);
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":10,"Ent":[{"EntId":2076,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":2,"Vld":[{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":3,"Vld":[{"Id":4,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":4,"Vld":[{"Id":6,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":7,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,200}$","err":"限制0-200个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":5,"Vld":[{"Id":8,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":9,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":6,"Vld":[{"Id":10,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-)) (20|21|22|23|[0-1]?\\d):[0-5]?\\d:[0-5]?\\d|((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))","err":"格式要求为日期时间格式：yyyy-mm-dd  hh:mm:ss","ok":"","warn":"","ovt":1,"jsFun":""}]}]}]};
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2076.EntMsg.E2076.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_INote","EntId":2076,"KeyField":"NoteId","MKeyField":"NoteId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"SenderName":{"DtId":2,"DB":1,"CId":4,"FL":50},"ReceiverName":{"DtId":2,"DB":1,"CId":1,"FL":50},"ReceiverId":{"DtId":1,"DB":1,"CId":40,"FL":4},"NoteContent":{"DtId":2,"DB":1,"CId":28,"FL":200},"SenderId":{"DtId":1,"DB":1,"CId":1,"FL":4},"SentDate":{"DtId":3,"DB":1,"CId":1,"FL":8}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2076.EntMsg.E2076.GetDataRowModel=function()
{
    return {"SenderName":"","ReceiverName":"","ReceiverId":-1,"NoteContent":"","SenderId":-1,"SentDate":new Date(),"Dcx_Keymsg":{"RowIx":-1,"KeyField":"NoteId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_DefaultF_2076_408(obj,curFieldName){
 var EntId=2076;
 var FldId=2;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''ReceiverName'';
 var $formContainer=DcxForm.GetHtmlContainer(2076,''DefaultF_'');
 var $ddlContainer=null;
var strCode="''{@ReceiverId&}''" ;
var v_f1=null;
if(''ReceiverId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,2076,''DefaultF_'',''ReceiverId'',40,$formContainer,false,true);
if(v_f1==null)
   v_f1='''';
strCode=strCode.replaceAll("{@ReceiverId&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d2076_ReceiverName");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2076.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2076,''DefaultF_'',buildNew,closeDlg);

}','<$2076$>select [SenderName],[ReceiverId],[ReceiverName],[NoteContent],[SenderId],[SentDate],[NoteId] from Dcx_INote where [NoteId]=''{$keyfieldvalue}''</$2076$>',10,'2076*NoteId*2*NoteId*2*Dcx_INote*发短信','','','',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-26 4:17:14',3,'admin','2013-10-2 18:34:22',1)
      end
      else 
      begin 
           update [Dcx_DefaultForm_Run] set [FormId]='6d2d5909-19d9-24e5-614a-09a4d3355c2b',[FormName]='发短信',[ModuleId]=-1,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script src="/Js/Control/LTreeRList/LTreeRList.js"></script>
<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.DefaultF_2076= {"MenuId":3311,"MEntId":2076,"EntName":"发短信","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2076":{"EntId":2076,"KeyFieldValue":"","DBTableName":"","KeyField":"NoteId","KeydtId":2,"JoinKeyField":"NoteId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{
DcxForm.CreateHtmlEditor(''d2076_NoteContent'',2076,''DefaultF_'',''NoteContent'',600,280,false,1,false);

}
GetLinkCtrlData_DefaultF_2076_408(null,null);
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":10,"Ent":[{"EntId":2076,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":2,"Vld":[{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":3,"Vld":[{"Id":4,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":4,"Vld":[{"Id":6,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":7,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,200}$","err":"限制0-200个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":5,"Vld":[{"Id":8,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":9,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":6,"Vld":[{"Id":10,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-)) (20|21|22|23|[0-1]?\\d):[0-5]?\\d:[0-5]?\\d|((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))","err":"格式要求为日期时间格式：yyyy-mm-dd  hh:mm:ss","ok":"","warn":"","ovt":1,"jsFun":""}]}]}]};
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2076.EntMsg.E2076.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_INote","EntId":2076,"KeyField":"NoteId","MKeyField":"NoteId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"SenderName":{"DtId":2,"DB":1,"CId":4,"FL":50},"ReceiverName":{"DtId":2,"DB":1,"CId":1,"FL":50},"ReceiverId":{"DtId":1,"DB":1,"CId":40,"FL":4},"NoteContent":{"DtId":2,"DB":1,"CId":28,"FL":200},"SenderId":{"DtId":1,"DB":1,"CId":1,"FL":4},"SentDate":{"DtId":3,"DB":1,"CId":1,"FL":8}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2076.EntMsg.E2076.GetDataRowModel=function()
{
    return {"SenderName":"","ReceiverName":"","ReceiverId":-1,"NoteContent":"","SenderId":-1,"SentDate":new Date(),"Dcx_Keymsg":{"RowIx":-1,"KeyField":"NoteId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_DefaultF_2076_408(obj,curFieldName){
 var EntId=2076;
 var FldId=2;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''ReceiverName'';
 var $formContainer=DcxForm.GetHtmlContainer(2076,''DefaultF_'');
 var $ddlContainer=null;
var strCode="''{@ReceiverId&}''" ;
var v_f1=null;
if(''ReceiverId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,2076,''DefaultF_'',''ReceiverId'',40,$formContainer,false,true);
if(v_f1==null)
   v_f1='''';
strCode=strCode.replaceAll("{@ReceiverId&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d2076_ReceiverName");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2076.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2076,''DefaultF_'',buildNew,closeDlg);

}',[LoadingSql]='<$2076$>select [SenderName],[ReceiverId],[ReceiverName],[NoteContent],[SenderId],[SentDate],[NoteId] from Dcx_INote where [NoteId]=''{$keyfieldvalue}''</$2076$>',[PageSize]=10,[OtherMsg]='2076*NoteId*2*NoteId*2*Dcx_INote*发短信',[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-26 4:17:14',[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-2 18:34:22',[AccountId]=1 where  [EntId]=2076 
      end




--Dcx_DefaultFormField_Run
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='7af73fd7-e1e9-fb55-be72-a54cb8742f4a'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'7af73fd7-e1e9-fb55-be72-a54cb8742f4a',2076,2076,'00000000-0000-0000-0000-000000000000',1,'SenderName',2,2,3,'{$username}',0,9,1,0,4,1,-1,-1,1,0,'','','','{$username},','<div class="defaultform ">
	<div class="div_top">
		<div class="title-div">
			<ul class="ul-title" groupid="5" isgroup="1" isrple="1">
				<li areaid="20" class="li-area-title" scroll="no" style="position: static;">
					<div class="form-title5" id="div_head1">
						<span class="title-name" id="h2_title">发短信</span></div>
				</li>
				<li areaid="21" class="li-area1" scroll="no" style="position: static;">
					<a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
				<li areaid="22" class="li-area1" scroll="no" style="position: static;">
					<a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.DefaultF_2076.SubmitForm(false);"><span class="op_bt_i">保存</span> </a></li>
				<li areaid="23" class="li-area1" scroll="no" style="position: static;">
					<a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(2076,''DefaultF_'');"><span class="op_bt_i">新建</span> </a></li>
			</ul>
		</div>
		<div class="frame-div">
			<ul class="ul-mform" groupid="1" isgroup="1" style="width: 790px;" isrple="1">
				<li areaid="24" class="li-area" scroll="no" style="height: 55px; width: 790px; position: static;"><label class="area-title pad4" style="width:120px;" fldid="1" istitle="1">发送人</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d2076_SenderName" class="form-lbl" style="width:200px;" IsForField=1 EntId="2076" CId="4" FId="1" Vtp="0"  >','</span><input id="d2076_SenderName_hid" type="hidden"  EntId="2076" IsField=1 DBField=1 IsPost=1 FieldName="SenderName" dType="2" Vtp="0" RDT="2" Isc="1" RId="9" CId="4" FId="1" vlk=0    value="','" />',-1,-1,-1,-1,0,'2076,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=1,[Form_EntId]=2076,[EntId]=2076,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[FieldName]='SenderName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=3,[DefaultValue]='{$username}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$username},',[BeforeHtml]='<div class="defaultform ">
	<div class="div_top">
		<div class="title-div">
			<ul class="ul-title" groupid="5" isgroup="1" isrple="1">
				<li areaid="20" class="li-area-title" scroll="no" style="position: static;">
					<div class="form-title5" id="div_head1">
						<span class="title-name" id="h2_title">发短信</span></div>
				</li>
				<li areaid="21" class="li-area1" scroll="no" style="position: static;">
					<a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
				<li areaid="22" class="li-area1" scroll="no" style="position: static;">
					<a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.DefaultF_2076.SubmitForm(false);"><span class="op_bt_i">保存</span> </a></li>
				<li areaid="23" class="li-area1" scroll="no" style="position: static;">
					<a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(2076,''DefaultF_'');"><span class="op_bt_i">新建</span> </a></li>
			</ul>
		</div>
		<div class="frame-div">
			<ul class="ul-mform" groupid="1" isgroup="1" style="width: 790px;" isrple="1">
				<li areaid="24" class="li-area" scroll="no" style="height: 55px; width: 790px; position: static;"><label class="area-title pad4" style="width:120px;" fldid="1" istitle="1">发送人</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d2076_SenderName" class="form-lbl" style="width:200px;" IsForField=1 EntId="2076" CId="4" FId="1" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d2076_SenderName_hid" type="hidden"  EntId="2076" IsField=1 DBField=1 IsPost=1 FieldName="SenderName" dType="2" Vtp="0" RDT="2" Isc="1" RId="9" CId="4" FId="1" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2076,' where  [FldUId]='7af73fd7-e1e9-fb55-be72-a54cb8742f4a' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='c9dc01c0-5dbf-b01b-429d-3caef94775d4'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'c9dc01c0-5dbf-b01b-429d-3caef94775d4',2076,2076,'00000000-0000-0000-0000-000000000000',2,'ReceiverId',1,1,4,'',5,2,1,0,40,1,-1,29,1,0,'','','','','</span>



</div>
</li><li areaid="34" class="li-area" scroll="no" style="height: 55px; width: 790px; position: static;"><label class="area-title pad4" fldid="2" istitle="1" style="width:120px;">收信人</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<div id="d2076_ReceiverId" class="form-ddl" style="" CBack=1  IsForField=1 EntId="2076" FId="3" Vtp="5" RId="2" Isc="1" CId="40" FieldName="ReceiverId" ><input  id="d2076_ReceiverId_Text" type="text" class="form-ddl-txt" readonly="readOnly"  CId="40" FId="3" Vtp="5"  RId="2" Isc="1"  style="width:400px;" onclick ="javascript:DcxTree.ShowDialogAf(this,29,2076,''ReceiverId'',false);" onchange ="javascript:GetLinkCtrlData_DefaultF_2076_408(this,''ReceiverId'');if(!DcxVld.Validate(this,2076,''DefaultF_'',2076,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2076,''DefaultF_'',2076);" onkeyup ="javascript:DcxTree.ShowDialogAf(this,29,2076,''ReceiverId'',true);" CBack=1  value="','" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2076_ReceiverId_hid" type="hidden"  EntId="2076" IsField=1 DBField=1 IsPost=1 FieldName="ReceiverId" dType="1" Vtp="5" RDT="1" Isc="1" RId="2" CId="40" FId="3" vlk=0   TId=29  TFN="ReceiverName"  value="','" />',-1,-1,-1,-1,0,'2076,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=3,[Form_EntId]=2076,[EntId]=2076,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[FieldName]='ReceiverId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=4,[DefaultValue]='',[ValueType]=5,[RunValueType]=2,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=40,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=29,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>



</div>
</li><li areaid="34" class="li-area" scroll="no" style="height: 55px; width: 790px; position: static;"><label class="area-title pad4" fldid="2" istitle="1" style="width:120px;">收信人</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2076_ReceiverId" class="form-ddl" style="" CBack=1  IsForField=1 EntId="2076" FId="3" Vtp="5" RId="2" Isc="1" CId="40" FieldName="ReceiverId" ><input  id="d2076_ReceiverId_Text" type="text" class="form-ddl-txt" readonly="readOnly"  CId="40" FId="3" Vtp="5"  RId="2" Isc="1"  style="width:400px;" onclick ="javascript:DcxTree.ShowDialogAf(this,29,2076,''ReceiverId'',false);" onchange ="javascript:GetLinkCtrlData_DefaultF_2076_408(this,''ReceiverId'');if(!DcxVld.Validate(this,2076,''DefaultF_'',2076,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2076,''DefaultF_'',2076);" onkeyup ="javascript:DcxTree.ShowDialogAf(this,29,2076,''ReceiverId'',true);" CBack=1  value="',[CtrlbackHtml]='" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2076_ReceiverId_hid" type="hidden"  EntId="2076" IsField=1 DBField=1 IsPost=1 FieldName="ReceiverId" dType="1" Vtp="5" RDT="1" Isc="1" RId="2" CId="40" FId="3" vlk=0   TId=29  TFN="ReceiverName"  value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2076,' where  [FldUId]='c9dc01c0-5dbf-b01b-429d-3caef94775d4' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='f2086414-33af-e0ff-b946-14e32ab2145a'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'f2086414-33af-e0ff-b946-14e32ab2145a',2076,2076,'00000000-0000-0000-0000-000000000000',3,'ReceiverName',2,2,5,'',3,1,1,0,1,1,-1,-1,1,0,'','','','','</span>







<span class="form-ctr" isfcontain="1">','','','','<input  id="d2076_ReceiverName"   type="text" class="form-txt hide"  style="width:40px;display:none;" onblur ="javascript:if(!DcxVld.Validate(this,2076,''DefaultF_'',2076,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2076,''DefaultF_'',2076);" EntId="2076" IsField=1 DBField=1 IsPost=1 FieldName="ReceiverName" dType="2" Vtp="3" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2076,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=2,[Form_EntId]=2076,[EntId]=2076,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[FieldName]='ReceiverName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=5,[DefaultValue]='',[ValueType]=3,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>







<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2076_ReceiverName"   type="text" class="form-txt hide"  style="width:40px;display:none;" onblur ="javascript:if(!DcxVld.Validate(this,2076,''DefaultF_'',2076,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2076,''DefaultF_'',2076);" EntId="2076" IsField=1 DBField=1 IsPost=1 FieldName="ReceiverName" dType="2" Vtp="3" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2076,' where  [FldUId]='f2086414-33af-e0ff-b946-14e32ab2145a' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='a0b3d074-4d64-0f30-f13b-e4e9e4b8fc02'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'a0b3d074-4d64-0f30-f13b-e4e9e4b8fc02',2076,2076,'00000000-0000-0000-0000-000000000000',4,'NoteContent',2,2,6,'',5,5,1,0,28,1,-1,-1,1,0,'','','','','</span>







 </div></li><li areaid="33" class="li-area" scroll="no" style="height: 573px; width: 790px; position: static;"><label class="area-title pad4" fldid="4" istitle="1" style="width:120px;">内容</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<textarea  id="d2076_NoteContent" class="form-txts"  style="width:600px;height:280px;" EntId="2076" IsField=1 DBField=1 IsPost=1 FieldName="NoteContent" dType="2" Vtp="5" RDT="2" Isc="1" RId="5" CId="28" FId="4" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'2076,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=4,[Form_EntId]=2076,[EntId]=2076,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=4,[FieldName]='NoteContent',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=6,[DefaultValue]='',[ValueType]=5,[RunValueType]=5,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=28,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>







 </div></li><li areaid="33" class="li-area" scroll="no" style="height: 573px; width: 790px; position: static;"><label class="area-title pad4" fldid="4" istitle="1" style="width:120px;">内容</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d2076_NoteContent" class="form-txts"  style="width:600px;height:280px;" EntId="2076" IsField=1 DBField=1 IsPost=1 FieldName="NoteContent" dType="2" Vtp="5" RDT="2" Isc="1" RId="5" CId="28" FId="4" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2076,' where  [FldUId]='a0b3d074-4d64-0f30-f13b-e4e9e4b8fc02' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='4326efd2-4b9e-4c61-41c7-0abae2ad3365'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'4326efd2-4b9e-4c61-41c7-0abae2ad3365',2076,2076,'00000000-0000-0000-0000-000000000000',5,'SenderId',1,1,2,'{$userId}',0,1,1,0,1,1,-1,-1,1,0,'','','','{$userId},','</span>






</div></li><li areaid="32" class="li-area" scroll="no" style="height: 55px; width: 595px; display: none; position: static;"><label class="area-title pad4" fldid="5" istitle="1">SenderId</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2076_SenderId"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2076,''DefaultF_'',2076,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2076,''DefaultF_'',2076);" EntId="2076" IsField=1 DBField=1 IsPost=1 FieldName="SenderId" dType="1" Vtp="0" RDT="1" Isc="1" RId="1" CId="1" FId="5" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2076,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=5,[Form_EntId]=2076,[EntId]=2076,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=5,[FieldName]='SenderId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=2,[DefaultValue]='{$userId}',[ValueType]=0,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$userId},',[BeforeHtml]='</span>






</div></li><li areaid="32" class="li-area" scroll="no" style="height: 55px; width: 595px; display: none; position: static;"><label class="area-title pad4" fldid="5" istitle="1">SenderId</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2076_SenderId"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2076,''DefaultF_'',2076,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2076,''DefaultF_'',2076);" EntId="2076" IsField=1 DBField=1 IsPost=1 FieldName="SenderId" dType="1" Vtp="0" RDT="1" Isc="1" RId="1" CId="1" FId="5" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2076,' where  [FldUId]='4326efd2-4b9e-4c61-41c7-0abae2ad3365' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='afcd0603-7705-19e2-32c1-7022d10d1e5a'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'afcd0603-7705-19e2-32c1-7022d10d1e5a',2076,2076,'00000000-0000-0000-0000-000000000000',6,'SentDate',3,3,7,'{$datetime}',5,1,1,0,1,1,-1,-1,1,0,'','','','{$datetime},','</span>

</div>
</li>
				<li areaid="25" class="li-area" scroll="no" style="height: 55px; width: 595px; display: none; position: static;"><label class="area-title pad4" fldid="6" istitle="1">SentDate</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','</span>

</div>
</li><li areaid="35" class="li-area" scroll="no" style="height: 55px; width: 595px; display: none; position: static;"><label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
			</ul>
		</div>
		<div class="div_tabs" style="display:none;">
			<ul class="tab_ul" groupid="2" isgroup="1" islonly="1" istab="1" style="" isrple="1">
				<li areaid="26" class="de-selected ui-droppable" istab="1" scroll="no" style="position: static;" tabid="1">
					<a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
				<li areaid="27" class="ui-droppable li-tab" istab="1" scroll="no" style="position: static;" tabid="2">
					<a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
			</ul>
			<div class="tabs-content" style="" tabid="1">
				<ul class="ul-mform" groupid="3" isgroup="1" style="" isrple="1">
					<li areaid="28" class="li-area" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
					<li areaid="29" class="li-area" fldid="-1" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
				</ul>
			</div>
			<div class="tabs-content" style="" tabid="2">
				<ul class="ul-mform" groupid="4" isgroup="1" style="" isrple="1">
					<li areaid="30" class="li-area" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
					<li areaid="31" class="li-area" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
				</ul>
			</div>
		</div>
	</div>
</div>
<br>','','','<input  id="d2076_SentDate"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2076,''DefaultF_'',2076,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2076,''DefaultF_'',2076);" EntId="2076" IsField=1 DBField=1 IsPost=1 FieldName="SentDate" dType="3" Vtp="5" RDT="3" Isc="1" RId="1" CId="1" FId="6" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2076,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=6,[Form_EntId]=2076,[EntId]=2076,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=6,[FieldName]='SentDate',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=7,[DefaultValue]='{$datetime}',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$datetime},',[BeforeHtml]='</span>

</div>
</li>
				<li areaid="25" class="li-area" scroll="no" style="height: 55px; width: 595px; display: none; position: static;"><label class="area-title pad4" fldid="6" istitle="1">SentDate</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>

</div>
</li><li areaid="35" class="li-area" scroll="no" style="height: 55px; width: 595px; display: none; position: static;"><label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
			</ul>
		</div>
		<div class="div_tabs" style="display:none;">
			<ul class="tab_ul" groupid="2" isgroup="1" islonly="1" istab="1" style="" isrple="1">
				<li areaid="26" class="de-selected ui-droppable" istab="1" scroll="no" style="position: static;" tabid="1">
					<a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
				<li areaid="27" class="ui-droppable li-tab" istab="1" scroll="no" style="position: static;" tabid="2">
					<a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
			</ul>
			<div class="tabs-content" style="" tabid="1">
				<ul class="ul-mform" groupid="3" isgroup="1" style="" isrple="1">
					<li areaid="28" class="li-area" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
					<li areaid="29" class="li-area" fldid="-1" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
				</ul>
			</div>
			<div class="tabs-content" style="" tabid="2">
				<ul class="ul-mform" groupid="4" isgroup="1" style="" isrple="1">
					<li areaid="30" class="li-area" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
					<li areaid="31" class="li-area" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
				</ul>
			</div>
		</div>
	</div>
</div>
<br>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2076_SentDate"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2076,''DefaultF_'',2076,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2076,''DefaultF_'',2076);" EntId="2076" IsField=1 DBField=1 IsPost=1 FieldName="SentDate" dType="3" Vtp="5" RDT="3" Isc="1" RId="1" CId="1" FId="6" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2076,' where  [FldUId]='afcd0603-7705-19e2-32c1-7022d10d1e5a' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=223

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=223  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(223,null,'Dcx_INote','Dcx_INote',1,0,0,0,0,0,30,1,3,'admin','2013-12-15 17:32:17',3,'admin','2013-12-15 17:32:17',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='Dcx_INote',[DBTableByName]='Dcx_INote',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=30,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:17',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:17',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=223 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=223  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18559,1,30,223,'int',1,1,1,'Dcx_INote','NoteId','NoteId','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_INote',[FieldName]='NoteId',[FieldByname]='NoteId',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=223  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=223  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18560,2,30,223,'int',1,1,1,'Dcx_INote','SenderId','SenderId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_INote',[FieldName]='SenderId',[FieldByname]='SenderId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=223  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=223  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18561,3,30,223,'varchar',2,1,1,'Dcx_INote','SenderName','SenderName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_INote',[FieldName]='SenderName',[FieldByname]='SenderName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=223  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=223  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18562,4,30,223,'int',1,1,1,'Dcx_INote','ReceiverId','ReceiverId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_INote',[FieldName]='ReceiverId',[FieldByname]='ReceiverId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=223  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=223  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18563,5,30,223,'varchar',2,1,1,'Dcx_INote','ReceiverName','ReceiverName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_INote',[FieldName]='ReceiverName',[FieldByname]='ReceiverName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=223  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=223  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18564,6,30,223,'varchar',2,1,1,'Dcx_INote','NoteContent','NoteContent','',0,0,0,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_INote',[FieldName]='NoteContent',[FieldByname]='NoteContent',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=223  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=223  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18565,7,30,223,'datetime',3,1,1,'Dcx_INote','SentDate','SentDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_INote',[FieldName]='SentDate',[FieldByname]='SentDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=223  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=223  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18566,8,30,223,'datetime',3,1,1,'Dcx_INote','ReadDate','ReadDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_INote',[FieldName]='ReadDate',[FieldByname]='ReadDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=223  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=223  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18567,9,30,223,'bit',4,1,1,'Dcx_INote','ReadFlag','ReadFlag','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_INote',[FieldName]='ReadFlag',[FieldByname]='ReadFlag',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=223  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=223  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18568,10,30,223,'bit',4,1,1,'Dcx_INote','NoteFlag','NoteFlag','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_INote',[FieldName]='NoteFlag',[FieldByname]='NoteFlag',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=223  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=223  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18569,11,30,223,'bit',4,1,1,'Dcx_INote','SenderDelete','SenderDelete','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_INote',[FieldName]='SenderDelete',[FieldByname]='SenderDelete',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=223  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=223  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18570,12,30,223,'bit',4,1,1,'Dcx_INote','ReceiverDelete','ReceiverDelete','0',0,0,0,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_INote',[FieldName]='ReceiverDelete',[FieldByname]='ReceiverDelete',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=223  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=223  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18571,13,30,223,'bit',4,1,1,'Dcx_INote','IsDeleted','IsDeleted','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_INote',[FieldName]='IsDeleted',[FieldByname]='IsDeleted',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=223  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=223  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18572,14,30,223,'bit',4,1,1,'Dcx_INote','PhoneSms','PhoneSms','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_INote',[FieldName]='PhoneSms',[FieldByname]='PhoneSms',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=223  and  [FieldId]=14 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 



Delete from [Dcx_EntityPrivilege]  where [EntId]=2077

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2077  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11111,-1,2077,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2077  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2077

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2077  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20555,30,3311,2077,73,2,9,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=3311,[TemplateId]=73,[ModuleId]=9,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2077  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2077  and  [ModuleTypeId]=5  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20556,30,3311,2077,73,5,25,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=3311,[TemplateId]=73,[ModuleId]=25,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2077  and  [ModuleTypeId]=5 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2077  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20557,30,3311,2077,73,1,1,1,3,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=3311,[TemplateId]=73,[ModuleId]=1,[GroupId]=1,[AreaId]=3,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2077  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2077  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20558,30,3311,2077,73,3,14,1,4,2,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=3311,[TemplateId]=73,[ModuleId]=14,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2077  and  [ModuleTypeId]=3 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2077  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20559,30,3311,2077,73,16,31,1,5,2,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=30,[MenuId]=3311,[TemplateId]=73,[ModuleId]=31,[GroupId]=1,[AreaId]=5,[ShowMode]=2,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2077  and  [ModuleTypeId]=16 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_ListReport_Run]  where [EntId]=2077

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=2077  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('61327714-3e4d-e1d7-a888-a01000c3324c','已发短信',2077,-1,'','','<$2077$>select *  from (select row_number() over( order by [NoteId])as dcx_rowid,[ReadFlag],[ReceiverName],[NoteContent],[SentDate],[NoteId] from Dcx_INote  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$2077$><$2077:Count$>select count([NoteId]) from Dcx_INote where {$SearchArea}</$2077:Count$>',1,1,10,'DcxRun.ListR_2077= {"MenuId":3311,"MEntId":2077,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"已发短信","EntMsg":{"E2077":{"EntId":2077,"EntName":"已发短信","KeyFieldValue":"","DBTableName":"Dcx_INote","KeyField":"NoteId","KeydtId":2,"JoinKeyField":"NoteId","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','2077*NoteId*2*NoteId*2*Dcx_INote*已发短信',3,'','2012-12-26 4:16:53',3,'','2013-7-30 2:51:18',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='61327714-3e4d-e1d7-a888-a01000c3324c',[ReportName]='已发短信',[ModuleId]=-1,[StaticHtml]='',[DIYJsCss]='',[LoadingSql]='<$2077$>select *  from (select row_number() over( order by [NoteId])as dcx_rowid,[ReadFlag],[ReceiverName],[NoteContent],[SentDate],[NoteId] from Dcx_INote  where {$SearchArea}  ) AS MyTable  where  dcx_rowid between {$startRow} and {$endRow}</$2077$><$2077:Count$>select count([NoteId]) from Dcx_INote where {$SearchArea}</$2077:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=10,[AutoPublicJs]='DcxRun.ListR_2077= {"MenuId":3311,"MEntId":2077,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"已发短信","EntMsg":{"E2077":{"EntId":2077,"EntName":"已发短信","KeyFieldValue":"","DBTableName":"Dcx_INote","KeyField":"NoteId","KeydtId":2,"JoinKeyField":"NoteId","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='2077*NoteId*2*NoteId*2*Dcx_INote*已发短信',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-26 4:16:53',[EditorId]=3,[Editor]='',[EditTime]='2013-7-30 2:51:18',[AccountId]=1 where  [EntId]=2077 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='70582f1f-bcef-372b-44ae-057a1465becb'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(14,'70582f1f-bcef-372b-44ae-057a1465becb',2077,2077,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<div class="listreport">
	<div class="toolbar">
		<ul class="tool-ul" groupid="2" isgroup="1" istoolbar="1" style="WIdTH: 810px" isrple="1">
			<li areaid="27" class="tool-li" style="position: static;">
				<a class="list-bt-add" href="javascript:void(0);" id="ListR_2077_btn_buildNew" onclick="javascript:DcxCom.ShowAddDataDlg(2077,''ListR_'');" title="添   加">添 加</a></li>
			<li areaid="28" class="tool-li" style="position: static;">
				<a class="list-bt-other" href="javascript:void(0);" id="ListR_2077_deletebut" onclick="javascript:DcxReport.DeleteDatas(2077,''ListR_'');" title="删   除">删 除</a></li>
			<li areaid="29" class="tool-li" style="position: static;">
				<a class="list-bt-other" href="javascript:void(0);" id="ListR_2077_ExportToExcelbut" onclick="javascript:DcxCom.ExportExcel(2077,''ListR_'');" title="导   出">导 出</a></li>
			<li areaid="30" class="tool-li" style="position: static;">
				<a class="list-bt-other" href="javascript:void(0);" id="ListR_2077_refreshbut" onclick="javascript:DcxCom.ReLoad(2077,''ListR_'');" title="刷   新">刷 新</a></li>
			<!--分页栏-->
			<li areaid="31" class="pages" id="li2_ListR_2077" style="position: static;">
				<a class="list-pages list-prepage" href="javascript:void(0);" id="ListR_2077_PrevPage" isfirstpage="1" onclick="javascript:DcxSch.GetHtml(2077,''ListR_'',''p'');" title="上一页">上一页</a> <span class="ddl_pageindex list-pagesdown"><select id="ddl_ListR_2077_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(2077,''ListR_'',''a'',this);"></select> </span><a class="list-pages list-nextpage" href="javascript:void(0);" id="ListR_2077_NextPage" isnextpage="1" onclick="javascript:DcxSch.GetHtml(2077,''ListR_'',''n'');" title="下一页">下一页</a> <span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_2077_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">条记录</span></li>
		</ul>
	</div>
	<!-- 列表主体-->
	<div class="list-area dcx-scroll">
		<div class="list-head">
			<ul class="list-head-ul" groupid="3" isgroup="1" style="width: 825px;" isrple="1">
				<li areaid="32" class="list-if-select" style="clear: none; float: left; height: 30px; position: static;">
					<input class="chPut ifselect" id="ckb_CheckAllListR_2077" onclick="javascript:DcxCom.CheckedAll(this,2077,''ListR_'');" rel="chkall" type="checkbox"></li>
				<li areaid="33" class="list-head-li" style="width: 60px; height: 30px; clear: none; float: left; position: static;"><div class="list-li-field">
	<label istitle="1">已阅读</label></div></li>
				<li areaid="34" class="list-head-li" style="clear: none; float: left; height: 30px; width: 90px; position: static;"><div class="list-li-field">
	<label istitle="1">收信人</label></div>
</li>
				<li areaid="35" class="list-head-li" style="clear: none; float: left; height: 30px; width: 450px; position: static;">
					<div class="list-li-field">
						<label istitle="1">内容</label></div>
				</li>
				
				
				<li areaid="38" class="list-head-li" style="clear: none; float: left; height: 30px; width: 110px; position: static;">
					<div class="list-li-field">
						<label istitle="1">发送时间</label></div>
				</li>
				<li areaid="39" class="list-operate" style="clear: none; float: left; height: 30px; position: static;">
					<div class="edit">
						<a class="li-item-btn btn-pink " href="javascript:void(0);" title="编辑"><span class="i">编辑</span></a></div>
				</li>
				<li areaid="40" class="list-operate" style="clear: right; float: left; height: 30px; position: static;">
					<div class="delete">
						<a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除"><span class="i">删除</span></a></div>
				</li>
			</ul>
		</div>
		<div class="list-body">','',-1,4,-1,-1,1,'2077,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=14,[Report_EntId]=2077,[EntId]=2077,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="listreport">
	<div class="toolbar">
		<ul class="tool-ul" groupid="2" isgroup="1" istoolbar="1" style="WIdTH: 810px" isrple="1">
			<li areaid="27" class="tool-li" style="position: static;">
				<a class="list-bt-add" href="javascript:void(0);" id="ListR_2077_btn_buildNew" onclick="javascript:DcxCom.ShowAddDataDlg(2077,''ListR_'');" title="添   加">添 加</a></li>
			<li areaid="28" class="tool-li" style="position: static;">
				<a class="list-bt-other" href="javascript:void(0);" id="ListR_2077_deletebut" onclick="javascript:DcxReport.DeleteDatas(2077,''ListR_'');" title="删   除">删 除</a></li>
			<li areaid="29" class="tool-li" style="position: static;">
				<a class="list-bt-other" href="javascript:void(0);" id="ListR_2077_ExportToExcelbut" onclick="javascript:DcxCom.ExportExcel(2077,''ListR_'');" title="导   出">导 出</a></li>
			<li areaid="30" class="tool-li" style="position: static;">
				<a class="list-bt-other" href="javascript:void(0);" id="ListR_2077_refreshbut" onclick="javascript:DcxCom.ReLoad(2077,''ListR_'');" title="刷   新">刷 新</a></li>
			<!--分页栏-->
			<li areaid="31" class="pages" id="li2_ListR_2077" style="position: static;">
				<a class="list-pages list-prepage" href="javascript:void(0);" id="ListR_2077_PrevPage" isfirstpage="1" onclick="javascript:DcxSch.GetHtml(2077,''ListR_'',''p'');" title="上一页">上一页</a> <span class="ddl_pageindex list-pagesdown"><select id="ddl_ListR_2077_PageIndex" isddlpage="1" onchange="javascript:DcxSch.GetHtml(2077,''ListR_'',''a'',this);"></select> </span><a class="list-pages list-nextpage" href="javascript:void(0);" id="ListR_2077_NextPage" isnextpage="1" onclick="javascript:DcxSch.GetHtml(2077,''ListR_'',''n'');" title="下一页">下一页</a> <span class="list-data-amount">共</span>&nbsp; <span class="list-data-amount" id="ListR_2077_RecCount_lbl" isrecortcount="1">0</span> <span class="list-data-amount">条记录</span></li>
		</ul>
	</div>
	<!-- 列表主体-->
	<div class="list-area dcx-scroll">
		<div class="list-head">
			<ul class="list-head-ul" groupid="3" isgroup="1" style="width: 825px;" isrple="1">
				<li areaid="32" class="list-if-select" style="clear: none; float: left; height: 30px; position: static;">
					<input class="chPut ifselect" id="ckb_CheckAllListR_2077" onclick="javascript:DcxCom.CheckedAll(this,2077,''ListR_'');" rel="chkall" type="checkbox"></li>
				<li areaid="33" class="list-head-li" style="width: 60px; height: 30px; clear: none; float: left; position: static;"><div class="list-li-field">
	<label istitle="1">已阅读</label></div></li>
				<li areaid="34" class="list-head-li" style="clear: none; float: left; height: 30px; width: 90px; position: static;"><div class="list-li-field">
	<label istitle="1">收信人</label></div>
</li>
				<li areaid="35" class="list-head-li" style="clear: none; float: left; height: 30px; width: 450px; position: static;">
					<div class="list-li-field">
						<label istitle="1">内容</label></div>
				</li>
				
				
				<li areaid="38" class="list-head-li" style="clear: none; float: left; height: 30px; width: 110px; position: static;">
					<div class="list-li-field">
						<label istitle="1">发送时间</label></div>
				</li>
				<li areaid="39" class="list-operate" style="clear: none; float: left; height: 30px; position: static;">
					<div class="edit">
						<a class="li-item-btn btn-pink " href="javascript:void(0);" title="编辑"><span class="i">编辑</span></a></div>
				</li>
				<li areaid="40" class="list-operate" style="clear: right; float: left; height: 30px; position: static;">
					<div class="delete">
						<a class="li-item-btn btn-pink " href="javascript:void(0);" title="删除"><span class="i">删除</span></a></div>
				</li>
			</ul>
		</div>
		<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2077,' where  [FldUId]='70582f1f-bcef-372b-44ae-057a1465becb' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='a61a36f5-05fd-6d59-862d-4ff277f7ef92'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'a61a36f5-05fd-6d59-862d-4ff277f7ef92',2077,2077,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',2,1,'varchar',2,21,0,'','','','class="list-body-ul" groupid="4" isgroup="1" style="width: 825px;" isrple="1">
				<li areaid="41" class="list-if-select" style="clear: none; float: left; height: 30px; position: static;">
					<input class="ckb_del" ctrlprex="ListR_" entid="2077" issyscheck="1" keyvalue="','',-1,4,-1,-1,1,'2077,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=2,[Report_EntId]=2077,[EntId]=2077,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='class="list-body-ul" groupid="4" isgroup="1" style="width: 825px;" isrple="1">
				<li areaid="41" class="list-if-select" style="clear: none; float: left; height: 30px; position: static;">
					<input class="ckb_del" ctrlprex="ListR_" entid="2077" issyscheck="1" keyvalue="',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2077,' where  [FldUId]='a61a36f5-05fd-6d59-862d-4ff277f7ef92' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='c94d0c7a-3997-ec3a-d634-e8360720c834'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'c94d0c7a-3997-ec3a-d634-e8360720c834',2077,2077,'00000000-0000-0000-0000-000000000000',9,'ReadFlag',3,1,'bit',4,1,0,'','','','" type="checkbox"></li>
				<li areaid="42" class="list-body-li" style="width: 60px; height: 30px; clear: none; float: left; position: static;"><div class="list-li-field">
	<span isfield="1" entid="2077" fieldname="ReadFlag" fldid="6" columntypeid="1" class="form-ctr">','',-1,4,-1,-1,1,'2077,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=6,[Report_EntId]=2077,[EntId]=2077,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=9,[FieldName]='ReadFlag',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='bit',[FieldDataTypeId]=4,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='" type="checkbox"></li>
				<li areaid="42" class="list-body-li" style="width: 60px; height: 30px; clear: none; float: left; position: static;"><div class="list-li-field">
	<span isfield="1" entid="2077" fieldname="ReadFlag" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2077,' where  [FldUId]='c94d0c7a-3997-ec3a-d634-e8360720c834' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='4dff99b2-b349-2611-0e0c-d4dd3cd4f000'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'4dff99b2-b349-2611-0e0c-d4dd3cd4f000',2077,2077,'00000000-0000-0000-0000-000000000000',5,'ReceiverName',4,1,'varchar',2,1,0,'','','','</span>

</div>
</li>
				<li areaid="44" class="list-body-li" style="clear: none; float: left; height: 30px; position: static; width: 90px;"><div class="list-li-field">
	<span isfield="1" entid="2077" fieldname="ReceiverName" fldid="8" columntypeid="1" class="form-ctr">','',-1,4,-1,-1,1,'2077,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=8,[Report_EntId]=2077,[EntId]=2077,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=5,[FieldName]='ReceiverName',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>

</div>
</li>
				<li areaid="44" class="list-body-li" style="clear: none; float: left; height: 30px; position: static; width: 90px;"><div class="list-li-field">
	<span isfield="1" entid="2077" fieldname="ReceiverName" fldid="8" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2077,' where  [FldUId]='4dff99b2-b349-2611-0e0c-d4dd3cd4f000' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='424fb960-5e06-af33-453c-2ffff0413952'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'424fb960-5e06-af33-453c-2ffff0413952',2077,2077,'00000000-0000-0000-0000-000000000000',6,'NoteContent',5,1,'varchar',2,1,0,'','','','</span>

</div>
</li><li areaid="43" class="list-body-li" style="clear: none; float: left; height: 30px; width: 450px; position: static;"><div class="list-li-field">
	<span isfield="1" entid="2077" fieldname="NoteContent" fldid="7" columntypeid="1" class="form-ctr">','',-1,4,-1,-1,1,'2077,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=7,[Report_EntId]=2077,[EntId]=2077,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=6,[FieldName]='NoteContent',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>

</div>
</li><li areaid="43" class="list-body-li" style="clear: none; float: left; height: 30px; width: 450px; position: static;"><div class="list-li-field">
	<span isfield="1" entid="2077" fieldname="NoteContent" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2077,' where  [FldUId]='424fb960-5e06-af33-453c-2ffff0413952' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='354ac46b-686a-cf6b-486e-a625e33fe4ad'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'354ac46b-686a-cf6b-486e-a625e33fe4ad',2077,2077,'00000000-0000-0000-0000-000000000000',7,'SentDate',6,1,'datetime',3,1,0,'','','','</span>



</div>
</li>
				
				<li areaid="45" class="list-body-li" style="clear: none; float: left; height: 30px; width: 110px; position: static;"><div class="list-li-field">
	<span isfield="1" entid="2077" fieldname="SentDate" fldid="9" columntypeid="1" class="form-ctr">','',-1,4,-1,-1,1,'2077,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=9,[Report_EntId]=2077,[EntId]=2077,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=7,[FieldName]='SentDate',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='datetime',[FieldDataTypeId]=3,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>



</div>
</li>
				
				<li areaid="45" class="list-body-li" style="clear: none; float: left; height: 30px; width: 110px; position: static;"><div class="list-li-field">
	<span isfield="1" entid="2077" fieldname="SentDate" fldid="9" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2077,' where  [FldUId]='354ac46b-686a-cf6b-486e-a625e33fe4ad' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='4c8e9078-4198-5c21-e7f7-ad71b1fb643f'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'4c8e9078-4198-5c21-e7f7-ad71b1fb643f',2077,2077,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',7,1,'varchar',2,21,0,'','','','</span>
</div>
</li>
				
				
				<li areaid="48" class="list-operate" style="clear: none; float: left; height: 30px; position: static;">
					<div class="edit">
						<a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,2077,''ListR_'',''','',-1,4,-1,-1,1,'2077,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=3,[Report_EntId]=2077,[EntId]=2077,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
</div>
</li>
				
				
				<li areaid="48" class="list-operate" style="clear: none; float: left; height: 30px; position: static;">
					<div class="edit">
						<a class="li-item-btn btn-pink " href="javascript:void(0);" onclick="javascript:DcxCom.ShowFormDlg(this,2077,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2077,' where  [FldUId]='4c8e9078-4198-5c21-e7f7-ad71b1fb643f' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='a2376bd1-e84a-35aa-8cd5-04d77a0ac525'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'a2376bd1-e84a-35aa-8cd5-04d77a0ac525',2077,2077,'00000000-0000-0000-0000-000000000000',-1,'KeyFieldValue',8,1,'varchar',2,21,0,'','','',''',null,1040,480);"><span class="i">编辑</span></a></div>
				</li>
				<li areaid="49" class="list-operate" style="clear: right; float: left; height: 30px; position: static;">
					<div class="delete">
						<a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,2077,''ListR_'',''','',-1,4,-1,-1,1,'2077,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=4,[Report_EntId]=2077,[EntId]=2077,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='KeyFieldValue',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=21,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',null,1040,480);"><span class="i">编辑</span></a></div>
				</li>
				<li areaid="49" class="list-operate" style="clear: right; float: left; height: 30px; position: static;">
					<div class="delete">
						<a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:DcxReport.DeleteData(this,2077,''ListR_'',''',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2077,' where  [FldUId]='a2376bd1-e84a-35aa-8cd5-04d77a0ac525' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='1d9e2290-16fe-0e30-92e8-a98ddeb52eb9'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(15,'1d9e2290-16fe-0e30-92e8-a98ddeb52eb9',2077,2077,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',9,-1,'varchar',2,13,0,'','','',''');"><span class="i">删除</span></a></div>
				</li>
			</ul>','</div>
	</div>
</div>
<br>',-1,4,-1,-1,1,'2077,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=15,[Report_EntId]=2077,[EntId]=2077,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=9,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''');"><span class="i">删除</span></a></div>
				</li>
			</ul>',[LastHtml]='</div>
	</div>
</div>
<br>',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2077,' where  [FldUId]='1d9e2290-16fe-0e30-92e8-a98ddeb52eb9' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=223

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=223  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(223,null,'Dcx_INote','Dcx_INote',1,0,0,0,0,0,30,1,3,'admin','2013-12-15 17:32:17',3,'admin','2013-12-15 17:32:17',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='Dcx_INote',[DBTableByName]='Dcx_INote',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=30,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:17',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:17',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=223 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=223  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18559,1,30,223,'int',1,1,1,'Dcx_INote','NoteId','NoteId','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_INote',[FieldName]='NoteId',[FieldByname]='NoteId',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=223  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=223  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18560,2,30,223,'int',1,1,1,'Dcx_INote','SenderId','SenderId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_INote',[FieldName]='SenderId',[FieldByname]='SenderId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=223  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=223  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18561,3,30,223,'varchar',2,1,1,'Dcx_INote','SenderName','SenderName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_INote',[FieldName]='SenderName',[FieldByname]='SenderName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=223  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=223  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18562,4,30,223,'int',1,1,1,'Dcx_INote','ReceiverId','ReceiverId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_INote',[FieldName]='ReceiverId',[FieldByname]='ReceiverId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=223  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=223  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18563,5,30,223,'varchar',2,1,1,'Dcx_INote','ReceiverName','ReceiverName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_INote',[FieldName]='ReceiverName',[FieldByname]='ReceiverName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=223  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=223  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18564,6,30,223,'varchar',2,1,1,'Dcx_INote','NoteContent','NoteContent','',0,0,0,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_INote',[FieldName]='NoteContent',[FieldByname]='NoteContent',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=223  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=223  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18565,7,30,223,'datetime',3,1,1,'Dcx_INote','SentDate','SentDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_INote',[FieldName]='SentDate',[FieldByname]='SentDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=223  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=223  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18566,8,30,223,'datetime',3,1,1,'Dcx_INote','ReadDate','ReadDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_INote',[FieldName]='ReadDate',[FieldByname]='ReadDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=223  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=223  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18567,9,30,223,'bit',4,1,1,'Dcx_INote','ReadFlag','ReadFlag','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_INote',[FieldName]='ReadFlag',[FieldByname]='ReadFlag',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=223  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=223  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18568,10,30,223,'bit',4,1,1,'Dcx_INote','NoteFlag','NoteFlag','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_INote',[FieldName]='NoteFlag',[FieldByname]='NoteFlag',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=223  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=223  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18569,11,30,223,'bit',4,1,1,'Dcx_INote','SenderDelete','SenderDelete','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_INote',[FieldName]='SenderDelete',[FieldByname]='SenderDelete',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=223  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=223  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18570,12,30,223,'bit',4,1,1,'Dcx_INote','ReceiverDelete','ReceiverDelete','0',0,0,0,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_INote',[FieldName]='ReceiverDelete',[FieldByname]='ReceiverDelete',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=223  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=223  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18571,13,30,223,'bit',4,1,1,'Dcx_INote','IsDeleted','IsDeleted','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_INote',[FieldName]='IsDeleted',[FieldByname]='IsDeleted',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=223  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=223  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(18572,14,30,223,'bit',4,1,1,'Dcx_INote','PhoneSms','PhoneSms','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=30,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_INote',[FieldName]='PhoneSms',[FieldByname]='PhoneSms',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=223  and  [FieldId]=14 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




 GO--mygofuck 

 update Dcx_Menu_Run set [ParentId]=3417 where [MenuId]=948
UPDATE [WF_FlowType]
   SET [ManageUsers] ='admin'
      ,[ManageNames] = 'admin'
      ,[QueryUsers] ='admin'
      ,[QueryNames] ='admin'
      ,[CanQueryRoles] ='系统管理员'
      ,[CanQueryRolesId] = '3'
      ,[CanManageRoles] ='系统管理员'
      ,[CanManageRolesId] ='3'
      ,[CanStartUsers] =null
      ,[CanStartNames] = null
      ,[CanStartRoles] ='Public'
      ,[CanStartRolesId] = '1'
      ,[Creator] = 'admin'
      ,[CreateTime] =  getdate() 



 GO--mygofuck 
--系统的Insert语句集合--



declare  @topMenuId int 
set  @topMenuId=-1 

--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=2631  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2631,'c49a5fc0-2fdb-44d6-bd82-3581cfdde102','工作流程',0,'',1,'\Images\icon2\ico_18_acct[1].gif','\Images\icon2\ico_18_acct[1].gif',1,'',null,0,null,45,0,45,0,1,1,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='c49a5fc0-2fdb-44d6-bd82-3581cfdde102',[MenuName]='工作流程',[ParentId]=0,[ProPath]='',[TemplateId]=1,[ImgPath]='\Images\icon2\ico_18_acct[1].gif',[ExImgPath]='\Images\icon2\ico_18_acct[1].gif',[OrderBy]=1,[Target]='',[IsOpen]=null,[IsHidden]=0,[Remark]=null,[SSystemId]=45,[SMenuId]=0,[SystemId]=45,[EntityCount]=0,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=2631 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=2631  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(428,2631,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=2631  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=2632  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2632,'0415926a-56b1-454e-9706-01946998a5ae','新建工作',2631,'/Template/default/ListReport/ListReport_Tree001.aspx',1,'/images/default.gif','/images/default.gif',1,'',0,0,'',45,0,45,1,1,1,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='0415926a-56b1-454e-9706-01946998a5ae',[MenuName]='新建工作',[ParentId]=2631,[ProPath]='/Template/default/ListReport/ListReport_Tree001.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=1,[Target]='',[IsOpen]=0,[IsHidden]=0,[Remark]='',[SSystemId]=45,[SMenuId]=0,[SystemId]=45,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=2632 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=2632  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(429,2632,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=2632  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2055  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2055,2632,'新建工作',1,1207,0,'WF_FlowType',0,0,1,45,2055,null,null,45,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=2632,[EntName]='新建工作',[MEnt]=1,[DBTableId]=1207,[DBConnectId]=0,[DBTableName]='WF_FlowType',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=45,[SEntId]=2055,[FSystemId]=null,[FEntId]=null,[SystemId]=45,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2055 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=2055

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2055  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11089,2632,2055,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=2632,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2055  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2055  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11452,-1,2055,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2055  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2055

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2055  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20596,45,2632,2055,13,1,1,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=45,[MenuId]=2632,[TemplateId]=13,[ModuleId]=1,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2055  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2055  and  [ModuleTypeId]=5  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20597,45,2632,2055,13,5,25,1,3,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=45,[MenuId]=2632,[TemplateId]=13,[ModuleId]=25,[GroupId]=1,[AreaId]=3,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2055  and  [ModuleTypeId]=5 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2055  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20598,45,2632,2055,13,3,68,1,4,2,'/Template/Default/Form/AjaxForm/AjaxForm008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=45,[MenuId]=2632,[TemplateId]=13,[ModuleId]=68,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='/Template/Default/Form/AjaxForm/AjaxForm008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=2055  and  [ModuleTypeId]=3 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_ListReport_Run]  where [EntId]=2055

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=2055  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('0ce5a4fe-8bae-a769-4cc2-0de482f53f92','新建工作',2055,1,'','<script type="text/javascript" src="/js/WorkFlow/FlowRun.js"></script>','<$2055$>
--获取待办工作 
declare @UserId as int
set @UserId={$userId}  

select top 30 isnull(UseCount,0) as UseCount,WF_FlowType.[FlowId],[FlowName],[EntId],[EntName] 
from WF_FlowType left join 
(SELECT COUNT([FlowId]) as UseCount,[FlowId]  FROM WF_FlowRun  where (WF_FlowRun.[AccountId]={$AccountId}   or    WF_FlowRun.[AccountId]=1)  and [CreatorId] = @UserId group by [FlowId]) as A  
on  A.[FlowId]=WF_FlowType.[FlowId]  where (WF_FlowType.[AccountId]={$AccountId}   or    WF_FlowType.[AccountId]=1) order by UseCount desc,WF_FlowType.FlowNo asc,WF_FlowType.FlowId  asc
 </$2055$>

<$2055Count$>
--获取待办工作的数量 
declare @UserId as int
set @UserId={$userId} 
select count(*)  from WF_FlowType,(SELECT COUNT([FlowId]) as UseCount,[FlowId]

  FROM WF_FlowRun  where (WF_FlowRun.[AccountId]={$AccountId}   or    WF_FlowRun.[AccountId]=1)  and [CreatorId]=@UserId group by [FlowId]) as A  where A.[FlowId]=WF_FlowType.[FlowId] and  (WF_FlowType.[AccountId]={$AccountId}   or    WF_FlowType.[AccountId]=1) 

</$2055Count$>',1,1,10,'DcxRun.ListR_2055= {"MenuId":2632,"MEntId":2055,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"新建工作","EntMsg":{"E2055":{"EntId":2055,"EntName":"新建工作","KeyFieldValue":"","DBTableName":"","KeyField":"FlowId","KeydtId":2,"JoinKeyField":"FlowId","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','2055*FlowId*2*FlowId*2*WF_FlowType*新建工作',3,'admin','2012-12-10 22:06:52',3,'','2013-11-24 4:40:17',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='0ce5a4fe-8bae-a769-4cc2-0de482f53f92',[ReportName]='新建工作',[ModuleId]=1,[StaticHtml]='',[DIYJsCss]='<script type="text/javascript" src="/js/WorkFlow/FlowRun.js"></script>',[LoadingSql]='<$2055$>
--获取待办工作 
declare @UserId as int
set @UserId={$userId}  

select top 30 isnull(UseCount,0) as UseCount,WF_FlowType.[FlowId],[FlowName],[EntId],[EntName] 
from WF_FlowType left join 
(SELECT COUNT([FlowId]) as UseCount,[FlowId]  FROM WF_FlowRun  where (WF_FlowRun.[AccountId]={$AccountId}   or    WF_FlowRun.[AccountId]=1)  and [CreatorId] = @UserId group by [FlowId]) as A  
on  A.[FlowId]=WF_FlowType.[FlowId]  where (WF_FlowType.[AccountId]={$AccountId}   or    WF_FlowType.[AccountId]=1) order by UseCount desc,WF_FlowType.FlowNo asc,WF_FlowType.FlowId  asc
 </$2055$>

<$2055Count$>
--获取待办工作的数量 
declare @UserId as int
set @UserId={$userId} 
select count(*)  from WF_FlowType,(SELECT COUNT([FlowId]) as UseCount,[FlowId]

  FROM WF_FlowRun  where (WF_FlowRun.[AccountId]={$AccountId}   or    WF_FlowRun.[AccountId]=1)  and [CreatorId]=@UserId group by [FlowId]) as A  where A.[FlowId]=WF_FlowType.[FlowId] and  (WF_FlowType.[AccountId]={$AccountId}   or    WF_FlowType.[AccountId]=1) 

</$2055Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=10,[AutoPublicJs]='DcxRun.ListR_2055= {"MenuId":2632,"MEntId":2055,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"新建工作","EntMsg":{"E2055":{"EntId":2055,"EntName":"新建工作","KeyFieldValue":"","DBTableName":"","KeyField":"FlowId","KeydtId":2,"JoinKeyField":"FlowId","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='2055*FlowId*2*FlowId*2*WF_FlowType*新建工作',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-10 22:06:52',[EditorId]=3,[Editor]='',[EditTime]='2013-11-24 4:40:17',[AccountId]=1 where  [EntId]=2055 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='bd98f3cc-9308-b82f-fee7-ea8610ee6632'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(145,'bd98f3cc-9308-b82f-fee7-ea8610ee6632',2055,2055,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<div style="POSITION: relative; TOP: -10px" class="listreport">
<div class="toolbar">
<ul style="WIDTH: 742px" class="tool-ul" entid="2055" isgroup="1" groupid="2" istoolbar="1" ctrlprex="ListR_" isrple="1">
<li style="width: 70px; height: 30px; display: none; position: static;" class="tool-li" areaid="27"><a id="ListR_2055_btn_buildNew" class="list-bt-add" title="添   加" onclick="javascript:DcxCom.ShowAddDataDlg(2055,''ListR_'');" href="javascript:void(0);">添 加</a></li>
<li style="width: 70px; height: 30px; display: none; position: static;" class="tool-li" areaid="28"><a id="ListR_2055_deletebut" class="list-bt-other" title="删   除" onclick="javascript:DcxReport.DeleteDatas(2055,''ListR_'');" href="javascript:void(0);">删 除</a></li>
<li style="width: 70px; height: 30px; display: none; position: static;" class="tool-li" areaid="30"><a id="ListR_2055_refreshbut" class="list-bt-other" title="刷   新" onclick="javascript:DcxCom.ReLoad(2055,''ListR_'');" href="javascript:void(0);">刷 新</a></li><!--分页栏-->
<li style="width: 189px; height: 20px; display: none; position: static;" id="li2_ListR_2055" class="pages" areaid="31"><a id="ListR_2055_PrevPage" class="list-pages list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(2055,''ListR_'',''p'');" href="javascript:void(0);" isfirstpage="1">上一页</a> <span class="ddl_pageindex list-pagesdown"><select id="ddl_ListR_2055_PageIndex" onchange="javascript:DcxSch.GetHtml(2055,''ListR_'',''a'',this);" isddlpage="1"></select> </span><a id="ListR_2055_NextPage" class="list-pages list-nextpage" title="下一页" onclick="javascript:DcxSch.GetHtml(2055,''ListR_'',''n'');" href="javascript:void(0);" isnextpage="1">下一页</a> <span class="list-data-amount">共</span>&nbsp; <span id="ListR_2055_RecCount_lbl" class="list-data-amount" isrecortcount="1">0</span> <span class="list-data-amount">条记录</span></li></ul></div><!-- 列表主体-->
<div class="list-area dcx-scroll">
<div class="list-head">
<ul style="width: 722px;" class="list-head-ul" entid="2055" isgroup="1" groupid="3" ctrlprex="ListR_" isrple="1">
<li style="width: 180px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="33">
<div class="list-li-field"><label istitle="1">流程图</label></div></li>
<li style="width: 150px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="34">
<div class="list-li-field"><label istitle="1">表单名称</label></div></li>
<li style="width: 110px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="35">
<div class="list-li-field"><label istitle="1">使用次数</label></div></li>
<li style="width: 250px; float: left; height: 30px; clear: right; position: static;" class="list-head-li" areaid="36">
<div class="list-li-field"><label istitle="1">操作</label></div></li></ul></div>
<div class="list-body">','',-1,4,-1,-1,1,'2055,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=145,[Report_EntId]=2055,[EntId]=2055,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div style="POSITION: relative; TOP: -10px" class="listreport">
<div class="toolbar">
<ul style="WIDTH: 742px" class="tool-ul" entid="2055" isgroup="1" groupid="2" istoolbar="1" ctrlprex="ListR_" isrple="1">
<li style="width: 70px; height: 30px; display: none; position: static;" class="tool-li" areaid="27"><a id="ListR_2055_btn_buildNew" class="list-bt-add" title="添   加" onclick="javascript:DcxCom.ShowAddDataDlg(2055,''ListR_'');" href="javascript:void(0);">添 加</a></li>
<li style="width: 70px; height: 30px; display: none; position: static;" class="tool-li" areaid="28"><a id="ListR_2055_deletebut" class="list-bt-other" title="删   除" onclick="javascript:DcxReport.DeleteDatas(2055,''ListR_'');" href="javascript:void(0);">删 除</a></li>
<li style="width: 70px; height: 30px; display: none; position: static;" class="tool-li" areaid="30"><a id="ListR_2055_refreshbut" class="list-bt-other" title="刷   新" onclick="javascript:DcxCom.ReLoad(2055,''ListR_'');" href="javascript:void(0);">刷 新</a></li><!--分页栏-->
<li style="width: 189px; height: 20px; display: none; position: static;" id="li2_ListR_2055" class="pages" areaid="31"><a id="ListR_2055_PrevPage" class="list-pages list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(2055,''ListR_'',''p'');" href="javascript:void(0);" isfirstpage="1">上一页</a> <span class="ddl_pageindex list-pagesdown"><select id="ddl_ListR_2055_PageIndex" onchange="javascript:DcxSch.GetHtml(2055,''ListR_'',''a'',this);" isddlpage="1"></select> </span><a id="ListR_2055_NextPage" class="list-pages list-nextpage" title="下一页" onclick="javascript:DcxSch.GetHtml(2055,''ListR_'',''n'');" href="javascript:void(0);" isnextpage="1">下一页</a> <span class="list-data-amount">共</span>&nbsp; <span id="ListR_2055_RecCount_lbl" class="list-data-amount" isrecortcount="1">0</span> <span class="list-data-amount">条记录</span></li></ul></div><!-- 列表主体-->
<div class="list-area dcx-scroll">
<div class="list-head">
<ul style="width: 722px;" class="list-head-ul" entid="2055" isgroup="1" groupid="3" ctrlprex="ListR_" isrple="1">
<li style="width: 180px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="33">
<div class="list-li-field"><label istitle="1">流程图</label></div></li>
<li style="width: 150px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="34">
<div class="list-li-field"><label istitle="1">表单名称</label></div></li>
<li style="width: 110px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="35">
<div class="list-li-field"><label istitle="1">使用次数</label></div></li>
<li style="width: 250px; float: left; height: 30px; clear: right; position: static;" class="list-head-li" areaid="36">
<div class="list-li-field"><label istitle="1">操作</label></div></li></ul></div>
<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2055,' where  [FldUId]='bd98f3cc-9308-b82f-fee7-ea8610ee6632' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='0cc49c43-837d-40f6-f794-1b5ac201706a'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(112,'0cc49c43-837d-40f6-f794-1b5ac201706a',2055,2055,'00000000-0000-0000-0000-000000000000',1,'FlowId',2,1,'int',1,1,0,'','','','style="width: 722px;" class="list-body-ul" isgroup="1" groupid="4" isrple="1">
<li style="width: 180px; float: left; height: 48px; clear: none; position: static;" class="list-body-li" areaid="42"><div class="list-li-field" style="MARGIN-TOP: 7px">
	<a onclick="javascript:DcxCom.ShowWfDlgChart
(','',42,4,-1,-1,1,'2055,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=112,[Report_EntId]=2055,[EntId]=2055,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=1,[FieldName]='FlowId',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='style="width: 722px;" class="list-body-ul" isgroup="1" groupid="4" isrple="1">
<li style="width: 180px; float: left; height: 48px; clear: none; position: static;" class="list-body-li" areaid="42"><div class="list-li-field" style="MARGIN-TOP: 7px">
	<a onclick="javascript:DcxCom.ShowWfDlgChart
(',[LastHtml]='',[RowIndex]=42,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2055,' where  [FldUId]='0cc49c43-837d-40f6-f794-1b5ac201706a' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='30c734e5-65d7-894f-c80a-8d0424c8ee7f'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'30c734e5-65d7-894f-c80a-8d0424c8ee7f',2055,2055,'00000000-0000-0000-0000-000000000000',2,'FlowName',3,1,'varchar',2,1,0,'','','',', false,this);" style="cursor:pointer;TEXT-DECORATION: none" title="流程图"><span isfield="1" entid="2055" fieldname="FlowName" fldid="6" columntypeid="1" class="form-ctr">','',-1,4,-1,-1,1,'2055,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=6,[Report_EntId]=2055,[EntId]=2055,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='FlowName',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=', false,this);" style="cursor:pointer;TEXT-DECORATION: none" title="流程图"><span isfield="1" entid="2055" fieldname="FlowName" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2055,' where  [FldUId]='30c734e5-65d7-894f-c80a-8d0424c8ee7f' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='abd84a6f-5e37-a4ea-14f6-8311ec774c30'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'abd84a6f-5e37-a4ea-14f6-8311ec774c30',2055,2055,'00000000-0000-0000-0000-000000000000',6,'EntName',4,1,'varchar',2,1,0,'','','','</span>
 </a></div>
</li>
<li style="position: static; width: 150px; float: left; height: 48px; clear: none;" class="list-body-li" areaid="43">
<div style="MARGIN-TOP: 7px" class="list-li-field"><span columntypeid="1" fieldname="EntName" entid="2055" isfield="1" fldid="7" class="form-ctr">','',-1,4,-1,-1,1,'2055,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=7,[Report_EntId]=2055,[EntId]=2055,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=6,[FieldName]='EntName',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
 </a></div>
</li>
<li style="position: static; width: 150px; float: left; height: 48px; clear: none;" class="list-body-li" areaid="43">
<div style="MARGIN-TOP: 7px" class="list-li-field"><span columntypeid="1" fieldname="EntName" entid="2055" isfield="1" fldid="7" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2055,' where  [FldUId]='abd84a6f-5e37-a4ea-14f6-8311ec774c30' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='d178fe75-340c-d698-effb-e96c8f9f0421'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(54,'d178fe75-340c-d698-effb-e96c8f9f0421',2055,2055,'00000000-0000-0000-0000-000000000000',-1,'UseCount',5,1,'varchar',2,1,0,'','','','</span> </div></li>
<li style="width: 110px; float: left; height: 48px; clear: none; position: static;" class="list-body-li" areaid="44">
<div style="MARGIN-TOP: 7px" class="list-li-field"><span columntypeid="1" fieldname="UseCount" entid="2055" isfield="1" fldid="54" class="form-ctr">','',44,4,-1,-1,1,'2055,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=54,[Report_EntId]=2055,[EntId]=2055,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='UseCount',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> </div></li>
<li style="width: 110px; float: left; height: 48px; clear: none; position: static;" class="list-body-li" areaid="44">
<div style="MARGIN-TOP: 7px" class="list-li-field"><span columntypeid="1" fieldname="UseCount" entid="2055" isfield="1" fldid="54" class="form-ctr">',[LastHtml]='',[RowIndex]=44,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2055,' where  [FldUId]='d178fe75-340c-d698-effb-e96c8f9f0421' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='f601ab22-5808-05d8-4f6b-b00b812ea13a'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(97,'f601ab22-5808-05d8-4f6b-b00b812ea13a',2055,2055,'00000000-0000-0000-0000-000000000000',1,'FlowId',6,1,'int',1,1,0,'','','','</span> </div></li>
<li style="position: static; width: 250px; float: left; height: 48px; clear: right;" class="list-body-li" areaid="45">
<div style="MARGIN-TOP: 2px" class="list-li-field"><a style="PADDING-BOTTOM: 0px; PADDING-LEFT: 15px; PADDING-RIGHT: 15px; PADDING-TOP: 0px" class="f_hot_op_bt f_hot_op_bt1 " onclick="javascript:WfRun.CreateNewWork2(','',45,4,-1,-1,1,'2055,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=97,[Report_EntId]=2055,[EntId]=2055,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=1,[FieldName]='FlowId',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> </div></li>
<li style="position: static; width: 250px; float: left; height: 48px; clear: right;" class="list-body-li" areaid="45">
<div style="MARGIN-TOP: 2px" class="list-li-field"><a style="PADDING-BOTTOM: 0px; PADDING-LEFT: 15px; PADDING-RIGHT: 15px; PADDING-TOP: 0px" class="f_hot_op_bt f_hot_op_bt1 " onclick="javascript:WfRun.CreateNewWork2(',[LastHtml]='',[RowIndex]=45,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2055,' where  [FldUId]='f601ab22-5808-05d8-4f6b-b00b812ea13a' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='0d6eb600-b574-6a2a-794b-dbbc159c10c8'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(101,'0d6eb600-b574-6a2a-794b-dbbc159c10c8',2055,2055,'00000000-0000-0000-0000-000000000000',2,'FlowName',7,1,'varchar',2,1,0,'','','',',''','',45,4,-1,-1,1,'2055,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=101,[Report_EntId]=2055,[EntId]=2055,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='FlowName',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=',''',[LastHtml]='',[RowIndex]=45,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2055,' where  [FldUId]='0d6eb600-b574-6a2a-794b-dbbc159c10c8' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='30670952-6b97-c737-7a3f-a4e6d564761e'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(98,'30670952-6b97-c737-7a3f-a4e6d564761e',2055,2055,'00000000-0000-0000-0000-000000000000',1,'FlowId',8,1,'int',1,1,0,'','','',''',this,2009,''DefaultF_'');"><span class="op_bt_i">开始创建</span></a> <a style="PADDING-BOTTOM: 0px; PADDING-LEFT: 15px; PADDING-RIGHT: 15px; PADDING-TOP: 0px" id="btn_NewBrotherMenu" class="f_hot_op_bt f_hot_op_bt2" onclick="javascript:WfRun.CreateNewWork3(','',45,4,-1,-1,1,'2055,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=98,[Report_EntId]=2055,[EntId]=2055,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=1,[FieldName]='FlowId',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',this,2009,''DefaultF_'');"><span class="op_bt_i">开始创建</span></a> <a style="PADDING-BOTTOM: 0px; PADDING-LEFT: 15px; PADDING-RIGHT: 15px; PADDING-TOP: 0px" id="btn_NewBrotherMenu" class="f_hot_op_bt f_hot_op_bt2" onclick="javascript:WfRun.CreateNewWork3(',[LastHtml]='',[RowIndex]=45,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2055,' where  [FldUId]='30670952-6b97-c737-7a3f-a4e6d564761e' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='275e4ed9-b681-a78d-3879-a6a7f42f5cad'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(102,'275e4ed9-b681-a78d-3879-a6a7f42f5cad',2055,2055,'00000000-0000-0000-0000-000000000000',2,'FlowName',9,1,'varchar',2,1,0,'','','',',''','',45,4,-1,-1,1,'2055,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=102,[Report_EntId]=2055,[EntId]=2055,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='FlowName',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=',''',[LastHtml]='',[RowIndex]=45,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2055,' where  [FldUId]='275e4ed9-b681-a78d-3879-a6a7f42f5cad' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='02744e79-7cc8-bf88-2908-8e5e47af0b40'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(146,'02744e79-7cc8-bf88-2908-8e5e47af0b40',2055,2055,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',10,-1,'varchar',2,13,0,'','','',''',this,2009,''DefaultF_'');"><span class="op_bt_i">快捷创建</span></a></div></li></ul>','</div></div></div><br>
<div isbottomhtml="1">
<div style="DISPLAY: none" id="div_WfRun.CreateNewWork">
<ul style="WIDTH: 794px" class="ul-mform" ctrlprex="ListR_" isrple="1">
<li style="position: static; min-height: 20px; width: 792px;" class="li-area">
<div class="field-content pad4">
<div id="div2" class="form-title2">
<div style="WIDTH: 170px; FLOAT: left; CLEAR: none">
<h2 id="h2">新建工作</h2></div></div></div></li>
<li style="position: static; width: 792px; height: 110px;" class="li-area">
<div class="field-content pad4"><textarea style="WIDTH: 494px; HEIGHT: 100px" id="txt_RunName" class="form-txts"></textarea></div></li>
<li style="position: static; min-height: 220px; width: 792px;" class="li-area">
<div class="field-content pad4"><a style="FLOAT: left; MARGIN-RIGHT: 30px" id="btn_UpdatePublish" class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);"><span class="op_bt_i">保&nbsp;&nbsp;&nbsp;&nbsp;存</span></a><a style="FLOAT: left" class="f_hot_op_bt f_hot_op_bt3 " onclick="javascript:DcxForm.Close();" href="javascript:void(0);"><span class="op_bt_i">关&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;闭</span></a></div></li></ul></div><br></div>',-1,4,-1,-1,1,'2055,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=146,[Report_EntId]=2055,[EntId]=2055,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=10,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''',this,2009,''DefaultF_'');"><span class="op_bt_i">快捷创建</span></a></div></li></ul>',[LastHtml]='</div></div></div><br>
<div isbottomhtml="1">
<div style="DISPLAY: none" id="div_WfRun.CreateNewWork">
<ul style="WIDTH: 794px" class="ul-mform" ctrlprex="ListR_" isrple="1">
<li style="position: static; min-height: 20px; width: 792px;" class="li-area">
<div class="field-content pad4">
<div id="div2" class="form-title2">
<div style="WIDTH: 170px; FLOAT: left; CLEAR: none">
<h2 id="h2">新建工作</h2></div></div></div></li>
<li style="position: static; width: 792px; height: 110px;" class="li-area">
<div class="field-content pad4"><textarea style="WIDTH: 494px; HEIGHT: 100px" id="txt_RunName" class="form-txts"></textarea></div></li>
<li style="position: static; min-height: 220px; width: 792px;" class="li-area">
<div class="field-content pad4"><a style="FLOAT: left; MARGIN-RIGHT: 30px" id="btn_UpdatePublish" class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);"><span class="op_bt_i">保&nbsp;&nbsp;&nbsp;&nbsp;存</span></a><a style="FLOAT: left" class="f_hot_op_bt f_hot_op_bt3 " onclick="javascript:DcxForm.Close();" href="javascript:void(0);"><span class="op_bt_i">关&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;闭</span></a></div></li></ul></div><br></div>',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2055,' where  [FldUId]='02744e79-7cc8-bf88-2908-8e5e47af0b40' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=1207

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=1207  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(1207,null,'WF_FlowType','WF_FlowType',1,0,0,0,0,0,45,1,3,'admin','2013-12-15 17:32:36',3,'admin','2013-12-15 17:32:36',null,null,29,667,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='WF_FlowType',[DBTableByName]='WF_FlowType',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=45,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:36',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:36',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=29,[SDbTableId]=667,[IsChange]=null,[IsSystem]=null where  [DBTableId]=1207 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1207  and  [FieldId]=37  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19468,37,45,1207,'int',1,1,1,'WF_FlowType','AccountId','AccountId','1',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='AccountId',[FieldByname]='AccountId',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1207  and  [FieldId]=37 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1207  and  [FieldId]=36  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19469,36,45,1207,'int',1,1,1,'WF_FlowType','EditorId','EditorId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='EditorId',[FieldByname]='EditorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1207  and  [FieldId]=36 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1207  and  [FieldId]=35  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19470,35,45,1207,'varchar',2,1,1,'WF_FlowType','Editor','Editor','',0,0,1,40,40,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='Editor',[FieldByname]='Editor',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=40,[Precision]=40,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1207  and  [FieldId]=35 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1207  and  [FieldId]=34  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19471,34,45,1207,'datetime',3,1,1,'WF_FlowType','EditTime','EditTime','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='EditTime',[FieldByname]='EditTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1207  and  [FieldId]=34 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1207  and  [FieldId]=33  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19472,33,45,1207,'datetime',3,1,1,'WF_FlowType','CreateTime','CreateTime','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='CreateTime',[FieldByname]='CreateTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1207  and  [FieldId]=33 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1207  and  [FieldId]=32  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19473,32,45,1207,'varchar',2,1,1,'WF_FlowType','Creator','Creator','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='Creator',[FieldByname]='Creator',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1207  and  [FieldId]=32 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1207  and  [FieldId]=31  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19474,31,45,1207,'int',1,1,1,'WF_FlowType','CreatorId','CreatorId','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='CreatorId',[FieldByname]='CreatorId',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1207  and  [FieldId]=31 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1207  and  [FieldId]=30  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19475,30,45,1207,'varchar',2,1,1,'WF_FlowType','Detail','Detail','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='Detail',[FieldByname]='Detail',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1207  and  [FieldId]=30 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1207  and  [FieldId]=29  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19476,29,45,1207,'varchar',2,1,1,'WF_FlowType','ListUrl','ListUrl','',0,0,1,300,300,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='ListUrl',[FieldByname]='ListUrl',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=300,[Precision]=300,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1207  and  [FieldId]=29 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1207  and  [FieldId]=28  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19477,28,45,1207,'varchar',2,1,1,'WF_FlowType','BrowseUrl','BrowseUrl','',0,0,1,300,300,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='BrowseUrl',[FieldByname]='BrowseUrl',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=300,[Precision]=300,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1207  and  [FieldId]=28 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1207  and  [FieldId]=27  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19478,27,45,1207,'varchar',2,1,1,'WF_FlowType','FormUrl','FormUrl','',0,0,1,300,300,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='FormUrl',[FieldByname]='FormUrl',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=300,[Precision]=300,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1207  and  [FieldId]=27 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1207  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19479,26,45,1207,'bit',4,1,1,'WF_FlowType','LaunchIsOpen','LaunchIsOpen','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='LaunchIsOpen',[FieldByname]='LaunchIsOpen',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1207  and  [FieldId]=26 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1207  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19480,25,45,1207,'varchar',2,1,1,'WF_FlowType','QueryItem','QueryItem','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='QueryItem',[FieldByname]='QueryItem',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1207  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1207  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19481,24,45,1207,'bit',4,1,1,'WF_FlowType','IsFreeFlow','IsFreeFlow','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='IsFreeFlow',[FieldByname]='IsFreeFlow',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1207  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1207  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19482,23,45,1207,'varchar',2,1,1,'WF_FlowType','PigeonholedSQL','PigeonholedSQL','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='PigeonholedSQL',[FieldByname]='PigeonholedSQL',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1207  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1207  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19483,22,45,1207,'bit',4,1,1,'WF_FlowType','IsPigeonhole','IsPigeonhole','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='IsPigeonhole',[FieldByname]='IsPigeonhole',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1207  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1207  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19484,21,45,1207,'int',1,1,1,'WF_FlowType','FlowAttach','FlowAttach','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='FlowAttach',[FieldByname]='FlowAttach',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1207  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1207  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19485,20,45,1207,'int',1,1,1,'WF_FlowType','AttachMaxSize','AttachMaxSize','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='AttachMaxSize',[FieldByname]='AttachMaxSize',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1207  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1207  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19486,19,45,1207,'varchar',2,1,1,'WF_FlowType','CanStartRolesId','CanStartRolesId','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='CanStartRolesId',[FieldByname]='CanStartRolesId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1207  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1207  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19487,18,45,1207,'varchar',2,1,1,'WF_FlowType','CanStartRoles','CanStartRoles','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='CanStartRoles',[FieldByname]='CanStartRoles',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1207  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1207  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19488,17,45,1207,'varchar',2,1,1,'WF_FlowType','CanStartNames','CanStartNames','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='CanStartNames',[FieldByname]='CanStartNames',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1207  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1207  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19489,16,45,1207,'varchar',2,1,1,'WF_FlowType','CanStartUsers','CanStartUsers','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='CanStartUsers',[FieldByname]='CanStartUsers',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1207  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1207  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19490,15,45,1207,'varchar',2,1,1,'WF_FlowType','CanManageRolesId','CanManageRolesId','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='CanManageRolesId',[FieldByname]='CanManageRolesId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1207  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1207  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19491,14,45,1207,'varchar',2,1,1,'WF_FlowType','CanManageRoles','CanManageRoles','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='CanManageRoles',[FieldByname]='CanManageRoles',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1207  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1207  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19492,13,45,1207,'varchar',2,1,1,'WF_FlowType','CanQueryRolesId','CanQueryRolesId','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='CanQueryRolesId',[FieldByname]='CanQueryRolesId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1207  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1207  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19493,12,45,1207,'varchar',2,1,1,'WF_FlowType','CanQueryRoles','CanQueryRoles','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='CanQueryRoles',[FieldByname]='CanQueryRoles',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1207  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1207  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19494,11,45,1207,'varchar',2,1,1,'WF_FlowType','QueryNames','QueryNames','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='QueryNames',[FieldByname]='QueryNames',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1207  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1207  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19495,10,45,1207,'varchar',2,1,1,'WF_FlowType','QueryUsers','QueryUsers','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='QueryUsers',[FieldByname]='QueryUsers',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1207  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1207  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19496,9,45,1207,'varchar',2,1,1,'WF_FlowType','ManageNames','ManageNames','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='ManageNames',[FieldByname]='ManageNames',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1207  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1207  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19497,8,45,1207,'varchar',2,1,1,'WF_FlowType','ManageUsers','ManageUsers','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='ManageUsers',[FieldByname]='ManageUsers',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1207  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1207  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19498,7,45,1207,'varchar',2,1,1,'WF_FlowType','AutoName','AutoName','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='AutoName',[FieldByname]='AutoName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1207  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1207  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19499,6,45,1207,'varchar',2,1,1,'WF_FlowType','EntName','EntName','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='EntName',[FieldByname]='EntName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1207  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1207  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19500,5,45,1207,'int',1,1,1,'WF_FlowType','EntId','EntId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='EntId',[FieldByname]='EntId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1207  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1207  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19501,4,45,1207,'int',1,1,1,'WF_FlowType','SortId','SortId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='SortId',[FieldByname]='SortId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1207  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1207  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19502,3,45,1207,'int',1,1,1,'WF_FlowType','FlowNo','FlowNo','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='FlowNo',[FieldByname]='FlowNo',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1207  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1207  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19503,2,45,1207,'varchar',2,1,1,'WF_FlowType','FlowName','FlowName','',0,0,0,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='FlowName',[FieldByname]='FlowName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1207  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1207  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19504,1,45,1207,'int',1,1,1,'WF_FlowType','FlowId','FlowId','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowType',[FieldName]='FlowId',[FieldByname]='FlowId',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1207  and  [FieldId]=1 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=2633  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2633,'fd72c27f-ab33-412a-adb6-a132b264cf38','待办工作',2631,'/Template/default/ListReport/ListReport_Tree001.aspx',1,'/images/default.gif','/images/default.gif',2,'',0,0,'',45,0,45,1,1,1,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='fd72c27f-ab33-412a-adb6-a132b264cf38',[MenuName]='待办工作',[ParentId]=2631,[ProPath]='/Template/default/ListReport/ListReport_Tree001.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=2,[Target]='',[IsOpen]=0,[IsHidden]=0,[Remark]='',[SSystemId]=45,[SMenuId]=0,[SystemId]=45,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=2633 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=2633  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(430,2633,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=2633  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2056  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2056,2633,'待办工作',1,657,0,'WF_FlowRun',0,0,1,45,2056,null,null,45,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=2633,[EntName]='待办工作',[MEnt]=1,[DBTableId]=657,[DBConnectId]=0,[DBTableName]='WF_FlowRun',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=45,[SEntId]=2056,[FSystemId]=null,[FEntId]=null,[SystemId]=45,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2056 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=2056

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2056  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11090,2633,2056,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=2633,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2056  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2056  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11453,-1,2056,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2056  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2056

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2056  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20599,45,2633,2056,13,1,1,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=45,[MenuId]=2633,[TemplateId]=13,[ModuleId]=1,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2056  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2056  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20600,45,2633,2056,13,2,9,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=45,[MenuId]=2633,[TemplateId]=13,[ModuleId]=9,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2056  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2056  and  [ModuleTypeId]=5  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20601,45,2633,2056,13,5,25,1,3,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=45,[MenuId]=2633,[TemplateId]=13,[ModuleId]=25,[GroupId]=1,[AreaId]=3,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2056  and  [ModuleTypeId]=5 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2056  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20602,45,2633,2056,13,3,68,1,4,2,'/Template/Default/Form/AjaxForm/AjaxForm008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=45,[MenuId]=2633,[TemplateId]=13,[ModuleId]=68,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='/Template/Default/Form/AjaxForm/AjaxForm008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=2056  and  [ModuleTypeId]=3 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2056  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20603,45,2633,2056,13,16,31,1,5,2,'/Template/Default/Browse/Browse008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=45,[MenuId]=2633,[TemplateId]=13,[ModuleId]=31,[GroupId]=1,[AreaId]=5,[ShowMode]=2,[AreaUrl]='/Template/Default/Browse/Browse008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=2056  and  [ModuleTypeId]=16 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_SearchForm_Run]  where [EntId]=2056

--Dcx_SearchForm_Run
      if (select count(1) from [Dcx_SearchForm_Run] where  [EntId]=2056  )<1 
      begin 
           Insert into [Dcx_SearchForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('d5e06edc-b99d-6c8d-3031-fe050859c655','待办工作',2056,9,'','',0,'<!--/Js/ui/jquery.ui.core.js-->
<!--/Js/ui/jquery.ui.widget.js-->
<!--/Js/ui/jquery.ui.mouse.js-->
<!--/Js/ui/jquery.ui.sortable.js-->
<script src="/Js/Control/LTreeRList/LTreeRList.js"></script>','','DcxRun.SearchF_2056= {"MenuId":2633,"MEntId":2056,"EntName":"待办工作","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2056":{"EntId":2056,"KeyFieldValue":"","DBTableName":"","KeyField":"RunId","KeydtId":2,"JoinKeyField":"RunId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_2056.EntMsg.E2056.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"WF_FlowRun","EntId":2056,"KeyField":"RunId","MKeyField":"RunId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"FlowId":{"DtId":1,"DB":1,"CId":40,"FL":4},"RunName":{"DtId":2,"DB":1,"CId":1,"FL":200},"CreatorName":{"DtId":2,"DB":1,"CId":1,"FL":50}},"Data":{"Row":[]}};
}
DcxRun.SearchF_2056.EntMsg.E2056.GetDataRowModel=function()
{
    return {"FlowId":-1,"RunName":"","CreatorName":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"RunId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_2056.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2056,''SearchF_'',buildNew,closeDlg);

}','',10,'','','','2056*RunId*2*RunId*2*WF_FlowRun*待办工作',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-11 6:56:56',3,'admin','2013-8-22 5:57:02',1)
      end
      else 
      begin 
           update [Dcx_SearchForm_Run] set [FormId]='d5e06edc-b99d-6c8d-3031-fe050859c655',[FormName]='待办工作',[ModuleId]=9,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<!--/Js/ui/jquery.ui.core.js-->
<!--/Js/ui/jquery.ui.widget.js-->
<!--/Js/ui/jquery.ui.mouse.js-->
<!--/Js/ui/jquery.ui.sortable.js-->
<script src="/Js/Control/LTreeRList/LTreeRList.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.SearchF_2056= {"MenuId":2633,"MEntId":2056,"EntName":"待办工作","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2056":{"EntId":2056,"KeyFieldValue":"","DBTableName":"","KeyField":"RunId","KeydtId":2,"JoinKeyField":"RunId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_2056.EntMsg.E2056.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"WF_FlowRun","EntId":2056,"KeyField":"RunId","MKeyField":"RunId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"FlowId":{"DtId":1,"DB":1,"CId":40,"FL":4},"RunName":{"DtId":2,"DB":1,"CId":1,"FL":200},"CreatorName":{"DtId":2,"DB":1,"CId":1,"FL":50}},"Data":{"Row":[]}};
}
DcxRun.SearchF_2056.EntMsg.E2056.GetDataRowModel=function()
{
    return {"FlowId":-1,"RunName":"","CreatorName":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"RunId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_2056.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2056,''SearchF_'',buildNew,closeDlg);

}',[LoadingSql]='',[PageSize]=10,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='2056*RunId*2*RunId*2*WF_FlowRun*待办工作',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-11 6:56:56',[EditorId]=3,[Editor]='admin',[EditTime]='2013-8-22 5:57:02',[AccountId]=1 where  [EntId]=2056 
      end




--Dcx_SearchFormField_Run
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='49199ef4-b68d-f8eb-a992-89e683e5c9ff'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'49199ef4-b68d-f8eb-a992-89e683e5c9ff',2056,2056,'00000000-0000-0000-0000-000000000000',1,'=','FlowId',1,1,3,'',5,2,1,0,40,1,-1,24,1,0,'','','','','<div class="searchform">
	<ul class="search-block" groupid="1" isgroup="1" isrple="1">
		<li areaid="5" class="search-li" scroll="no" style="width: 270px; height: 38px; position: static;"><label class="search-title pad7" fldid="1" istitle="1">工作类别</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">','','','','<div id="d2056_FlowId" class="form-ddl" style="" IsForField=1 EntId="2056" FId="1" Vtp="5" RId="2" Isc="1" CId="40" FieldName="FlowId" ><input  id="d2056_FlowId_Text" type="text" class="form-ddl-txt"  CId="40" FId="1" Vtp="5"  RId="2" Isc="1"  style="width:150px;" onclick ="javascript:DcxTree.ShowDialogAf(this,24,2056,''FlowId'',false);" onkeyup ="javascript:DcxTree.ShowDialogAf(this,24,2056,''FlowId'',true);" value="','" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2056_FlowId_hid" type="hidden"  EntId="2056" IsField=1 DBField=1 IsPost=1 FieldName="FlowId" dType="1" Vtp="5" RDT="1" Isc="1" RId="2" CId="40" FId="1" vlk=0   TId=24  Cpre="="  value="','" />',1,-1,-1,-1,-1,0,'2056,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=1,[Form_EntId]=2056,[EntId]=2056,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[CompareOperatorType]='=',[FieldName]='FlowId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=3,[DefaultValue]='',[ValueType]=5,[RunValueType]=2,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=40,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=24,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="searchform">
	<ul class="search-block" groupid="1" isgroup="1" isrple="1">
		<li areaid="5" class="search-li" scroll="no" style="width: 270px; height: 38px; position: static;"><label class="search-title pad7" fldid="1" istitle="1">工作类别</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2056_FlowId" class="form-ddl" style="" IsForField=1 EntId="2056" FId="1" Vtp="5" RId="2" Isc="1" CId="40" FieldName="FlowId" ><input  id="d2056_FlowId_Text" type="text" class="form-ddl-txt"  CId="40" FId="1" Vtp="5"  RId="2" Isc="1"  style="width:150px;" onclick ="javascript:DcxTree.ShowDialogAf(this,24,2056,''FlowId'',false);" onkeyup ="javascript:DcxTree.ShowDialogAf(this,24,2056,''FlowId'',true);" value="',[CtrlbackHtml]='" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2056_FlowId_hid" type="hidden"  EntId="2056" IsField=1 DBField=1 IsPost=1 FieldName="FlowId" dType="1" Vtp="5" RDT="1" Isc="1" RId="2" CId="40" FId="1" vlk=0   TId=24  Cpre="="  value="',[CtrlLastHtml]='" />',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2056,' where  [FldUId]='49199ef4-b68d-f8eb-a992-89e683e5c9ff' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='71e00ed7-f526-5851-5173-e7c1549e53bc'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'71e00ed7-f526-5851-5173-e7c1549e53bc',2056,2056,'00000000-0000-0000-0000-000000000000',2,'Like','RunName',2,2,2,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
</div>
</li>
		<li areaid="6" class="search-li" scroll="no" style="width: 230px; height: 38px; position: static;"><label class="search-title pad7" fldid="2" istitle="1">工作名称</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2056_RunName"   type="text" class="form-txt"  style="width:120px;" EntId="2056" IsField=1 DBField=1 IsPost=1 FieldName="RunName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'2056,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=2,[Form_EntId]=2056,[EntId]=2056,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[CompareOperatorType]='Like',[FieldName]='RunName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=2,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
		<li areaid="6" class="search-li" scroll="no" style="width: 230px; height: 38px; position: static;"><label class="search-title pad7" fldid="2" istitle="1">工作名称</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2056_RunName"   type="text" class="form-txt"  style="width:120px;" EntId="2056" IsField=1 DBField=1 IsPost=1 FieldName="RunName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2056,' where  [FldUId]='71e00ed7-f526-5851-5173-e7c1549e53bc' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='627a18f4-d0d8-3ef5-aed8-4e55c6e7a6da'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'627a18f4-d0d8-3ef5-aed8-4e55c6e7a6da',2056,2056,'00000000-0000-0000-0000-000000000000',3,'Like','CreatorName',2,2,9,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
</div>
</li>
		<li areaid="7" class="search-li" scroll="no" style="width: 230px; height: 38px; position: static;"><label class="search-title pad7" fldid="3" istitle="1">发起人</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">','</span>
</div>
</li>
		<li areaid="8" class="" scroll="no" style="position: static;">
			<div class="searchform-button " onclick="javascript:return VL_Search(2056);">
				<div class="search-btn">
					&nbsp;</div>
				<a href="javascript:void(0);" id="2056_searchBT">搜索</a></div>
		</li>
	</ul>
</div>
<br>','','','<input  id="d2056_CreatorName"   type="text" class="form-txt"  style="width:120px;" EntId="2056" IsField=1 DBField=1 IsPost=1 FieldName="CreatorName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="3" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'2056,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=3,[Form_EntId]=2056,[EntId]=2056,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[CompareOperatorType]='Like',[FieldName]='CreatorName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=9,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
		<li areaid="7" class="search-li" scroll="no" style="width: 230px; height: 38px; position: static;"><label class="search-title pad7" fldid="3" istitle="1">发起人</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
</div>
</li>
		<li areaid="8" class="" scroll="no" style="position: static;">
			<div class="searchform-button " onclick="javascript:return VL_Search(2056);">
				<div class="search-btn">
					&nbsp;</div>
				<a href="javascript:void(0);" id="2056_searchBT">搜索</a></div>
		</li>
	</ul>
</div>
<br>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2056_CreatorName"   type="text" class="form-txt"  style="width:120px;" EntId="2056" IsField=1 DBField=1 IsPost=1 FieldName="CreatorName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="3" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2056,' where  [FldUId]='627a18f4-d0d8-3ef5-aed8-4e55c6e7a6da' 
      end



Delete from [Dcx_ListReport_Run]  where [EntId]=2056

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=2056  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('2e55ed3d-57be-7639-7311-b481d2226d60','待办工作',2056,1,'','<!--/js/Control/DropDown/DropDown.js-->
<script type="text/javascript" language="JavaScript" > 
$(window).load(function(){ 
 DcxDDown.InitDDown("btn_FlowMenuNavMore", 2);
});
</script>
<script type="text/javascript" src="/js/WorkFlow/FlowRun.js"></script>','<$2056$>
EXEC [dbo].[DcxRun_WF_GetMyUndoWork]
		@SearchArea = N''{$SearchArea}'',
		@StartIndex = {$startRow},
		@EndIndex = {$endRow},
		@UserId = {$UserId},
		@DeptId = {$DeptId},
		@getcount = 0
</$2056$>
<$2056:Count$>
EXEC	 [dbo].[DcxRun_WF_GetMyUndoWork]
		@SearchArea = N''{$SearchArea}'',
		@StartIndex = {$startRow},
		@EndIndex = {$endRow},
		@UserId = {$UserId},
		@DeptId = {$DeptId},
		@getcount = 1
</$2056:Count$>',1,1,10,'DcxRun.ListR_2056= {"MenuId":2633,"MEntId":2056,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"待办工作","EntMsg":{"E2056":{"EntId":2056,"EntName":"待办工作","KeyFieldValue":"","DBTableName":"","KeyField":"RunId","KeydtId":2,"JoinKeyField":"RunId","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','try{
   runObj.FielDeal={"MaxDealId":1,"Ent":[{"EntId":2056,"Fld":[{"FldId":167,"Deal":[]}],"Deal":[]}]};
 DcxReport.DealField(2056,''ListR_'',true);}
catch(err){}','','2056*RunId*2*RunId*2*WF_FlowRun*待办工作',3,'admin','2012-12-11 6:35:04',3,'','2013-12-12 3:52:12',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='2e55ed3d-57be-7639-7311-b481d2226d60',[ReportName]='待办工作',[ModuleId]=1,[StaticHtml]='',[DIYJsCss]='<!--/js/Control/DropDown/DropDown.js-->
<script type="text/javascript" language="JavaScript" > 
$(window).load(function(){ 
 DcxDDown.InitDDown("btn_FlowMenuNavMore", 2);
});
</script>
<script type="text/javascript" src="/js/WorkFlow/FlowRun.js"></script>',[LoadingSql]='<$2056$>
EXEC [dbo].[DcxRun_WF_GetMyUndoWork]
		@SearchArea = N''{$SearchArea}'',
		@StartIndex = {$startRow},
		@EndIndex = {$endRow},
		@UserId = {$UserId},
		@DeptId = {$DeptId},
		@getcount = 0
</$2056$>
<$2056:Count$>
EXEC	 [dbo].[DcxRun_WF_GetMyUndoWork]
		@SearchArea = N''{$SearchArea}'',
		@StartIndex = {$startRow},
		@EndIndex = {$endRow},
		@UserId = {$UserId},
		@DeptId = {$DeptId},
		@getcount = 1
</$2056:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=10,[AutoPublicJs]='DcxRun.ListR_2056= {"MenuId":2633,"MEntId":2056,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"待办工作","EntMsg":{"E2056":{"EntId":2056,"EntName":"待办工作","KeyFieldValue":"","DBTableName":"","KeyField":"RunId","KeydtId":2,"JoinKeyField":"RunId","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='try{
   runObj.FielDeal={"MaxDealId":1,"Ent":[{"EntId":2056,"Fld":[{"FldId":167,"Deal":[]}],"Deal":[]}]};
 DcxReport.DealField(2056,''ListR_'',true);}
catch(err){}',[AutoOtherJS]='',[OtherMsg]='2056*RunId*2*RunId*2*WF_FlowRun*待办工作',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-11 6:35:04',[EditorId]=3,[Editor]='',[EditTime]='2013-12-12 3:52:12',[AccountId]=1 where  [EntId]=2056 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='7fafc09b-970b-92ce-ef43-05b8f886079f'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(322,'7fafc09b-970b-92ce-ef43-05b8f886079f',2056,2056,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<div class="listreport">
<div class="toolbar">
<ul style="WIDTH: 882px" class="tool-ul" entid="2056" isgroup="1" groupid="2" istoolbar="1" ctrlprex="ListR_" isrple="1">
<li style="position: static; width: 100px; height: 30px; display: none;" class="tool-li" areaid="27"><a id="ListR_2056_btn_buildNew" class="list-bt-add" title="添   加" onclick="javascript:DcxCom.ShowAddDataDlg(2056,''ListR_'');" href="javascript:void(0);">新建工作</a></li>
<li style="width: 70px; height: 30px; display: none; position: static;" class="tool-li" areaid="28"><a id="ListR_2056_deletebut" class="list-bt-other" title="删   除" onclick="javascript:DcxReport.DeleteDatas(2056,''ListR_'');" href="javascript:void(0);">删 除</a></li>
<li style="width: 70px; height: 30px; display: none; position: static;" class="tool-li" areaid="29"><a id="ListR_2056_ExportToExcelbut" class="list-bt-other" title="导   出" onclick="javascript:DcxCom.ExportExcel(2056,''ListR_'');" href="javascript:void(0);">导 出</a></li>
<li style="width: 70px; height: 30px; position: static;" class="tool-li" areaid="30"><a id="ListR_2056_refreshbut" class="list-bt-other" title="刷   新" onclick="javascript:DcxCom.ReLoad(2056,''ListR_'');" href="javascript:void(0);">刷 新</a></li><!--分页栏-->
<li style="position: static; width: 189px; height: 20px;" id="li2_ListR_2056" class="pages" areaid="31"><a id="ListR_2056_PrevPage" class="list-pages list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(2056,''ListR_'',''p'');" href="javascript:void(0);" isfirstpage="1">上一页</a> <span class="ddl_pageindex list-pagesdown"><select id="ddl_ListR_2056_PageIndex" onchange="javascript:DcxSch.GetHtml(2056,''ListR_'',''a'',this);" isddlpage="1"></select> </span><a id="ListR_2056_NextPage" class="list-pages list-nextpage" title="下一页" onclick="javascript:DcxSch.GetHtml(2056,''ListR_'',''n'');" href="javascript:void(0);" isnextpage="1">下一页</a> <span class="list-data-amount">共</span>&nbsp; <span id="ListR_2056_RecCount_lbl" class="list-data-amount" isrecortcount="1">0</span> <span class="list-data-amount">条记录</span></li></ul></div><!-- 列表主体-->
<div class="list-area dcx-scroll">
<div class="list-head">
<ul style="width: 882px;" class="list-head-ul" entid="2056" isgroup="1" groupid="3" ctrlprex="ListR_" isrple="1">
<li style="width: 120px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="33">
<div class="list-li-field"><label istitle="1">工作类别</label></div></li>
<li style="width: 180px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="34">
<div class="list-li-field"><label istitle="1">工作名称</label></div></li>
<li style="position: static; width: 80px; float: left; height: 30px; clear: none;" class="list-head-li" areaid="35">
<div class="list-li-field"><label istitle="1">工作发起人</label></div></li>
<li style="width: 180px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="36">
<div class="list-li-field"><label istitle="1">当前步骤</label></div></li>
<li style="width: 90px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="37">
<div class="list-li-field"><label istitle="1">转交日期</label></div></li>
<li style="width: 150px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="50">
<div class="list-li-field"><label istitle="1">流程操作</label></div></li>
<li style="width: 32px; float: left; height: 30px; clear: right; position: static;" class="list-operate" areaid="40">
<div class="delete"><a class="li-item-btn btn-pink " title="删除" href="javascript:void(0);"><span class="i">删除</span></a></div></li></ul></div>
<div class="list-body">','',-1,4,-1,-1,1,'2056,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=322,[Report_EntId]=2056,[EntId]=2056,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="listreport">
<div class="toolbar">
<ul style="WIDTH: 882px" class="tool-ul" entid="2056" isgroup="1" groupid="2" istoolbar="1" ctrlprex="ListR_" isrple="1">
<li style="position: static; width: 100px; height: 30px; display: none;" class="tool-li" areaid="27"><a id="ListR_2056_btn_buildNew" class="list-bt-add" title="添   加" onclick="javascript:DcxCom.ShowAddDataDlg(2056,''ListR_'');" href="javascript:void(0);">新建工作</a></li>
<li style="width: 70px; height: 30px; display: none; position: static;" class="tool-li" areaid="28"><a id="ListR_2056_deletebut" class="list-bt-other" title="删   除" onclick="javascript:DcxReport.DeleteDatas(2056,''ListR_'');" href="javascript:void(0);">删 除</a></li>
<li style="width: 70px; height: 30px; display: none; position: static;" class="tool-li" areaid="29"><a id="ListR_2056_ExportToExcelbut" class="list-bt-other" title="导   出" onclick="javascript:DcxCom.ExportExcel(2056,''ListR_'');" href="javascript:void(0);">导 出</a></li>
<li style="width: 70px; height: 30px; position: static;" class="tool-li" areaid="30"><a id="ListR_2056_refreshbut" class="list-bt-other" title="刷   新" onclick="javascript:DcxCom.ReLoad(2056,''ListR_'');" href="javascript:void(0);">刷 新</a></li><!--分页栏-->
<li style="position: static; width: 189px; height: 20px;" id="li2_ListR_2056" class="pages" areaid="31"><a id="ListR_2056_PrevPage" class="list-pages list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(2056,''ListR_'',''p'');" href="javascript:void(0);" isfirstpage="1">上一页</a> <span class="ddl_pageindex list-pagesdown"><select id="ddl_ListR_2056_PageIndex" onchange="javascript:DcxSch.GetHtml(2056,''ListR_'',''a'',this);" isddlpage="1"></select> </span><a id="ListR_2056_NextPage" class="list-pages list-nextpage" title="下一页" onclick="javascript:DcxSch.GetHtml(2056,''ListR_'',''n'');" href="javascript:void(0);" isnextpage="1">下一页</a> <span class="list-data-amount">共</span>&nbsp; <span id="ListR_2056_RecCount_lbl" class="list-data-amount" isrecortcount="1">0</span> <span class="list-data-amount">条记录</span></li></ul></div><!-- 列表主体-->
<div class="list-area dcx-scroll">
<div class="list-head">
<ul style="width: 882px;" class="list-head-ul" entid="2056" isgroup="1" groupid="3" ctrlprex="ListR_" isrple="1">
<li style="width: 120px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="33">
<div class="list-li-field"><label istitle="1">工作类别</label></div></li>
<li style="width: 180px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="34">
<div class="list-li-field"><label istitle="1">工作名称</label></div></li>
<li style="position: static; width: 80px; float: left; height: 30px; clear: none;" class="list-head-li" areaid="35">
<div class="list-li-field"><label istitle="1">工作发起人</label></div></li>
<li style="width: 180px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="36">
<div class="list-li-field"><label istitle="1">当前步骤</label></div></li>
<li style="width: 90px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="37">
<div class="list-li-field"><label istitle="1">转交日期</label></div></li>
<li style="width: 150px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="50">
<div class="list-li-field"><label istitle="1">流程操作</label></div></li>
<li style="width: 32px; float: left; height: 30px; clear: right; position: static;" class="list-operate" areaid="40">
<div class="delete"><a class="li-item-btn btn-pink " title="删除" href="javascript:void(0);"><span class="i">删除</span></a></div></li></ul></div>
<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2056,' where  [FldUId]='7fafc09b-970b-92ce-ef43-05b8f886079f' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='85e329c0-253d-dd38-b673-475a1bd5d64d'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(278,'85e329c0-253d-dd38-b673-475a1bd5d64d',2056,2056,'00000000-0000-0000-0000-000000000000',3,'FlowId',2,1,'int',1,1,0,'','','','style="width: 882px;" class="list-body-ul" isgroup="1" groupid="4" isrple="1">
<li style="position: static; width: 120px; float: left; height: 40px; clear: none; overflow: hidden;" class="list-body-li" areaid="42">
<div style="PADDING-TOP: 4px" class="list-li-field"><a class="a" title="查看流程图" onclick="javascript:DcxCom.ShowWfDlgChart
(','',42,4,-1,-1,1,'2056,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=278,[Report_EntId]=2056,[EntId]=2056,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='FlowId',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='style="width: 882px;" class="list-body-ul" isgroup="1" groupid="4" isrple="1">
<li style="position: static; width: 120px; float: left; height: 40px; clear: none; overflow: hidden;" class="list-body-li" areaid="42">
<div style="PADDING-TOP: 4px" class="list-li-field"><a class="a" title="查看流程图" onclick="javascript:DcxCom.ShowWfDlgChart
(',[LastHtml]='',[RowIndex]=42,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2056,' where  [FldUId]='85e329c0-253d-dd38-b673-475a1bd5d64d' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='aed14c42-b8af-d132-1888-9d41472bd651'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'aed14c42-b8af-d132-1888-9d41472bd651',2056,2056,'00000000-0000-0000-0000-000000000000',4,'FlowName',3,1,'varchar',2,1,0,'','','',', false,this);"><span columntypeid="1" fieldname="FlowName" entid="2056" isfield="1" fldid="8" class="form-ctr">','',-1,4,-1,-1,1,'2056,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=8,[Report_EntId]=2056,[EntId]=2056,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=4,[FieldName]='FlowName',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=', false,this);"><span columntypeid="1" fieldname="FlowName" entid="2056" isfield="1" fldid="8" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2056,' where  [FldUId]='aed14c42-b8af-d132-1888-9d41472bd651' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='7276c91b-b6ec-341f-eb28-bc68f14df653'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(244,'7276c91b-b6ec-341f-eb28-bc68f14df653',2056,2056,'00000000-0000-0000-0000-000000000000',1,'RunId',4,1,'int',1,1,0,'','','','</span> <span columntypeid="1" fieldname="RunId" entid="2056" isfield="1" fldid="244" class="form-ctr" style="display: none;">','',42,4,-1,-1,1,'2056,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=244,[Report_EntId]=2056,[EntId]=2056,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=1,[FieldName]='RunId',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> <span columntypeid="1" fieldname="RunId" entid="2056" isfield="1" fldid="244" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=42,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2056,' where  [FldUId]='7276c91b-b6ec-341f-eb28-bc68f14df653' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='b8271dff-49fa-73a6-4576-4b5b5678aaf3'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'b8271dff-49fa-73a6-4576-4b5b5678aaf3',2056,2056,'00000000-0000-0000-0000-000000000000',2,'RunName',5,1,'varchar',2,1,0,'','','','</span> </a></div></li>
<li style="width: 180px; float: left; height: 40px; clear: none; overflow: hidden; position: static;" class="list-body-li" areaid="43">
<div style="PADDING-TOP: 4px" class="list-li-field"><a class="a" title="查看表单明细" onclick="javascript:WfRun.ShowFormDetailDlg(null,2056,''ListR_'',null,this);" href="javascript:void(0);"><span columntypeid="1" fieldname="RunName" entid="2056" isfield="1" fldid="9" class="form-ctr">','',-1,4,-1,-1,1,'2056,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=9,[Report_EntId]=2056,[EntId]=2056,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='RunName',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> </a></div></li>
<li style="width: 180px; float: left; height: 40px; clear: none; overflow: hidden; position: static;" class="list-body-li" areaid="43">
<div style="PADDING-TOP: 4px" class="list-li-field"><a class="a" title="查看表单明细" onclick="javascript:WfRun.ShowFormDetailDlg(null,2056,''ListR_'',null,this);" href="javascript:void(0);"><span columntypeid="1" fieldname="RunName" entid="2056" isfield="1" fldid="9" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2056,' where  [FldUId]='b8271dff-49fa-73a6-4576-4b5b5678aaf3' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='581e4bcf-c579-4bea-8ee2-fbbf94dc25e4'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'581e4bcf-c579-4bea-8ee2-fbbf94dc25e4',2056,2056,'00000000-0000-0000-0000-000000000000',9,'CreatorName',6,1,'varchar',2,1,0,'','','','</span> </a></div></li>
<li style="position: static; width: 80px; float: left; height: 40px; clear: none; overflow: hidden;" class="list-body-li" areaid="44">
<div style="PADDING-TOP: 4px" class="list-li-field"><a class="a" title="查看发起人的信息" onclick="javascript:WfRun.ShowStartUserMsgDlg(null,2056,''ListR_'',null,this);" href="javascript:void(0);"><span columntypeid="1" fieldname="CreatorName" entid="2056" isfield="1" fldid="10" class="form-ctr">','',-1,4,-1,-1,1,'2056,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=10,[Report_EntId]=2056,[EntId]=2056,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=9,[FieldName]='CreatorName',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> </a></div></li>
<li style="position: static; width: 80px; float: left; height: 40px; clear: none; overflow: hidden;" class="list-body-li" areaid="44">
<div style="PADDING-TOP: 4px" class="list-li-field"><a class="a" title="查看发起人的信息" onclick="javascript:WfRun.ShowStartUserMsgDlg(null,2056,''ListR_'',null,this);" href="javascript:void(0);"><span columntypeid="1" fieldname="CreatorName" entid="2056" isfield="1" fldid="10" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2056,' where  [FldUId]='581e4bcf-c579-4bea-8ee2-fbbf94dc25e4' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='9d1031db-3e05-85bb-af14-643019804b9b'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(13,'9d1031db-3e05-85bb-af14-643019804b9b',2056,2056,'00000000-0000-0000-0000-000000000000',-1,'CurrentStep',7,1,'varchar',2,1,0,'','','','</span> </a></div></li>
<li style="position: static; width: 180px; float: left; height: 40px; clear: none; overflow: hidden;" class="list-body-li" areaid="45">
<div style="PADDING-TOP: 4px" class="list-li-field"><a class="a" title="查看历史痕迹" onclick="javascript:WfRun.ShowImprintDlg(null,2056,''ListR_'',null,this);" href="javascript:void(0);"><span columntypeid="1" fieldname="CurrentStep" entid="2056" isfield="1" fldid="13" class="form-ctr">','',45,4,-1,-1,1,'2056,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=13,[Report_EntId]=2056,[EntId]=2056,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='CurrentStep',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> </a></div></li>
<li style="position: static; width: 180px; float: left; height: 40px; clear: none; overflow: hidden;" class="list-body-li" areaid="45">
<div style="PADDING-TOP: 4px" class="list-li-field"><a class="a" title="查看历史痕迹" onclick="javascript:WfRun.ShowImprintDlg(null,2056,''ListR_'',null,this);" href="javascript:void(0);"><span columntypeid="1" fieldname="CurrentStep" entid="2056" isfield="1" fldid="13" class="form-ctr">',[LastHtml]='',[RowIndex]=45,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2056,' where  [FldUId]='9d1031db-3e05-85bb-af14-643019804b9b' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='58008c7b-a8c5-7886-6a9d-0dce0fb95ff9'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(14,'58008c7b-a8c5-7886-6a9d-0dce0fb95ff9',2056,2056,'00000000-0000-0000-0000-000000000000',-1,'DeliverTime',8,4,'varchar',2,1,0,'','','','</span> </a></div></li>
<li style="width: 90px; float: left; height: 40px; clear: none; position: static;" class="list-body-li" areaid="46">
<div style="PADDING-TOP: 4px" class="list-li-field"><span columntypeid="4" fieldname="DeliverTime" entid="2056" isfield="1" fldid="14" class="form-ctr">','',46,4,-1,-1,1,'2056,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=14,[Report_EntId]=2056,[EntId]=2056,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='DeliverTime',[FieldNO]=8,[ColumnTypeId]=4,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> </a></div></li>
<li style="width: 90px; float: left; height: 40px; clear: none; position: static;" class="list-body-li" areaid="46">
<div style="PADDING-TOP: 4px" class="list-li-field"><span columntypeid="4" fieldname="DeliverTime" entid="2056" isfield="1" fldid="14" class="form-ctr">',[LastHtml]='',[RowIndex]=46,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2056,' where  [FldUId]='58008c7b-a8c5-7886-6a9d-0dce0fb95ff9' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='665f6905-8d86-4360-26da-533b8d839104'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(167,'665f6905-8d86-4360-26da-533b8d839104',2056,2056,'00000000-0000-0000-0000-000000000000',1,'RunId',9,1,'int',1,1,0,'','','','</span> </div></li>
<li style="position: static; width: 150px; float: left; height: 40px; clear: none;" class="list-body-li" areaid="51">
<div class="list-li-field"><span columntypeid="1" fieldname="RunId" entid="2056" isfield="1" fldid="167" class="form-ctr" style="display: none;">','',51,4,-1,-1,1,'2056,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=167,[Report_EntId]=2056,[EntId]=2056,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=1,[FieldName]='RunId',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> </div></li>
<li style="position: static; width: 150px; float: left; height: 40px; clear: none;" class="list-body-li" areaid="51">
<div class="list-li-field"><span columntypeid="1" fieldname="RunId" entid="2056" isfield="1" fldid="167" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=51,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2056,' where  [FldUId]='665f6905-8d86-4360-26da-533b8d839104' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='a421830a-eb33-e391-994b-7e3146a4ca1c'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(168,'a421830a-eb33-e391-994b-7e3146a4ca1c',2056,2056,'00000000-0000-0000-0000-000000000000',3,'FlowId',10,1,'int',1,1,0,'','','','</span> <span columntypeid="1" fieldname="FlowId" entid="2056" isfield="1" fldid="168" class="form-ctr" style="display: none;">','',51,4,-1,-1,1,'2056,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=168,[Report_EntId]=2056,[EntId]=2056,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='FlowId',[FieldNO]=10,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> <span columntypeid="1" fieldname="FlowId" entid="2056" isfield="1" fldid="168" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=51,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2056,' where  [FldUId]='a421830a-eb33-e391-994b-7e3146a4ca1c' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='1a8ecc5b-1695-209e-b742-82d176fe5ae0'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(180,'1a8ecc5b-1695-209e-b742-82d176fe5ae0',2056,2056,'00000000-0000-0000-0000-000000000000',-1,'PrcsId',11,1,'varchar',2,1,0,'','','','</span> <span columntypeid="1" fieldname="PrcsId" entid="2056" isfield="1" fldid="180" class="form-ctr" style="display: none;">','',51,4,-1,-1,1,'2056,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=180,[Report_EntId]=2056,[EntId]=2056,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='PrcsId',[FieldNO]=11,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> <span columntypeid="1" fieldname="PrcsId" entid="2056" isfield="1" fldid="180" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=51,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2056,' where  [FldUId]='1a8ecc5b-1695-209e-b742-82d176fe5ae0' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='bd4279ac-2258-105b-555d-0b80f97b8e96'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(170,'bd4279ac-2258-105b-555d-0b80f97b8e96',2056,2056,'00000000-0000-0000-0000-000000000000',-1,'NodeId',12,1,'varchar',2,1,0,'','','','</span> <span columntypeid="1" fieldname="NodeId" entid="2056" isfield="1" fldid="170" class="form-ctr" style="display: none;">','',51,4,-1,-1,1,'2056,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=170,[Report_EntId]=2056,[EntId]=2056,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='NodeId',[FieldNO]=12,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> <span columntypeid="1" fieldname="NodeId" entid="2056" isfield="1" fldid="170" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=51,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2056,' where  [FldUId]='bd4279ac-2258-105b-555d-0b80f97b8e96' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='d96b63e5-4dbb-5693-eb77-decb0a37ab84'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(219,'d96b63e5-4dbb-5693-eb77-decb0a37ab84',2056,2056,'00000000-0000-0000-0000-000000000000',22,'CreatorId',13,1,'int',1,1,0,'','','','</span> <span columntypeid="1" fieldname="CreatorId" entid="2056" isfield="1" fldid="219" class="form-ctr" style="display: none;">','',51,4,-1,-1,1,'2056,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=219,[Report_EntId]=2056,[EntId]=2056,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=22,[FieldName]='CreatorId',[FieldNO]=13,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> <span columntypeid="1" fieldname="CreatorId" entid="2056" isfield="1" fldid="219" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=51,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2056,' where  [FldUId]='d96b63e5-4dbb-5693-eb77-decb0a37ab84' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='784e1006-1989-fdee-5c9c-f6d99423e8a5'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(295,'784e1006-1989-fdee-5c9c-f6d99423e8a5',2056,2056,'00000000-0000-0000-0000-000000000000',-1,'IsMainDealer',14,1,'varchar',2,1,0,'','','','</span> <span columntypeid="1" fieldname="IsMainDealer" entid="2056" isfield="1" fldid="295" class="form-ctr" style="display: none;">','',51,4,-1,-1,1,'2056,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=295,[Report_EntId]=2056,[EntId]=2056,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='IsMainDealer',[FieldNO]=14,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> <span columntypeid="1" fieldname="IsMainDealer" entid="2056" isfield="1" fldid="295" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=51,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2056,' where  [FldUId]='784e1006-1989-fdee-5c9c-f6d99423e8a5' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='e29a2e9b-eb16-44ce-29f2-f85efc66f4fc'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(239,'e29a2e9b-eb16-44ce-29f2-f85efc66f4fc',2056,2056,'00000000-0000-0000-0000-000000000000',-1,'NodeName',15,1,'varchar',2,1,0,'','','','</span> <span columntypeid="1" fieldname="NodeName" entid="2056" isfield="1" fldid="239" class="form-ctr" style="display: none;">','',51,4,-1,-1,1,'2056,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=239,[Report_EntId]=2056,[EntId]=2056,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='NodeName',[FieldNO]=15,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> <span columntypeid="1" fieldname="NodeName" entid="2056" isfield="1" fldid="239" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=51,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2056,' where  [FldUId]='e29a2e9b-eb16-44ce-29f2-f85efc66f4fc' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='407542f3-e29c-8bcc-bcb9-1edc25b00e75'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(160,'407542f3-e29c-8bcc-bcb9-1edc25b00e75',2056,2056,'00000000-0000-0000-0000-000000000000',1,'RunId',16,1,'int',1,1,0,'','','','</span> <a style="PADDING-BOTTOM: 0px; PADDING-LEFT: 15px; PADDING-RIGHT: 15px; FLOAT: right; PADDING-TOP: 0px" id="btn_FlowMenu" class="f_hot_op_bt f_hot_op_bt2" onclick="javascript:DcxDDown.ShowDDown(this);" href="javascript:void(0);" isclick="1"><span style="LINE-HEIGHT: 25px" class="op_bt_i">更多..</span></a><a style="PADDING-BOTTOM: 0px; PADDING-LEFT: 15px; PADDING-RIGHT: 15px; FLOAT: right; PADDING-TOP: 0px" class="f_hot_op_bt f_hot_op_bt1 " onclick="javascript:WfRun.GoToDealWf(this,','',51,4,-1,-1,1,'2056,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=160,[Report_EntId]=2056,[EntId]=2056,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=1,[FieldName]='RunId',[FieldNO]=16,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> <a style="PADDING-BOTTOM: 0px; PADDING-LEFT: 15px; PADDING-RIGHT: 15px; FLOAT: right; PADDING-TOP: 0px" id="btn_FlowMenu" class="f_hot_op_bt f_hot_op_bt2" onclick="javascript:DcxDDown.ShowDDown(this);" href="javascript:void(0);" isclick="1"><span style="LINE-HEIGHT: 25px" class="op_bt_i">更多..</span></a><a style="PADDING-BOTTOM: 0px; PADDING-LEFT: 15px; PADDING-RIGHT: 15px; FLOAT: right; PADDING-TOP: 0px" class="f_hot_op_bt f_hot_op_bt1 " onclick="javascript:WfRun.GoToDealWf(this,',[LastHtml]='',[RowIndex]=51,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2056,' where  [FldUId]='407542f3-e29c-8bcc-bcb9-1edc25b00e75' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='0fdcf88b-ec40-28f4-bfe2-7125533b6cb0'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(161,'0fdcf88b-ec40-28f4-bfe2-7125533b6cb0',2056,2056,'00000000-0000-0000-0000-000000000000',3,'FlowId',17,1,'int',1,1,0,'','','',',','',51,4,-1,-1,1,'2056,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=161,[Report_EntId]=2056,[EntId]=2056,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='FlowId',[FieldNO]=17,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=',',[LastHtml]='',[RowIndex]=51,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2056,' where  [FldUId]='0fdcf88b-ec40-28f4-bfe2-7125533b6cb0' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='1efd1fad-0432-ef06-3511-8657aec9fe04'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(251,'1efd1fad-0432-ef06-3511-8657aec9fe04',2056,2056,'00000000-0000-0000-0000-000000000000',-1,'PrcsId',18,1,'varchar',2,1,0,'','','',',','',51,4,-1,-1,1,'2056,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=251,[Report_EntId]=2056,[EntId]=2056,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='PrcsId',[FieldNO]=18,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=',',[LastHtml]='',[RowIndex]=51,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2056,' where  [FldUId]='1efd1fad-0432-ef06-3511-8657aec9fe04' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='3cbee35e-1e7f-0cb0-b909-e96a153ac176'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(84,'3cbee35e-1e7f-0cb0-b909-e96a153ac176',2056,2056,'00000000-0000-0000-0000-000000000000',1,'RunId',19,1,'int',1,1,0,'','','',',false,2056,''ListR_'');"><span style="LINE-HEIGHT: 25px" class="op_bt_i">办理</span></a></div></li>
<li style="width: 32px; float: left; height: 40px; clear: right; position: static;" class="list-operate" areaid="49"><div class="delete">
	<a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:WfRun.DeleteRun(this,2056,''ListR_'',''','',49,4,-1,-1,1,'2056,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=84,[Report_EntId]=2056,[EntId]=2056,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=1,[FieldName]='RunId',[FieldNO]=19,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=',false,2056,''ListR_'');"><span style="LINE-HEIGHT: 25px" class="op_bt_i">办理</span></a></div></li>
<li style="width: 32px; float: left; height: 40px; clear: right; position: static;" class="list-operate" areaid="49"><div class="delete">
	<a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:WfRun.DeleteRun(this,2056,''ListR_'',''',[LastHtml]='',[RowIndex]=49,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2056,' where  [FldUId]='3cbee35e-1e7f-0cb0-b909-e96a153ac176' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='2408408c-48a3-a4c7-34a9-3cafcb8786da'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(323,'2408408c-48a3-a4c7-34a9-3cafcb8786da',2056,2056,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',20,-1,'varchar',2,13,0,'','','',''');"><span class="i">删除</span></a></div>
</li></ul>','</div></div></div><br>
<div isbottomhtml="1">
<div style="POSITION: absolute; WIDTH: 160px; DISPLAY: none; HEIGHT: 240px" id="btn_FlowMenuNavMore" class="drop-dialog  dropdown" top="25" moveupdown="1" left="2">
<div style="POSITION: absolute; FILTER: alpha(opacity=90) !important; WIDTH: 100%; HEIGHT: 100%; opacity: .9" class="overlay-b">
<div style="POSITION: relative" class="drop-dialog-content">
<div class="drop-dialog-bd">
<div style="DISPLAY: block" class="usercard-content">
<ul class="drop-list" ctrlprex="ListR_" isrple="1">
<li onclick="javascript:DcxCom.ShowWfDlgChart(-1, false);" style="position: static;"><a href="javascript:void(0);">流程图</a></li>
<li onclick="javascript:WfRun.ShowFormDetailDlg(); " style="position: static;"><a href="javascript:void(0);">表单明细</a></li>
<li onclick="javascript:WfRun.ShowStartUserMsgDlg();" style="position: static;"><a href="javascript:void(0);">发起人</a></li>
<li onclick="javascript:WfRun.ShowImprintDlg();" style="position: static;"><a href="javascript:void(0);">痕迹</a></li>
<li onclick="javascript:WfRun.ShowDeputeDlg();" style="position: static;"><a href="javascript:void(0);">委托他人</a></li>
<li onclick="javascript:WfRun.RemoveOneFlow(this);" style="position: static;"><a href="javascript:void(0);">删除流程</a></li></ul></div></div>
<div class="arrow arrow-top">&nbsp;</div></div></div></div></div>',-1,4,-1,-1,1,'2056,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=323,[Report_EntId]=2056,[EntId]=2056,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=20,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''');"><span class="i">删除</span></a></div>
</li></ul>',[LastHtml]='</div></div></div><br>
<div isbottomhtml="1">
<div style="POSITION: absolute; WIDTH: 160px; DISPLAY: none; HEIGHT: 240px" id="btn_FlowMenuNavMore" class="drop-dialog  dropdown" top="25" moveupdown="1" left="2">
<div style="POSITION: absolute; FILTER: alpha(opacity=90) !important; WIDTH: 100%; HEIGHT: 100%; opacity: .9" class="overlay-b">
<div style="POSITION: relative" class="drop-dialog-content">
<div class="drop-dialog-bd">
<div style="DISPLAY: block" class="usercard-content">
<ul class="drop-list" ctrlprex="ListR_" isrple="1">
<li onclick="javascript:DcxCom.ShowWfDlgChart(-1, false);" style="position: static;"><a href="javascript:void(0);">流程图</a></li>
<li onclick="javascript:WfRun.ShowFormDetailDlg(); " style="position: static;"><a href="javascript:void(0);">表单明细</a></li>
<li onclick="javascript:WfRun.ShowStartUserMsgDlg();" style="position: static;"><a href="javascript:void(0);">发起人</a></li>
<li onclick="javascript:WfRun.ShowImprintDlg();" style="position: static;"><a href="javascript:void(0);">痕迹</a></li>
<li onclick="javascript:WfRun.ShowDeputeDlg();" style="position: static;"><a href="javascript:void(0);">委托他人</a></li>
<li onclick="javascript:WfRun.RemoveOneFlow(this);" style="position: static;"><a href="javascript:void(0);">删除流程</a></li></ul></div></div>
<div class="arrow arrow-top">&nbsp;</div></div></div></div></div>',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2056,' where  [FldUId]='2408408c-48a3-a4c7-34a9-3cafcb8786da' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=657

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=657  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(657,null,'WF_FlowRun','WF_FlowRun',1,0,0,0,0,0,45,1,3,'admin','2013-12-15 17:32:36',3,'admin','2013-12-15 17:32:36',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='WF_FlowRun',[DBTableByName]='WF_FlowRun',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=45,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:36',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:36',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=657 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19062,1,45,657,'int',1,1,1,'WF_FlowRun','RunId','RunId','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='RunId',[FieldByname]='RunId',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19063,2,45,657,'varchar',2,1,1,'WF_FlowRun','RunName','RunName','',0,0,0,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='RunName',[FieldByname]='RunName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19064,3,45,657,'int',1,1,1,'WF_FlowRun','FlowId','FlowId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='FlowId',[FieldByname]='FlowId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19065,4,45,657,'varchar',2,1,1,'WF_FlowRun','FlowName','FlowName','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='FlowName',[FieldByname]='FlowName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19066,5,45,657,'varchar',2,1,1,'WF_FlowRun','AttachmentId','AttachmentId','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='AttachmentId',[FieldByname]='AttachmentId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19067,6,45,657,'varchar',2,1,1,'WF_FlowRun','AttachmentName','AttachmentName','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='AttachmentName',[FieldByname]='AttachmentName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19068,7,45,657,'varchar',2,1,1,'WF_FlowRun','HtmlStr','HtmlStr','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='HtmlStr',[FieldByname]='HtmlStr',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19069,8,45,657,'varchar',2,1,1,'WF_FlowRun','FlowLsh','FlowLsh','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='FlowLsh',[FieldByname]='FlowLsh',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19070,9,45,657,'varchar',2,1,1,'WF_FlowRun','CreatorName','CreatorName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='CreatorName',[FieldByname]='CreatorName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19071,10,45,657,'tinyint',23,1,1,'WF_FlowRun','FinishFlag','FinishFlag','1',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='FinishFlag',[FieldByname]='FinishFlag',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19072,11,45,657,'varchar',2,1,1,'WF_FlowRun','FormItems','FormItems','',0,0,1,8000,8000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='FormItems',[FieldByname]='FormItems',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8000,[Precision]=8000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19073,12,45,657,'int',1,1,1,'WF_FlowRun','EntId','EntId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='EntId',[FieldByname]='EntId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19074,13,45,657,'varchar',2,1,1,'WF_FlowRun','EntName','EntName','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='EntName',[FieldByname]='EntName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19075,14,45,657,'varchar',2,1,1,'WF_FlowRun','DbTableName','DbTableName','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='DbTableName',[FieldByname]='DbTableName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19076,15,45,657,'varchar',2,1,1,'WF_FlowRun','KeyField','KeyField','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='KeyField',[FieldByname]='KeyField',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19077,16,45,657,'varchar',2,1,1,'WF_FlowRun','KeyFieldValue','KeyFieldValue','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='KeyFieldValue',[FieldByname]='KeyFieldValue',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19078,17,45,657,'varchar',2,1,1,'WF_FlowRun','Feedback','Feedback','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='Feedback',[FieldByname]='Feedback',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19079,18,45,657,'varchar',2,1,1,'WF_FlowRun','Feedback2','Feedback2','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='Feedback2',[FieldByname]='Feedback2',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19080,19,45,657,'bit',4,1,1,'WF_FlowRun','IsFreeFlow','IsFreeFlow','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='IsFreeFlow',[FieldByname]='IsFreeFlow',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19081,20,45,657,'bit',4,1,1,'WF_FlowRun','IsPause','IsPause','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='IsPause',[FieldByname]='IsPause',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19082,21,45,657,'bit',4,1,1,'WF_FlowRun','IsClose','IsClose','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='IsClose',[FieldByname]='IsClose',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19083,22,45,657,'int',1,1,1,'WF_FlowRun','CreatorId','CreatorId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='CreatorId',[FieldByname]='CreatorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19084,23,45,657,'datetime',3,1,1,'WF_FlowRun','CreateTime','CreateTime','',0,0,0,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='CreateTime',[FieldByname]='CreateTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19085,24,45,657,'int',1,1,1,'WF_FlowRun','EditorId','EditorId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='EditorId',[FieldByname]='EditorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19086,25,45,657,'datetime',3,1,1,'WF_FlowRun','EditTime','EditTime','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='EditTime',[FieldByname]='EditTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19087,26,45,657,'varchar',2,1,1,'WF_FlowRun','CreatorBoss','CreatorBoss','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='CreatorBoss',[FieldByname]='CreatorBoss',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=26 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=27  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19088,27,45,657,'int',1,1,1,'WF_FlowRun','PauseUserId','PauseUserId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='PauseUserId',[FieldByname]='PauseUserId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=27 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=28  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19089,28,45,657,'varchar',2,1,1,'WF_FlowRun','PauseUserName','PauseUserName','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='PauseUserName',[FieldByname]='PauseUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=28 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=29  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19090,29,45,657,'datetime',3,1,1,'WF_FlowRun','PauseDate','PauseDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='PauseDate',[FieldByname]='PauseDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=29 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=30  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19091,30,45,657,'datetime',3,1,1,'WF_FlowRun','CancelPauseDate','CancelPauseDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='CancelPauseDate',[FieldByname]='CancelPauseDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=30 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=31  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19092,31,45,657,'int',1,1,1,'WF_FlowRun','RecoverUserId','RecoverUserId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='RecoverUserId',[FieldByname]='RecoverUserId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=31 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=32  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19093,32,45,657,'varchar',2,1,1,'WF_FlowRun','RecoverUserName','RecoverUserName','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='RecoverUserName',[FieldByname]='RecoverUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=32 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=33  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19094,33,45,657,'datetime',3,1,1,'WF_FlowRun','RecoverDate','RecoverDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='RecoverDate',[FieldByname]='RecoverDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=33 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=34  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19095,34,45,657,'int',1,1,1,'WF_FlowRun','DeleteUserId','DeleteUserId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='DeleteUserId',[FieldByname]='DeleteUserId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=34 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=35  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19096,35,45,657,'varchar',2,1,1,'WF_FlowRun','DeleteUserName','DeleteUserName','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='DeleteUserName',[FieldByname]='DeleteUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=35 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=36  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19097,36,45,657,'datetime',3,1,1,'WF_FlowRun','DeleteDate','DeleteDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='DeleteDate',[FieldByname]='DeleteDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=36 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=37  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19098,37,45,657,'int',1,1,1,'WF_FlowRun','AccountId','AccountId','1',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='AccountId',[FieldByname]='AccountId',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=37 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=2634  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2634,'c2040989-d58b-4ce2-96a6-17cd7f7491d3','已办工作',2631,'/Template/default/ListReport/ListReport_Tree001.aspx',1,'/images/default.gif','/images/default.gif',3,'',0,0,'',45,0,45,1,1,1,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='c2040989-d58b-4ce2-96a6-17cd7f7491d3',[MenuName]='已办工作',[ParentId]=2631,[ProPath]='/Template/default/ListReport/ListReport_Tree001.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=3,[Target]='',[IsOpen]=0,[IsHidden]=0,[Remark]='',[SSystemId]=45,[SMenuId]=0,[SystemId]=45,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=2634 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=2634  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(431,2634,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=2634  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2057  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2057,2634,'已办工作',1,657,0,'WF_FlowRun',0,0,1,45,2057,null,null,45,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=2634,[EntName]='已办工作',[MEnt]=1,[DBTableId]=657,[DBConnectId]=0,[DBTableName]='WF_FlowRun',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=45,[SEntId]=2057,[FSystemId]=null,[FEntId]=null,[SystemId]=45,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2057 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=2057

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2057  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11091,2634,2057,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=2634,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2057  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2057  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11454,-1,2057,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2057  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2057

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2057  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20604,45,2634,2057,13,1,1,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=45,[MenuId]=2634,[TemplateId]=13,[ModuleId]=1,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2057  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2057  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20605,45,2634,2057,13,2,9,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=45,[MenuId]=2634,[TemplateId]=13,[ModuleId]=9,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2057  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2057  and  [ModuleTypeId]=5  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20606,45,2634,2057,13,5,25,1,3,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=45,[MenuId]=2634,[TemplateId]=13,[ModuleId]=25,[GroupId]=1,[AreaId]=3,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2057  and  [ModuleTypeId]=5 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2057  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20607,45,2634,2057,13,3,68,1,4,2,'/Template/Default/Form/AjaxForm/AjaxForm008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=45,[MenuId]=2634,[TemplateId]=13,[ModuleId]=68,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='/Template/Default/Form/AjaxForm/AjaxForm008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=2057  and  [ModuleTypeId]=3 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2057  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20608,45,2634,2057,13,16,31,1,5,2,'/Template/Default/Browse/Browse008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=45,[MenuId]=2634,[TemplateId]=13,[ModuleId]=31,[GroupId]=1,[AreaId]=5,[ShowMode]=2,[AreaUrl]='/Template/Default/Browse/Browse008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=2057  and  [ModuleTypeId]=16 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_SearchForm_Run]  where [EntId]=2057

--Dcx_SearchForm_Run
      if (select count(1) from [Dcx_SearchForm_Run] where  [EntId]=2057  )<1 
      begin 
           Insert into [Dcx_SearchForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('bdbe4159-d7e0-8ba8-56dd-f7fe32b531d0','已办工作',2057,9,'','',0,'<!--/Js/ui/jquery.ui.core.js-->
<!--/Js/ui/jquery.ui.widget.js-->
<!--/Js/ui/jquery.ui.mouse.js-->
<!--/Js/ui/jquery.ui.sortable.js-->
<script src="/Js/Control/LTreeRList/LTreeRList.js"></script>','','DcxRun.SearchF_2057= {"MenuId":2634,"MEntId":2057,"EntName":"已办工作","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2057":{"EntId":2057,"KeyFieldValue":"","DBTableName":"","KeyField":"RunId","KeydtId":2,"JoinKeyField":"RunId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_2057.EntMsg.E2057.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"WF_FlowRun","EntId":2057,"KeyField":"RunId","MKeyField":"RunId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"FlowId":{"DtId":1,"DB":1,"CId":40,"FL":4},"RunName":{"DtId":2,"DB":1,"CId":1,"FL":200},"CreatorName":{"DtId":2,"DB":1,"CId":1,"FL":50}},"Data":{"Row":[]}};
}
DcxRun.SearchF_2057.EntMsg.E2057.GetDataRowModel=function()
{
    return {"FlowId":-1,"RunName":"","CreatorName":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"RunId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_2057.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2057,''SearchF_'',buildNew,closeDlg);

}','',10,'','','','2057*RunId*2*RunId*2*WF_FlowRun*已办工作',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-11 7:55:19',3,'admin','2013-8-22 5:57:03',1)
      end
      else 
      begin 
           update [Dcx_SearchForm_Run] set [FormId]='bdbe4159-d7e0-8ba8-56dd-f7fe32b531d0',[FormName]='已办工作',[ModuleId]=9,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<!--/Js/ui/jquery.ui.core.js-->
<!--/Js/ui/jquery.ui.widget.js-->
<!--/Js/ui/jquery.ui.mouse.js-->
<!--/Js/ui/jquery.ui.sortable.js-->
<script src="/Js/Control/LTreeRList/LTreeRList.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.SearchF_2057= {"MenuId":2634,"MEntId":2057,"EntName":"已办工作","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2057":{"EntId":2057,"KeyFieldValue":"","DBTableName":"","KeyField":"RunId","KeydtId":2,"JoinKeyField":"RunId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_2057.EntMsg.E2057.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"WF_FlowRun","EntId":2057,"KeyField":"RunId","MKeyField":"RunId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"FlowId":{"DtId":1,"DB":1,"CId":40,"FL":4},"RunName":{"DtId":2,"DB":1,"CId":1,"FL":200},"CreatorName":{"DtId":2,"DB":1,"CId":1,"FL":50}},"Data":{"Row":[]}};
}
DcxRun.SearchF_2057.EntMsg.E2057.GetDataRowModel=function()
{
    return {"FlowId":-1,"RunName":"","CreatorName":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"RunId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_2057.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2057,''SearchF_'',buildNew,closeDlg);

}',[LoadingSql]='',[PageSize]=10,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='2057*RunId*2*RunId*2*WF_FlowRun*已办工作',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-11 7:55:19',[EditorId]=3,[Editor]='admin',[EditTime]='2013-8-22 5:57:03',[AccountId]=1 where  [EntId]=2057 
      end




--Dcx_SearchFormField_Run
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='9df3cbf6-ee41-5b6e-f393-693440f49709'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'9df3cbf6-ee41-5b6e-f393-693440f49709',2057,2057,'00000000-0000-0000-0000-000000000000',1,'=','FlowId',1,1,3,'',5,2,1,0,40,1,-1,24,1,0,'','','','','<div class="searchform">
	<ul class="search-block" groupid="1" isgroup="1" isrple="1">
		<li areaid="5" class="search-li" scroll="no" style="width: 270px; height: 38px; position: static;"><label class="search-title pad7" fldid="1" istitle="1">工作类别</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">','','','','<div id="d2057_FlowId" class="form-ddl" style="" IsForField=1 EntId="2057" FId="1" Vtp="5" RId="2" Isc="1" CId="40" FieldName="FlowId" ><input  id="d2057_FlowId_Text" type="text" class="form-ddl-txt"  CId="40" FId="1" Vtp="5"  RId="2" Isc="1"  style="width:150px;" onclick ="javascript:DcxTree.ShowDialogAf(this,24,2057,''FlowId'',false);" onkeyup ="javascript:DcxTree.ShowDialogAf(this,24,2057,''FlowId'',true);" value="','" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2057_FlowId_hid" type="hidden"  EntId="2057" IsField=1 DBField=1 IsPost=1 FieldName="FlowId" dType="1" Vtp="5" RDT="1" Isc="1" RId="2" CId="40" FId="1" vlk=0   TId=24  Cpre="="  value="','" />',1,-1,-1,-1,-1,0,'2057,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=1,[Form_EntId]=2057,[EntId]=2057,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[CompareOperatorType]='=',[FieldName]='FlowId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=3,[DefaultValue]='',[ValueType]=5,[RunValueType]=2,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=40,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=24,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="searchform">
	<ul class="search-block" groupid="1" isgroup="1" isrple="1">
		<li areaid="5" class="search-li" scroll="no" style="width: 270px; height: 38px; position: static;"><label class="search-title pad7" fldid="1" istitle="1">工作类别</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2057_FlowId" class="form-ddl" style="" IsForField=1 EntId="2057" FId="1" Vtp="5" RId="2" Isc="1" CId="40" FieldName="FlowId" ><input  id="d2057_FlowId_Text" type="text" class="form-ddl-txt"  CId="40" FId="1" Vtp="5"  RId="2" Isc="1"  style="width:150px;" onclick ="javascript:DcxTree.ShowDialogAf(this,24,2057,''FlowId'',false);" onkeyup ="javascript:DcxTree.ShowDialogAf(this,24,2057,''FlowId'',true);" value="',[CtrlbackHtml]='" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2057_FlowId_hid" type="hidden"  EntId="2057" IsField=1 DBField=1 IsPost=1 FieldName="FlowId" dType="1" Vtp="5" RDT="1" Isc="1" RId="2" CId="40" FId="1" vlk=0   TId=24  Cpre="="  value="',[CtrlLastHtml]='" />',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2057,' where  [FldUId]='9df3cbf6-ee41-5b6e-f393-693440f49709' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='873dd967-c7fc-2d48-93c1-8101fb7295b8'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'873dd967-c7fc-2d48-93c1-8101fb7295b8',2057,2057,'00000000-0000-0000-0000-000000000000',2,'Like','RunName',2,2,2,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
</div>
</li>
		<li areaid="6" class="search-li" scroll="no" style="width: 230px; height: 38px; position: static;"><label class="search-title pad7" fldid="2" istitle="1">工作名称</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2057_RunName"   type="text" class="form-txt"  style="width:120px;" EntId="2057" IsField=1 DBField=1 IsPost=1 FieldName="RunName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'2057,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=2,[Form_EntId]=2057,[EntId]=2057,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[CompareOperatorType]='Like',[FieldName]='RunName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=2,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
		<li areaid="6" class="search-li" scroll="no" style="width: 230px; height: 38px; position: static;"><label class="search-title pad7" fldid="2" istitle="1">工作名称</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2057_RunName"   type="text" class="form-txt"  style="width:120px;" EntId="2057" IsField=1 DBField=1 IsPost=1 FieldName="RunName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2057,' where  [FldUId]='873dd967-c7fc-2d48-93c1-8101fb7295b8' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='fa14cf5a-012b-7a99-02b4-2c6864c72cca'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'fa14cf5a-012b-7a99-02b4-2c6864c72cca',2057,2057,'00000000-0000-0000-0000-000000000000',3,'Like','CreatorName',2,2,9,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
</div>
</li>
		<li areaid="7" class="search-li" scroll="no" style="width: 230px; height: 38px; position: static;"><label class="search-title pad7" fldid="3" istitle="1">发起人</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">','</span>
</div>
</li>
		<li areaid="8" class="" scroll="no" style="position: static;">
			<div class="searchform-button " onclick="javascript:return VL_Search(2057);">
				<div class="search-btn">
					&nbsp;</div>
				<a href="javascript:void(0);" id="2057_searchBT">搜索</a></div>
		</li>
	</ul>
</div>
<br>','','','<input  id="d2057_CreatorName"   type="text" class="form-txt"  style="width:120px;" EntId="2057" IsField=1 DBField=1 IsPost=1 FieldName="CreatorName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="3" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'2057,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=3,[Form_EntId]=2057,[EntId]=2057,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[CompareOperatorType]='Like',[FieldName]='CreatorName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=9,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
		<li areaid="7" class="search-li" scroll="no" style="width: 230px; height: 38px; position: static;"><label class="search-title pad7" fldid="3" istitle="1">发起人</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
</div>
</li>
		<li areaid="8" class="" scroll="no" style="position: static;">
			<div class="searchform-button " onclick="javascript:return VL_Search(2057);">
				<div class="search-btn">
					&nbsp;</div>
				<a href="javascript:void(0);" id="2057_searchBT">搜索</a></div>
		</li>
	</ul>
</div>
<br>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2057_CreatorName"   type="text" class="form-txt"  style="width:120px;" EntId="2057" IsField=1 DBField=1 IsPost=1 FieldName="CreatorName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="3" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2057,' where  [FldUId]='fa14cf5a-012b-7a99-02b4-2c6864c72cca' 
      end



Delete from [Dcx_ListReport_Run]  where [EntId]=2057

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=2057  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('e49ac958-5bf3-939f-a811-269e6d33af7d','已办工作',2057,1,'','<!--/js/Control/DropDown/DropDown.js-->
<script type="text/javascript" language="JavaScript" > 
$(window).load(function(){ 
 DcxDDown.InitDDown("btn_FlowMenuNavMore", 2);
});
</script>
<script type="text/javascript" src="/js/WorkFlow/FlowRun.js"></script>','<$2057$>
--获取待办工作 
declare @UserId as int
set @UserId={$userId}  

 select *  from (select  row_number() over( order by [RunId])as dcx_rowId,
RunId,RunName,FlowId,PrcsId,Step,''第''+cast(Step as varchar)+''步：''+PrcsName as CurrentStep,PrcsName,FlowName,
CreatorName,PrcsTime,PrcsFlag,EntId,WorkCreatorId as CreatorId ,DeliverTime,NodeId
 from WF_FlowRunPrcs   
 where   {$SearchArea} and   UserId=@UserId  and (PrcsFlag=3 or PrcsFlag=4 )    ) AS MyTable  where  dcx_rowId between {$startRow} and {$endRow}
 order by PrcsId desc  
 </$2057$>
<$2057:Count$>
--获取待办工作的数量 
declare @UserId as int
set @UserId={$userId} 
select count(*) from WF_FlowRunPrcs  where {$SearchArea} and   UserId=@UserId  and (PrcsFlag=3 or PrcsFlag=4 ) 
</$2057:Count$>',1,1,10,'DcxRun.ListR_2057= {"MenuId":2634,"MEntId":2057,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"已办工作","EntMsg":{"E2057":{"EntId":2057,"EntName":"已办工作","KeyFieldValue":"","DBTableName":"","KeyField":"RunId","KeydtId":2,"JoinKeyField":"RunId","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','try{
   runObj.FielDeal={"MaxDealId":3,"Ent":[{"EntId":2057,"Fld":[{"FldId":35,"Deal":[]},{"FldId":40,"Deal":[{"id":3,"cdn":[{"fid":40,"b":"","l":"==3"}],"typeId":7,"dlV":[{"fid":-1,"b":"<a class=\"f_hot_op_bt f_hot_op_bt1 \" href=\"javascript:void(0);\" onclick=\"javascript:WF_TakeBackWork(this, 2057, ''ListR_'');\" style=\"float:right;padding:0px 15px;\"><span class=\"op_bt_i\" style=\"line-height: 25px;\">收回</span></a>","l":""}]}]}],"Deal":[]}]};
 DcxReport.DealField(2057,''ListR_'',true);}
catch(err){}','','2057*RunId*2*RunId*2*WF_FlowRun*已办工作',3,'admin','2012-12-11 7:37:03',3,'','2013-12-12 3:53:00',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='e49ac958-5bf3-939f-a811-269e6d33af7d',[ReportName]='已办工作',[ModuleId]=1,[StaticHtml]='',[DIYJsCss]='<!--/js/Control/DropDown/DropDown.js-->
<script type="text/javascript" language="JavaScript" > 
$(window).load(function(){ 
 DcxDDown.InitDDown("btn_FlowMenuNavMore", 2);
});
</script>
<script type="text/javascript" src="/js/WorkFlow/FlowRun.js"></script>',[LoadingSql]='<$2057$>
--获取待办工作 
declare @UserId as int
set @UserId={$userId}  

 select *  from (select  row_number() over( order by [RunId])as dcx_rowId,
RunId,RunName,FlowId,PrcsId,Step,''第''+cast(Step as varchar)+''步：''+PrcsName as CurrentStep,PrcsName,FlowName,
CreatorName,PrcsTime,PrcsFlag,EntId,WorkCreatorId as CreatorId ,DeliverTime,NodeId
 from WF_FlowRunPrcs   
 where   {$SearchArea} and   UserId=@UserId  and (PrcsFlag=3 or PrcsFlag=4 )    ) AS MyTable  where  dcx_rowId between {$startRow} and {$endRow}
 order by PrcsId desc  
 </$2057$>
<$2057:Count$>
--获取待办工作的数量 
declare @UserId as int
set @UserId={$userId} 
select count(*) from WF_FlowRunPrcs  where {$SearchArea} and   UserId=@UserId  and (PrcsFlag=3 or PrcsFlag=4 ) 
</$2057:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=10,[AutoPublicJs]='DcxRun.ListR_2057= {"MenuId":2634,"MEntId":2057,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"已办工作","EntMsg":{"E2057":{"EntId":2057,"EntName":"已办工作","KeyFieldValue":"","DBTableName":"","KeyField":"RunId","KeydtId":2,"JoinKeyField":"RunId","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='try{
   runObj.FielDeal={"MaxDealId":3,"Ent":[{"EntId":2057,"Fld":[{"FldId":35,"Deal":[]},{"FldId":40,"Deal":[{"id":3,"cdn":[{"fid":40,"b":"","l":"==3"}],"typeId":7,"dlV":[{"fid":-1,"b":"<a class=\"f_hot_op_bt f_hot_op_bt1 \" href=\"javascript:void(0);\" onclick=\"javascript:WF_TakeBackWork(this, 2057, ''ListR_'');\" style=\"float:right;padding:0px 15px;\"><span class=\"op_bt_i\" style=\"line-height: 25px;\">收回</span></a>","l":""}]}]}],"Deal":[]}]};
 DcxReport.DealField(2057,''ListR_'',true);}
catch(err){}',[AutoOtherJS]='',[OtherMsg]='2057*RunId*2*RunId*2*WF_FlowRun*已办工作',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-11 7:37:03',[EditorId]=3,[Editor]='',[EditTime]='2013-12-12 3:53:00',[AccountId]=1 where  [EntId]=2057 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='752d7910-2412-1821-fc58-ab7bad9d0979'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(98,'752d7910-2412-1821-fc58-ab7bad9d0979',2057,2057,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<div class="listreport">
<div class="toolbar">
<ul style="WIDTH: 882px" class="tool-ul" entid="2057" isgroup="1" groupid="2" istoolbar="1" ctrlprex="ListR_" isrple="1">
<li style="width: 100px; height: 30px; display: none; position: static;" class="tool-li" areaid="27"><a id="ListR_2056_btn_buildNew" class="list-bt-add" title="添   加" onclick="javascript:DcxCom.ShowAddDataDlg(2056,''ListR_'');" href="javascript:void(0);">新建工作</a></li>
<li style="width: 64px; height: 29px; display: none; position: static;" class="tool-li" areaid="28"><a id="ListR_2057_deletebut" class="list-bt-other" title="删   除" onclick="javascript:DcxReport.DeleteDatas(2057,''ListR_'');" href="javascript:void(0);">删 除</a></li>
<li style="width: 64px; height: 29px; display: none; position: static;" class="tool-li" areaid="29"><a id="ListR_2057_ExportToExcelbut" class="list-bt-other" title="导   出" onclick="javascript:DcxCom.ExportExcel(2057,''ListR_'');" href="javascript:void(0);">导 出</a></li>
<li style="position: static;" class="tool-li" areaid="30"><a id="ListR_2057_refreshbut" class="list-bt-other" title="刷   新" onclick="javascript:DcxCom.ReLoad(2057,''ListR_'');" href="javascript:void(0);">刷 新</a></li><!--分页栏-->
<li style="width: 180px; height: 24px; position: static;" id="li2_ListR_2057" class="pages" areaid="31"><a id="ListR_2057_PrevPage" class="list-pages list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(2057,''ListR_'',''p'');" href="javascript:void(0);" isfirstpage="1">上一页</a> <span class="ddl_pageindex list-pagesdown"><select id="ddl_ListR_2057_PageIndex" onchange="javascript:DcxSch.GetHtml(2057,''ListR_'',''a'',this);" isddlpage="1"></select> </span><a id="ListR_2057_NextPage" class="list-pages list-nextpage" title="下一页" onclick="javascript:DcxSch.GetHtml(2057,''ListR_'',''n'');" href="javascript:void(0);" isnextpage="1">下一页</a> <span class="list-data-amount">共</span>&nbsp; <span id="ListR_2057_RecCount_lbl" class="list-data-amount" isrecortcount="1">0</span> <span class="list-data-amount">条记录</span></li></ul></div><!-- 列表主体-->
<div class="list-area dcx-scroll">
<div class="list-head">
<ul style="width: 882px;" class="list-head-ul" entid="2057" isgroup="1" groupid="3" ctrlprex="ListR_" isrple="1">
<li style="width: 120px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="33">
<div class="list-li-field"><label istitle="1">工作类别</label></div></li>
<li style="width: 180px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="34">
<div class="list-li-field"><label istitle="1">工作名称</label></div></li>
<li style="position: static; width: 80px; float: left; height: 30px; clear: none;" class="list-head-li" areaid="35">
<div class="list-li-field"><label istitle="1">工作发起人</label></div></li>
<li style="width: 180px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="36">
<div class="list-li-field"><label istitle="1">当前步骤</label></div></li>
<li style="width: 90px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="37">
<div class="list-li-field"><label istitle="1">转交日期</label></div></li>
<li style="width: 150px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="38">
<div class="list-li-field"><label istitle="1">流程操作</label></div></li>
<li style="float: left; height: 30px; clear: right; position: static;" class="list-operate" areaid="40">
<div class="delete"><a class="li-item-btn btn-pink " title="删除" href="javascript:void(0);"><span class="i">删除</span></a></div></li></ul></div>
<div class="list-body">','',-1,4,-1,-1,1,'2057,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=98,[Report_EntId]=2057,[EntId]=2057,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="listreport">
<div class="toolbar">
<ul style="WIDTH: 882px" class="tool-ul" entid="2057" isgroup="1" groupid="2" istoolbar="1" ctrlprex="ListR_" isrple="1">
<li style="width: 100px; height: 30px; display: none; position: static;" class="tool-li" areaid="27"><a id="ListR_2056_btn_buildNew" class="list-bt-add" title="添   加" onclick="javascript:DcxCom.ShowAddDataDlg(2056,''ListR_'');" href="javascript:void(0);">新建工作</a></li>
<li style="width: 64px; height: 29px; display: none; position: static;" class="tool-li" areaid="28"><a id="ListR_2057_deletebut" class="list-bt-other" title="删   除" onclick="javascript:DcxReport.DeleteDatas(2057,''ListR_'');" href="javascript:void(0);">删 除</a></li>
<li style="width: 64px; height: 29px; display: none; position: static;" class="tool-li" areaid="29"><a id="ListR_2057_ExportToExcelbut" class="list-bt-other" title="导   出" onclick="javascript:DcxCom.ExportExcel(2057,''ListR_'');" href="javascript:void(0);">导 出</a></li>
<li style="position: static;" class="tool-li" areaid="30"><a id="ListR_2057_refreshbut" class="list-bt-other" title="刷   新" onclick="javascript:DcxCom.ReLoad(2057,''ListR_'');" href="javascript:void(0);">刷 新</a></li><!--分页栏-->
<li style="width: 180px; height: 24px; position: static;" id="li2_ListR_2057" class="pages" areaid="31"><a id="ListR_2057_PrevPage" class="list-pages list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(2057,''ListR_'',''p'');" href="javascript:void(0);" isfirstpage="1">上一页</a> <span class="ddl_pageindex list-pagesdown"><select id="ddl_ListR_2057_PageIndex" onchange="javascript:DcxSch.GetHtml(2057,''ListR_'',''a'',this);" isddlpage="1"></select> </span><a id="ListR_2057_NextPage" class="list-pages list-nextpage" title="下一页" onclick="javascript:DcxSch.GetHtml(2057,''ListR_'',''n'');" href="javascript:void(0);" isnextpage="1">下一页</a> <span class="list-data-amount">共</span>&nbsp; <span id="ListR_2057_RecCount_lbl" class="list-data-amount" isrecortcount="1">0</span> <span class="list-data-amount">条记录</span></li></ul></div><!-- 列表主体-->
<div class="list-area dcx-scroll">
<div class="list-head">
<ul style="width: 882px;" class="list-head-ul" entid="2057" isgroup="1" groupid="3" ctrlprex="ListR_" isrple="1">
<li style="width: 120px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="33">
<div class="list-li-field"><label istitle="1">工作类别</label></div></li>
<li style="width: 180px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="34">
<div class="list-li-field"><label istitle="1">工作名称</label></div></li>
<li style="position: static; width: 80px; float: left; height: 30px; clear: none;" class="list-head-li" areaid="35">
<div class="list-li-field"><label istitle="1">工作发起人</label></div></li>
<li style="width: 180px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="36">
<div class="list-li-field"><label istitle="1">当前步骤</label></div></li>
<li style="width: 90px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="37">
<div class="list-li-field"><label istitle="1">转交日期</label></div></li>
<li style="width: 150px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="38">
<div class="list-li-field"><label istitle="1">流程操作</label></div></li>
<li style="float: left; height: 30px; clear: right; position: static;" class="list-operate" areaid="40">
<div class="delete"><a class="li-item-btn btn-pink " title="删除" href="javascript:void(0);"><span class="i">删除</span></a></div></li></ul></div>
<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2057,' where  [FldUId]='752d7910-2412-1821-fc58-ab7bad9d0979' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='45fb154f-c810-95db-787a-d7428d26af95'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(69,'45fb154f-c810-95db-787a-d7428d26af95',2057,2057,'00000000-0000-0000-0000-000000000000',3,'FlowId',2,1,'int',1,1,0,'','','','style="width: 882px;" class="list-body-ul" isgroup="1" groupid="4" isrple="1">
<li style="width: 120px; float: left; height: 40px; clear: none; position: static;" class="list-body-li" areaid="42">
<div style="PADDING-TOP: 4px" class="list-li-field"><a class="a" title="查看流程图" onclick="javascript:DcxCom.ShowWfDlgChart
(','',42,4,-1,-1,1,'2057,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=69,[Report_EntId]=2057,[EntId]=2057,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='FlowId',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='style="width: 882px;" class="list-body-ul" isgroup="1" groupid="4" isrple="1">
<li style="width: 120px; float: left; height: 40px; clear: none; position: static;" class="list-body-li" areaid="42">
<div style="PADDING-TOP: 4px" class="list-li-field"><a class="a" title="查看流程图" onclick="javascript:DcxCom.ShowWfDlgChart
(',[LastHtml]='',[RowIndex]=42,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2057,' where  [FldUId]='45fb154f-c810-95db-787a-d7428d26af95' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='f7a9dda0-739e-da5f-2fda-9ef473cd193f'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'f7a9dda0-739e-da5f-2fda-9ef473cd193f',2057,2057,'00000000-0000-0000-0000-000000000000',4,'FlowName',3,1,'varchar',2,1,0,'','','',', false,this);"><span columntypeid="1" fieldname="FlowName" entid="2057" isfield="1" fldid="8" class="form-ctr">','',-1,4,-1,-1,1,'2057,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=8,[Report_EntId]=2057,[EntId]=2057,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=4,[FieldName]='FlowName',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=', false,this);"><span columntypeid="1" fieldname="FlowName" entid="2057" isfield="1" fldid="8" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2057,' where  [FldUId]='f7a9dda0-739e-da5f-2fda-9ef473cd193f' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='77b68b27-1a52-07be-f5e4-f719f05a8155'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'77b68b27-1a52-07be-f5e4-f719f05a8155',2057,2057,'00000000-0000-0000-0000-000000000000',2,'RunName',4,1,'varchar',2,1,0,'','','','</span> </a></div></li>
<li style="width: 180px; float: left; height: 40px; clear: none; overflow: hidden; position: static;" class="list-body-li" areaid="43">
<div style="PADDING-TOP: 4px" class="list-li-field"><a class="a" title="查看表单明细" onclick="javascript:WfRun.ShowFormDetailDlg(null,2057,''ListR_'',null,this);" href="javascript:void(0);"><span columntypeid="1" fieldname="RunName" entid="2057" isfield="1" fldid="9" class="form-ctr">','',-1,4,-1,-1,1,'2057,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=9,[Report_EntId]=2057,[EntId]=2057,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='RunName',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> </a></div></li>
<li style="width: 180px; float: left; height: 40px; clear: none; overflow: hidden; position: static;" class="list-body-li" areaid="43">
<div style="PADDING-TOP: 4px" class="list-li-field"><a class="a" title="查看表单明细" onclick="javascript:WfRun.ShowFormDetailDlg(null,2057,''ListR_'',null,this);" href="javascript:void(0);"><span columntypeid="1" fieldname="RunName" entid="2057" isfield="1" fldid="9" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2057,' where  [FldUId]='77b68b27-1a52-07be-f5e4-f719f05a8155' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='c87700ed-172b-25ce-a561-d3ec586758ac'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'c87700ed-172b-25ce-a561-d3ec586758ac',2057,2057,'00000000-0000-0000-0000-000000000000',9,'CreatorName',5,1,'varchar',2,1,0,'','','','</span> </a></div></li>
<li style="width: 80px; float: left; height: 40px; clear: none; position: static;" class="list-body-li" areaid="44">
<div style="PADDING-TOP: 4px" class="list-li-field"><a class="a" title="查看发起人的信息" onclick="javascript:WfRun.ShowStartUserMsgDlg(null,2057,''ListR_'',null,this);" href="javascript:void(0);"><span columntypeid="1" fieldname="CreatorName" entid="2057" isfield="1" fldid="10" class="form-ctr">','',-1,4,-1,-1,1,'2057,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=10,[Report_EntId]=2057,[EntId]=2057,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=9,[FieldName]='CreatorName',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> </a></div></li>
<li style="width: 80px; float: left; height: 40px; clear: none; position: static;" class="list-body-li" areaid="44">
<div style="PADDING-TOP: 4px" class="list-li-field"><a class="a" title="查看发起人的信息" onclick="javascript:WfRun.ShowStartUserMsgDlg(null,2057,''ListR_'',null,this);" href="javascript:void(0);"><span columntypeid="1" fieldname="CreatorName" entid="2057" isfield="1" fldid="10" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2057,' where  [FldUId]='c87700ed-172b-25ce-a561-d3ec586758ac' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='10afaca7-c405-9c20-1e2f-f1e72bcfb720'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(13,'10afaca7-c405-9c20-1e2f-f1e72bcfb720',2057,2057,'00000000-0000-0000-0000-000000000000',-1,'CurrentStep',6,1,'varchar',2,1,0,'','','','</span> </a></div></li>
<li style="position: static; width: 180px; float: left; height: 40px; clear: none;" class="list-body-li" areaid="45">
<div style="PADDING-TOP: 4px" class="list-li-field"><a class="a" title="查看历史痕迹" onclick="javascript:WfRun.ShowImprintDlg(null,2057,''ListR_'',null,this);" href="javascript:void(0);"><span columntypeid="1" fieldname="CurrentStep" entid="2057" isfield="1" fldid="13" class="form-ctr">','',45,4,-1,-1,1,'2057,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=13,[Report_EntId]=2057,[EntId]=2057,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='CurrentStep',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> </a></div></li>
<li style="position: static; width: 180px; float: left; height: 40px; clear: none;" class="list-body-li" areaid="45">
<div style="PADDING-TOP: 4px" class="list-li-field"><a class="a" title="查看历史痕迹" onclick="javascript:WfRun.ShowImprintDlg(null,2057,''ListR_'',null,this);" href="javascript:void(0);"><span columntypeid="1" fieldname="CurrentStep" entid="2057" isfield="1" fldid="13" class="form-ctr">',[LastHtml]='',[RowIndex]=45,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2057,' where  [FldUId]='10afaca7-c405-9c20-1e2f-f1e72bcfb720' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='9945f242-06d6-4ca9-fa7e-0d6f3debca7c'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(16,'9945f242-06d6-4ca9-fa7e-0d6f3debca7c',2057,2057,'00000000-0000-0000-0000-000000000000',-1,'DeliverTime',7,1,'varchar',2,1,0,'','','','</span> </a></div></li>
<li style="width: 90px; float: left; height: 40px; clear: none; position: static;" class="list-body-li" areaid="46">
<div style="PADDING-TOP: 4px" class="list-li-field"><span columntypeid="1" fieldname="DeliverTime" entid="2057" isfield="1" fldid="16" class="form-ctr">','',46,4,-1,-1,1,'2057,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=16,[Report_EntId]=2057,[EntId]=2057,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='DeliverTime',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> </a></div></li>
<li style="width: 90px; float: left; height: 40px; clear: none; position: static;" class="list-body-li" areaid="46">
<div style="PADDING-TOP: 4px" class="list-li-field"><span columntypeid="1" fieldname="DeliverTime" entid="2057" isfield="1" fldid="16" class="form-ctr">',[LastHtml]='',[RowIndex]=46,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2057,' where  [FldUId]='9945f242-06d6-4ca9-fa7e-0d6f3debca7c' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='5fe0d50c-b5d6-5ae2-eca6-7f7b370e9a79'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(35,'5fe0d50c-b5d6-5ae2-eca6-7f7b370e9a79',2057,2057,'00000000-0000-0000-0000-000000000000',1,'RunId',8,1,'int',1,1,0,'','','','</span> </div></li>
<li style="position: static; width: 150px; float: left; height: 40px; clear: none;" class="list-body-li" areaid="47">
<div class="list-li-field"><span columntypeid="1" fieldname="RunId" entid="2057" isfield="1" fldid="35" class="form-ctr" style="display: none;">','',47,4,-1,-1,1,'2057,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=35,[Report_EntId]=2057,[EntId]=2057,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=1,[FieldName]='RunId',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> </div></li>
<li style="position: static; width: 150px; float: left; height: 40px; clear: none;" class="list-body-li" areaid="47">
<div class="list-li-field"><span columntypeid="1" fieldname="RunId" entid="2057" isfield="1" fldid="35" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=47,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2057,' where  [FldUId]='5fe0d50c-b5d6-5ae2-eca6-7f7b370e9a79' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='70aa8bf3-f9a8-7a2a-8a75-0e7d9c88b56f'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(36,'70aa8bf3-f9a8-7a2a-8a75-0e7d9c88b56f',2057,2057,'00000000-0000-0000-0000-000000000000',3,'FlowId',9,1,'int',1,1,0,'','','','</span> <span columntypeid="1" fieldname="FlowId" entid="2057" isfield="1" fldid="36" class="form-ctr" style="display: none;">','',47,4,-1,-1,1,'2057,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=36,[Report_EntId]=2057,[EntId]=2057,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='FlowId',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> <span columntypeid="1" fieldname="FlowId" entid="2057" isfield="1" fldid="36" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=47,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2057,' where  [FldUId]='70aa8bf3-f9a8-7a2a-8a75-0e7d9c88b56f' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='ec5397f8-d77e-1b24-bc71-6f3e4d0b235f'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(37,'ec5397f8-d77e-1b24-bc71-6f3e4d0b235f',2057,2057,'00000000-0000-0000-0000-000000000000',-1,'PrcsId',10,1,'varchar',2,1,0,'','','','</span> <span columntypeid="1" fieldname="PrcsId" entid="2057" isfield="1" fldid="37" class="form-ctr" style="display: none;">','',47,4,-1,-1,1,'2057,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=37,[Report_EntId]=2057,[EntId]=2057,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='PrcsId',[FieldNO]=10,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> <span columntypeid="1" fieldname="PrcsId" entid="2057" isfield="1" fldid="37" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=47,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2057,' where  [FldUId]='ec5397f8-d77e-1b24-bc71-6f3e4d0b235f' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='ed81389a-2333-ea83-d9db-e2644e2f7266'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(38,'ed81389a-2333-ea83-d9db-e2644e2f7266',2057,2057,'00000000-0000-0000-0000-000000000000',-1,'NodeId',11,1,'varchar',2,1,0,'','','','</span> <span columntypeid="1" fieldname="NodeId" entid="2057" isfield="1" fldid="38" class="form-ctr" style="display: none;">','',47,4,-1,-1,1,'2057,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=38,[Report_EntId]=2057,[EntId]=2057,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='NodeId',[FieldNO]=11,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> <span columntypeid="1" fieldname="NodeId" entid="2057" isfield="1" fldid="38" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=47,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2057,' where  [FldUId]='ed81389a-2333-ea83-d9db-e2644e2f7266' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='3112802e-04d0-acba-89d2-97f92716cc57'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(39,'3112802e-04d0-acba-89d2-97f92716cc57',2057,2057,'00000000-0000-0000-0000-000000000000',22,'CreatorId',12,1,'int',1,1,0,'','','','</span> <span columntypeid="1" fieldname="CreatorId" entid="2057" isfield="1" fldid="39" class="form-ctr" style="display: none;">','',47,4,-1,-1,1,'2057,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=39,[Report_EntId]=2057,[EntId]=2057,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=22,[FieldName]='CreatorId',[FieldNO]=12,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> <span columntypeid="1" fieldname="CreatorId" entid="2057" isfield="1" fldid="39" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=47,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2057,' where  [FldUId]='3112802e-04d0-acba-89d2-97f92716cc57' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='266a0972-4ec0-eb3b-9ec9-f850a6e990ae'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(40,'266a0972-4ec0-eb3b-9ec9-f850a6e990ae',2057,2057,'00000000-0000-0000-0000-000000000000',-1,'PrcsFlag',13,1,'varchar',2,1,0,'','','','</span> <a style="PADDING-BOTTOM: 0px; PADDING-LEFT: 15px; PADDING-RIGHT: 15px; FLOAT: right; PADDING-TOP: 0px" id="btn_FlowMenu" class="f_hot_op_bt f_hot_op_bt2" onclick="javascript:DcxDDown.ShowDDown(this);" href="javascript:void(0);" isclick="1"><span style="LINE-HEIGHT: 25px" class="op_bt_i">更多..</span></a><span columntypeid="1" fieldname="PrcsFlag" entid="2057" isfield="1" fldid="40" class="form-ctr" style="display: none;">','',47,4,-1,-1,1,'2057,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=40,[Report_EntId]=2057,[EntId]=2057,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='PrcsFlag',[FieldNO]=13,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> <a style="PADDING-BOTTOM: 0px; PADDING-LEFT: 15px; PADDING-RIGHT: 15px; FLOAT: right; PADDING-TOP: 0px" id="btn_FlowMenu" class="f_hot_op_bt f_hot_op_bt2" onclick="javascript:DcxDDown.ShowDDown(this);" href="javascript:void(0);" isclick="1"><span style="LINE-HEIGHT: 25px" class="op_bt_i">更多..</span></a><span columntypeid="1" fieldname="PrcsFlag" entid="2057" isfield="1" fldid="40" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=47,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2057,' where  [FldUId]='266a0972-4ec0-eb3b-9ec9-f850a6e990ae' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='d80d94ec-a3d7-e214-02aa-a32a6ae7f144'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(26,'d80d94ec-a3d7-e214-02aa-a32a6ae7f144',2057,2057,'00000000-0000-0000-0000-000000000000',1,'RunId',14,1,'int',1,1,0,'','','','</span> </div></li>
<li style="width: 32px; float: left; height: 40px; clear: right; position: static;" class="list-operate" areaid="49"><div class="delete">
	<a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:WfRun.DeleteRun(this,2057,''ListR_'',''','',49,4,-1,-1,1,'2057,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=26,[Report_EntId]=2057,[EntId]=2057,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=1,[FieldName]='RunId',[FieldNO]=14,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> </div></li>
<li style="width: 32px; float: left; height: 40px; clear: right; position: static;" class="list-operate" areaid="49"><div class="delete">
	<a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:WfRun.DeleteRun(this,2057,''ListR_'',''',[LastHtml]='',[RowIndex]=49,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2057,' where  [FldUId]='d80d94ec-a3d7-e214-02aa-a32a6ae7f144' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='0ee1a1d5-7dca-3199-ce4a-c855bf32790c'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(99,'0ee1a1d5-7dca-3199-ce4a-c855bf32790c',2057,2057,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',15,-1,'varchar',2,13,0,'','','',''');"><span class="i">删除</span></a></div>
</li></ul>','</div></div></div><br>
<div isbottomhtml="1">
<div style="POSITION: absolute; WIDTH: 160px; DISPLAY: none; HEIGHT: 240px" id="btn_FlowMenuNavMore" class="drop-dialog  dropdown" top="25" moveupdown="1" left="2">
<div style="POSITION: absolute; FILTER: alpha(opacity=90) !important; WIDTH: 100%; HEIGHT: 100%; opacity: .9" class="overlay-b">
<div style="POSITION: relative" class="drop-dialog-content">
<div class="drop-dialog-bd">
<div style="DISPLAY: block" class="usercard-content">
<ul class="drop-list" ctrlprex="ListR_" isrple="1">
<li onclick="javascript:DcxCom.ShowWfDlgChart(-1, false);" style="position: static;"><a href="javascript:void(0);">流程图</a></li>
<li onclick="javascript:WfRun.ShowFormDetailDlg(); " style="position: static;"><a href="javascript:void(0);">表单明细</a></li>
<li onclick="javascript:WfRun.ShowStartUserMsgDlg();" style="position: static;"><a href="javascript:void(0);">发起人</a></li>
<li onclick="javascript:WfRun.ShowImprintDlg();" style="position: static;"><a href="javascript:void(0);">痕迹</a></li>
<li onclick="javascript:WfRun.RemoveOneFlow(this);" style="position: static;"><a href="javascript:void(0);">删除流程</a></li></ul></div></div>
<div class="arrow arrow-top">&nbsp;</div></div></div></div></div>',-1,4,-1,-1,1,'2057,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=99,[Report_EntId]=2057,[EntId]=2057,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=15,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''');"><span class="i">删除</span></a></div>
</li></ul>',[LastHtml]='</div></div></div><br>
<div isbottomhtml="1">
<div style="POSITION: absolute; WIDTH: 160px; DISPLAY: none; HEIGHT: 240px" id="btn_FlowMenuNavMore" class="drop-dialog  dropdown" top="25" moveupdown="1" left="2">
<div style="POSITION: absolute; FILTER: alpha(opacity=90) !important; WIDTH: 100%; HEIGHT: 100%; opacity: .9" class="overlay-b">
<div style="POSITION: relative" class="drop-dialog-content">
<div class="drop-dialog-bd">
<div style="DISPLAY: block" class="usercard-content">
<ul class="drop-list" ctrlprex="ListR_" isrple="1">
<li onclick="javascript:DcxCom.ShowWfDlgChart(-1, false);" style="position: static;"><a href="javascript:void(0);">流程图</a></li>
<li onclick="javascript:WfRun.ShowFormDetailDlg(); " style="position: static;"><a href="javascript:void(0);">表单明细</a></li>
<li onclick="javascript:WfRun.ShowStartUserMsgDlg();" style="position: static;"><a href="javascript:void(0);">发起人</a></li>
<li onclick="javascript:WfRun.ShowImprintDlg();" style="position: static;"><a href="javascript:void(0);">痕迹</a></li>
<li onclick="javascript:WfRun.RemoveOneFlow(this);" style="position: static;"><a href="javascript:void(0);">删除流程</a></li></ul></div></div>
<div class="arrow arrow-top">&nbsp;</div></div></div></div></div>',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2057,' where  [FldUId]='0ee1a1d5-7dca-3199-ce4a-c855bf32790c' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=657

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=657  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(657,null,'WF_FlowRun','WF_FlowRun',1,0,0,0,0,0,45,1,3,'admin','2013-12-15 17:32:36',3,'admin','2013-12-15 17:32:36',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='WF_FlowRun',[DBTableByName]='WF_FlowRun',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=45,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:36',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:36',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=657 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19062,1,45,657,'int',1,1,1,'WF_FlowRun','RunId','RunId','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='RunId',[FieldByname]='RunId',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19063,2,45,657,'varchar',2,1,1,'WF_FlowRun','RunName','RunName','',0,0,0,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='RunName',[FieldByname]='RunName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19064,3,45,657,'int',1,1,1,'WF_FlowRun','FlowId','FlowId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='FlowId',[FieldByname]='FlowId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19065,4,45,657,'varchar',2,1,1,'WF_FlowRun','FlowName','FlowName','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='FlowName',[FieldByname]='FlowName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19066,5,45,657,'varchar',2,1,1,'WF_FlowRun','AttachmentId','AttachmentId','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='AttachmentId',[FieldByname]='AttachmentId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19067,6,45,657,'varchar',2,1,1,'WF_FlowRun','AttachmentName','AttachmentName','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='AttachmentName',[FieldByname]='AttachmentName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19068,7,45,657,'varchar',2,1,1,'WF_FlowRun','HtmlStr','HtmlStr','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='HtmlStr',[FieldByname]='HtmlStr',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19069,8,45,657,'varchar',2,1,1,'WF_FlowRun','FlowLsh','FlowLsh','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='FlowLsh',[FieldByname]='FlowLsh',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19070,9,45,657,'varchar',2,1,1,'WF_FlowRun','CreatorName','CreatorName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='CreatorName',[FieldByname]='CreatorName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19071,10,45,657,'tinyint',23,1,1,'WF_FlowRun','FinishFlag','FinishFlag','1',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='FinishFlag',[FieldByname]='FinishFlag',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19072,11,45,657,'varchar',2,1,1,'WF_FlowRun','FormItems','FormItems','',0,0,1,8000,8000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='FormItems',[FieldByname]='FormItems',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8000,[Precision]=8000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19073,12,45,657,'int',1,1,1,'WF_FlowRun','EntId','EntId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='EntId',[FieldByname]='EntId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19074,13,45,657,'varchar',2,1,1,'WF_FlowRun','EntName','EntName','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='EntName',[FieldByname]='EntName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19075,14,45,657,'varchar',2,1,1,'WF_FlowRun','DbTableName','DbTableName','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='DbTableName',[FieldByname]='DbTableName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19076,15,45,657,'varchar',2,1,1,'WF_FlowRun','KeyField','KeyField','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='KeyField',[FieldByname]='KeyField',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19077,16,45,657,'varchar',2,1,1,'WF_FlowRun','KeyFieldValue','KeyFieldValue','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='KeyFieldValue',[FieldByname]='KeyFieldValue',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19078,17,45,657,'varchar',2,1,1,'WF_FlowRun','Feedback','Feedback','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='Feedback',[FieldByname]='Feedback',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19079,18,45,657,'varchar',2,1,1,'WF_FlowRun','Feedback2','Feedback2','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='Feedback2',[FieldByname]='Feedback2',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19080,19,45,657,'bit',4,1,1,'WF_FlowRun','IsFreeFlow','IsFreeFlow','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='IsFreeFlow',[FieldByname]='IsFreeFlow',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19081,20,45,657,'bit',4,1,1,'WF_FlowRun','IsPause','IsPause','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='IsPause',[FieldByname]='IsPause',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19082,21,45,657,'bit',4,1,1,'WF_FlowRun','IsClose','IsClose','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='IsClose',[FieldByname]='IsClose',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19083,22,45,657,'int',1,1,1,'WF_FlowRun','CreatorId','CreatorId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='CreatorId',[FieldByname]='CreatorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19084,23,45,657,'datetime',3,1,1,'WF_FlowRun','CreateTime','CreateTime','',0,0,0,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='CreateTime',[FieldByname]='CreateTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19085,24,45,657,'int',1,1,1,'WF_FlowRun','EditorId','EditorId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='EditorId',[FieldByname]='EditorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19086,25,45,657,'datetime',3,1,1,'WF_FlowRun','EditTime','EditTime','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='EditTime',[FieldByname]='EditTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19087,26,45,657,'varchar',2,1,1,'WF_FlowRun','CreatorBoss','CreatorBoss','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='CreatorBoss',[FieldByname]='CreatorBoss',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=26 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=27  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19088,27,45,657,'int',1,1,1,'WF_FlowRun','PauseUserId','PauseUserId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='PauseUserId',[FieldByname]='PauseUserId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=27 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=28  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19089,28,45,657,'varchar',2,1,1,'WF_FlowRun','PauseUserName','PauseUserName','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='PauseUserName',[FieldByname]='PauseUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=28 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=29  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19090,29,45,657,'datetime',3,1,1,'WF_FlowRun','PauseDate','PauseDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='PauseDate',[FieldByname]='PauseDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=29 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=30  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19091,30,45,657,'datetime',3,1,1,'WF_FlowRun','CancelPauseDate','CancelPauseDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='CancelPauseDate',[FieldByname]='CancelPauseDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=30 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=31  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19092,31,45,657,'int',1,1,1,'WF_FlowRun','RecoverUserId','RecoverUserId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='RecoverUserId',[FieldByname]='RecoverUserId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=31 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=32  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19093,32,45,657,'varchar',2,1,1,'WF_FlowRun','RecoverUserName','RecoverUserName','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='RecoverUserName',[FieldByname]='RecoverUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=32 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=33  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19094,33,45,657,'datetime',3,1,1,'WF_FlowRun','RecoverDate','RecoverDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='RecoverDate',[FieldByname]='RecoverDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=33 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=34  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19095,34,45,657,'int',1,1,1,'WF_FlowRun','DeleteUserId','DeleteUserId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='DeleteUserId',[FieldByname]='DeleteUserId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=34 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=35  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19096,35,45,657,'varchar',2,1,1,'WF_FlowRun','DeleteUserName','DeleteUserName','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='DeleteUserName',[FieldByname]='DeleteUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=35 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=36  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19097,36,45,657,'datetime',3,1,1,'WF_FlowRun','DeleteDate','DeleteDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='DeleteDate',[FieldByname]='DeleteDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=36 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=37  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19098,37,45,657,'int',1,1,1,'WF_FlowRun','AccountId','AccountId','1',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='AccountId',[FieldByname]='AccountId',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=37 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=2635  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2635,'e22fa5ed-b653-4db2-aa95-4c9956857862','草稿箱',2631,'/Template/default/ListReport/ListReport_Tree001.aspx',1,'/images/default.gif','/images/default.gif',4,'',0,0,'',45,0,45,1,1,1,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='e22fa5ed-b653-4db2-aa95-4c9956857862',[MenuName]='草稿箱',[ParentId]=2631,[ProPath]='/Template/default/ListReport/ListReport_Tree001.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=4,[Target]='',[IsOpen]=0,[IsHidden]=0,[Remark]='',[SSystemId]=45,[SMenuId]=0,[SystemId]=45,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=2635 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=2635  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(432,2635,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=2635  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2058  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2058,2635,'草稿箱',1,657,0,'WF_FlowRun',0,0,1,45,2058,null,null,45,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=2635,[EntName]='草稿箱',[MEnt]=1,[DBTableId]=657,[DBConnectId]=0,[DBTableName]='WF_FlowRun',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=45,[SEntId]=2058,[FSystemId]=null,[FEntId]=null,[SystemId]=45,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2058 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=2058

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2058  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11092,2635,2058,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=2635,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2058  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2058  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11455,-1,2058,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2058  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2058

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2058  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20609,45,2635,2058,13,1,1,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=45,[MenuId]=2635,[TemplateId]=13,[ModuleId]=1,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2058  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2058  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20610,45,2635,2058,13,2,9,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=45,[MenuId]=2635,[TemplateId]=13,[ModuleId]=9,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2058  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2058  and  [ModuleTypeId]=5  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20611,45,2635,2058,13,5,25,1,3,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=45,[MenuId]=2635,[TemplateId]=13,[ModuleId]=25,[GroupId]=1,[AreaId]=3,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2058  and  [ModuleTypeId]=5 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2058  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20612,45,2635,2058,13,3,68,1,4,2,'/Template/Default/Form/AjaxForm/AjaxForm008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=45,[MenuId]=2635,[TemplateId]=13,[ModuleId]=68,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='/Template/Default/Form/AjaxForm/AjaxForm008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=2058  and  [ModuleTypeId]=3 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2058  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20613,45,2635,2058,13,16,31,1,5,2,'/Template/Default/Browse/Browse008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=45,[MenuId]=2635,[TemplateId]=13,[ModuleId]=31,[GroupId]=1,[AreaId]=5,[ShowMode]=2,[AreaUrl]='/Template/Default/Browse/Browse008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=2058  and  [ModuleTypeId]=16 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_SearchForm_Run]  where [EntId]=2058

--Dcx_SearchForm_Run
      if (select count(1) from [Dcx_SearchForm_Run] where  [EntId]=2058  )<1 
      begin 
           Insert into [Dcx_SearchForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('0e5ba283-136d-dca4-9746-6d616ccb40ba','草稿箱',2058,9,'','',0,'<!--/Js/ui/jquery.ui.core.js-->
<!--/Js/ui/jquery.ui.widget.js-->
<!--/Js/ui/jquery.ui.mouse.js-->
<!--/Js/ui/jquery.ui.sortable.js-->
<script src="/Js/Control/LTreeRList/LTreeRList.js"></script>','','DcxRun.SearchF_2058= {"MenuId":2635,"MEntId":2058,"EntName":"草稿箱","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2058":{"EntId":2058,"KeyFieldValue":"","DBTableName":"","KeyField":"RunId","KeydtId":2,"JoinKeyField":"RunId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_2058.EntMsg.E2058.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"WF_FlowRun","EntId":2058,"KeyField":"RunId","MKeyField":"RunId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"FlowId":{"DtId":1,"DB":1,"CId":40,"FL":4},"RunName":{"DtId":2,"DB":1,"CId":1,"FL":200},"CreatorName":{"DtId":2,"DB":1,"CId":1,"FL":50}},"Data":{"Row":[]}};
}
DcxRun.SearchF_2058.EntMsg.E2058.GetDataRowModel=function()
{
    return {"FlowId":-1,"RunName":"","CreatorName":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"RunId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_2058.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2058,''SearchF_'',buildNew,closeDlg);

}','',10,'','','','2058*RunId*2*RunId*2*WF_FlowRun*草稿箱',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-11 7:51:35',3,'admin','2013-8-22 5:57:03',1)
      end
      else 
      begin 
           update [Dcx_SearchForm_Run] set [FormId]='0e5ba283-136d-dca4-9746-6d616ccb40ba',[FormName]='草稿箱',[ModuleId]=9,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<!--/Js/ui/jquery.ui.core.js-->
<!--/Js/ui/jquery.ui.widget.js-->
<!--/Js/ui/jquery.ui.mouse.js-->
<!--/Js/ui/jquery.ui.sortable.js-->
<script src="/Js/Control/LTreeRList/LTreeRList.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.SearchF_2058= {"MenuId":2635,"MEntId":2058,"EntName":"草稿箱","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2058":{"EntId":2058,"KeyFieldValue":"","DBTableName":"","KeyField":"RunId","KeydtId":2,"JoinKeyField":"RunId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_2058.EntMsg.E2058.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"WF_FlowRun","EntId":2058,"KeyField":"RunId","MKeyField":"RunId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"FlowId":{"DtId":1,"DB":1,"CId":40,"FL":4},"RunName":{"DtId":2,"DB":1,"CId":1,"FL":200},"CreatorName":{"DtId":2,"DB":1,"CId":1,"FL":50}},"Data":{"Row":[]}};
}
DcxRun.SearchF_2058.EntMsg.E2058.GetDataRowModel=function()
{
    return {"FlowId":-1,"RunName":"","CreatorName":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"RunId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_2058.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2058,''SearchF_'',buildNew,closeDlg);

}',[LoadingSql]='',[PageSize]=10,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='2058*RunId*2*RunId*2*WF_FlowRun*草稿箱',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-11 7:51:35',[EditorId]=3,[Editor]='admin',[EditTime]='2013-8-22 5:57:03',[AccountId]=1 where  [EntId]=2058 
      end




--Dcx_SearchFormField_Run
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='a19665e5-0027-ea5a-2c02-34b9fc2509e3'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'a19665e5-0027-ea5a-2c02-34b9fc2509e3',2058,2058,'00000000-0000-0000-0000-000000000000',1,'=','FlowId',1,1,3,'',5,2,1,0,40,1,-1,24,1,0,'','','','','<div class="searchform">
	<ul class="search-block" groupid="1" isgroup="1" isrple="1">
		<li areaid="5" class="search-li" scroll="no" style="width: 270px; height: 38px; position: static;"><label class="search-title pad7" fldid="1" istitle="1">工作类别</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">','','','','<div id="d2058_FlowId" class="form-ddl" style="" IsForField=1 EntId="2058" FId="1" Vtp="5" RId="2" Isc="1" CId="40" FieldName="FlowId" ><input  id="d2058_FlowId_Text" type="text" class="form-ddl-txt"  CId="40" FId="1" Vtp="5"  RId="2" Isc="1"  style="width:150px;" onclick ="javascript:DcxTree.ShowDialogAf(this,24,2058,''FlowId'',false);" onkeyup ="javascript:DcxTree.ShowDialogAf(this,24,2058,''FlowId'',true);" value="','" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2058_FlowId_hid" type="hidden"  EntId="2058" IsField=1 DBField=1 IsPost=1 FieldName="FlowId" dType="1" Vtp="5" RDT="1" Isc="1" RId="2" CId="40" FId="1" vlk=0   TId=24  Cpre="="  value="','" />',1,-1,-1,-1,-1,0,'2058,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=1,[Form_EntId]=2058,[EntId]=2058,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[CompareOperatorType]='=',[FieldName]='FlowId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=3,[DefaultValue]='',[ValueType]=5,[RunValueType]=2,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=40,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=24,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="searchform">
	<ul class="search-block" groupid="1" isgroup="1" isrple="1">
		<li areaid="5" class="search-li" scroll="no" style="width: 270px; height: 38px; position: static;"><label class="search-title pad7" fldid="1" istitle="1">工作类别</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2058_FlowId" class="form-ddl" style="" IsForField=1 EntId="2058" FId="1" Vtp="5" RId="2" Isc="1" CId="40" FieldName="FlowId" ><input  id="d2058_FlowId_Text" type="text" class="form-ddl-txt"  CId="40" FId="1" Vtp="5"  RId="2" Isc="1"  style="width:150px;" onclick ="javascript:DcxTree.ShowDialogAf(this,24,2058,''FlowId'',false);" onkeyup ="javascript:DcxTree.ShowDialogAf(this,24,2058,''FlowId'',true);" value="',[CtrlbackHtml]='" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2058_FlowId_hid" type="hidden"  EntId="2058" IsField=1 DBField=1 IsPost=1 FieldName="FlowId" dType="1" Vtp="5" RDT="1" Isc="1" RId="2" CId="40" FId="1" vlk=0   TId=24  Cpre="="  value="',[CtrlLastHtml]='" />',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2058,' where  [FldUId]='a19665e5-0027-ea5a-2c02-34b9fc2509e3' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='caf5f8e6-26ab-23a8-2571-49647f349d09'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'caf5f8e6-26ab-23a8-2571-49647f349d09',2058,2058,'00000000-0000-0000-0000-000000000000',2,'Like','RunName',2,2,2,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
</div>
</li>
		<li areaid="6" class="search-li" scroll="no" style="width: 230px; height: 38px; position: static;"><label class="search-title pad7" fldid="2" istitle="1">工作名称</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2058_RunName"   type="text" class="form-txt"  style="width:120px;" EntId="2058" IsField=1 DBField=1 IsPost=1 FieldName="RunName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'2058,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=2,[Form_EntId]=2058,[EntId]=2058,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[CompareOperatorType]='Like',[FieldName]='RunName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=2,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
		<li areaid="6" class="search-li" scroll="no" style="width: 230px; height: 38px; position: static;"><label class="search-title pad7" fldid="2" istitle="1">工作名称</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2058_RunName"   type="text" class="form-txt"  style="width:120px;" EntId="2058" IsField=1 DBField=1 IsPost=1 FieldName="RunName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2058,' where  [FldUId]='caf5f8e6-26ab-23a8-2571-49647f349d09' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='de97f190-d81d-d0bc-93ce-60578b2eae3b'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'de97f190-d81d-d0bc-93ce-60578b2eae3b',2058,2058,'00000000-0000-0000-0000-000000000000',3,'Like','CreatorName',2,2,9,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
</div>
</li>
		<li areaid="7" class="search-li" scroll="no" style="width: 230px; height: 38px; position: static;"><label class="search-title pad7" fldid="3" istitle="1">发起人</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">','</span>
</div>
</li>
		<li areaid="8" class="" scroll="no" style="position: static;">
			<div class="searchform-button " onclick="javascript:return VL_Search(2058);">
				<div class="search-btn">
					&nbsp;</div>
				<a href="javascript:void(0);" id="2058_searchBT">搜索</a></div>
		</li>
	</ul>
</div>
<br>','','','<input  id="d2058_CreatorName"   type="text" class="form-txt"  style="width:120px;" EntId="2058" IsField=1 DBField=1 IsPost=1 FieldName="CreatorName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="3" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'2058,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=3,[Form_EntId]=2058,[EntId]=2058,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[CompareOperatorType]='Like',[FieldName]='CreatorName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=9,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
		<li areaid="7" class="search-li" scroll="no" style="width: 230px; height: 38px; position: static;"><label class="search-title pad7" fldid="3" istitle="1">发起人</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
</div>
</li>
		<li areaid="8" class="" scroll="no" style="position: static;">
			<div class="searchform-button " onclick="javascript:return VL_Search(2058);">
				<div class="search-btn">
					&nbsp;</div>
				<a href="javascript:void(0);" id="2058_searchBT">搜索</a></div>
		</li>
	</ul>
</div>
<br>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2058_CreatorName"   type="text" class="form-txt"  style="width:120px;" EntId="2058" IsField=1 DBField=1 IsPost=1 FieldName="CreatorName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="3" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2058,' where  [FldUId]='de97f190-d81d-d0bc-93ce-60578b2eae3b' 
      end



Delete from [Dcx_ListReport_Run]  where [EntId]=2058

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=2058  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('3c2c2a17-40cd-581b-463d-c0135fc982cf','草稿箱',2058,1,'','<!--/js/Control/DropDown/DropDown.js-->
<script type="text/javascript" language="JavaScript" > 
$(window).load(function(){ 
 DcxDDown.InitDDown("btn_FlowMenuNavMore", 2);
});
</script>
<script type="text/javascript" src="/js/WorkFlow/FlowRun.js"></script>','<$2058$>
EXEC [dbo].[DcxRun_WF_GetMyDraftWork]
		@SearchArea = N''{$SearchArea}'',
		@StartIndex = {$startRow},
		@EndIndex = {$endRow},
		@UserId = {$UserId},
		@DeptId = {$DeptId},
		@getcount = 0
</$2058$>
<$2058:Count$>
EXEC	 [dbo].[DcxRun_WF_GetMyDraftWork]
		@SearchArea = N''{$SearchArea}'',
		@StartIndex = {$startRow},
		@EndIndex = {$endRow},
		@UserId = {$UserId},
		@DeptId = {$DeptId},
		@getcount = 1
</$2058:Count$>',1,1,10,'DcxRun.ListR_2058= {"MenuId":2635,"MEntId":2058,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"草稿箱","EntMsg":{"E2058":{"EntId":2058,"EntName":"草稿箱","KeyFieldValue":"","DBTableName":"","KeyField":"RunId","KeydtId":2,"JoinKeyField":"RunId","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','','','2058*RunId*2*RunId*2*WF_FlowRun*草稿箱',3,'admin','2012-12-11 7:37:38',3,'','2013-12-12 3:52:52',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='3c2c2a17-40cd-581b-463d-c0135fc982cf',[ReportName]='草稿箱',[ModuleId]=1,[StaticHtml]='',[DIYJsCss]='<!--/js/Control/DropDown/DropDown.js-->
<script type="text/javascript" language="JavaScript" > 
$(window).load(function(){ 
 DcxDDown.InitDDown("btn_FlowMenuNavMore", 2);
});
</script>
<script type="text/javascript" src="/js/WorkFlow/FlowRun.js"></script>',[LoadingSql]='<$2058$>
EXEC [dbo].[DcxRun_WF_GetMyDraftWork]
		@SearchArea = N''{$SearchArea}'',
		@StartIndex = {$startRow},
		@EndIndex = {$endRow},
		@UserId = {$UserId},
		@DeptId = {$DeptId},
		@getcount = 0
</$2058$>
<$2058:Count$>
EXEC	 [dbo].[DcxRun_WF_GetMyDraftWork]
		@SearchArea = N''{$SearchArea}'',
		@StartIndex = {$startRow},
		@EndIndex = {$endRow},
		@UserId = {$UserId},
		@DeptId = {$DeptId},
		@getcount = 1
</$2058:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=10,[AutoPublicJs]='DcxRun.ListR_2058= {"MenuId":2635,"MEntId":2058,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"草稿箱","EntMsg":{"E2058":{"EntId":2058,"EntName":"草稿箱","KeyFieldValue":"","DBTableName":"","KeyField":"RunId","KeydtId":2,"JoinKeyField":"RunId","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='',[AutoOtherJS]='',[OtherMsg]='2058*RunId*2*RunId*2*WF_FlowRun*草稿箱',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-11 7:37:38',[EditorId]=3,[Editor]='',[EditTime]='2013-12-12 3:52:52',[AccountId]=1 where  [EntId]=2058 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='3013e2c4-3c73-6b35-707c-0493b818143d'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(94,'3013e2c4-3c73-6b35-707c-0493b818143d',2058,2058,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<div class="listreport">
<div class="toolbar">
<ul style="WIDTH: 882px" class="tool-ul" entid="2058" isgroup="1" groupid="2" istoolbar="1" ctrlprex="ListR_" isrple="1">
<li style="width: 100px; height: 30px; display: none; position: static;" class="tool-li" areaid="27"><a id="ListR_2056_btn_buildNew" class="list-bt-add" title="添   加" onclick="javascript:DcxCom.ShowAddDataDlg(2056,''ListR_'');" href="javascript:void(0);">新建工作</a></li>
<li style="position: static; width: 64px; height: 29px; display: none;" class="tool-li" areaid="28"><a id="ListR_2058_deletebut" class="list-bt-other" title="删   除" onclick="javascript:DcxReport.DeleteDatas(2058,''ListR_'');" href="javascript:void(0);">删 除</a></li>
<li style="width: 64px; height: 29px; display: none; position: static;" class="tool-li" areaid="29"><a id="ListR_2058_ExportToExcelbut" class="list-bt-other" title="导   出" onclick="javascript:DcxCom.ExportExcel(2058,''ListR_'');" href="javascript:void(0);">导 出</a></li>
<li style="width: 64px; height: 29px; display: none; position: static;" class="tool-li" areaid="30"><a id="ListR_2058_refreshbut" class="list-bt-other" title="刷   新" onclick="javascript:DcxCom.ReLoad(2058,''ListR_'');" href="javascript:void(0);">刷 新</a></li><!--分页栏-->
<li style="width: 160px; height: 24px; position: static;" id="li2_ListR_2058" class="pages" areaid="31"><a id="ListR_2058_PrevPage" class="list-pages list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(2058,''ListR_'',''p'');" href="javascript:void(0);" isfirstpage="1">上一页</a> <span class="ddl_pageindex list-pagesdown"><select id="ddl_ListR_2058_PageIndex" onchange="javascript:DcxSch.GetHtml(2058,''ListR_'',''a'',this);" isddlpage="1"></select> </span><a id="ListR_2058_NextPage" class="list-pages list-nextpage" title="下一页" onclick="javascript:DcxSch.GetHtml(2058,''ListR_'',''n'');" href="javascript:void(0);" isnextpage="1">下一页</a> <span class="list-data-amount">共</span>&nbsp; <span id="ListR_2058_RecCount_lbl" class="list-data-amount" isrecortcount="1">0</span> <span class="list-data-amount">条记录</span></li></ul></div><!-- 列表主体-->
<div class="list-area dcx-scroll">
<div class="list-head">
<ul style="width: 882px;" class="list-head-ul" entid="2058" isgroup="1" groupid="3" ctrlprex="ListR_" isrple="1">
<li style="width: 120px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="33">
<div class="list-li-field"><label istitle="1">工作类别</label></div></li>
<li style="width: 180px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="34">
<div class="list-li-field"><label istitle="1">工作名称</label></div></li>
<li style="width: 80px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="35">
<div class="list-li-field"><label istitle="1">工作发起人</label></div></li>
<li style="width: 180px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="36">
<div class="list-li-field"><label istitle="1">当前步骤</label></div></li>
<li style="width: 90px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="37">
<div class="list-li-field"><label istitle="1">转交日期</label></div></li>
<li style="width: 150px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="38">
<div class="list-li-field"><label istitle="1">流程操作</label></div></li>
<li style="width: 32px; float: left; height: 30px; clear: right; position: static;" class="list-operate" areaid="40">
<div class="delete"><a class="li-item-btn btn-pink " title="删除" href="javascript:void(0);"><span class="i">删除</span></a></div></li></ul></div>
<div class="list-body">','',-1,4,-1,-1,1,'2058,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=94,[Report_EntId]=2058,[EntId]=2058,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="listreport">
<div class="toolbar">
<ul style="WIDTH: 882px" class="tool-ul" entid="2058" isgroup="1" groupid="2" istoolbar="1" ctrlprex="ListR_" isrple="1">
<li style="width: 100px; height: 30px; display: none; position: static;" class="tool-li" areaid="27"><a id="ListR_2056_btn_buildNew" class="list-bt-add" title="添   加" onclick="javascript:DcxCom.ShowAddDataDlg(2056,''ListR_'');" href="javascript:void(0);">新建工作</a></li>
<li style="position: static; width: 64px; height: 29px; display: none;" class="tool-li" areaid="28"><a id="ListR_2058_deletebut" class="list-bt-other" title="删   除" onclick="javascript:DcxReport.DeleteDatas(2058,''ListR_'');" href="javascript:void(0);">删 除</a></li>
<li style="width: 64px; height: 29px; display: none; position: static;" class="tool-li" areaid="29"><a id="ListR_2058_ExportToExcelbut" class="list-bt-other" title="导   出" onclick="javascript:DcxCom.ExportExcel(2058,''ListR_'');" href="javascript:void(0);">导 出</a></li>
<li style="width: 64px; height: 29px; display: none; position: static;" class="tool-li" areaid="30"><a id="ListR_2058_refreshbut" class="list-bt-other" title="刷   新" onclick="javascript:DcxCom.ReLoad(2058,''ListR_'');" href="javascript:void(0);">刷 新</a></li><!--分页栏-->
<li style="width: 160px; height: 24px; position: static;" id="li2_ListR_2058" class="pages" areaid="31"><a id="ListR_2058_PrevPage" class="list-pages list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(2058,''ListR_'',''p'');" href="javascript:void(0);" isfirstpage="1">上一页</a> <span class="ddl_pageindex list-pagesdown"><select id="ddl_ListR_2058_PageIndex" onchange="javascript:DcxSch.GetHtml(2058,''ListR_'',''a'',this);" isddlpage="1"></select> </span><a id="ListR_2058_NextPage" class="list-pages list-nextpage" title="下一页" onclick="javascript:DcxSch.GetHtml(2058,''ListR_'',''n'');" href="javascript:void(0);" isnextpage="1">下一页</a> <span class="list-data-amount">共</span>&nbsp; <span id="ListR_2058_RecCount_lbl" class="list-data-amount" isrecortcount="1">0</span> <span class="list-data-amount">条记录</span></li></ul></div><!-- 列表主体-->
<div class="list-area dcx-scroll">
<div class="list-head">
<ul style="width: 882px;" class="list-head-ul" entid="2058" isgroup="1" groupid="3" ctrlprex="ListR_" isrple="1">
<li style="width: 120px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="33">
<div class="list-li-field"><label istitle="1">工作类别</label></div></li>
<li style="width: 180px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="34">
<div class="list-li-field"><label istitle="1">工作名称</label></div></li>
<li style="width: 80px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="35">
<div class="list-li-field"><label istitle="1">工作发起人</label></div></li>
<li style="width: 180px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="36">
<div class="list-li-field"><label istitle="1">当前步骤</label></div></li>
<li style="width: 90px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="37">
<div class="list-li-field"><label istitle="1">转交日期</label></div></li>
<li style="width: 150px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="38">
<div class="list-li-field"><label istitle="1">流程操作</label></div></li>
<li style="width: 32px; float: left; height: 30px; clear: right; position: static;" class="list-operate" areaid="40">
<div class="delete"><a class="li-item-btn btn-pink " title="删除" href="javascript:void(0);"><span class="i">删除</span></a></div></li></ul></div>
<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2058,' where  [FldUId]='3013e2c4-3c73-6b35-707c-0493b818143d' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='ab34f748-8b44-6be5-874e-72cd6a44dc16'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(67,'ab34f748-8b44-6be5-874e-72cd6a44dc16',2058,2058,'00000000-0000-0000-0000-000000000000',3,'FlowId',2,1,'int',1,1,0,'','','','style="width: 882px;" class="list-body-ul" isgroup="1" groupid="4" isrple="1">
<li style="width: 120px; float: left; height: 40px; clear: none; position: static;" class="list-body-li" areaid="42">
<div style="PADDING-TOP: 4px" class="list-li-field"><a class="a" title="查看流程图" onclick="javascript:DcxCom.ShowWfDlgChart
(','',42,4,-1,-1,1,'2058,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=67,[Report_EntId]=2058,[EntId]=2058,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='FlowId',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='style="width: 882px;" class="list-body-ul" isgroup="1" groupid="4" isrple="1">
<li style="width: 120px; float: left; height: 40px; clear: none; position: static;" class="list-body-li" areaid="42">
<div style="PADDING-TOP: 4px" class="list-li-field"><a class="a" title="查看流程图" onclick="javascript:DcxCom.ShowWfDlgChart
(',[LastHtml]='',[RowIndex]=42,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2058,' where  [FldUId]='ab34f748-8b44-6be5-874e-72cd6a44dc16' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='6fea45bf-6f70-e75c-931c-a1850cf85041'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'6fea45bf-6f70-e75c-931c-a1850cf85041',2058,2058,'00000000-0000-0000-0000-000000000000',4,'FlowName',3,1,'varchar',2,1,0,'','','',', false,this);"><span columntypeid="1" fieldname="FlowName" entid="2058" isfield="1" fldid="8" class="form-ctr">','',-1,4,-1,-1,1,'2058,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=8,[Report_EntId]=2058,[EntId]=2058,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=4,[FieldName]='FlowName',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=', false,this);"><span columntypeid="1" fieldname="FlowName" entid="2058" isfield="1" fldid="8" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2058,' where  [FldUId]='6fea45bf-6f70-e75c-931c-a1850cf85041' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='80ccd3fd-412c-ab40-a6ab-c6a4ff41b91b'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'80ccd3fd-412c-ab40-a6ab-c6a4ff41b91b',2058,2058,'00000000-0000-0000-0000-000000000000',2,'RunName',4,1,'varchar',2,1,0,'','','','</span> </a></div></li>
<li style="width: 180px; float: left; height: 40px; clear: none; overflow: hidden; position: static;" class="list-body-li" areaid="43">
<div style="PADDING-TOP: 4px" class="list-li-field"><a class="a" title="查看表单明细" onclick="javascript:WfRun.ShowFormDetailDlg(null,2058,''ListR_'',null,this);" href="javascript:void(0);"><span columntypeid="1" fieldname="RunName" entid="2058" isfield="1" fldid="9" class="form-ctr">','',-1,4,-1,-1,1,'2058,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=9,[Report_EntId]=2058,[EntId]=2058,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='RunName',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> </a></div></li>
<li style="width: 180px; float: left; height: 40px; clear: none; overflow: hidden; position: static;" class="list-body-li" areaid="43">
<div style="PADDING-TOP: 4px" class="list-li-field"><a class="a" title="查看表单明细" onclick="javascript:WfRun.ShowFormDetailDlg(null,2058,''ListR_'',null,this);" href="javascript:void(0);"><span columntypeid="1" fieldname="RunName" entid="2058" isfield="1" fldid="9" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2058,' where  [FldUId]='80ccd3fd-412c-ab40-a6ab-c6a4ff41b91b' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='9143412a-33c1-94b1-fc80-0736020b5845'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'9143412a-33c1-94b1-fc80-0736020b5845',2058,2058,'00000000-0000-0000-0000-000000000000',9,'CreatorName',5,1,'varchar',2,1,0,'','','','</span> </a></div></li>
<li style="width: 80px; float: left; height: 40px; clear: none; position: static;" class="list-body-li" areaid="44">
<div style="PADDING-TOP: 4px" class="list-li-field"><a class="a" title="查看发起人的信息" onclick="javascript:WfRun.ShowStartUserMsgDlg(null,2058,''ListR_'',null,this);" href="javascript:void(0);"><span columntypeid="1" fieldname="CreatorName" entid="2058" isfield="1" fldid="10" class="form-ctr">','',-1,4,-1,-1,1,'2058,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=10,[Report_EntId]=2058,[EntId]=2058,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=9,[FieldName]='CreatorName',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> </a></div></li>
<li style="width: 80px; float: left; height: 40px; clear: none; position: static;" class="list-body-li" areaid="44">
<div style="PADDING-TOP: 4px" class="list-li-field"><a class="a" title="查看发起人的信息" onclick="javascript:WfRun.ShowStartUserMsgDlg(null,2058,''ListR_'',null,this);" href="javascript:void(0);"><span columntypeid="1" fieldname="CreatorName" entid="2058" isfield="1" fldid="10" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2058,' where  [FldUId]='9143412a-33c1-94b1-fc80-0736020b5845' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='cf0f48b6-a779-2d0d-c9c8-bc6f6a6bd693'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(13,'cf0f48b6-a779-2d0d-c9c8-bc6f6a6bd693',2058,2058,'00000000-0000-0000-0000-000000000000',-1,'CurrentStep',6,1,'varchar',2,1,0,'','','','</span> </a></div></li>
<li style="width: 180px; float: left; height: 40px; clear: none; position: static;" class="list-body-li" areaid="45">
<div style="PADDING-TOP: 4px" class="list-li-field"><a class="a" title="查看历史痕迹" onclick="javascript:WfRun.ShowImprintDlg(null,2058,''ListR_'',null,this);" href="javascript:void(0);"><span columntypeid="1" fieldname="CurrentStep" entid="2058" isfield="1" fldid="13" class="form-ctr">','',45,4,-1,-1,1,'2058,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=13,[Report_EntId]=2058,[EntId]=2058,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='CurrentStep',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> </a></div></li>
<li style="width: 180px; float: left; height: 40px; clear: none; position: static;" class="list-body-li" areaid="45">
<div style="PADDING-TOP: 4px" class="list-li-field"><a class="a" title="查看历史痕迹" onclick="javascript:WfRun.ShowImprintDlg(null,2058,''ListR_'',null,this);" href="javascript:void(0);"><span columntypeid="1" fieldname="CurrentStep" entid="2058" isfield="1" fldid="13" class="form-ctr">',[LastHtml]='',[RowIndex]=45,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2058,' where  [FldUId]='cf0f48b6-a779-2d0d-c9c8-bc6f6a6bd693' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='62b9471e-ea5e-8101-4922-0e060ea982ca'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(16,'62b9471e-ea5e-8101-4922-0e060ea982ca',2058,2058,'00000000-0000-0000-0000-000000000000',-1,'DeliverTime',7,1,'varchar',2,1,0,'','','','</span> </a></div></li>
<li style="width: 90px; float: left; height: 40px; clear: none; position: static;" class="list-body-li" areaid="46">
<div style="PADDING-TOP: 4px" class="list-li-field"><span columntypeid="1" fieldname="DeliverTime" entid="2058" isfield="1" fldid="16" class="form-ctr">','',46,4,-1,-1,1,'2058,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=16,[Report_EntId]=2058,[EntId]=2058,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='DeliverTime',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> </a></div></li>
<li style="width: 90px; float: left; height: 40px; clear: none; position: static;" class="list-body-li" areaid="46">
<div style="PADDING-TOP: 4px" class="list-li-field"><span columntypeid="1" fieldname="DeliverTime" entid="2058" isfield="1" fldid="16" class="form-ctr">',[LastHtml]='',[RowIndex]=46,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2058,' where  [FldUId]='62b9471e-ea5e-8101-4922-0e060ea982ca' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='a6ef5f64-1cfd-fa15-a782-cf12e28654d5'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(35,'a6ef5f64-1cfd-fa15-a782-cf12e28654d5',2058,2058,'00000000-0000-0000-0000-000000000000',1,'RunId',8,1,'int',1,1,0,'','','','</span> </div></li>
<li style="width: 150px; float: left; height: 40px; clear: none; position: static;" class="list-body-li" areaid="47">
<div class="list-li-field"><span columntypeid="1" fieldname="RunId" entid="2058" isfield="1" fldid="35" class="form-ctr" style="display: none;">','',47,4,-1,-1,1,'2058,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=35,[Report_EntId]=2058,[EntId]=2058,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=1,[FieldName]='RunId',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> </div></li>
<li style="width: 150px; float: left; height: 40px; clear: none; position: static;" class="list-body-li" areaid="47">
<div class="list-li-field"><span columntypeid="1" fieldname="RunId" entid="2058" isfield="1" fldid="35" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=47,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2058,' where  [FldUId]='a6ef5f64-1cfd-fa15-a782-cf12e28654d5' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='2b33539b-b27c-66c4-8b97-d31df301ed43'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(36,'2b33539b-b27c-66c4-8b97-d31df301ed43',2058,2058,'00000000-0000-0000-0000-000000000000',3,'FlowId',9,1,'int',1,1,0,'','','','</span> <span columntypeid="1" fieldname="FlowId" entid="2058" isfield="1" fldid="36" class="form-ctr" style="display: none;">','',47,4,-1,-1,1,'2058,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=36,[Report_EntId]=2058,[EntId]=2058,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='FlowId',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> <span columntypeid="1" fieldname="FlowId" entid="2058" isfield="1" fldid="36" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=47,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2058,' where  [FldUId]='2b33539b-b27c-66c4-8b97-d31df301ed43' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='9414a574-68ba-c78b-f71f-a7b6837e8b86'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(37,'9414a574-68ba-c78b-f71f-a7b6837e8b86',2058,2058,'00000000-0000-0000-0000-000000000000',-1,'PrcsId',10,1,'varchar',2,1,0,'','','','</span> <span columntypeid="1" fieldname="PrcsId" entid="2058" isfield="1" fldid="37" class="form-ctr" style="display: none;">','',47,4,-1,-1,1,'2058,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=37,[Report_EntId]=2058,[EntId]=2058,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='PrcsId',[FieldNO]=10,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> <span columntypeid="1" fieldname="PrcsId" entid="2058" isfield="1" fldid="37" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=47,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2058,' where  [FldUId]='9414a574-68ba-c78b-f71f-a7b6837e8b86' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='76e8ac35-5eb6-5328-e5cf-56b5a298dedb'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(38,'76e8ac35-5eb6-5328-e5cf-56b5a298dedb',2058,2058,'00000000-0000-0000-0000-000000000000',-1,'NodeId',11,1,'varchar',2,1,0,'','','','</span> <span columntypeid="1" fieldname="NodeId" entid="2058" isfield="1" fldid="38" class="form-ctr" style="display: none;">','',47,4,-1,-1,1,'2058,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=38,[Report_EntId]=2058,[EntId]=2058,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='NodeId',[FieldNO]=11,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> <span columntypeid="1" fieldname="NodeId" entid="2058" isfield="1" fldid="38" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=47,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2058,' where  [FldUId]='76e8ac35-5eb6-5328-e5cf-56b5a298dedb' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='77a36a65-4ca6-63cf-92e3-5c8a5745910a'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(39,'77a36a65-4ca6-63cf-92e3-5c8a5745910a',2058,2058,'00000000-0000-0000-0000-000000000000',22,'CreatorId',12,1,'int',1,1,0,'','','','</span> <span columntypeid="1" fieldname="CreatorId" entid="2058" isfield="1" fldid="39" class="form-ctr" style="display: none;">','',47,4,-1,-1,1,'2058,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=39,[Report_EntId]=2058,[EntId]=2058,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=22,[FieldName]='CreatorId',[FieldNO]=12,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> <span columntypeid="1" fieldname="CreatorId" entid="2058" isfield="1" fldid="39" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=47,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2058,' where  [FldUId]='77a36a65-4ca6-63cf-92e3-5c8a5745910a' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='a0ae2bc7-e889-0de5-6703-ee908d9937e4'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(40,'a0ae2bc7-e889-0de5-6703-ee908d9937e4',2058,2058,'00000000-0000-0000-0000-000000000000',-1,'NodeName',13,1,'varchar',2,1,0,'','','','</span> <span columntypeid="1" fieldname="NodeName" entid="2058" isfield="1" fldid="40" class="form-ctr" style="display: none;">','',47,4,-1,-1,1,'2058,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=40,[Report_EntId]=2058,[EntId]=2058,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='NodeName',[FieldNO]=13,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> <span columntypeid="1" fieldname="NodeName" entid="2058" isfield="1" fldid="40" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=47,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2058,' where  [FldUId]='a0ae2bc7-e889-0de5-6703-ee908d9937e4' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='25cd3d44-8e8e-6822-3be0-81d8525232ac'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(41,'25cd3d44-8e8e-6822-3be0-81d8525232ac',2058,2058,'00000000-0000-0000-0000-000000000000',1,'RunId',14,1,'int',1,1,0,'','','','</span> <a style="PADDING-BOTTOM: 0px; PADDING-LEFT: 15px; PADDING-RIGHT: 15px; FLOAT: right; PADDING-TOP: 0px" id="btn_FlowMenu" class="f_hot_op_bt f_hot_op_bt2" onclick="javascript:DcxDDown.ShowDDown(this);" href="javascript:void(0);" isclick="1"><span style="LINE-HEIGHT: 25px" class="op_bt_i">更多..</span></a><a style="PADDING-BOTTOM: 0px; PADDING-LEFT: 15px; PADDING-RIGHT: 15px; FLOAT: right; PADDING-TOP: 0px" class="f_hot_op_bt f_hot_op_bt1 " onclick="javascript:WfRun.GoToDealWf(this,','',47,4,-1,-1,1,'2058,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=41,[Report_EntId]=2058,[EntId]=2058,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=1,[FieldName]='RunId',[FieldNO]=14,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> <a style="PADDING-BOTTOM: 0px; PADDING-LEFT: 15px; PADDING-RIGHT: 15px; FLOAT: right; PADDING-TOP: 0px" id="btn_FlowMenu" class="f_hot_op_bt f_hot_op_bt2" onclick="javascript:DcxDDown.ShowDDown(this);" href="javascript:void(0);" isclick="1"><span style="LINE-HEIGHT: 25px" class="op_bt_i">更多..</span></a><a style="PADDING-BOTTOM: 0px; PADDING-LEFT: 15px; PADDING-RIGHT: 15px; FLOAT: right; PADDING-TOP: 0px" class="f_hot_op_bt f_hot_op_bt1 " onclick="javascript:WfRun.GoToDealWf(this,',[LastHtml]='',[RowIndex]=47,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2058,' where  [FldUId]='25cd3d44-8e8e-6822-3be0-81d8525232ac' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='c8960caa-3084-1366-ece4-c6e45629de7a'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(42,'c8960caa-3084-1366-ece4-c6e45629de7a',2058,2058,'00000000-0000-0000-0000-000000000000',3,'FlowId',15,1,'int',1,1,0,'','','',',','',47,4,-1,-1,1,'2058,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=42,[Report_EntId]=2058,[EntId]=2058,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='FlowId',[FieldNO]=15,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=',',[LastHtml]='',[RowIndex]=47,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2058,' where  [FldUId]='c8960caa-3084-1366-ece4-c6e45629de7a' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='210923ed-4f2b-5d16-2393-83840cc8f78b'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(43,'210923ed-4f2b-5d16-2393-83840cc8f78b',2058,2058,'00000000-0000-0000-0000-000000000000',-1,'PrcsId',16,1,'varchar',2,1,0,'','','',',','',47,4,-1,-1,1,'2058,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=43,[Report_EntId]=2058,[EntId]=2058,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='PrcsId',[FieldNO]=16,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=',',[LastHtml]='',[RowIndex]=47,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2058,' where  [FldUId]='210923ed-4f2b-5d16-2393-83840cc8f78b' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='3a4c03fd-8898-a66b-e4b9-7f86b742d2d0'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(32,'3a4c03fd-8898-a66b-e4b9-7f86b742d2d0',2058,2058,'00000000-0000-0000-0000-000000000000',1,'RunId',17,1,'int',1,1,0,'','','',',false,2056,''ListR_'');"><span style="LINE-HEIGHT: 25px" class="op_bt_i">办理</span></a></div></li>
<li style="width: 32px; float: left; height: 40px; clear: right; position: static;" class="list-operate" areaid="49"><div class="delete">
	<a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:WfRun.DeleteRun(this,2058,''ListR_'',''','',49,4,-1,-1,1,'2058,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=32,[Report_EntId]=2058,[EntId]=2058,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=1,[FieldName]='RunId',[FieldNO]=17,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=',false,2056,''ListR_'');"><span style="LINE-HEIGHT: 25px" class="op_bt_i">办理</span></a></div></li>
<li style="width: 32px; float: left; height: 40px; clear: right; position: static;" class="list-operate" areaid="49"><div class="delete">
	<a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:WfRun.DeleteRun(this,2058,''ListR_'',''',[LastHtml]='',[RowIndex]=49,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2058,' where  [FldUId]='3a4c03fd-8898-a66b-e4b9-7f86b742d2d0' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='f34ef481-cc09-8e4e-28f1-52a1d344c2e4'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(95,'f34ef481-cc09-8e4e-28f1-52a1d344c2e4',2058,2058,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',18,-1,'varchar',2,13,0,'','','',''');"><span class="i">删除</span></a></div>
</li></ul>','</div></div></div><br>
<div isbottomhtml="1">
<div style="POSITION: absolute; WIDTH: 160px; DISPLAY: none; HEIGHT: 240px" id="btn_FlowMenuNavMore" class="drop-dialog  dropdown" top="25" moveupdown="1" left="2">
<div style="POSITION: absolute; FILTER: alpha(opacity=90) !important; WIDTH: 100%; HEIGHT: 100%; opacity: .9" class="overlay-b">
<div style="POSITION: relative" class="drop-dialog-content">
<div class="drop-dialog-bd">
<div style="DISPLAY: block" class="usercard-content">
<ul class="drop-list" ctrlprex="ListR_" isrple="1">
<li onclick="javascript:DcxCom.ShowWfDlgChart(-1, false);" style="position: static;"><a href="javascript:void(0);">流程图</a></li>
<li onclick="javascript:WfRun.ShowFormDetailDlg(); " style="position: static;"><a href="javascript:void(0);">表单明细</a></li>
<li onclick="javascript:WfRun.ShowStartUserMsgDlg();" style="position: static;"><a href="javascript:void(0);">发起人</a></li>
<li onclick="javascript:WfRun.ShowImprintDlg();" style="position: static;"><a href="javascript:void(0);">痕迹</a></li>
<li onclick="javascript:WfRun.ShowDeputeDlg();" style="position: static;"><a href="javascript:void(0);">委托他人</a></li>
<li onclick="javascript:WfRun.RemoveOneFlow(this);" style="position: static;"><a href="javascript:void(0);">删除流程</a></li></ul></div></div>
<div class="arrow arrow-top">&nbsp;</div></div></div></div></div>',-1,4,-1,-1,1,'2058,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=95,[Report_EntId]=2058,[EntId]=2058,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=18,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''');"><span class="i">删除</span></a></div>
</li></ul>',[LastHtml]='</div></div></div><br>
<div isbottomhtml="1">
<div style="POSITION: absolute; WIDTH: 160px; DISPLAY: none; HEIGHT: 240px" id="btn_FlowMenuNavMore" class="drop-dialog  dropdown" top="25" moveupdown="1" left="2">
<div style="POSITION: absolute; FILTER: alpha(opacity=90) !important; WIDTH: 100%; HEIGHT: 100%; opacity: .9" class="overlay-b">
<div style="POSITION: relative" class="drop-dialog-content">
<div class="drop-dialog-bd">
<div style="DISPLAY: block" class="usercard-content">
<ul class="drop-list" ctrlprex="ListR_" isrple="1">
<li onclick="javascript:DcxCom.ShowWfDlgChart(-1, false);" style="position: static;"><a href="javascript:void(0);">流程图</a></li>
<li onclick="javascript:WfRun.ShowFormDetailDlg(); " style="position: static;"><a href="javascript:void(0);">表单明细</a></li>
<li onclick="javascript:WfRun.ShowStartUserMsgDlg();" style="position: static;"><a href="javascript:void(0);">发起人</a></li>
<li onclick="javascript:WfRun.ShowImprintDlg();" style="position: static;"><a href="javascript:void(0);">痕迹</a></li>
<li onclick="javascript:WfRun.ShowDeputeDlg();" style="position: static;"><a href="javascript:void(0);">委托他人</a></li>
<li onclick="javascript:WfRun.RemoveOneFlow(this);" style="position: static;"><a href="javascript:void(0);">删除流程</a></li></ul></div></div>
<div class="arrow arrow-top">&nbsp;</div></div></div></div></div>',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2058,' where  [FldUId]='f34ef481-cc09-8e4e-28f1-52a1d344c2e4' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=657

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=657  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(657,null,'WF_FlowRun','WF_FlowRun',1,0,0,0,0,0,45,1,3,'admin','2013-12-15 17:32:36',3,'admin','2013-12-15 17:32:36',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='WF_FlowRun',[DBTableByName]='WF_FlowRun',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=45,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:36',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:36',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=657 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19062,1,45,657,'int',1,1,1,'WF_FlowRun','RunId','RunId','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='RunId',[FieldByname]='RunId',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19063,2,45,657,'varchar',2,1,1,'WF_FlowRun','RunName','RunName','',0,0,0,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='RunName',[FieldByname]='RunName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19064,3,45,657,'int',1,1,1,'WF_FlowRun','FlowId','FlowId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='FlowId',[FieldByname]='FlowId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19065,4,45,657,'varchar',2,1,1,'WF_FlowRun','FlowName','FlowName','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='FlowName',[FieldByname]='FlowName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19066,5,45,657,'varchar',2,1,1,'WF_FlowRun','AttachmentId','AttachmentId','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='AttachmentId',[FieldByname]='AttachmentId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19067,6,45,657,'varchar',2,1,1,'WF_FlowRun','AttachmentName','AttachmentName','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='AttachmentName',[FieldByname]='AttachmentName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19068,7,45,657,'varchar',2,1,1,'WF_FlowRun','HtmlStr','HtmlStr','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='HtmlStr',[FieldByname]='HtmlStr',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19069,8,45,657,'varchar',2,1,1,'WF_FlowRun','FlowLsh','FlowLsh','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='FlowLsh',[FieldByname]='FlowLsh',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19070,9,45,657,'varchar',2,1,1,'WF_FlowRun','CreatorName','CreatorName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='CreatorName',[FieldByname]='CreatorName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19071,10,45,657,'tinyint',23,1,1,'WF_FlowRun','FinishFlag','FinishFlag','1',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='FinishFlag',[FieldByname]='FinishFlag',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19072,11,45,657,'varchar',2,1,1,'WF_FlowRun','FormItems','FormItems','',0,0,1,8000,8000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='FormItems',[FieldByname]='FormItems',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8000,[Precision]=8000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19073,12,45,657,'int',1,1,1,'WF_FlowRun','EntId','EntId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='EntId',[FieldByname]='EntId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19074,13,45,657,'varchar',2,1,1,'WF_FlowRun','EntName','EntName','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='EntName',[FieldByname]='EntName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19075,14,45,657,'varchar',2,1,1,'WF_FlowRun','DbTableName','DbTableName','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='DbTableName',[FieldByname]='DbTableName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19076,15,45,657,'varchar',2,1,1,'WF_FlowRun','KeyField','KeyField','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='KeyField',[FieldByname]='KeyField',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19077,16,45,657,'varchar',2,1,1,'WF_FlowRun','KeyFieldValue','KeyFieldValue','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='KeyFieldValue',[FieldByname]='KeyFieldValue',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19078,17,45,657,'varchar',2,1,1,'WF_FlowRun','Feedback','Feedback','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='Feedback',[FieldByname]='Feedback',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19079,18,45,657,'varchar',2,1,1,'WF_FlowRun','Feedback2','Feedback2','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='Feedback2',[FieldByname]='Feedback2',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19080,19,45,657,'bit',4,1,1,'WF_FlowRun','IsFreeFlow','IsFreeFlow','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='IsFreeFlow',[FieldByname]='IsFreeFlow',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19081,20,45,657,'bit',4,1,1,'WF_FlowRun','IsPause','IsPause','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='IsPause',[FieldByname]='IsPause',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19082,21,45,657,'bit',4,1,1,'WF_FlowRun','IsClose','IsClose','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='IsClose',[FieldByname]='IsClose',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19083,22,45,657,'int',1,1,1,'WF_FlowRun','CreatorId','CreatorId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='CreatorId',[FieldByname]='CreatorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19084,23,45,657,'datetime',3,1,1,'WF_FlowRun','CreateTime','CreateTime','',0,0,0,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='CreateTime',[FieldByname]='CreateTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19085,24,45,657,'int',1,1,1,'WF_FlowRun','EditorId','EditorId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='EditorId',[FieldByname]='EditorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19086,25,45,657,'datetime',3,1,1,'WF_FlowRun','EditTime','EditTime','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='EditTime',[FieldByname]='EditTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19087,26,45,657,'varchar',2,1,1,'WF_FlowRun','CreatorBoss','CreatorBoss','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='CreatorBoss',[FieldByname]='CreatorBoss',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=26 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=27  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19088,27,45,657,'int',1,1,1,'WF_FlowRun','PauseUserId','PauseUserId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='PauseUserId',[FieldByname]='PauseUserId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=27 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=28  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19089,28,45,657,'varchar',2,1,1,'WF_FlowRun','PauseUserName','PauseUserName','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='PauseUserName',[FieldByname]='PauseUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=28 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=29  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19090,29,45,657,'datetime',3,1,1,'WF_FlowRun','PauseDate','PauseDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='PauseDate',[FieldByname]='PauseDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=29 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=30  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19091,30,45,657,'datetime',3,1,1,'WF_FlowRun','CancelPauseDate','CancelPauseDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='CancelPauseDate',[FieldByname]='CancelPauseDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=30 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=31  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19092,31,45,657,'int',1,1,1,'WF_FlowRun','RecoverUserId','RecoverUserId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='RecoverUserId',[FieldByname]='RecoverUserId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=31 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=32  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19093,32,45,657,'varchar',2,1,1,'WF_FlowRun','RecoverUserName','RecoverUserName','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='RecoverUserName',[FieldByname]='RecoverUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=32 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=33  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19094,33,45,657,'datetime',3,1,1,'WF_FlowRun','RecoverDate','RecoverDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='RecoverDate',[FieldByname]='RecoverDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=33 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=34  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19095,34,45,657,'int',1,1,1,'WF_FlowRun','DeleteUserId','DeleteUserId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='DeleteUserId',[FieldByname]='DeleteUserId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=34 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=35  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19096,35,45,657,'varchar',2,1,1,'WF_FlowRun','DeleteUserName','DeleteUserName','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='DeleteUserName',[FieldByname]='DeleteUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=35 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=36  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19097,36,45,657,'datetime',3,1,1,'WF_FlowRun','DeleteDate','DeleteDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='DeleteDate',[FieldByname]='DeleteDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=36 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=37  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19098,37,45,657,'int',1,1,1,'WF_FlowRun','AccountId','AccountId','1',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='AccountId',[FieldByname]='AccountId',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=37 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=2636  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2636,'49b96835-0b71-41b6-97a3-542490b7e526','查询工作',2631,'/Template/default/ListReport/ListReport_Tree001.aspx',1,'/images/default.gif','/images/default.gif',5,'',0,0,'',45,0,45,1,1,1,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='49b96835-0b71-41b6-97a3-542490b7e526',[MenuName]='查询工作',[ParentId]=2631,[ProPath]='/Template/default/ListReport/ListReport_Tree001.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=5,[Target]='',[IsOpen]=0,[IsHidden]=0,[Remark]='',[SSystemId]=45,[SMenuId]=0,[SystemId]=45,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=2636 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=2636  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(433,2636,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=2636  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2059  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2059,2636,'查询工作',1,657,0,'WF_FlowRun',0,0,1,45,2059,null,null,45,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=2636,[EntName]='查询工作',[MEnt]=1,[DBTableId]=657,[DBConnectId]=0,[DBTableName]='WF_FlowRun',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=45,[SEntId]=2059,[FSystemId]=null,[FEntId]=null,[SystemId]=45,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2059 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=2059

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2059  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11093,2636,2059,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=2636,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2059  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2059  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11456,-1,2059,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2059  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2059

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2059  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20614,45,2636,2059,13,1,1,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=45,[MenuId]=2636,[TemplateId]=13,[ModuleId]=1,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2059  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2059  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20615,45,2636,2059,13,2,9,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=45,[MenuId]=2636,[TemplateId]=13,[ModuleId]=9,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2059  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2059  and  [ModuleTypeId]=5  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20616,45,2636,2059,13,5,25,1,3,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=45,[MenuId]=2636,[TemplateId]=13,[ModuleId]=25,[GroupId]=1,[AreaId]=3,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2059  and  [ModuleTypeId]=5 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2059  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20617,45,2636,2059,13,3,68,1,4,2,'/Template/Default/Form/AjaxForm/AjaxForm008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=45,[MenuId]=2636,[TemplateId]=13,[ModuleId]=68,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='/Template/Default/Form/AjaxForm/AjaxForm008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=2059  and  [ModuleTypeId]=3 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2059  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20618,45,2636,2059,13,16,31,1,5,2,'/Template/Default/Browse/Browse008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=45,[MenuId]=2636,[TemplateId]=13,[ModuleId]=31,[GroupId]=1,[AreaId]=5,[ShowMode]=2,[AreaUrl]='/Template/Default/Browse/Browse008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=2059  and  [ModuleTypeId]=16 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_SearchForm_Run]  where [EntId]=2059

--Dcx_SearchForm_Run
      if (select count(1) from [Dcx_SearchForm_Run] where  [EntId]=2059  )<1 
      begin 
           Insert into [Dcx_SearchForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('ebaa2132-a1d2-1e00-676f-33acd6404e81','查询工作',2059,9,'','',0,'<!--/Js/ui/jquery.ui.core.js-->
<!--/Js/ui/jquery.ui.widget.js-->
<!--/Js/ui/jquery.ui.mouse.js-->
<!--/Js/ui/jquery.ui.sortable.js-->
<script src="/Js/Control/LTreeRList/LTreeRList.js"></script>
<!--/js/Control/Calendar/DcxCalendar.js-->','','DcxRun.SearchF_2059= {"MenuId":2636,"MEntId":2059,"EntName":"查询工作","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2059":{"EntId":2059,"KeyFieldValue":"","DBTableName":"","KeyField":"RunId","KeydtId":2,"JoinKeyField":"RunId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":1,"Ent":[{"EntId":2059,"Fld":[{"FldId":10,"Vld":[]}]}]};
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_2059.EntMsg.E2059.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"WF_FlowRun","EntId":2059,"KeyField":"RunId","MKeyField":"RunId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"FlowId":{"DtId":1,"DB":1,"CId":40,"FL":4},"RunName":{"DtId":2,"DB":1,"CId":1,"FL":200},"CreateTime":{"DtId":3,"DB":1,"CId":5,"FL":8},"CreateTime":{"DtId":3,"DB":1,"CId":5,"FL":8},"FinishFlag":{"DtId":1,"DB":1,"CId":3,"FL":4},"CreatorId":{"DtId":1,"DB":1,"CId":40,"FL":4}},"Data":{"Row":[]}};
}
DcxRun.SearchF_2059.EntMsg.E2059.GetDataRowModel=function()
{
    return {"FlowId":-1,"RunName":"","CreateTime":new Date(),"CreateTime":new Date(),"FinishFlag":-1,"CreatorId":-1,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"RunId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_2059.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2059,''SearchF_'',buildNew,closeDlg);

}','',10,'','','','2059*RunId*2*RunId*2*WF_FlowRun*查询工作',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-11 7:51:38',3,'admin','2013-8-22 5:57:03',1)
      end
      else 
      begin 
           update [Dcx_SearchForm_Run] set [FormId]='ebaa2132-a1d2-1e00-676f-33acd6404e81',[FormName]='查询工作',[ModuleId]=9,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<!--/Js/ui/jquery.ui.core.js-->
<!--/Js/ui/jquery.ui.widget.js-->
<!--/Js/ui/jquery.ui.mouse.js-->
<!--/Js/ui/jquery.ui.sortable.js-->
<script src="/Js/Control/LTreeRList/LTreeRList.js"></script>
<!--/js/Control/Calendar/DcxCalendar.js-->',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.SearchF_2059= {"MenuId":2636,"MEntId":2059,"EntName":"查询工作","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2059":{"EntId":2059,"KeyFieldValue":"","DBTableName":"","KeyField":"RunId","KeydtId":2,"JoinKeyField":"RunId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":1,"Ent":[{"EntId":2059,"Fld":[{"FldId":10,"Vld":[]}]}]};
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_2059.EntMsg.E2059.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"WF_FlowRun","EntId":2059,"KeyField":"RunId","MKeyField":"RunId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"FlowId":{"DtId":1,"DB":1,"CId":40,"FL":4},"RunName":{"DtId":2,"DB":1,"CId":1,"FL":200},"CreateTime":{"DtId":3,"DB":1,"CId":5,"FL":8},"CreateTime":{"DtId":3,"DB":1,"CId":5,"FL":8},"FinishFlag":{"DtId":1,"DB":1,"CId":3,"FL":4},"CreatorId":{"DtId":1,"DB":1,"CId":40,"FL":4}},"Data":{"Row":[]}};
}
DcxRun.SearchF_2059.EntMsg.E2059.GetDataRowModel=function()
{
    return {"FlowId":-1,"RunName":"","CreateTime":new Date(),"CreateTime":new Date(),"FinishFlag":-1,"CreatorId":-1,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"RunId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_2059.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2059,''SearchF_'',buildNew,closeDlg);

}',[LoadingSql]='',[PageSize]=10,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='2059*RunId*2*RunId*2*WF_FlowRun*查询工作',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-11 7:51:38',[EditorId]=3,[Editor]='admin',[EditTime]='2013-8-22 5:57:03',[AccountId]=1 where  [EntId]=2059 
      end




--Dcx_SearchFormField_Run
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='04b5ca17-46e2-7650-90b4-9ce7c1ceb570'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'04b5ca17-46e2-7650-90b4-9ce7c1ceb570',2059,2059,'00000000-0000-0000-0000-000000000000',1,'=','FlowId',1,1,3,'',5,2,1,0,40,1,-1,24,1,0,'','','','','<div class="searchform">
	<ul class="search-block" groupid="1" isgroup="1" style="width: 1158px;" isrple="1">
		<li areaid="5" class="search-li" scroll="no" style="width: 270px; height: 38px; position: static;"><label class="search-title pad7" fldid="1" istitle="1">工作类别</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">','','','','<div id="d2059_FlowId" class="form-ddl" style="" IsForField=1 EntId="2059" FId="1" Vtp="5" RId="2" Isc="1" CId="40" FieldName="FlowId" ><input  id="d2059_FlowId_Text" type="text" class="form-ddl-txt"  CId="40" FId="1" Vtp="5"  RId="2" Isc="1"  style="width:150px;" onclick ="javascript:DcxTree.ShowDialogAf(this,24,2059,''FlowId'',false);" onkeyup ="javascript:DcxTree.ShowDialogAf(this,24,2059,''FlowId'',true);" value="','" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2059_FlowId_hid" type="hidden"  EntId="2059" IsField=1 DBField=1 IsPost=1 FieldName="FlowId" dType="1" Vtp="5" RDT="1" Isc="1" RId="2" CId="40" FId="1" vlk=0   TId=24  Cpre="="  value="','" />',1,-1,-1,-1,-1,0,'2059,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=1,[Form_EntId]=2059,[EntId]=2059,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[CompareOperatorType]='=',[FieldName]='FlowId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=3,[DefaultValue]='',[ValueType]=5,[RunValueType]=2,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=40,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=24,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="searchform">
	<ul class="search-block" groupid="1" isgroup="1" style="width: 1158px;" isrple="1">
		<li areaid="5" class="search-li" scroll="no" style="width: 270px; height: 38px; position: static;"><label class="search-title pad7" fldid="1" istitle="1">工作类别</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2059_FlowId" class="form-ddl" style="" IsForField=1 EntId="2059" FId="1" Vtp="5" RId="2" Isc="1" CId="40" FieldName="FlowId" ><input  id="d2059_FlowId_Text" type="text" class="form-ddl-txt"  CId="40" FId="1" Vtp="5"  RId="2" Isc="1"  style="width:150px;" onclick ="javascript:DcxTree.ShowDialogAf(this,24,2059,''FlowId'',false);" onkeyup ="javascript:DcxTree.ShowDialogAf(this,24,2059,''FlowId'',true);" value="',[CtrlbackHtml]='" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2059_FlowId_hid" type="hidden"  EntId="2059" IsField=1 DBField=1 IsPost=1 FieldName="FlowId" dType="1" Vtp="5" RDT="1" Isc="1" RId="2" CId="40" FId="1" vlk=0   TId=24  Cpre="="  value="',[CtrlLastHtml]='" />',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2059,' where  [FldUId]='04b5ca17-46e2-7650-90b4-9ce7c1ceb570' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='4448be33-7023-dfed-f93f-c7b6b1a37728'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'4448be33-7023-dfed-f93f-c7b6b1a37728',2059,2059,'00000000-0000-0000-0000-000000000000',2,'Like','RunName',2,2,2,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
</div>
</li>
		<li areaid="6" class="search-li" scroll="no" style="width: 230px; height: 38px; position: static;"><label class="search-title pad7" fldid="2" istitle="1">工作名称</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2059_RunName"   type="text" class="form-txt"  style="width:120px;" EntId="2059" IsField=1 DBField=1 IsPost=1 FieldName="RunName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'2059,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=2,[Form_EntId]=2059,[EntId]=2059,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[CompareOperatorType]='Like',[FieldName]='RunName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=2,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
		<li areaid="6" class="search-li" scroll="no" style="width: 230px; height: 38px; position: static;"><label class="search-title pad7" fldid="2" istitle="1">工作名称</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2059_RunName"   type="text" class="form-txt"  style="width:120px;" EntId="2059" IsField=1 DBField=1 IsPost=1 FieldName="RunName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2059,' where  [FldUId]='4448be33-7023-dfed-f93f-c7b6b1a37728' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='f9b32137-b167-8e01-028d-e0cecc7b51fe'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'f9b32137-b167-8e01-028d-e0cecc7b51fe',2059,2059,'00000000-0000-0000-0000-000000000000',3,'=','FinishFlag',1,1,10,'',1,1,1,0,3,1,-1,-1,1,0,'','','','','</span>

</div>
</li><li areaid="10" class="search-li" scroll="no" style="width: 220px; height: 38px; position: static;"><label class="search-title pad7" fldid="7" istitle="1">状态</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">','','','','<select id="d2059_FinishFlag" name="d2059_FinishFlag" class="form-select"  onchange ="javascript:VL_Search(2059);" EntId="2059" IsField=1 DBField=1 IsPost=1 FieldName="FinishFlag" dType="1" Vtp="1" RDT="1" Isc="1" RId="1" CId="3" FId="8" vlk=0    Cpre="="  style="width:150px;">','<option  value=""  >所有状态</option>
<option  value="0"  >执行中</option>
<option  value="1"  >已结束</option>
<option  value="2"  >已归档</option>
</select>','',1,-1,-1,-1,-1,0,'2059,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=8,[Form_EntId]=2059,[EntId]=2059,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[CompareOperatorType]='=',[FieldName]='FinishFlag',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=10,[DefaultValue]='',[ValueType]=1,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

</div>
</li><li areaid="10" class="search-li" scroll="no" style="width: 220px; height: 38px; position: static;"><label class="search-title pad7" fldid="7" istitle="1">状态</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d2059_FinishFlag" name="d2059_FinishFlag" class="form-select"  onchange ="javascript:VL_Search(2059);" EntId="2059" IsField=1 DBField=1 IsPost=1 FieldName="FinishFlag" dType="1" Vtp="1" RDT="1" Isc="1" RId="1" CId="3" FId="8" vlk=0    Cpre="="  style="width:150px;">',[CtrlbackHtml]='<option  value=""  >所有状态</option>
<option  value="0"  >执行中</option>
<option  value="1"  >已结束</option>
<option  value="2"  >已归档</option>
</select>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2059,' where  [FldUId]='f9b32137-b167-8e01-028d-e0cecc7b51fe' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='40c25540-1b06-0538-3087-c3c37d93f710'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'40c25540-1b06-0538-3087-c3c37d93f710',2059,2059,'00000000-0000-0000-0000-000000000000',4,'=','Range',1,1,-1,'所有范围|0',1,1,1,0,3,3,-1,-1,0,0,'','','','','</span>

</div>
</li><li areaid="11" class="search-li" scroll="no" style="width: 220px; height: 38px; position: static;"><label class="search-title pad7" fldid="7" istitle="1">范围</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">','','','','<select id="d2059_Range" name="d2059_Range" class="form-select"  onchange ="javascript:if($(this).val()!=''4''){HideCell_AreaID(this,7);VL_Search(2059);}else ShowCell_AreaID(this,7);" EntId="2059" IsField=1 DBField=0 IsPost=0 FieldName="Range" dType="1" Vtp="1" RDT="1" Isc="1" RId="1" CId="3" FId="10" vlk=0    Cpre="="  style="width:150px;">','<option  value="0" selected ="selected" >所有范围</option>
<option  value="1"  >我发起的</option>
<option  value="2"  >我办理过的</option>
<option  value="3"  >我管理的</option>
<option  value="4"  >指定发起人</option>
</select>','',0,1,11,-1,-1,0,'2059,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=10,[Form_EntId]=2059,[EntId]=2059,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=4,[CompareOperatorType]='=',[FieldName]='Range',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=-1,[DefaultValue]='所有范围|0',[ValueType]=1,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=3,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

</div>
</li><li areaid="11" class="search-li" scroll="no" style="width: 220px; height: 38px; position: static;"><label class="search-title pad7" fldid="7" istitle="1">范围</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<select id="d2059_Range" name="d2059_Range" class="form-select"  onchange ="javascript:if($(this).val()!=''4''){HideCell_AreaID(this,7);VL_Search(2059);}else ShowCell_AreaID(this,7);" EntId="2059" IsField=1 DBField=0 IsPost=0 FieldName="Range" dType="1" Vtp="1" RDT="1" Isc="1" RId="1" CId="3" FId="10" vlk=0    Cpre="="  style="width:150px;">',[CtrlbackHtml]='<option  value="0" selected ="selected" >所有范围</option>
<option  value="1"  >我发起的</option>
<option  value="2"  >我办理过的</option>
<option  value="3"  >我管理的</option>
<option  value="4"  >指定发起人</option>
</select>',[CtrlLastHtml]='',[IsPostToDB]=0,[TableIndex]=1,[RowIndex]=11,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2059,' where  [FldUId]='40c25540-1b06-0538-3087-c3c37d93f710' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='eae0d197-3df4-77ea-bbdd-3ee0f7e6d424'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'eae0d197-3df4-77ea-bbdd-3ee0f7e6d424',2059,2059,'00000000-0000-0000-0000-000000000000',5,'=','CreatorId',1,1,22,'',5,2,1,0,40,1,-1,5,1,0,'','','','','</span>
</div>
</li>
		<li areaid="7" class="search-li" scroll="no" style="width: 270px; height: 38px; display: none; position: static;"><label class="search-title pad7" fldid="3" istitle="1">发起人</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">','','','','<div id="d2059_CreatorId" class="form-ddl" style="" IsForField=1 EntId="2059" FId="11" Vtp="5" RId="2" Isc="1" CId="40" FieldName="CreatorId" ><input  id="d2059_CreatorId_Text" type="text" class="form-ddl-txt"  CId="40" FId="11" Vtp="5"  RId="2" Isc="1"  style="width:150px;" onclick ="javascript:DcxTree.ShowDialogAf(this,5,2059,''CreatorId'',false);" onkeyup ="javascript:DcxTree.ShowDialogAf(this,5,2059,''CreatorId'',true);" value="','" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2059_CreatorId_hid" type="hidden"  EntId="2059" IsField=1 DBField=1 IsPost=1 FieldName="CreatorId" dType="1" Vtp="5" RDT="1" Isc="1" RId="2" CId="40" FId="11" vlk=0   TId=5  Cpre="="  value="','" />',1,-1,-1,-1,-1,0,'2059,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=11,[Form_EntId]=2059,[EntId]=2059,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=5,[CompareOperatorType]='=',[FieldName]='CreatorId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=22,[DefaultValue]='',[ValueType]=5,[RunValueType]=2,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=40,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=5,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
		<li areaid="7" class="search-li" scroll="no" style="width: 270px; height: 38px; display: none; position: static;"><label class="search-title pad7" fldid="3" istitle="1">发起人</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2059_CreatorId" class="form-ddl" style="" IsForField=1 EntId="2059" FId="11" Vtp="5" RId="2" Isc="1" CId="40" FieldName="CreatorId" ><input  id="d2059_CreatorId_Text" type="text" class="form-ddl-txt"  CId="40" FId="11" Vtp="5"  RId="2" Isc="1"  style="width:150px;" onclick ="javascript:DcxTree.ShowDialogAf(this,5,2059,''CreatorId'',false);" onkeyup ="javascript:DcxTree.ShowDialogAf(this,5,2059,''CreatorId'',true);" value="',[CtrlbackHtml]='" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2059_CreatorId_hid" type="hidden"  EntId="2059" IsField=1 DBField=1 IsPost=1 FieldName="CreatorId" dType="1" Vtp="5" RDT="1" Isc="1" RId="2" CId="40" FId="11" vlk=0   TId=5  Cpre="="  value="',[CtrlLastHtml]='" />',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2059,' where  [FldUId]='eae0d197-3df4-77ea-bbdd-3ee0f7e6d424' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='9561742b-4c2f-a383-85a9-a2dec9b3f07a'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'9561742b-4c2f-a383-85a9-a2dec9b3f07a',2059,2059,'00000000-0000-0000-0000-000000000000',6,'>=','CreateTime',3,3,23,'',5,1,1,0,5,1,-1,-1,1,0,'','','','','</span>
</div>
</li><li areaid="9" class="search-li" scroll="no" style="width: 480px; height: 38px; clear: none; float: left; position: static;"><label class="search-title pad7" fldid="5" istitle="1">创建时间</label>
<div class="field-content pad3">
	<table>
		<tbody>
			<tr>
				<td>
					<span class="form-ctr" isfcontain="1">','','','','<div class="form-ddl"><input  id="d2059_CreateTime"   type="text" class="form-ddl-txt"  style="width:150px;" onfocus ="javascript:DcxDTime.ShowCalendar(this);" EntId="2059" IsField=1 DBField=1 IsPost=1 FieldName="CreateTime" dType="3" Vtp="5" RDT="3" Isc="1" RId="1" CId="5" FId="5" vlk=0    Cpre=">="  value="','"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>','',1,-1,-1,-1,-1,0,'2059,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=5,[Form_EntId]=2059,[EntId]=2059,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=6,[CompareOperatorType]='>=',[FieldName]='CreateTime',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=23,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=5,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li areaid="9" class="search-li" scroll="no" style="width: 480px; height: 38px; clear: none; float: left; position: static;"><label class="search-title pad7" fldid="5" istitle="1">创建时间</label>
<div class="field-content pad3">
	<table>
		<tbody>
			<tr>
				<td>
					<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-ddl"><input  id="d2059_CreateTime"   type="text" class="form-ddl-txt"  style="width:150px;" onfocus ="javascript:DcxDTime.ShowCalendar(this);" EntId="2059" IsField=1 DBField=1 IsPost=1 FieldName="CreateTime" dType="3" Vtp="5" RDT="3" Isc="1" RId="1" CId="5" FId="5" vlk=0    Cpre=">="  value="',[CtrlbackHtml]='"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2059,' where  [FldUId]='9561742b-4c2f-a383-85a9-a2dec9b3f07a' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='48c74a8b-5895-82b5-2e9a-9ad0f7a91587'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'48c74a8b-5895-82b5-2e9a-9ad0f7a91587',2059,2059,'00000000-0000-0000-0000-000000000000',7,'<=','CreateTime',3,3,23,'',5,1,1,0,5,1,-1,-1,1,0,'','','','','</span>
</td>
				<td>
					至</td>
				<td>
					<span class="form-ctr" isfcontain="1">','</span>
</td>
			</tr>
		</tbody>
	</table>
</div>
</li>
		<li areaid="8" class="" scroll="no" style="width: 90px; height: 35px; clear: none; float: left; position: static;"><div class="searchform-button " onclick="javascript:return VL_Search(2059);">
	<div class="search-btn">
		&nbsp;</div>
	<a href="javascript:void(0);" id="2059_searchBT">搜索</a></div>
</li>
	</ul>
</div>
<br>','','','<div class="form-ddl"><input  id="d2059_CreateTime"   type="text" class="form-ddl-txt"  style="width:150px;" onfocus ="javascript:DcxDTime.ShowCalendar(this);" EntId="2059" IsField=1 DBField=1 IsPost=1 FieldName="CreateTime" dType="3" Vtp="5" RDT="3" Isc="1" RId="1" CId="5" FId="6" vlk=0    Cpre="<="  value="','"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>','',1,1,9,-1,-1,0,'2059,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=6,[Form_EntId]=2059,[EntId]=2059,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=7,[CompareOperatorType]='<=',[FieldName]='CreateTime',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=23,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=5,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</td>
				<td>
					至</td>
				<td>
					<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
</td>
			</tr>
		</tbody>
	</table>
</div>
</li>
		<li areaid="8" class="" scroll="no" style="width: 90px; height: 35px; clear: none; float: left; position: static;"><div class="searchform-button " onclick="javascript:return VL_Search(2059);">
	<div class="search-btn">
		&nbsp;</div>
	<a href="javascript:void(0);" id="2059_searchBT">搜索</a></div>
</li>
	</ul>
</div>
<br>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-ddl"><input  id="d2059_CreateTime"   type="text" class="form-ddl-txt"  style="width:150px;" onfocus ="javascript:DcxDTime.ShowCalendar(this);" EntId="2059" IsField=1 DBField=1 IsPost=1 FieldName="CreateTime" dType="3" Vtp="5" RDT="3" Isc="1" RId="1" CId="5" FId="6" vlk=0    Cpre="<="  value="',[CtrlbackHtml]='"/><span class="form-date-bt" onclick="javascript:$(this).prev().focus();"></span></div>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=1,[RowIndex]=9,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2059,' where  [FldUId]='48c74a8b-5895-82b5-2e9a-9ad0f7a91587' 
      end



Delete from [Dcx_ListReport_Run]  where [EntId]=2059

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=2059  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('f302ee7c-b5fe-41c1-402e-e5c687a46001','查询工作',2059,1,'','<!--/js/Control/DropDown/DropDown.js-->
<script type="text/javascript" language="JavaScript" > 
$(window).load(function(){ 
 DcxDDown.InitDDown("btn_FlowMenuNavMore", 2);
});
</script>
<script type="text/javascript" src="/js/WorkFlow/FlowRun.js"></script>','<$2059$>
EXEC [dbo].[DcxRun_WF_QueryWork]
		@SearchArea = N''{$SearchArea}'',
		@StartIndex = {$startRow},
		@EndIndex = {$endRow},
		@UserId = {$UserId},
		@DeptId = {$DeptId},
		@RangeTypeId = {@Range,1,0},
		@StartUserId = {@CreatorId,1,0},
		@getcount = 0
</$2059$>
<$2059:Count$>
EXEC	 [dbo].[DcxRun_WF_QueryWork]
		@SearchArea = N''{$SearchArea}'',
		@StartIndex = {$startRow},
		@EndIndex = {$endRow},
		@UserId = {$UserId},
		@DeptId = {$DeptId},
		@RangeTypeId = {@Range,1,0},
		@StartUserId = {@CreatorId,1,0},
		@getcount = 1
</$2059:Count$>',1,1,10,'DcxRun.ListR_2059= {"MenuId":2636,"MEntId":2059,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"查询工作","EntMsg":{"E2059":{"EntId":2059,"EntName":"查询工作","KeyFieldValue":"","DBTableName":"","KeyField":"RunId","KeydtId":2,"JoinKeyField":"RunId","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','try{
   runObj.FielDeal={"MaxDealId":14,"Ent":[{"EntId":2059,"Fld":[{"FldId":43,"Deal":[{"id":4,"cdn":[{"fid":43,"b":"","l":"==1"}],"typeId":7,"dlV":[{"fid":-1,"b":"<span style=\"color:green;\">执行中</span> ","l":""}]},{"id":6,"cdn":[{"fid":43,"b":"","l":"==5"}],"typeId":7,"dlV":[{"fid":-1,"b":"<span style=\"color:red;\">已结束</span>","l":""}]},{"id":8,"cdn":[{"fid":43,"b":" ","l":"==2"}],"typeId":7,"dlV":[{"fid":-1,"b":"<span style=\"color:#ffd700;\">已挂起</span>","l":""}]},{"id":11,"cdn":[{"fid":43,"b":"","l":"==3"}],"typeId":1,"dlV":[{"fid":-1,"b":"<span style=\"color:#696969;\">已取消</span>","l":""}]},{"id":14,"cdn":[{"fid":43,"b":"","l":"==4"}],"typeId":1,"dlV":[{"fid":-1,"b":"<span style=\"color:#a52a2a;\">已删除</span> ","l":""}]}]}],"Deal":[]}]};
 DcxReport.DealField(2059,''ListR_'',true);}
catch(err){}','','2059*RunId*2*RunId*2*WF_FlowRun*查询工作',3,'admin','2012-12-11 7:37:46',3,'','2013-12-12 3:53:05',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='f302ee7c-b5fe-41c1-402e-e5c687a46001',[ReportName]='查询工作',[ModuleId]=1,[StaticHtml]='',[DIYJsCss]='<!--/js/Control/DropDown/DropDown.js-->
<script type="text/javascript" language="JavaScript" > 
$(window).load(function(){ 
 DcxDDown.InitDDown("btn_FlowMenuNavMore", 2);
});
</script>
<script type="text/javascript" src="/js/WorkFlow/FlowRun.js"></script>',[LoadingSql]='<$2059$>
EXEC [dbo].[DcxRun_WF_QueryWork]
		@SearchArea = N''{$SearchArea}'',
		@StartIndex = {$startRow},
		@EndIndex = {$endRow},
		@UserId = {$UserId},
		@DeptId = {$DeptId},
		@RangeTypeId = {@Range,1,0},
		@StartUserId = {@CreatorId,1,0},
		@getcount = 0
</$2059$>
<$2059:Count$>
EXEC	 [dbo].[DcxRun_WF_QueryWork]
		@SearchArea = N''{$SearchArea}'',
		@StartIndex = {$startRow},
		@EndIndex = {$endRow},
		@UserId = {$UserId},
		@DeptId = {$DeptId},
		@RangeTypeId = {@Range,1,0},
		@StartUserId = {@CreatorId,1,0},
		@getcount = 1
</$2059:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=10,[AutoPublicJs]='DcxRun.ListR_2059= {"MenuId":2636,"MEntId":2059,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"查询工作","EntMsg":{"E2059":{"EntId":2059,"EntName":"查询工作","KeyFieldValue":"","DBTableName":"","KeyField":"RunId","KeydtId":2,"JoinKeyField":"RunId","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='try{
   runObj.FielDeal={"MaxDealId":14,"Ent":[{"EntId":2059,"Fld":[{"FldId":43,"Deal":[{"id":4,"cdn":[{"fid":43,"b":"","l":"==1"}],"typeId":7,"dlV":[{"fid":-1,"b":"<span style=\"color:green;\">执行中</span> ","l":""}]},{"id":6,"cdn":[{"fid":43,"b":"","l":"==5"}],"typeId":7,"dlV":[{"fid":-1,"b":"<span style=\"color:red;\">已结束</span>","l":""}]},{"id":8,"cdn":[{"fid":43,"b":" ","l":"==2"}],"typeId":7,"dlV":[{"fid":-1,"b":"<span style=\"color:#ffd700;\">已挂起</span>","l":""}]},{"id":11,"cdn":[{"fid":43,"b":"","l":"==3"}],"typeId":1,"dlV":[{"fid":-1,"b":"<span style=\"color:#696969;\">已取消</span>","l":""}]},{"id":14,"cdn":[{"fid":43,"b":"","l":"==4"}],"typeId":1,"dlV":[{"fid":-1,"b":"<span style=\"color:#a52a2a;\">已删除</span> ","l":""}]}]}],"Deal":[]}]};
 DcxReport.DealField(2059,''ListR_'',true);}
catch(err){}',[AutoOtherJS]='',[OtherMsg]='2059*RunId*2*RunId*2*WF_FlowRun*查询工作',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-11 7:37:46',[EditorId]=3,[Editor]='',[EditTime]='2013-12-12 3:53:05',[AccountId]=1 where  [EntId]=2059 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='e025d69e-01c5-90ab-fa01-5e0d5ba67a6f'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(127,'e025d69e-01c5-90ab-fa01-5e0d5ba67a6f',2059,2059,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<div class="listreport">
<div class="toolbar">
<ul style="WIDTH: 902px" class="tool-ul" entid="2059" isgroup="1" groupid="2" istoolbar="1" ctrlprex="ListR_" isrple="1">
<li style="width: 64px; height: 29px; display: none; position: static;" class="tool-li" areaid="29"><a id="ListR_2059_ExportToExcelbut" class="list-bt-other" title="导   出" onclick="javascript:DcxCom.ExportExcel(2059,''ListR_'');" href="javascript:void(0);">导 出</a></li>
<li style="position: static;" class="tool-li" areaid="30"><a id="ListR_2059_refreshbut" class="list-bt-other" title="刷   新" onclick="javascript:DcxCom.ReLoad(2059,''ListR_'');" href="javascript:void(0);">刷 新</a></li><!--分页栏-->
<li style="position: static;" id="li2_ListR_2059" class="pages" areaid="31"><a id="ListR_2059_PrevPage" class="list-pages list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(2059,''ListR_'',''p'');" href="javascript:void(0);" isfirstpage="1">上一页</a> <span class="ddl_pageindex list-pagesdown"><select id="ddl_ListR_2059_PageIndex" onchange="javascript:DcxSch.GetHtml(2059,''ListR_'',''a'',this);" isddlpage="1"></select> </span><a id="ListR_2059_NextPage" class="list-pages list-nextpage" title="下一页" onclick="javascript:DcxSch.GetHtml(2059,''ListR_'',''n'');" href="javascript:void(0);" isnextpage="1">下一页</a> <span class="list-data-amount">共</span>&nbsp; <span id="ListR_2059_RecCount_lbl" class="list-data-amount" isrecortcount="1">0</span> <span class="list-data-amount">条记录</span></li></ul></div><!-- 列表主体-->
<div class="list-area dcx-scroll">
<div class="list-head">
<ul style="width: 902px;" class="list-head-ul" entid="2059" isgroup="1" groupid="3" ctrlprex="ListR_" isrple="1">
<li style="width: 120px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="33">
<div class="list-li-field"><label istitle="1">工作类别</label></div></li>
<li style="width: 180px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="34">
<div class="list-li-field"><label istitle="1">工作名称/文号</label></div></li>
<li style="width: 80px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="35">
<div class="list-li-field"><label istitle="1">发起人</label></div></li>
<li style="width: 180px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="36">
<div class="list-li-field"><label istitle="1">开始时间</label></div></li>
<li style="width: 90px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="37">
<div class="list-li-field"><label istitle="1">状态</label></div></li>
<li style="width: 170px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="38">
<div class="list-li-field"><label istitle="1">流程操作</label></div></li>
<li style="float: left; height: 30px; clear: right; position: static;" class="list-operate" areaid="40">
<div class="delete"><a class="li-item-btn btn-pink " title="删除" href="javascript:void(0);"><span class="i">删除</span></a></div></li></ul></div>
<div class="list-body">','',-1,4,-1,-1,1,'2059,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=127,[Report_EntId]=2059,[EntId]=2059,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="listreport">
<div class="toolbar">
<ul style="WIDTH: 902px" class="tool-ul" entid="2059" isgroup="1" groupid="2" istoolbar="1" ctrlprex="ListR_" isrple="1">
<li style="width: 64px; height: 29px; display: none; position: static;" class="tool-li" areaid="29"><a id="ListR_2059_ExportToExcelbut" class="list-bt-other" title="导   出" onclick="javascript:DcxCom.ExportExcel(2059,''ListR_'');" href="javascript:void(0);">导 出</a></li>
<li style="position: static;" class="tool-li" areaid="30"><a id="ListR_2059_refreshbut" class="list-bt-other" title="刷   新" onclick="javascript:DcxCom.ReLoad(2059,''ListR_'');" href="javascript:void(0);">刷 新</a></li><!--分页栏-->
<li style="position: static;" id="li2_ListR_2059" class="pages" areaid="31"><a id="ListR_2059_PrevPage" class="list-pages list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(2059,''ListR_'',''p'');" href="javascript:void(0);" isfirstpage="1">上一页</a> <span class="ddl_pageindex list-pagesdown"><select id="ddl_ListR_2059_PageIndex" onchange="javascript:DcxSch.GetHtml(2059,''ListR_'',''a'',this);" isddlpage="1"></select> </span><a id="ListR_2059_NextPage" class="list-pages list-nextpage" title="下一页" onclick="javascript:DcxSch.GetHtml(2059,''ListR_'',''n'');" href="javascript:void(0);" isnextpage="1">下一页</a> <span class="list-data-amount">共</span>&nbsp; <span id="ListR_2059_RecCount_lbl" class="list-data-amount" isrecortcount="1">0</span> <span class="list-data-amount">条记录</span></li></ul></div><!-- 列表主体-->
<div class="list-area dcx-scroll">
<div class="list-head">
<ul style="width: 902px;" class="list-head-ul" entid="2059" isgroup="1" groupid="3" ctrlprex="ListR_" isrple="1">
<li style="width: 120px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="33">
<div class="list-li-field"><label istitle="1">工作类别</label></div></li>
<li style="width: 180px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="34">
<div class="list-li-field"><label istitle="1">工作名称/文号</label></div></li>
<li style="width: 80px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="35">
<div class="list-li-field"><label istitle="1">发起人</label></div></li>
<li style="width: 180px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="36">
<div class="list-li-field"><label istitle="1">开始时间</label></div></li>
<li style="width: 90px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="37">
<div class="list-li-field"><label istitle="1">状态</label></div></li>
<li style="width: 170px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="38">
<div class="list-li-field"><label istitle="1">流程操作</label></div></li>
<li style="float: left; height: 30px; clear: right; position: static;" class="list-operate" areaid="40">
<div class="delete"><a class="li-item-btn btn-pink " title="删除" href="javascript:void(0);"><span class="i">删除</span></a></div></li></ul></div>
<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2059,' where  [FldUId]='e025d69e-01c5-90ab-fa01-5e0d5ba67a6f' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='22bbba5a-7b2f-508d-be7c-bc605c434961'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(96,'22bbba5a-7b2f-508d-be7c-bc605c434961',2059,2059,'00000000-0000-0000-0000-000000000000',3,'FlowId',2,1,'int',1,1,0,'','','','style="width: 902px;" class="list-body-ul" isgroup="1" groupid="4" isrple="1">
<li style="width: 120px; float: left; height: 40px; clear: none; position: static;" class="list-body-li" areaid="42">
<div style="PADDING-TOP: 4px" class="list-li-field"><a class="a" title="查看流程图" onclick="javascript:DcxCom.ShowWfDlgChart
(','',42,4,-1,-1,1,'2059,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=96,[Report_EntId]=2059,[EntId]=2059,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='FlowId',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='style="width: 902px;" class="list-body-ul" isgroup="1" groupid="4" isrple="1">
<li style="width: 120px; float: left; height: 40px; clear: none; position: static;" class="list-body-li" areaid="42">
<div style="PADDING-TOP: 4px" class="list-li-field"><a class="a" title="查看流程图" onclick="javascript:DcxCom.ShowWfDlgChart
(',[LastHtml]='',[RowIndex]=42,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2059,' where  [FldUId]='22bbba5a-7b2f-508d-be7c-bc605c434961' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='f4999009-0078-8bc8-00c5-08f5b771497a'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'f4999009-0078-8bc8-00c5-08f5b771497a',2059,2059,'00000000-0000-0000-0000-000000000000',4,'FlowName',3,1,'varchar',2,1,0,'','','',', false,this);"><span columntypeid="1" fieldname="FlowName" entid="2059" isfield="1" fldid="8" class="form-ctr">','',-1,4,-1,-1,1,'2059,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=8,[Report_EntId]=2059,[EntId]=2059,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=4,[FieldName]='FlowName',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=', false,this);"><span columntypeid="1" fieldname="FlowName" entid="2059" isfield="1" fldid="8" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2059,' where  [FldUId]='f4999009-0078-8bc8-00c5-08f5b771497a' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='b867403b-acf4-f03b-0f4a-f36c091d9f2e'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'b867403b-acf4-f03b-0f4a-f36c091d9f2e',2059,2059,'00000000-0000-0000-0000-000000000000',2,'RunName',4,1,'varchar',2,1,0,'','','','</span> </a></div></li>
<li style="width: 180px; float: left; height: 40px; clear: none; overflow: hidden; position: static;" class="list-body-li" areaid="43">
<div style="PADDING-TOP: 4px" class="list-li-field"><a class="a" title="查看表单明细" onclick="javascript:WfRun.ShowFormDetailDlg(null,2059,''ListR_'',null,this);" href="javascript:void(0);"><span columntypeid="1" fieldname="RunName" entid="2059" isfield="1" fldid="9" class="form-ctr">','',-1,4,-1,-1,1,'2059,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=9,[Report_EntId]=2059,[EntId]=2059,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='RunName',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> </a></div></li>
<li style="width: 180px; float: left; height: 40px; clear: none; overflow: hidden; position: static;" class="list-body-li" areaid="43">
<div style="PADDING-TOP: 4px" class="list-li-field"><a class="a" title="查看表单明细" onclick="javascript:WfRun.ShowFormDetailDlg(null,2059,''ListR_'',null,this);" href="javascript:void(0);"><span columntypeid="1" fieldname="RunName" entid="2059" isfield="1" fldid="9" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2059,' where  [FldUId]='b867403b-acf4-f03b-0f4a-f36c091d9f2e' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='d0b18ac7-2760-b83f-8c7b-ed77f7323406'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'d0b18ac7-2760-b83f-8c7b-ed77f7323406',2059,2059,'00000000-0000-0000-0000-000000000000',9,'CreatorName',5,1,'varchar',2,1,0,'','','','</span> </a></div></li>
<li style="width: 80px; float: left; height: 40px; clear: none; position: static;" class="list-body-li" areaid="44">
<div style="PADDING-TOP: 4px" class="list-li-field"><a class="a" title="查看发起人的信息" onclick="javascript:WfRun.ShowStartUserMsgDlg(null,2059,''ListR_'',null,this);" href="javascript:void(0);"><span columntypeid="1" fieldname="CreatorName" entid="2059" isfield="1" fldid="10" class="form-ctr">','',-1,4,-1,-1,1,'2059,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=10,[Report_EntId]=2059,[EntId]=2059,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=9,[FieldName]='CreatorName',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> </a></div></li>
<li style="width: 80px; float: left; height: 40px; clear: none; position: static;" class="list-body-li" areaid="44">
<div style="PADDING-TOP: 4px" class="list-li-field"><a class="a" title="查看发起人的信息" onclick="javascript:WfRun.ShowStartUserMsgDlg(null,2059,''ListR_'',null,this);" href="javascript:void(0);"><span columntypeid="1" fieldname="CreatorName" entid="2059" isfield="1" fldid="10" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2059,' where  [FldUId]='d0b18ac7-2760-b83f-8c7b-ed77f7323406' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='6088599e-7e18-eede-a124-505361627f76'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(42,'6088599e-7e18-eede-a124-505361627f76',2059,2059,'00000000-0000-0000-0000-000000000000',23,'CreateTime',6,1,'datetime',3,1,0,'','','','</span> </a></div></li>
<li style="width: 180px; float: left; height: 40px; clear: none; position: static;" class="list-body-li" areaid="45">
<div style="PADDING-TOP: 4px" class="list-li-field"><span columntypeid="1" fieldname="CreateTime" entid="2059" isfield="1" fldid="42" class="form-ctr">','',-1,4,-1,-1,1,'2059,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=42,[Report_EntId]=2059,[EntId]=2059,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=23,[FieldName]='CreateTime',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='datetime',[FieldDataTypeId]=3,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> </a></div></li>
<li style="width: 180px; float: left; height: 40px; clear: none; position: static;" class="list-body-li" areaid="45">
<div style="PADDING-TOP: 4px" class="list-li-field"><span columntypeid="1" fieldname="CreateTime" entid="2059" isfield="1" fldid="42" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2059,' where  [FldUId]='6088599e-7e18-eede-a124-505361627f76' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='cf06f011-1b80-584c-3e9f-92a79d9ccede'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(43,'cf06f011-1b80-584c-3e9f-92a79d9ccede',2059,2059,'00000000-0000-0000-0000-000000000000',10,'FinishFlag',7,1,'int',1,1,0,'','','','</span> </div></li>
<li style="position: static; width: 90px; float: left; height: 40px; clear: none;" class="list-body-li" areaid="46">
<div style="PADDING-TOP: 4px" class="list-li-field"><span columntypeid="1" fieldname="FinishFlag" entid="2059" isfield="1" fldid="43" class="form-ctr" style="display: none;">','',-1,4,-1,-1,1,'2059,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=43,[Report_EntId]=2059,[EntId]=2059,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=10,[FieldName]='FinishFlag',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> </div></li>
<li style="position: static; width: 90px; float: left; height: 40px; clear: none;" class="list-body-li" areaid="46">
<div style="PADDING-TOP: 4px" class="list-li-field"><span columntypeid="1" fieldname="FinishFlag" entid="2059" isfield="1" fldid="43" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2059,' where  [FldUId]='cf06f011-1b80-584c-3e9f-92a79d9ccede' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='ad9ec5cb-0ebb-e4b9-6710-7cd52a99b5c7'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(44,'ad9ec5cb-0ebb-e4b9-6710-7cd52a99b5c7',2059,2059,'00000000-0000-0000-0000-000000000000',1,'RunId',8,1,'int',1,1,0,'','','','</span> </div></li>
<li style="width: 170px; float: left; height: 40px; clear: none; position: static;" class="list-body-li" areaid="47">
<div class="list-li-field"><span columntypeid="1" fieldname="RunId" entid="2059" isfield="1" fldid="44" class="form-ctr" style="display: none;">','',47,4,-1,-1,1,'2059,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=44,[Report_EntId]=2059,[EntId]=2059,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=1,[FieldName]='RunId',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> </div></li>
<li style="width: 170px; float: left; height: 40px; clear: none; position: static;" class="list-body-li" areaid="47">
<div class="list-li-field"><span columntypeid="1" fieldname="RunId" entid="2059" isfield="1" fldid="44" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=47,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2059,' where  [FldUId]='ad9ec5cb-0ebb-e4b9-6710-7cd52a99b5c7' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='af21b846-db84-781a-a337-4f4631ab66be'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(45,'af21b846-db84-781a-a337-4f4631ab66be',2059,2059,'00000000-0000-0000-0000-000000000000',3,'FlowId',9,1,'int',1,1,0,'','','','</span> <span columntypeid="1" fieldname="FlowId" entid="2059" isfield="1" fldid="45" class="form-ctr" style="display: none;">','',47,4,-1,-1,1,'2059,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=45,[Report_EntId]=2059,[EntId]=2059,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='FlowId',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> <span columntypeid="1" fieldname="FlowId" entid="2059" isfield="1" fldid="45" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=47,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2059,' where  [FldUId]='af21b846-db84-781a-a337-4f4631ab66be' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='02c8effd-ba0b-661b-6eaa-1ac004b0c1d8'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(46,'02c8effd-ba0b-661b-6eaa-1ac004b0c1d8',2059,2059,'00000000-0000-0000-0000-000000000000',22,'CreatorId',10,1,'int',1,1,0,'','','','</span> <span columntypeid="1" fieldname="CreatorId" entid="2059" isfield="1" fldid="46" class="form-ctr" style="display: none;">','',47,4,-1,-1,1,'2059,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=46,[Report_EntId]=2059,[EntId]=2059,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=22,[FieldName]='CreatorId',[FieldNO]=10,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> <span columntypeid="1" fieldname="CreatorId" entid="2059" isfield="1" fldid="46" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=47,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2059,' where  [FldUId]='02c8effd-ba0b-661b-6eaa-1ac004b0c1d8' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='ebac4dbd-2ee0-c305-29e8-75768a7b00d2'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(66,'ebac4dbd-2ee0-c305-29e8-75768a7b00d2',2059,2059,'00000000-0000-0000-0000-000000000000',3,'FlowId',11,1,'int',1,1,0,'','','','</span> <a style="PADDING-BOTTOM: 0px; PADDING-LEFT: 15px; PADDING-RIGHT: 15px; FLOAT: right; PADDING-TOP: 0px" id="btn_FlowMenu" class="f_hot_op_bt f_hot_op_bt2" onclick="javascript:DcxDDown.ShowDDown(this);" href="javascript:void(0);" isclick="1"><span style="LINE-HEIGHT: 25px" class="op_bt_i">更多..</span></a><a style="PADDING-BOTTOM: 0px; PADDING-LEFT: 15px; PADDING-RIGHT: 15px; FLOAT: right; PADDING-TOP: 0px" class="f_hot_op_bt f_hot_op_bt1 " onclick="javascript:DcxCom.ShowWfDlgChart(','',47,4,-1,-1,1,'2059,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=66,[Report_EntId]=2059,[EntId]=2059,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='FlowId',[FieldNO]=11,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> <a style="PADDING-BOTTOM: 0px; PADDING-LEFT: 15px; PADDING-RIGHT: 15px; FLOAT: right; PADDING-TOP: 0px" id="btn_FlowMenu" class="f_hot_op_bt f_hot_op_bt2" onclick="javascript:DcxDDown.ShowDDown(this);" href="javascript:void(0);" isclick="1"><span style="LINE-HEIGHT: 25px" class="op_bt_i">更多..</span></a><a style="PADDING-BOTTOM: 0px; PADDING-LEFT: 15px; PADDING-RIGHT: 15px; FLOAT: right; PADDING-TOP: 0px" class="f_hot_op_bt f_hot_op_bt1 " onclick="javascript:DcxCom.ShowWfDlgChart(',[LastHtml]='',[RowIndex]=47,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2059,' where  [FldUId]='ebac4dbd-2ee0-c305-29e8-75768a7b00d2' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='44c2f1c7-fce3-a9d4-3966-74b729bf4a52'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(33,'44c2f1c7-fce3-a9d4-3966-74b729bf4a52',2059,2059,'00000000-0000-0000-0000-000000000000',1,'RunId',12,1,'int',1,1,0,'','','',',false);"><span style="LINE-HEIGHT: 25px" class="op_bt_i">流程图</span></a></div></li>
<li style="width: 32px; float: left; height: 40px; clear: right; position: static;" class="list-operate" areaid="49"><div class="delete">
	<a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:WfRun.DeleteRun(this,2059,''ListR_'',''','',49,4,-1,-1,1,'2059,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=33,[Report_EntId]=2059,[EntId]=2059,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=1,[FieldName]='RunId',[FieldNO]=12,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=',false);"><span style="LINE-HEIGHT: 25px" class="op_bt_i">流程图</span></a></div></li>
<li style="width: 32px; float: left; height: 40px; clear: right; position: static;" class="list-operate" areaid="49"><div class="delete">
	<a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:WfRun.DeleteRun(this,2059,''ListR_'',''',[LastHtml]='',[RowIndex]=49,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2059,' where  [FldUId]='44c2f1c7-fce3-a9d4-3966-74b729bf4a52' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='ad66c9a9-acb6-49f8-0cae-dd2e570d5f10'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(128,'ad66c9a9-acb6-49f8-0cae-dd2e570d5f10',2059,2059,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',13,-1,'varchar',2,13,0,'','','',''');"><span class="i">删除</span></a></div>
</li></ul>','</div></div></div><br>
<div isbottomhtml="1">
<div style="POSITION: absolute; WIDTH: 160px; DISPLAY: none; HEIGHT: 180px" id="btn_FlowMenuNavMore" class="drop-dialog  dropdown" top="25" moveupdown="1" left="2">
<div style="POSITION: absolute; FILTER: alpha(opacity=90) !important; WIDTH: 100%; HEIGHT: 100%; opacity: .9" class="overlay-b">
<div style="POSITION: relative" class="drop-dialog-content">
<div class="drop-dialog-bd">
<div style="DISPLAY: block" class="usercard-content">
<ul class="drop-list" ctrlprex="ListR_" isrple="1">
<li onclick="javascript:WfRun.ShowFormDetailDlg(); " style="position: static;"><a href="javascript:void(0);">表单明细</a></li>
<li onclick="javascript:WfRun.ShowStartUserMsgDlg();" style="position: static;"><a href="javascript:void(0);">发起人</a></li>
<li onclick="javascript:WfRun.ShowImprintDlg();" style="position: static;"><a href="javascript:void(0);">痕迹</a></li></ul></div></div>
<div class="arrow arrow-top">&nbsp;</div></div></div></div></div>',-1,4,-1,-1,1,'2059,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=128,[Report_EntId]=2059,[EntId]=2059,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=13,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''');"><span class="i">删除</span></a></div>
</li></ul>',[LastHtml]='</div></div></div><br>
<div isbottomhtml="1">
<div style="POSITION: absolute; WIDTH: 160px; DISPLAY: none; HEIGHT: 180px" id="btn_FlowMenuNavMore" class="drop-dialog  dropdown" top="25" moveupdown="1" left="2">
<div style="POSITION: absolute; FILTER: alpha(opacity=90) !important; WIDTH: 100%; HEIGHT: 100%; opacity: .9" class="overlay-b">
<div style="POSITION: relative" class="drop-dialog-content">
<div class="drop-dialog-bd">
<div style="DISPLAY: block" class="usercard-content">
<ul class="drop-list" ctrlprex="ListR_" isrple="1">
<li onclick="javascript:WfRun.ShowFormDetailDlg(); " style="position: static;"><a href="javascript:void(0);">表单明细</a></li>
<li onclick="javascript:WfRun.ShowStartUserMsgDlg();" style="position: static;"><a href="javascript:void(0);">发起人</a></li>
<li onclick="javascript:WfRun.ShowImprintDlg();" style="position: static;"><a href="javascript:void(0);">痕迹</a></li></ul></div></div>
<div class="arrow arrow-top">&nbsp;</div></div></div></div></div>',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2059,' where  [FldUId]='ad66c9a9-acb6-49f8-0cae-dd2e570d5f10' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=657

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=657  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(657,null,'WF_FlowRun','WF_FlowRun',1,0,0,0,0,0,45,1,3,'admin','2013-12-15 17:32:36',3,'admin','2013-12-15 17:32:36',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='WF_FlowRun',[DBTableByName]='WF_FlowRun',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=45,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:36',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:36',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=657 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19062,1,45,657,'int',1,1,1,'WF_FlowRun','RunId','RunId','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='RunId',[FieldByname]='RunId',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19063,2,45,657,'varchar',2,1,1,'WF_FlowRun','RunName','RunName','',0,0,0,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='RunName',[FieldByname]='RunName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19064,3,45,657,'int',1,1,1,'WF_FlowRun','FlowId','FlowId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='FlowId',[FieldByname]='FlowId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19065,4,45,657,'varchar',2,1,1,'WF_FlowRun','FlowName','FlowName','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='FlowName',[FieldByname]='FlowName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19066,5,45,657,'varchar',2,1,1,'WF_FlowRun','AttachmentId','AttachmentId','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='AttachmentId',[FieldByname]='AttachmentId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19067,6,45,657,'varchar',2,1,1,'WF_FlowRun','AttachmentName','AttachmentName','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='AttachmentName',[FieldByname]='AttachmentName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19068,7,45,657,'varchar',2,1,1,'WF_FlowRun','HtmlStr','HtmlStr','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='HtmlStr',[FieldByname]='HtmlStr',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19069,8,45,657,'varchar',2,1,1,'WF_FlowRun','FlowLsh','FlowLsh','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='FlowLsh',[FieldByname]='FlowLsh',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19070,9,45,657,'varchar',2,1,1,'WF_FlowRun','CreatorName','CreatorName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='CreatorName',[FieldByname]='CreatorName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19071,10,45,657,'tinyint',23,1,1,'WF_FlowRun','FinishFlag','FinishFlag','1',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='FinishFlag',[FieldByname]='FinishFlag',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19072,11,45,657,'varchar',2,1,1,'WF_FlowRun','FormItems','FormItems','',0,0,1,8000,8000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='FormItems',[FieldByname]='FormItems',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8000,[Precision]=8000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19073,12,45,657,'int',1,1,1,'WF_FlowRun','EntId','EntId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='EntId',[FieldByname]='EntId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19074,13,45,657,'varchar',2,1,1,'WF_FlowRun','EntName','EntName','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='EntName',[FieldByname]='EntName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19075,14,45,657,'varchar',2,1,1,'WF_FlowRun','DbTableName','DbTableName','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='DbTableName',[FieldByname]='DbTableName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19076,15,45,657,'varchar',2,1,1,'WF_FlowRun','KeyField','KeyField','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='KeyField',[FieldByname]='KeyField',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19077,16,45,657,'varchar',2,1,1,'WF_FlowRun','KeyFieldValue','KeyFieldValue','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='KeyFieldValue',[FieldByname]='KeyFieldValue',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19078,17,45,657,'varchar',2,1,1,'WF_FlowRun','Feedback','Feedback','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='Feedback',[FieldByname]='Feedback',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19079,18,45,657,'varchar',2,1,1,'WF_FlowRun','Feedback2','Feedback2','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='Feedback2',[FieldByname]='Feedback2',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19080,19,45,657,'bit',4,1,1,'WF_FlowRun','IsFreeFlow','IsFreeFlow','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='IsFreeFlow',[FieldByname]='IsFreeFlow',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19081,20,45,657,'bit',4,1,1,'WF_FlowRun','IsPause','IsPause','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='IsPause',[FieldByname]='IsPause',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19082,21,45,657,'bit',4,1,1,'WF_FlowRun','IsClose','IsClose','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='IsClose',[FieldByname]='IsClose',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19083,22,45,657,'int',1,1,1,'WF_FlowRun','CreatorId','CreatorId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='CreatorId',[FieldByname]='CreatorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19084,23,45,657,'datetime',3,1,1,'WF_FlowRun','CreateTime','CreateTime','',0,0,0,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='CreateTime',[FieldByname]='CreateTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19085,24,45,657,'int',1,1,1,'WF_FlowRun','EditorId','EditorId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='EditorId',[FieldByname]='EditorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19086,25,45,657,'datetime',3,1,1,'WF_FlowRun','EditTime','EditTime','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='EditTime',[FieldByname]='EditTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19087,26,45,657,'varchar',2,1,1,'WF_FlowRun','CreatorBoss','CreatorBoss','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='CreatorBoss',[FieldByname]='CreatorBoss',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=26 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=27  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19088,27,45,657,'int',1,1,1,'WF_FlowRun','PauseUserId','PauseUserId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='PauseUserId',[FieldByname]='PauseUserId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=27 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=28  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19089,28,45,657,'varchar',2,1,1,'WF_FlowRun','PauseUserName','PauseUserName','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='PauseUserName',[FieldByname]='PauseUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=28 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=29  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19090,29,45,657,'datetime',3,1,1,'WF_FlowRun','PauseDate','PauseDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='PauseDate',[FieldByname]='PauseDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=29 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=30  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19091,30,45,657,'datetime',3,1,1,'WF_FlowRun','CancelPauseDate','CancelPauseDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='CancelPauseDate',[FieldByname]='CancelPauseDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=30 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=31  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19092,31,45,657,'int',1,1,1,'WF_FlowRun','RecoverUserId','RecoverUserId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='RecoverUserId',[FieldByname]='RecoverUserId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=31 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=32  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19093,32,45,657,'varchar',2,1,1,'WF_FlowRun','RecoverUserName','RecoverUserName','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='RecoverUserName',[FieldByname]='RecoverUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=32 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=33  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19094,33,45,657,'datetime',3,1,1,'WF_FlowRun','RecoverDate','RecoverDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='RecoverDate',[FieldByname]='RecoverDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=33 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=34  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19095,34,45,657,'int',1,1,1,'WF_FlowRun','DeleteUserId','DeleteUserId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='DeleteUserId',[FieldByname]='DeleteUserId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=34 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=35  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19096,35,45,657,'varchar',2,1,1,'WF_FlowRun','DeleteUserName','DeleteUserName','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='DeleteUserName',[FieldByname]='DeleteUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=35 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=36  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19097,36,45,657,'datetime',3,1,1,'WF_FlowRun','DeleteDate','DeleteDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='DeleteDate',[FieldByname]='DeleteDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=36 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=37  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19098,37,45,657,'int',1,1,1,'WF_FlowRun','AccountId','AccountId','1',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='AccountId',[FieldByname]='AccountId',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=37 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=2805  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2805,'f0750077-4bf8-4f6c-b7ee-5c5c1b7ea796','表单汇总',2631,'/Template/default/ListReport/ListReport_Tree001.aspx',1,'/images/default.gif','/images/default.gif',7,'main',0,1,'',45,0,45,0,1,1,'2013-2-19 14:00:15','',0,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='f0750077-4bf8-4f6c-b7ee-5c5c1b7ea796',[MenuName]='表单汇总',[ParentId]=2631,[ProPath]='/Template/default/ListReport/ListReport_Tree001.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=7,[Target]='main',[IsOpen]=0,[IsHidden]=1,[Remark]='',[SSystemId]=45,[SMenuId]=0,[SystemId]=45,[EntityCount]=0,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]='2013-2-19 14:00:15',[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=2805 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=2805  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(590,2805,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=2805  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=2806  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2806,'c91cb419-bde6-412d-bfad-f6ab32e1e0eb','监控流程',2631,'/Template/default/ListReport/ListReport_Tree001.aspx',1,'/images/default.gif','/images/default.gif',6,'',0,0,'',45,0,45,1,1,1,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='c91cb419-bde6-412d-bfad-f6ab32e1e0eb',[MenuName]='监控流程',[ParentId]=2631,[ProPath]='/Template/default/ListReport/ListReport_Tree001.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=6,[Target]='',[IsOpen]=0,[IsHidden]=0,[Remark]='',[SSystemId]=45,[SMenuId]=0,[SystemId]=45,[EntityCount]=1,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=2806 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=2806  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(591,2806,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=2806  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2060  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2060,2806,'监控流程',1,657,0,'WF_FlowRun',0,0,1,45,2060,null,null,45,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=2806,[EntName]='监控流程',[MEnt]=1,[DBTableId]=657,[DBConnectId]=0,[DBTableName]='WF_FlowRun',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=45,[SEntId]=2060,[FSystemId]=null,[FEntId]=null,[SystemId]=45,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2060 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=2060

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2060  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11094,2806,2060,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=2806,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2060  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2060  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11457,-1,2060,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2060  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_MenuAppArea]  where [EntId]=2060

--Dcx_MenuAppArea

     SET IDENTITY_INSERT [Dcx_MenuAppArea] ON 
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2060  and  [ModuleTypeId]=1  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20619,45,2806,2060,13,1,1,1,1,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=45,[MenuId]=2806,[TemplateId]=13,[ModuleId]=1,[GroupId]=1,[AreaId]=1,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2060  and  [ModuleTypeId]=1 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2060  and  [ModuleTypeId]=2  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20620,45,2806,2060,13,2,9,1,2,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=45,[MenuId]=2806,[TemplateId]=13,[ModuleId]=9,[GroupId]=1,[AreaId]=2,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2060  and  [ModuleTypeId]=2 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2060  and  [ModuleTypeId]=5  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20621,45,2806,2060,13,5,25,1,3,1,'',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=45,[MenuId]=2806,[TemplateId]=13,[ModuleId]=25,[GroupId]=1,[AreaId]=3,[ShowMode]=1,[AreaUrl]='',[TaskId]=null,[AccountId]=1 where  [EntId]=2060  and  [ModuleTypeId]=5 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2060  and  [ModuleTypeId]=3  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20622,45,2806,2060,13,3,68,1,4,2,'/Template/Default/Form/AjaxForm/AjaxForm008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=45,[MenuId]=2806,[TemplateId]=13,[ModuleId]=68,[GroupId]=1,[AreaId]=4,[ShowMode]=2,[AreaUrl]='/Template/Default/Form/AjaxForm/AjaxForm008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=2060  and  [ModuleTypeId]=3 
      end
      if (select count(1) from [Dcx_MenuAppArea] where  [EntId]=2060  and  [ModuleTypeId]=16  )<1 
      begin 
           Insert into [Dcx_MenuAppArea] ([MenuModuleId],[SystemId],[MenuId],[EntId],[TemplateId],[ModuleTypeId],[ModuleId],[GroupId],[AreaId],[ShowMode],[AreaUrl],[TaskId],[AccountId])values(20623,45,2806,2060,13,16,31,1,5,2,'/Template/Default/Browse/Browse008.aspx',null,1)
      end
      else 
      begin 
           update [Dcx_MenuAppArea] set [SystemId]=45,[MenuId]=2806,[TemplateId]=13,[ModuleId]=31,[GroupId]=1,[AreaId]=5,[ShowMode]=2,[AreaUrl]='/Template/Default/Browse/Browse008.aspx',[TaskId]=null,[AccountId]=1 where  [EntId]=2060  and  [ModuleTypeId]=16 
      end

     SET IDENTITY_INSERT [Dcx_MenuAppArea] OFF 



Delete from [Dcx_SearchForm_Run]  where [EntId]=2060

--Dcx_SearchForm_Run
      if (select count(1) from [Dcx_SearchForm_Run] where  [EntId]=2060  )<1 
      begin 
           Insert into [Dcx_SearchForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[OtherMsg],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('3e845ec0-7b47-7d09-0f58-73393be2a8a3','监控流程',2060,9,'','',0,'<!--/Js/ui/jquery.ui.core.js-->
<!--/Js/ui/jquery.ui.widget.js-->
<!--/Js/ui/jquery.ui.mouse.js-->
<!--/Js/ui/jquery.ui.sortable.js-->
<script src="/Js/Control/LTreeRList/LTreeRList.js"></script>','','DcxRun.SearchF_2060= {"MenuId":2806,"MEntId":2060,"EntName":"监控流程","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2060":{"EntId":2060,"KeyFieldValue":"","DBTableName":"","KeyField":"RunId","KeydtId":2,"JoinKeyField":"RunId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_2060.EntMsg.E2060.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"WF_FlowRun","EntId":2060,"KeyField":"RunId","MKeyField":"RunId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"FlowId":{"DtId":1,"DB":1,"CId":40,"FL":4},"RunName":{"DtId":2,"DB":1,"CId":1,"FL":200},"CreatorName":{"DtId":2,"DB":1,"CId":40,"FL":50},"UserId":{"DtId":1,"DB":0,"CId":40,"FL":0}},"Data":{"Row":[]}};
}
DcxRun.SearchF_2060.EntMsg.E2060.GetDataRowModel=function()
{
    return {"FlowId":-1,"RunName":"","CreatorName":"","UserId":-1,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"RunId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_2060.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2060,''SearchF_'',buildNew,closeDlg);

}','',10,'','','','2060*RunId*2*RunId*2*WF_FlowRun*监控流程',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-11 7:51:41',3,'admin','2013-9-4 5:34:46',1)
      end
      else 
      begin 
           update [Dcx_SearchForm_Run] set [FormId]='3e845ec0-7b47-7d09-0f58-73393be2a8a3',[FormName]='监控流程',[ModuleId]=9,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<!--/Js/ui/jquery.ui.core.js-->
<!--/Js/ui/jquery.ui.widget.js-->
<!--/Js/ui/jquery.ui.mouse.js-->
<!--/Js/ui/jquery.ui.sortable.js-->
<script src="/Js/Control/LTreeRList/LTreeRList.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.SearchF_2060= {"MenuId":2806,"MEntId":2060,"EntName":"监控流程","CtrlPrex":"SearchF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2060":{"EntId":2060,"KeyFieldValue":"","DBTableName":"","KeyField":"RunId","KeydtId":2,"JoinKeyField":"RunId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":true};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.SearchF_2060.EntMsg.E2060.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"WF_FlowRun","EntId":2060,"KeyField":"RunId","MKeyField":"RunId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"FlowId":{"DtId":1,"DB":1,"CId":40,"FL":4},"RunName":{"DtId":2,"DB":1,"CId":1,"FL":200},"CreatorName":{"DtId":2,"DB":1,"CId":40,"FL":50},"UserId":{"DtId":1,"DB":0,"CId":40,"FL":0}},"Data":{"Row":[]}};
}
DcxRun.SearchF_2060.EntMsg.E2060.GetDataRowModel=function()
{
    return {"FlowId":-1,"RunName":"","CreatorName":"","UserId":-1,"Dcx_Keymsg":{"RowIx":-1,"KeyField":"RunId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.SearchF_2060.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2060,''SearchF_'',buildNew,closeDlg);

}',[LoadingSql]='',[PageSize]=10,[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[OtherMsg]='2060*RunId*2*RunId*2*WF_FlowRun*监控流程',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-11 7:51:41',[EditorId]=3,[Editor]='admin',[EditTime]='2013-9-4 5:34:46',[AccountId]=1 where  [EntId]=2060 
      end




--Dcx_SearchFormField_Run
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='9fc9c3a6-f7db-593e-78d9-318063310c3a'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'9fc9c3a6-f7db-593e-78d9-318063310c3a',2060,2060,'00000000-0000-0000-0000-000000000000',1,'=','FlowId',1,1,3,'',5,2,1,0,40,1,-1,24,1,0,'','','','','<div class="searchform">
	<ul class="search-block" groupid="1" isgroup="1" style="width: 716px;" isrple="1">
		<li areaid="5" class="search-li" scroll="no" style="width: 250px; height: 38px; position: static;"><label class="search-title pad7" fldid="1" istitle="1">工作类别</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">','','','','<div id="d2060_FlowId" class="form-ddl" style="" IsForField=1 EntId="2060" FId="1" Vtp="5" RId="2" Isc="1" CId="40" FieldName="FlowId" ><input  id="d2060_FlowId_Text" type="text" class="form-ddl-txt" readonly="readOnly"  CId="40" FId="1" Vtp="5"  RId="2" Isc="1"  style="width:130px;" onclick ="javascript:DcxTree.ShowDialogAf(this,24,2060,''FlowId'',false);" onkeyup ="javascript:DcxTree.ShowDialogAf(this,24,2060,''FlowId'',true);" value="','" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2060_FlowId_hid" type="hidden"  EntId="2060" IsField=1 DBField=1 IsPost=1 FieldName="FlowId" dType="1" Vtp="5" RDT="1" Isc="1" RId="2" CId="40" FId="1" vlk=0   TId=24  Cpre="="  value="','" />',1,-1,-1,-1,-1,0,'2060,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=1,[Form_EntId]=2060,[EntId]=2060,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[CompareOperatorType]='=',[FieldName]='FlowId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=3,[DefaultValue]='',[ValueType]=5,[RunValueType]=2,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=40,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=24,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="searchform">
	<ul class="search-block" groupid="1" isgroup="1" style="width: 716px;" isrple="1">
		<li areaid="5" class="search-li" scroll="no" style="width: 250px; height: 38px; position: static;"><label class="search-title pad7" fldid="1" istitle="1">工作类别</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2060_FlowId" class="form-ddl" style="" IsForField=1 EntId="2060" FId="1" Vtp="5" RId="2" Isc="1" CId="40" FieldName="FlowId" ><input  id="d2060_FlowId_Text" type="text" class="form-ddl-txt" readonly="readOnly"  CId="40" FId="1" Vtp="5"  RId="2" Isc="1"  style="width:130px;" onclick ="javascript:DcxTree.ShowDialogAf(this,24,2060,''FlowId'',false);" onkeyup ="javascript:DcxTree.ShowDialogAf(this,24,2060,''FlowId'',true);" value="',[CtrlbackHtml]='" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2060_FlowId_hid" type="hidden"  EntId="2060" IsField=1 DBField=1 IsPost=1 FieldName="FlowId" dType="1" Vtp="5" RDT="1" Isc="1" RId="2" CId="40" FId="1" vlk=0   TId=24  Cpre="="  value="',[CtrlLastHtml]='" />',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2060,' where  [FldUId]='9fc9c3a6-f7db-593e-78d9-318063310c3a' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='c7f86551-d89f-53f6-9b8b-de8d275a8e67'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'c7f86551-d89f-53f6-9b8b-de8d275a8e67',2060,2060,'00000000-0000-0000-0000-000000000000',2,'Like','RunName',2,2,2,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
</div>
</li>
		<li areaid="6" class="search-li" scroll="no" style="width: 230px; height: 38px; position: static;"><label class="search-title pad7" fldid="2" istitle="1">工作名称</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2060_RunName"   type="text" class="form-txt"  style="width:120px;" EntId="2060" IsField=1 DBField=1 IsPost=1 FieldName="RunName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    Cpre="Like"  value="','"/>','',1,-1,-1,-1,-1,0,'2060,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=2,[Form_EntId]=2060,[EntId]=2060,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[CompareOperatorType]='Like',[FieldName]='RunName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=2,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
		<li areaid="6" class="search-li" scroll="no" style="width: 230px; height: 38px; position: static;"><label class="search-title pad7" fldid="2" istitle="1">工作名称</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2060_RunName"   type="text" class="form-txt"  style="width:120px;" EntId="2060" IsField=1 DBField=1 IsPost=1 FieldName="RunName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    Cpre="Like"  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2060,' where  [FldUId]='c7f86551-d89f-53f6-9b8b-de8d275a8e67' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='70666f24-ec52-ae3d-ca08-3bcc571f8471'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'70666f24-ec52-ae3d-ca08-3bcc571f8471',2060,2060,'00000000-0000-0000-0000-000000000000',3,'Like','CreatorName',2,2,9,'',5,2,1,0,40,1,-1,-5,1,0,'','','','','</span>
</div>
</li>
		<li areaid="7" class="search-li" scroll="no" style="position: static; width: 230px; height: 38px; clear: none; float: left;"><label class="search-title pad7" fldid="3" istitle="1">发起人</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">','','','','<div id="d2060_CreatorName" class="form-ddl" style="" IsForField=1 EntId="2060" FId="3" Vtp="5" RId="2" Isc="1" CId="40" FieldName="CreatorName" ><input  id="d2060_CreatorName_Text" type="text" class="form-ddl-txt" readonly="readOnly"  CId="40" FId="3" Vtp="5"  RId="2" Isc="1"  style="width:120px;" onclick ="javascript:DcxTree.ShowDialogAf(this,5,2060,''CreatorName'',false);" onkeyup ="javascript:DcxTree.ShowDialogAf(this,5,2060,''CreatorName'',true);" value="','" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2060_CreatorName_hid" type="hidden"  EntId="2060" IsField=1 DBField=1 IsPost=1 FieldName="CreatorName" dType="2" Vtp="5" RDT="2" Isc="1" RId="2" CId="40" FId="3" vlk=0   TId=5  Cpre="Like"  value="','" />',1,-1,-1,-1,-1,0,'2060,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=3,[Form_EntId]=2060,[EntId]=2060,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[CompareOperatorType]='Like',[FieldName]='CreatorName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=9,[DefaultValue]='',[ValueType]=5,[RunValueType]=2,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=40,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-5,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
		<li areaid="7" class="search-li" scroll="no" style="position: static; width: 230px; height: 38px; clear: none; float: left;"><label class="search-title pad7" fldid="3" istitle="1">发起人</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2060_CreatorName" class="form-ddl" style="" IsForField=1 EntId="2060" FId="3" Vtp="5" RId="2" Isc="1" CId="40" FieldName="CreatorName" ><input  id="d2060_CreatorName_Text" type="text" class="form-ddl-txt" readonly="readOnly"  CId="40" FId="3" Vtp="5"  RId="2" Isc="1"  style="width:120px;" onclick ="javascript:DcxTree.ShowDialogAf(this,5,2060,''CreatorName'',false);" onkeyup ="javascript:DcxTree.ShowDialogAf(this,5,2060,''CreatorName'',true);" value="',[CtrlbackHtml]='" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2060_CreatorName_hid" type="hidden"  EntId="2060" IsField=1 DBField=1 IsPost=1 FieldName="CreatorName" dType="2" Vtp="5" RDT="2" Isc="1" RId="2" CId="40" FId="3" vlk=0   TId=5  Cpre="Like"  value="',[CtrlLastHtml]='" />',[IsPostToDB]=1,[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2060,' where  [FldUId]='70666f24-ec52-ae3d-ca08-3bcc571f8471' 
      end
      if (select count(1) from [Dcx_SearchFormField_Run] where  [FldUId]='431c0eb8-9c97-2b8f-55da-174d236f5493'  )<1 
      begin 
           Insert into [Dcx_SearchFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[CompareOperatorType],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[IsPostToDB],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'431c0eb8-9c97-2b8f-55da-174d236f5493',2060,2060,'00000000-0000-0000-0000-000000000000',4,'=','UserId',1,1,-1,'',5,2,1,0,40,3,-1,5,0,0,'','','','','</span>
</div>
</li><li areaid="9" class="search-li" scroll="no" style="position: static; width: 280px; height: 38px; clear: none; float: left;"><label class="search-title pad7" fldid="5" istitle="1">当前办理人</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">','</span>

</div></li><li areaid="8" class="" scroll="no" style="clear: none; float: left; width: 82px; height: 33px; position: static;">
			<div class="searchform-button " onclick="javascript:return VL_Search(2060);">
				<div class="search-btn">
					&nbsp;</div>
				<a href="javascript:void(0);" id="2060_searchBT">搜索</a></div>
		</li>
		
	</ul>
</div>
<br>','','','<div id="d2060_UserId" class="form-ddl" style="" IsForField=1 EntId="2060" FId="5" Vtp="5" RId="2" Isc="1" CId="40" FieldName="UserId" ><input  id="d2060_UserId_Text" type="text" class="form-ddl-txt" readonly="readOnly"  CId="40" FId="5" Vtp="5"  RId="2" Isc="1"  style="width:150px;" onclick ="javascript:DcxTree.ShowDialogAf(this,5,2060,''UserId'',false);" onkeyup ="javascript:DcxTree.ShowDialogAf(this,5,2060,''UserId'',true);" value="','" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2060_UserId_hid" type="hidden"  EntId="2060" IsField=1 DBField=0 IsPost=1 FieldName="UserId" dType="1" Vtp="5" RDT="1" Isc="1" RId="2" CId="40" FId="5" vlk=0   TId=5  Cpre="="  value="','" />',1,1,9,-1,-1,0,'2060,')
      end
      else 
      begin 
           update [Dcx_SearchFormField_Run] set [FldId]=5,[Form_EntId]=2060,[EntId]=2060,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=4,[CompareOperatorType]='=',[FieldName]='UserId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=2,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=40,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=5,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li areaid="9" class="search-li" scroll="no" style="position: static; width: 280px; height: 38px; clear: none; float: left;"><label class="search-title pad7" fldid="5" istitle="1">当前办理人</label>
<div class="field-content pad3">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>

</div></li><li areaid="8" class="" scroll="no" style="clear: none; float: left; width: 82px; height: 33px; position: static;">
			<div class="searchform-button " onclick="javascript:return VL_Search(2060);">
				<div class="search-btn">
					&nbsp;</div>
				<a href="javascript:void(0);" id="2060_searchBT">搜索</a></div>
		</li>
		
	</ul>
</div>
<br>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2060_UserId" class="form-ddl" style="" IsForField=1 EntId="2060" FId="5" Vtp="5" RId="2" Isc="1" CId="40" FieldName="UserId" ><input  id="d2060_UserId_Text" type="text" class="form-ddl-txt" readonly="readOnly"  CId="40" FId="5" Vtp="5"  RId="2" Isc="1"  style="width:150px;" onclick ="javascript:DcxTree.ShowDialogAf(this,5,2060,''UserId'',false);" onkeyup ="javascript:DcxTree.ShowDialogAf(this,5,2060,''UserId'',true);" value="',[CtrlbackHtml]='" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2060_UserId_hid" type="hidden"  EntId="2060" IsField=1 DBField=0 IsPost=1 FieldName="UserId" dType="1" Vtp="5" RDT="1" Isc="1" RId="2" CId="40" FId="5" vlk=0   TId=5  Cpre="="  value="',[CtrlLastHtml]='" />',[IsPostToDB]=1,[TableIndex]=1,[RowIndex]=9,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2060,' where  [FldUId]='431c0eb8-9c97-2b8f-55da-174d236f5493' 
      end



Delete from [Dcx_ListReport_Run]  where [EntId]=2060

--Dcx_ListReport_Run
      if (select count(1) from [Dcx_ListReport_Run] where  [EntId]=2060  )<1 
      begin 
           Insert into [Dcx_ListReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[DIYJsCss],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('72c7c6a3-fc77-f220-2ab0-0aaaf4f2a1ea','监控流程',2060,1,'','<!--/js/Control/DropDown/DropDown.js-->
<script type="text/javascript" language="JavaScript" > 
$(window).load(function(){ 
 DcxDDown.InitDDown("btn_FlowMenuNavMore", 2);
});
</script>
<script type="text/javascript" src="/js/WorkFlow/FlowRun.js"></script>','<$2060$>
EXEC [dbo].[DcxRun_WF_GetMyMonitorWork]
		@SearchArea = N''{$SearchArea}'',
		@StartIndex = {$startRow},
		@EndIndex = {$endRow},
		@UserId = {$UserId},
		@DeptId = {$DeptId},
		@getcount = 0
</$2060$>
<$2060:Count$>
EXEC	 [dbo].[DcxRun_WF_GetMyMonitorWork]
		@SearchArea = N''{$SearchArea}'',
		@StartIndex = {$startRow},
		@EndIndex = {$endRow},
		@UserId = {$UserId},
		@DeptId = {$DeptId},
		@getcount = 1
</$2060:Count$>',1,1,10,'DcxRun.ListR_2060= {"MenuId":2806,"MEntId":2060,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"监控流程","EntMsg":{"E2060":{"EntId":2060,"EntName":"监控流程","KeyFieldValue":"","DBTableName":"","KeyField":"RunId","KeydtId":2,"JoinKeyField":"RunId","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','try{
   runObj.FielDeal={"MaxDealId":1,"Ent":[{"EntId":2060,"Fld":[{"FldId":10,"Deal":[]}],"Deal":[]}]};
 DcxReport.DealField(2060,''ListR_'',true);}
catch(err){}','','2060*RunId*2*RunId*2*WF_FlowRun*监控流程',3,'admin','2012-12-11 7:37:53',3,'','2013-12-12 3:52:56',1)
      end
      else 
      begin 
           update [Dcx_ListReport_Run] set [ReportId]='72c7c6a3-fc77-f220-2ab0-0aaaf4f2a1ea',[ReportName]='监控流程',[ModuleId]=1,[StaticHtml]='',[DIYJsCss]='<!--/js/Control/DropDown/DropDown.js-->
<script type="text/javascript" language="JavaScript" > 
$(window).load(function(){ 
 DcxDDown.InitDDown("btn_FlowMenuNavMore", 2);
});
</script>
<script type="text/javascript" src="/js/WorkFlow/FlowRun.js"></script>',[LoadingSql]='<$2060$>
EXEC [dbo].[DcxRun_WF_GetMyMonitorWork]
		@SearchArea = N''{$SearchArea}'',
		@StartIndex = {$startRow},
		@EndIndex = {$endRow},
		@UserId = {$UserId},
		@DeptId = {$DeptId},
		@getcount = 0
</$2060$>
<$2060:Count$>
EXEC	 [dbo].[DcxRun_WF_GetMyMonitorWork]
		@SearchArea = N''{$SearchArea}'',
		@StartIndex = {$startRow},
		@EndIndex = {$endRow},
		@UserId = {$UserId},
		@DeptId = {$DeptId},
		@getcount = 1
</$2060:Count$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=10,[AutoPublicJs]='DcxRun.ListR_2060= {"MenuId":2806,"MEntId":2060,"CtrlPrex":"ListR_","AtServer":true,"MKeyFieldValue":"","ReportName":"监控流程","EntMsg":{"E2060":{"EntId":2060,"EntName":"监控流程","KeyFieldValue":"","DBTableName":"","KeyField":"RunId","KeydtId":2,"JoinKeyField":"RunId","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='try{
   runObj.FielDeal={"MaxDealId":1,"Ent":[{"EntId":2060,"Fld":[{"FldId":10,"Deal":[]}],"Deal":[]}]};
 DcxReport.DealField(2060,''ListR_'',true);}
catch(err){}',[AutoOtherJS]='',[OtherMsg]='2060*RunId*2*RunId*2*WF_FlowRun*监控流程',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-11 7:37:53',[EditorId]=3,[Editor]='',[EditTime]='2013-12-12 3:52:56',[AccountId]=1 where  [EntId]=2060 
      end




--Dcx_ListReportField_Run
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='135cbb97-56ed-340a-4ea7-6fe02448dca6'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(114,'135cbb97-56ed-340a-4ea7-6fe02448dca6',2060,2060,'00000000-0000-0000-0000-000000000000',-1,'MEntBegin',1,-1,'varchar',2,12,0,'','','','<div class="listreport">
<div class="toolbar">
<ul style="WIDTH: 932px" class="tool-ul" entid="2060" isgroup="1" groupid="2" istoolbar="1" ctrlprex="ListR_" isrple="1">
<li style="width: 64px; height: 29px; display: none; position: static;" class="tool-li" areaid="29"><a id="ListR_2060_ExportToExcelbut" class="list-bt-other" title="导   出" onclick="javascript:DcxCom.ExportExcel(2060,''ListR_'');" href="javascript:void(0);">导 出</a></li>
<li style="position: static;" class="tool-li" areaid="30"><a id="ListR_2060_refreshbut" class="list-bt-other" title="刷   新" onclick="javascript:DcxCom.ReLoad(2060,''ListR_'');" href="javascript:void(0);">刷 新</a></li><!--分页栏-->
<li style="width: 160px; height: 24px; position: static;" id="li2_ListR_2060" class="pages" areaid="31"><a id="ListR_2060_PrevPage" class="list-pages list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(2060,''ListR_'',''p'');" href="javascript:void(0);" isfirstpage="1">上一页</a> <span class="ddl_pageindex list-pagesdown"><select id="ddl_ListR_2060_PageIndex" onchange="javascript:DcxSch.GetHtml(2060,''ListR_'',''a'',this);" isddlpage="1"></select> </span><a id="ListR_2060_NextPage" class="list-pages list-nextpage" title="下一页" onclick="javascript:DcxSch.GetHtml(2060,''ListR_'',''n'');" href="javascript:void(0);" isnextpage="1">下一页</a> <span class="list-data-amount">共</span>&nbsp; <span id="ListR_2060_RecCount_lbl" class="list-data-amount" isrecortcount="1">0</span> <span class="list-data-amount">条记录</span></li></ul></div><!-- 列表主体-->
<div class="list-area dcx-scroll">
<div class="list-head">
<ul style="width: 932px;" class="list-head-ul" entid="2060" isgroup="1" groupid="3" ctrlprex="ListR_" isrple="1">
<li style="width: 120px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="33">
<div class="list-li-field"><label istitle="1">工作类别</label></div></li>
<li style="width: 200px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="34">
<div class="list-li-field"><label istitle="1">工作名称</label></div></li>
<li style="width: 80px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="35">
<div class="list-li-field"><label istitle="1">工作发起人</label></div></li>
<li style="width: 180px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="36">
<div class="list-li-field"><label istitle="1">当前步骤</label></div></li>
<li style="width: 120px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="37">
<div class="list-li-field"><label istitle="1">转交日期</label></div></li>
<li style="width: 150px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="38">
<div class="list-li-field"><label istitle="1">流程操作</label></div></li>
<li style="float: left; height: 30px; clear: right; position: static;" class="list-operate" areaid="40">
<div class="delete"><a class="li-item-btn btn-pink " title="删除" href="javascript:void(0);"><span class="i">删除</span></a></div></li></ul></div>
<div class="list-body">','',-1,4,-1,-1,1,'2060,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=114,[Report_EntId]=2060,[EntId]=2060,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntBegin',[FieldNO]=1,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=12,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="listreport">
<div class="toolbar">
<ul style="WIDTH: 932px" class="tool-ul" entid="2060" isgroup="1" groupid="2" istoolbar="1" ctrlprex="ListR_" isrple="1">
<li style="width: 64px; height: 29px; display: none; position: static;" class="tool-li" areaid="29"><a id="ListR_2060_ExportToExcelbut" class="list-bt-other" title="导   出" onclick="javascript:DcxCom.ExportExcel(2060,''ListR_'');" href="javascript:void(0);">导 出</a></li>
<li style="position: static;" class="tool-li" areaid="30"><a id="ListR_2060_refreshbut" class="list-bt-other" title="刷   新" onclick="javascript:DcxCom.ReLoad(2060,''ListR_'');" href="javascript:void(0);">刷 新</a></li><!--分页栏-->
<li style="width: 160px; height: 24px; position: static;" id="li2_ListR_2060" class="pages" areaid="31"><a id="ListR_2060_PrevPage" class="list-pages list-prepage" title="上一页" onclick="javascript:DcxSch.GetHtml(2060,''ListR_'',''p'');" href="javascript:void(0);" isfirstpage="1">上一页</a> <span class="ddl_pageindex list-pagesdown"><select id="ddl_ListR_2060_PageIndex" onchange="javascript:DcxSch.GetHtml(2060,''ListR_'',''a'',this);" isddlpage="1"></select> </span><a id="ListR_2060_NextPage" class="list-pages list-nextpage" title="下一页" onclick="javascript:DcxSch.GetHtml(2060,''ListR_'',''n'');" href="javascript:void(0);" isnextpage="1">下一页</a> <span class="list-data-amount">共</span>&nbsp; <span id="ListR_2060_RecCount_lbl" class="list-data-amount" isrecortcount="1">0</span> <span class="list-data-amount">条记录</span></li></ul></div><!-- 列表主体-->
<div class="list-area dcx-scroll">
<div class="list-head">
<ul style="width: 932px;" class="list-head-ul" entid="2060" isgroup="1" groupid="3" ctrlprex="ListR_" isrple="1">
<li style="width: 120px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="33">
<div class="list-li-field"><label istitle="1">工作类别</label></div></li>
<li style="width: 200px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="34">
<div class="list-li-field"><label istitle="1">工作名称</label></div></li>
<li style="width: 80px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="35">
<div class="list-li-field"><label istitle="1">工作发起人</label></div></li>
<li style="width: 180px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="36">
<div class="list-li-field"><label istitle="1">当前步骤</label></div></li>
<li style="width: 120px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="37">
<div class="list-li-field"><label istitle="1">转交日期</label></div></li>
<li style="width: 150px; float: left; height: 30px; clear: none; position: static;" class="list-head-li" areaid="38">
<div class="list-li-field"><label istitle="1">流程操作</label></div></li>
<li style="float: left; height: 30px; clear: right; position: static;" class="list-operate" areaid="40">
<div class="delete"><a class="li-item-btn btn-pink " title="删除" href="javascript:void(0);"><span class="i">删除</span></a></div></li></ul></div>
<div class="list-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2060,' where  [FldUId]='135cbb97-56ed-340a-4ea7-6fe02448dca6' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='d2949858-4d4e-366d-01b4-3552401ce3a6'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(87,'d2949858-4d4e-366d-01b4-3552401ce3a6',2060,2060,'00000000-0000-0000-0000-000000000000',3,'FlowId',2,1,'int',1,1,0,'','','','style="width: 932px;" class="list-body-ul" isgroup="1" groupid="4" isrple="1">
<li style="width: 120px; float: left; height: 40px; clear: none; position: static;" class="list-body-li" areaid="42">
<div style="PADDING-TOP: 4px" class="list-li-field"><a class="a" title="查看流程图" onclick="javascript:DcxCom.ShowWfDlgChart
(','',42,4,-1,-1,1,'2060,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=87,[Report_EntId]=2060,[EntId]=2060,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='FlowId',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='style="width: 932px;" class="list-body-ul" isgroup="1" groupid="4" isrple="1">
<li style="width: 120px; float: left; height: 40px; clear: none; position: static;" class="list-body-li" areaid="42">
<div style="PADDING-TOP: 4px" class="list-li-field"><a class="a" title="查看流程图" onclick="javascript:DcxCom.ShowWfDlgChart
(',[LastHtml]='',[RowIndex]=42,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2060,' where  [FldUId]='d2949858-4d4e-366d-01b4-3552401ce3a6' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='b0ec60c6-9e5e-c072-8a4c-12f3d1aad109'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'b0ec60c6-9e5e-c072-8a4c-12f3d1aad109',2060,2060,'00000000-0000-0000-0000-000000000000',4,'FlowName',3,1,'varchar',2,1,0,'','','',', false,this);"><span columntypeid="1" fieldname="FlowName" entid="2060" isfield="1" fldid="10" class="form-ctr">','',-1,4,-1,-1,1,'2060,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=10,[Report_EntId]=2060,[EntId]=2060,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=4,[FieldName]='FlowName',[FieldNO]=3,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=', false,this);"><span columntypeid="1" fieldname="FlowName" entid="2060" isfield="1" fldid="10" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2060,' where  [FldUId]='b0ec60c6-9e5e-c072-8a4c-12f3d1aad109' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='2234c5d9-5deb-199e-a73c-e84781ef810a'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'2234c5d9-5deb-199e-a73c-e84781ef810a',2060,2060,'00000000-0000-0000-0000-000000000000',2,'RunName',4,1,'varchar',2,1,0,'','','','</span> </a></div></li>
<li style="width: 200px; float: left; height: 40px; clear: none; overflow: hidden; position: static;" class="list-body-li" areaid="43">
<div style="PADDING-TOP: 4px" class="list-li-field"><a class="a" title="查看表单明细" onclick="javascript:WfRun.ShowFormDetailDlg(null,2060,''ListR_'',null,this);" href="javascript:void(0);"><span columntypeid="1" fieldname="RunName" entid="2060" isfield="1" fldid="11" class="form-ctr">','',-1,4,-1,-1,1,'2060,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=11,[Report_EntId]=2060,[EntId]=2060,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='RunName',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> </a></div></li>
<li style="width: 200px; float: left; height: 40px; clear: none; overflow: hidden; position: static;" class="list-body-li" areaid="43">
<div style="PADDING-TOP: 4px" class="list-li-field"><a class="a" title="查看表单明细" onclick="javascript:WfRun.ShowFormDetailDlg(null,2060,''ListR_'',null,this);" href="javascript:void(0);"><span columntypeid="1" fieldname="RunName" entid="2060" isfield="1" fldid="11" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2060,' where  [FldUId]='2234c5d9-5deb-199e-a73c-e84781ef810a' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='78e2f48b-4fff-8fe5-57b5-4b086ca733b1'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(12,'78e2f48b-4fff-8fe5-57b5-4b086ca733b1',2060,2060,'00000000-0000-0000-0000-000000000000',9,'CreatorName',5,1,'varchar',2,1,0,'','','','</span> </a></div></li>
<li style="width: 80px; float: left; height: 40px; clear: none; position: static;" class="list-body-li" areaid="44">
<div style="PADDING-TOP: 4px" class="list-li-field"><a class="a" title="查看发起人的信息" onclick="javascript:WfRun.ShowStartUserMsgDlg(null,2060,''ListR_'',null,this);" href="javascript:void(0);"><span columntypeid="1" fieldname="CreatorName" entid="2060" isfield="1" fldid="12" class="form-ctr">','',-1,4,-1,-1,1,'2060,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=12,[Report_EntId]=2060,[EntId]=2060,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=9,[FieldName]='CreatorName',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> </a></div></li>
<li style="width: 80px; float: left; height: 40px; clear: none; position: static;" class="list-body-li" areaid="44">
<div style="PADDING-TOP: 4px" class="list-li-field"><a class="a" title="查看发起人的信息" onclick="javascript:WfRun.ShowStartUserMsgDlg(null,2060,''ListR_'',null,this);" href="javascript:void(0);"><span columntypeid="1" fieldname="CreatorName" entid="2060" isfield="1" fldid="12" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2060,' where  [FldUId]='78e2f48b-4fff-8fe5-57b5-4b086ca733b1' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='db09ff90-7e57-bfd8-e2d9-51573fc7adcb'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(15,'db09ff90-7e57-bfd8-e2d9-51573fc7adcb',2060,2060,'00000000-0000-0000-0000-000000000000',-1,'CurrentStep',6,1,'varchar',2,1,0,'','','','</span> </a></div></li>
<li style="width: 180px; float: left; height: 40px; clear: none; position: static;" class="list-body-li" areaid="45">
<div style="PADDING-TOP: 4px" class="list-li-field"><a class="a" title="查看历史痕迹" onclick="javascript:WfRun.ShowImprintDlg(null,2060,''ListR_'',null,this);" href="javascript:void(0);"><span columntypeid="1" fieldname="CurrentStep" entid="2060" isfield="1" fldid="15" class="form-ctr">','',45,4,-1,-1,1,'2060,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=15,[Report_EntId]=2060,[EntId]=2060,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='CurrentStep',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> </a></div></li>
<li style="width: 180px; float: left; height: 40px; clear: none; position: static;" class="list-body-li" areaid="45">
<div style="PADDING-TOP: 4px" class="list-li-field"><a class="a" title="查看历史痕迹" onclick="javascript:WfRun.ShowImprintDlg(null,2060,''ListR_'',null,this);" href="javascript:void(0);"><span columntypeid="1" fieldname="CurrentStep" entid="2060" isfield="1" fldid="15" class="form-ctr">',[LastHtml]='',[RowIndex]=45,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2060,' where  [FldUId]='db09ff90-7e57-bfd8-e2d9-51573fc7adcb' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='bb03469a-46d0-825d-8e72-17dba752870b'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(18,'bb03469a-46d0-825d-8e72-17dba752870b',2060,2060,'00000000-0000-0000-0000-000000000000',-1,'DeliverTime',7,1,'varchar',2,1,0,'','','','</span> </a></div></li>
<li style="width: 120px; float: left; height: 40px; clear: none; position: static;" class="list-body-li" areaid="46">
<div style="PADDING-TOP: 4px" class="list-li-field"><span columntypeid="1" fieldname="DeliverTime" entid="2060" isfield="1" fldid="18" class="form-ctr">','',46,4,-1,-1,1,'2060,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=18,[Report_EntId]=2060,[EntId]=2060,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='DeliverTime',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> </a></div></li>
<li style="width: 120px; float: left; height: 40px; clear: none; position: static;" class="list-body-li" areaid="46">
<div style="PADDING-TOP: 4px" class="list-li-field"><span columntypeid="1" fieldname="DeliverTime" entid="2060" isfield="1" fldid="18" class="form-ctr">',[LastHtml]='',[RowIndex]=46,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2060,' where  [FldUId]='bb03469a-46d0-825d-8e72-17dba752870b' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='dab62602-fc36-464f-bd1f-7c22957bf828'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(47,'dab62602-fc36-464f-bd1f-7c22957bf828',2060,2060,'00000000-0000-0000-0000-000000000000',1,'RunId',8,1,'int',1,1,0,'','','','</span> </div></li>
<li style="position: static; width: 150px; float: left; height: 40px; clear: none;" class="list-body-li" areaid="47">
<div class="list-li-field"><span columntypeid="1" fieldname="RunId" entid="2060" isfield="1" fldid="47" class="form-ctr" style="display: none;">','',47,4,-1,-1,1,'2060,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=47,[Report_EntId]=2060,[EntId]=2060,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=1,[FieldName]='RunId',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> </div></li>
<li style="position: static; width: 150px; float: left; height: 40px; clear: none;" class="list-body-li" areaid="47">
<div class="list-li-field"><span columntypeid="1" fieldname="RunId" entid="2060" isfield="1" fldid="47" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=47,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2060,' where  [FldUId]='dab62602-fc36-464f-bd1f-7c22957bf828' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='a0dcf841-847a-a9c5-8fed-c3c74aa1b53e'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(48,'a0dcf841-847a-a9c5-8fed-c3c74aa1b53e',2060,2060,'00000000-0000-0000-0000-000000000000',3,'FlowId',9,1,'int',1,1,0,'','','','</span> <span columntypeid="1" fieldname="FlowId" entid="2060" isfield="1" fldid="48" class="form-ctr" style="display: none;">','',47,4,-1,-1,1,'2060,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=48,[Report_EntId]=2060,[EntId]=2060,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='FlowId',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> <span columntypeid="1" fieldname="FlowId" entid="2060" isfield="1" fldid="48" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=47,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2060,' where  [FldUId]='a0dcf841-847a-a9c5-8fed-c3c74aa1b53e' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='79792f29-e27e-ed36-60cc-37c450e05ee4'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(49,'79792f29-e27e-ed36-60cc-37c450e05ee4',2060,2060,'00000000-0000-0000-0000-000000000000',-1,'PrcsId',10,1,'varchar',2,1,0,'','','','</span> <span columntypeid="1" fieldname="PrcsId" entid="2060" isfield="1" fldid="49" class="form-ctr" style="display: none;">','',47,4,-1,-1,1,'2060,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=49,[Report_EntId]=2060,[EntId]=2060,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='PrcsId',[FieldNO]=10,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> <span columntypeid="1" fieldname="PrcsId" entid="2060" isfield="1" fldid="49" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=47,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2060,' where  [FldUId]='79792f29-e27e-ed36-60cc-37c450e05ee4' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='d167672e-3439-02ee-44c5-8a7acf8f260c'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(50,'d167672e-3439-02ee-44c5-8a7acf8f260c',2060,2060,'00000000-0000-0000-0000-000000000000',-1,'NodeId',11,1,'varchar',2,1,0,'','','','</span> <span columntypeid="1" fieldname="NodeId" entid="2060" isfield="1" fldid="50" class="form-ctr" style="display: none;">','',47,4,-1,-1,1,'2060,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=50,[Report_EntId]=2060,[EntId]=2060,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='NodeId',[FieldNO]=11,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> <span columntypeid="1" fieldname="NodeId" entid="2060" isfield="1" fldid="50" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=47,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2060,' where  [FldUId]='d167672e-3439-02ee-44c5-8a7acf8f260c' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='fe99b4ad-2be0-1c1d-9a87-a9b01456e7c4'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(51,'fe99b4ad-2be0-1c1d-9a87-a9b01456e7c4',2060,2060,'00000000-0000-0000-0000-000000000000',22,'CreatorId',12,1,'int',1,1,0,'','','','</span> <span columntypeid="1" fieldname="CreatorId" entid="2060" isfield="1" fldid="51" class="form-ctr" style="display: none;">','',47,4,-1,-1,1,'2060,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=51,[Report_EntId]=2060,[EntId]=2060,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=22,[FieldName]='CreatorId',[FieldNO]=12,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> <span columntypeid="1" fieldname="CreatorId" entid="2060" isfield="1" fldid="51" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=47,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2060,' where  [FldUId]='fe99b4ad-2be0-1c1d-9a87-a9b01456e7c4' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='07df62ac-a3d6-8cb0-6150-d9061cb785a3'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(52,'07df62ac-a3d6-8cb0-6150-d9061cb785a3',2060,2060,'00000000-0000-0000-0000-000000000000',-1,'NodeName',13,1,'varchar',2,1,0,'','','','</span> <span columntypeid="1" fieldname="NodeName" entid="2060" isfield="1" fldid="52" class="form-ctr" style="display: none;">','',47,4,-1,-1,1,'2060,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=52,[Report_EntId]=2060,[EntId]=2060,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='NodeName',[FieldNO]=13,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> <span columntypeid="1" fieldname="NodeName" entid="2060" isfield="1" fldid="52" class="form-ctr" style="display: none;">',[LastHtml]='',[RowIndex]=47,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2060,' where  [FldUId]='07df62ac-a3d6-8cb0-6150-d9061cb785a3' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='ad55eba4-ee18-ae5a-4b95-10f0a4f1c934'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(53,'ad55eba4-ee18-ae5a-4b95-10f0a4f1c934',2060,2060,'00000000-0000-0000-0000-000000000000',1,'RunId',14,1,'int',1,1,0,'','','','</span> <a style="PADDING-BOTTOM: 0px; PADDING-LEFT: 15px; PADDING-RIGHT: 15px; FLOAT: right; PADDING-TOP: 0px" id="btn_FlowMenu" class="f_hot_op_bt f_hot_op_bt2" onclick="javascript:DcxDDown.ShowDDown(this);" href="javascript:void(0);" isclick="1"><span style="LINE-HEIGHT: 25px" class="op_bt_i">更多..</span></a><a style="PADDING-BOTTOM: 0px; PADDING-LEFT: 15px; PADDING-RIGHT: 15px; FLOAT: right; PADDING-TOP: 0px" class="f_hot_op_bt f_hot_op_bt1 " onclick="javascript:WfRun.GoToDealWf(this,','',47,4,-1,-1,1,'2060,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=53,[Report_EntId]=2060,[EntId]=2060,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=1,[FieldName]='RunId',[FieldNO]=14,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span> <a style="PADDING-BOTTOM: 0px; PADDING-LEFT: 15px; PADDING-RIGHT: 15px; FLOAT: right; PADDING-TOP: 0px" id="btn_FlowMenu" class="f_hot_op_bt f_hot_op_bt2" onclick="javascript:DcxDDown.ShowDDown(this);" href="javascript:void(0);" isclick="1"><span style="LINE-HEIGHT: 25px" class="op_bt_i">更多..</span></a><a style="PADDING-BOTTOM: 0px; PADDING-LEFT: 15px; PADDING-RIGHT: 15px; FLOAT: right; PADDING-TOP: 0px" class="f_hot_op_bt f_hot_op_bt1 " onclick="javascript:WfRun.GoToDealWf(this,',[LastHtml]='',[RowIndex]=47,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2060,' where  [FldUId]='ad55eba4-ee18-ae5a-4b95-10f0a4f1c934' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='2eb62f87-38cf-268d-7ee2-8c63bb23c780'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(54,'2eb62f87-38cf-268d-7ee2-8c63bb23c780',2060,2060,'00000000-0000-0000-0000-000000000000',3,'FlowId',15,1,'int',1,1,0,'','','',',','',47,4,-1,-1,1,'2060,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=54,[Report_EntId]=2060,[EntId]=2060,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='FlowId',[FieldNO]=15,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=',',[LastHtml]='',[RowIndex]=47,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2060,' where  [FldUId]='2eb62f87-38cf-268d-7ee2-8c63bb23c780' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='a3b5e68c-7f2e-4043-9c50-d88bac0aa681'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(55,'a3b5e68c-7f2e-4043-9c50-d88bac0aa681',2060,2060,'00000000-0000-0000-0000-000000000000',-1,'PrcsId',16,1,'varchar',2,1,0,'','','',',','',47,4,-1,-1,1,'2060,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=55,[Report_EntId]=2060,[EntId]=2060,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='PrcsId',[FieldNO]=16,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=',',[LastHtml]='',[RowIndex]=47,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2060,' where  [FldUId]='a3b5e68c-7f2e-4043-9c50-d88bac0aa681' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='a38e46c8-96ca-f7fd-d977-161b31e4771b'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(36,'a38e46c8-96ca-f7fd-d977-161b31e4771b',2060,2060,'00000000-0000-0000-0000-000000000000',1,'RunId',17,1,'int',1,1,0,'','','',',false,2056,''ListR_'');"><span style="LINE-HEIGHT: 25px" class="op_bt_i">催办</span></a></div></li>
<li style="width: 32px; float: left; height: 40px; clear: right; position: static;" class="list-operate" areaid="49"><div class="delete">
	<a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:WfRun.DeleteRun(this,2060,''ListR_'',''','',49,4,-1,-1,1,'2060,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=36,[Report_EntId]=2060,[EntId]=2060,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=1,[FieldName]='RunId',[FieldNO]=17,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=',false,2056,''ListR_'');"><span style="LINE-HEIGHT: 25px" class="op_bt_i">催办</span></a></div></li>
<li style="width: 32px; float: left; height: 40px; clear: right; position: static;" class="list-operate" areaid="49"><div class="delete">
	<a class="li-item-btn  J_Comp" href="javascript:void(0);" onclick="javascript:WfRun.DeleteRun(this,2060,''ListR_'',''',[LastHtml]='',[RowIndex]=49,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2060,' where  [FldUId]='a38e46c8-96ca-f7fd-d977-161b31e4771b' 
      end
      if (select count(1) from [Dcx_ListReportField_Run] where  [FldUId]='dd2bde98-9234-8418-5ddc-0e220ceee072'  )<1 
      begin 
           Insert into [Dcx_ListReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(115,'dd2bde98-9234-8418-5ddc-0e220ceee072',2060,2060,'00000000-0000-0000-0000-000000000000',-1,'MEntEnd',18,-1,'varchar',2,13,0,'','','',''');"><span class="i">删除</span></a></div>
</li></ul>','</div></div></div><br>
<div isbottomhtml="1">
<div style="POSITION: absolute; WIDTH: 160px; DISPLAY: none; HEIGHT: 240px" id="btn_FlowMenuNavMore" class="drop-dialog  dropdown" top="25" moveupdown="1" left="2">
<div style="POSITION: absolute; FILTER: alpha(opacity=90) !important; WIDTH: 100%; HEIGHT: 100%; opacity: .9" class="overlay-b">
<div style="POSITION: relative" class="drop-dialog-content">
<div class="drop-dialog-bd">
<div style="DISPLAY: block" class="usercard-content">
<ul ctrlprex="ListR_" isrple="1">
<li onclick="javascript:DcxCom.ShowWfDlgChart(-1, false);" style="position: static;"><a href="javascript:void(0);">流程图</a></li>
<li onclick="javascript:WfRun.ShowFormDetailDlg(); " style="position: static;"><a href="javascript:void(0);">表单明细</a></li>
<li onclick="javascript:WfRun.ShowStartUserMsgDlg();" style="position: static;"><a href="javascript:void(0);">发起人</a></li>
<li onclick="javascript:WfRun.ShowImprintDlg();" style="position: static;"><a href="javascript:void(0);">痕迹</a></li>
<li onclick="javascript:WfRun.RemoveOneFlow(this);" style="position: static;"><a href="javascript:void(0);">删除流程</a></li></ul></div></div>
<div class="arrow arrow-top">&nbsp;</div></div></div></div></div>',-1,4,-1,-1,1,'2060,')
      end
      else 
      begin 
           update [Dcx_ListReportField_Run] set [FldId]=115,[Report_EntId]=2060,[EntId]=2060,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='MEntEnd',[FieldNO]=18,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=13,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=''');"><span class="i">删除</span></a></div>
</li></ul>',[LastHtml]='</div></div></div><br>
<div isbottomhtml="1">
<div style="POSITION: absolute; WIDTH: 160px; DISPLAY: none; HEIGHT: 240px" id="btn_FlowMenuNavMore" class="drop-dialog  dropdown" top="25" moveupdown="1" left="2">
<div style="POSITION: absolute; FILTER: alpha(opacity=90) !important; WIDTH: 100%; HEIGHT: 100%; opacity: .9" class="overlay-b">
<div style="POSITION: relative" class="drop-dialog-content">
<div class="drop-dialog-bd">
<div style="DISPLAY: block" class="usercard-content">
<ul ctrlprex="ListR_" isrple="1">
<li onclick="javascript:DcxCom.ShowWfDlgChart(-1, false);" style="position: static;"><a href="javascript:void(0);">流程图</a></li>
<li onclick="javascript:WfRun.ShowFormDetailDlg(); " style="position: static;"><a href="javascript:void(0);">表单明细</a></li>
<li onclick="javascript:WfRun.ShowStartUserMsgDlg();" style="position: static;"><a href="javascript:void(0);">发起人</a></li>
<li onclick="javascript:WfRun.ShowImprintDlg();" style="position: static;"><a href="javascript:void(0);">痕迹</a></li>
<li onclick="javascript:WfRun.RemoveOneFlow(this);" style="position: static;"><a href="javascript:void(0);">删除流程</a></li></ul></div></div>
<div class="arrow arrow-top">&nbsp;</div></div></div></div></div>',[RowIndex]=-1,[TableIndex]=4,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2060,' where  [FldUId]='dd2bde98-9234-8418-5ddc-0e220ceee072' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=657

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=657  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(657,null,'WF_FlowRun','WF_FlowRun',1,0,0,0,0,0,45,1,3,'admin','2013-12-15 17:32:36',3,'admin','2013-12-15 17:32:36',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='WF_FlowRun',[DBTableByName]='WF_FlowRun',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=45,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:36',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:36',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=657 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19062,1,45,657,'int',1,1,1,'WF_FlowRun','RunId','RunId','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='RunId',[FieldByname]='RunId',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19063,2,45,657,'varchar',2,1,1,'WF_FlowRun','RunName','RunName','',0,0,0,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='RunName',[FieldByname]='RunName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19064,3,45,657,'int',1,1,1,'WF_FlowRun','FlowId','FlowId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='FlowId',[FieldByname]='FlowId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19065,4,45,657,'varchar',2,1,1,'WF_FlowRun','FlowName','FlowName','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='FlowName',[FieldByname]='FlowName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19066,5,45,657,'varchar',2,1,1,'WF_FlowRun','AttachmentId','AttachmentId','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='AttachmentId',[FieldByname]='AttachmentId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19067,6,45,657,'varchar',2,1,1,'WF_FlowRun','AttachmentName','AttachmentName','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='AttachmentName',[FieldByname]='AttachmentName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19068,7,45,657,'varchar',2,1,1,'WF_FlowRun','HtmlStr','HtmlStr','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='HtmlStr',[FieldByname]='HtmlStr',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19069,8,45,657,'varchar',2,1,1,'WF_FlowRun','FlowLsh','FlowLsh','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='FlowLsh',[FieldByname]='FlowLsh',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19070,9,45,657,'varchar',2,1,1,'WF_FlowRun','CreatorName','CreatorName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='CreatorName',[FieldByname]='CreatorName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19071,10,45,657,'tinyint',23,1,1,'WF_FlowRun','FinishFlag','FinishFlag','1',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='FinishFlag',[FieldByname]='FinishFlag',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19072,11,45,657,'varchar',2,1,1,'WF_FlowRun','FormItems','FormItems','',0,0,1,8000,8000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='FormItems',[FieldByname]='FormItems',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8000,[Precision]=8000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19073,12,45,657,'int',1,1,1,'WF_FlowRun','EntId','EntId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='EntId',[FieldByname]='EntId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19074,13,45,657,'varchar',2,1,1,'WF_FlowRun','EntName','EntName','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='EntName',[FieldByname]='EntName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19075,14,45,657,'varchar',2,1,1,'WF_FlowRun','DbTableName','DbTableName','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='DbTableName',[FieldByname]='DbTableName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19076,15,45,657,'varchar',2,1,1,'WF_FlowRun','KeyField','KeyField','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='KeyField',[FieldByname]='KeyField',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19077,16,45,657,'varchar',2,1,1,'WF_FlowRun','KeyFieldValue','KeyFieldValue','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='KeyFieldValue',[FieldByname]='KeyFieldValue',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19078,17,45,657,'varchar',2,1,1,'WF_FlowRun','Feedback','Feedback','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='Feedback',[FieldByname]='Feedback',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19079,18,45,657,'varchar',2,1,1,'WF_FlowRun','Feedback2','Feedback2','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='Feedback2',[FieldByname]='Feedback2',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19080,19,45,657,'bit',4,1,1,'WF_FlowRun','IsFreeFlow','IsFreeFlow','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='IsFreeFlow',[FieldByname]='IsFreeFlow',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19081,20,45,657,'bit',4,1,1,'WF_FlowRun','IsPause','IsPause','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='IsPause',[FieldByname]='IsPause',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19082,21,45,657,'bit',4,1,1,'WF_FlowRun','IsClose','IsClose','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='IsClose',[FieldByname]='IsClose',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19083,22,45,657,'int',1,1,1,'WF_FlowRun','CreatorId','CreatorId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='CreatorId',[FieldByname]='CreatorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19084,23,45,657,'datetime',3,1,1,'WF_FlowRun','CreateTime','CreateTime','',0,0,0,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='CreateTime',[FieldByname]='CreateTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19085,24,45,657,'int',1,1,1,'WF_FlowRun','EditorId','EditorId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='EditorId',[FieldByname]='EditorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19086,25,45,657,'datetime',3,1,1,'WF_FlowRun','EditTime','EditTime','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='EditTime',[FieldByname]='EditTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19087,26,45,657,'varchar',2,1,1,'WF_FlowRun','CreatorBoss','CreatorBoss','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='CreatorBoss',[FieldByname]='CreatorBoss',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=26 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=27  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19088,27,45,657,'int',1,1,1,'WF_FlowRun','PauseUserId','PauseUserId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='PauseUserId',[FieldByname]='PauseUserId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=27 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=28  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19089,28,45,657,'varchar',2,1,1,'WF_FlowRun','PauseUserName','PauseUserName','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='PauseUserName',[FieldByname]='PauseUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=28 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=29  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19090,29,45,657,'datetime',3,1,1,'WF_FlowRun','PauseDate','PauseDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='PauseDate',[FieldByname]='PauseDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=29 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=30  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19091,30,45,657,'datetime',3,1,1,'WF_FlowRun','CancelPauseDate','CancelPauseDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='CancelPauseDate',[FieldByname]='CancelPauseDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=30 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=31  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19092,31,45,657,'int',1,1,1,'WF_FlowRun','RecoverUserId','RecoverUserId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='RecoverUserId',[FieldByname]='RecoverUserId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=31 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=32  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19093,32,45,657,'varchar',2,1,1,'WF_FlowRun','RecoverUserName','RecoverUserName','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='RecoverUserName',[FieldByname]='RecoverUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=32 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=33  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19094,33,45,657,'datetime',3,1,1,'WF_FlowRun','RecoverDate','RecoverDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='RecoverDate',[FieldByname]='RecoverDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=33 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=34  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19095,34,45,657,'int',1,1,1,'WF_FlowRun','DeleteUserId','DeleteUserId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='DeleteUserId',[FieldByname]='DeleteUserId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=34 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=35  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19096,35,45,657,'varchar',2,1,1,'WF_FlowRun','DeleteUserName','DeleteUserName','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='DeleteUserName',[FieldByname]='DeleteUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=35 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=36  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19097,36,45,657,'datetime',3,1,1,'WF_FlowRun','DeleteDate','DeleteDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='DeleteDate',[FieldByname]='DeleteDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=36 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=37  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19098,37,45,657,'int',1,1,1,'WF_FlowRun','AccountId','AccountId','1',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='AccountId',[FieldByname]='AccountId',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=37 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




--Dcx_Menu_Run
      if (select count(1) from [Dcx_Menu_Run] where  [MenuId]=2915  )<1 
      begin 
           Insert into [Dcx_Menu_Run] ([MenuId],[MenuUId],[MenuName],[ParentId],[ProPath],[TemplateId],[ImgPath],[ExImgPath],[OrderBy],[Target],[IsOpen],[IsHidden],[Remark],[SSystemId],[SMenuId],[SystemId],[EntityCount],[VersionId],[IsDesigning],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2915,'93aa0144-c286-41c0-bbcb-bbbc5e53325d','<font color=red>流程办理</font>',2631,'/Template/default/form/AllForm_List_Tree_Tag.aspx',1,'/images/default.gif','/images/default.gif',8,'',0,1,'',45,0,45,8,1,1,'2013-2-19 14:00:10','',0,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Menu_Run] set [MenuUId]='93aa0144-c286-41c0-bbcb-bbbc5e53325d',[MenuName]='<font color=red>流程办理</font>',[ParentId]=2631,[ProPath]='/Template/default/form/AllForm_List_Tree_Tag.aspx',[TemplateId]=1,[ImgPath]='/images/default.gif',[ExImgPath]='/images/default.gif',[OrderBy]=8,[Target]='',[IsOpen]=0,[IsHidden]=1,[Remark]='',[SSystemId]=45,[SMenuId]=0,[SystemId]=45,[EntityCount]=8,[VersionId]=1,[IsDesigning]=1,[AddDcxTime]='2013-2-19 14:00:10',[AddDcxUserName]='',[AddDcxUserId]=0,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [MenuId]=2915 
      end




--Dcx_MenuPrivilege

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] ON 
      if (select count(1) from [Dcx_MenuPrivilege] where  [MenuId]=2915  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_MenuPrivilege] ([MenuPrivilegeId],[MenuId],[MenuName],[RoleName],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[ExtendField1],[ExtendField2],[ExtendField3],[ExtendField4],[ExtendField5],[ExtendField6],[ExtendField7],[ExtendField8],[ExtendField9],[ExtendField10],[Remark],[AccountId])values(694,2915,null,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,1)
      end
      else 
      begin 
           update [Dcx_MenuPrivilege] set [MenuName]=null,[RoleName]=null,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[ExtendField1]=1,[ExtendField2]=1,[ExtendField3]=1,[ExtendField4]=1,[ExtendField5]=1,[ExtendField6]=1,[ExtendField7]=1,[ExtendField8]=1,[ExtendField9]=1,[ExtendField10]=1,[Remark]=null,[AccountId]=1 where  [MenuId]=2915  and  [RoleId]=1 
      end

     SET IDENTITY_INSERT [Dcx_MenuPrivilege] OFF 




--Dcx_Entity_Run
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2078  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2078,2915,'转交下一步',1,663,0,'WF_FlowRunPrcs',0,0,1,45,2078,null,null,45,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=2915,[EntName]='转交下一步',[MEnt]=1,[DBTableId]=663,[DBConnectId]=0,[DBTableName]='WF_FlowRunPrcs',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=45,[SEntId]=2078,[FSystemId]=null,[FEntId]=null,[SystemId]=45,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2078 
      end
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2079  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2079,2915,'选择经办人',1,1208,0,'Dcx_Common',0,0,1,45,2079,null,null,45,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=2915,[EntName]='选择经办人',[MEnt]=1,[DBTableId]=1208,[DBConnectId]=0,[DBTableName]='Dcx_Common',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=45,[SEntId]=2079,[FSystemId]=null,[FEntId]=null,[SystemId]=45,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2079 
      end
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2080  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2080,2915,'流程痕迹',1,657,0,'WF_FlowRun',0,0,1,45,2080,null,null,45,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=2915,[EntName]='流程痕迹',[MEnt]=1,[DBTableId]=657,[DBConnectId]=0,[DBTableName]='WF_FlowRun',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=45,[SEntId]=2080,[FSystemId]=null,[FEntId]=null,[SystemId]=45,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2080 
      end
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2081  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2081,2915,'节点痕迹',0,663,0,'WF_FlowRunPrcs',2080,0,1,45,2081,null,null,45,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=2915,[EntName]='节点痕迹',[MEnt]=0,[DBTableId]=663,[DBConnectId]=0,[DBTableName]='WF_FlowRunPrcs',[ParentId]=2080,[OrderBy]=0,[CheckPower]=1,[SSystemId]=45,[SEntId]=2081,[FSystemId]=null,[FEntId]=null,[SystemId]=45,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2081 
      end
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2082  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2082,2915,'驳回（作废）',1,657,0,'WF_FlowRun',0,0,1,45,2082,null,null,45,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=2915,[EntName]='驳回（作废）',[MEnt]=1,[DBTableId]=657,[DBConnectId]=0,[DBTableName]='WF_FlowRun',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=45,[SEntId]=2082,[FSystemId]=null,[FEntId]=null,[SystemId]=45,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2082 
      end
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2083  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2083,2915,'委托（作废）',1,1208,0,'Dcx_Common',0,0,1,45,2083,null,null,45,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=2915,[EntName]='委托（作废）',[MEnt]=1,[DBTableId]=1208,[DBConnectId]=0,[DBTableName]='Dcx_Common',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=45,[SEntId]=2083,[FSystemId]=null,[FEntId]=null,[SystemId]=45,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2083 
      end
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2090  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2090,2915,'委托',1,651,0,'WF_Depute',0,0,1,45,2090,null,null,45,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=2915,[EntName]='委托',[MEnt]=1,[DBTableId]=651,[DBConnectId]=0,[DBTableName]='WF_Depute',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=45,[SEntId]=2090,[FSystemId]=null,[FEntId]=null,[SystemId]=45,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2090 
      end
      if (select count(1) from [Dcx_Entity_Run] where  [EntId]=2091  )<1 
      begin 
           Insert into [Dcx_Entity_Run] ([EntId],[MenuId],[EntName],[MEnt],[DBTableId],[DBConnectId],[DBTableName],[ParentId],[OrderBy],[CheckPower],[SSystemId],[SEntId],[FSystemId],[FEntId],[SystemId],[Remark],[IsFlow],[IsChecked],[FlowId],[MaxCount],[IsDesigning],[ShowTag],[AddDcxTime],[AddDcxUserName],[AddDcxUserId],[SqlDelete],[SqlInsert],[SqlUpdate],[SqlSelect],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values(2091,2915,'驳回流程',1,672,0,'WF_Rebut',0,0,1,45,2091,null,null,45,'',null,null,0,-1,1,1,null,null,0,null,null,null,null,null,null,null,null,null,null,1)
      end
      else 
      begin 
           update [Dcx_Entity_Run] set [MenuId]=2915,[EntName]='驳回流程',[MEnt]=1,[DBTableId]=672,[DBConnectId]=0,[DBTableName]='WF_Rebut',[ParentId]=0,[OrderBy]=0,[CheckPower]=1,[SSystemId]=45,[SEntId]=2091,[FSystemId]=null,[FEntId]=null,[SystemId]=45,[Remark]='',[IsFlow]=null,[IsChecked]=null,[FlowId]=0,[MaxCount]=-1,[IsDesigning]=1,[ShowTag]=1,[AddDcxTime]=null,[AddDcxUserName]=null,[AddDcxUserId]=0,[SqlDelete]=null,[SqlInsert]=null,[SqlUpdate]=null,[SqlSelect]=null,[CreatorId]=null,[Creator]=null,[CreateTime]=null,[EditorId]=null,[Editor]=null,[EditTime]=null,[AccountId]=1 where  [EntId]=2091 
      end



Delete from [Dcx_EntityPrivilege]  where [EntId]=2078

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2078  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11112,-1,2078,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2078  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2078  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11458,-1,2078,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2078  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_DefaultForm_Run]  where [EntId]=2078

--Dcx_DefaultForm_Run
      if (select count(1) from [Dcx_DefaultForm_Run] where  [EntId]=2078  )<1 
      begin 
           Insert into [Dcx_DefaultForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[OtherMsg],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('141f6ea3-579f-54f7-c6bb-167b3869a8c0','转交下一步',2078,-1,'','',0,'','<script type="text/javascript" src="/js/WorkFlow/FlowRun.js"></script>','DcxRun.DefaultF_2078= {"MenuId":2915,"MEntId":2078,"EntName":"转交下一步","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2078":{"EntId":2078,"KeyFieldValue":"","DBTableName":"","KeyField":"PrcsId","KeydtId":2,"JoinKeyField":"PrcsId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
GetLinkCtrlData_DefaultF_2078_559(null,null);
GetLinkCtrlData_DefaultF_2078_561(null,null);
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":39,"Ent":[{"EntId":2078,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":4,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":2,"Vld":[{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,200}$","err":"限制0-200个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":3,"Vld":[{"Id":6,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":7,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":4,"Vld":[{"Id":8,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":9,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":10,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":5,"Vld":[{"Id":11,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":12,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":6,"Vld":[{"Id":13,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,500}$","err":"限制0-500个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":9,"Vld":[{"Id":17,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,80}$","err":"限制0-80个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":10,"Vld":[{"Id":18,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,80}$","err":"限制0-80个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":11,"Vld":[{"Id":19,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,300}$","err":"限制0-300个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":12,"Vld":[]},{"FldId":13,"Vld":[{"Id":20,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,100}$","err":"限制0-100个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":37,"vlId":1,"cdn":"{@NextNodeId}!=-1","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":14,"Vld":[{"Id":21,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":22,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":38,"vlId":1,"cdn":"{@NextNodeId}!=-1","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":15,"Vld":[{"Id":23,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":24,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":25,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":16,"Vld":[{"Id":26,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":27,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":17,"Vld":[]},{"FldId":18,"Vld":[{"Id":28,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":29,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":19,"Vld":[{"Id":30,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":31,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":32,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":20,"Vld":[{"Id":33,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":34,"vlId":5,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"此值已存在,请重新输入","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":35,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":36,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":21,"Vld":[{"Id":39,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,200}$","err":"限制0-200个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]}]}]};
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2078.EntMsg.E2078.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"WF_FlowRunPrcs","EntId":2078,"KeyField":"PrcsId","MKeyField":"PrcsId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"DealIds":{"DtId":2,"DB":1,"CId":1,"FL":500},"NotifyMode":{"DtId":2,"DB":1,"CId":1,"FL":80},"NotifyType":{"DtId":2,"DB":1,"CId":7,"FL":80},"NotifyContent":{"DtId":2,"DB":1,"CId":2,"FL":300},"DealUserNames":{"DtId":2,"DB":0,"CId":2,"FL":0},"UserName":{"DtId":2,"DB":1,"CId":1,"FL":100},"UserId":{"DtId":1,"DB":1,"CId":1,"FL":4},"RunId":{"DtId":1,"DB":1,"CId":1,"FL":4},"NextNodeId":{"DtId":2,"DB":0,"CId":7,"FL":0},"FlowId":{"DtId":1,"DB":1,"CId":1,"FL":4},"NodeId":{"DtId":1,"DB":1,"CId":1,"FL":4},"PrcsName":{"DtId":2,"DB":1,"CId":1,"FL":200}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2078.EntMsg.E2078.GetDataRowModel=function()
{
    return {"DealIds":"","NotifyMode":"{@NotifyType*}","NotifyType":"","NotifyContent":"工作流提醒:您有未办理的新工作.","DealUserNames":"","UserName":"","UserId":-1,"RunId":-1,"NextNodeId":"","FlowId":-1,"NodeId":-1,"PrcsName":"{@NextNodeId*}","Dcx_Keymsg":{"RowIx":-1,"KeyField":"PrcsId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_DefaultF_2078_559(obj,curFieldName){
 var EntId=2078;
 var FldId=9;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''NotifyMode'';
 var $formContainer=DcxForm.GetHtmlContainer(2078,''DefaultF_'');
 var $ddlContainer=null;
var strCode="{@NotifyType&}" ;
var v_f1=null;
if(''NotifyType''==curFieldName)
  v_f1=DcxForm.GetRadioListValue(obj,2078,''DefaultF_'',''NotifyType'',$formContainer,false,true);
else 
  v_f1=DcxForm.GetRadioListValue(null,2078,''DefaultF_'',''NotifyType'',$formContainer,false,true);
if(Dcx.IsNull(v_f1))
   v_f1='''';
strCode=strCode.replaceAll("{@NotifyType&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d2078_NotifyMode");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
function GetLinkCtrlData_DefaultF_2078_560(obj,curFieldName){
 var EntId=2078;
 var FldId=17;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''NextNodeId'';
 var $formContainer=DcxForm.GetHtmlContainer(2078,''DefaultF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(2078,''DefaultF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"NextNodeId\",FldId:"+FldId+",EntId:2078,CtrlPrex:\"DefaultF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"PrcsId\",CtrlTypeId:7,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''FlowId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2078,''DefaultF_'',''FlowId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@FlowId}<*>"+v_f1+"<**>";
var v_f1=null;
if(''NodeId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2078,''DefaultF_'',''NodeId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@NodeId}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d2078_NextNodeId");
$AcceptObj.html(myVal);
$AcceptObj.click();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_DefaultF_2078_561(obj,curFieldName){
 var EntId=2078;
 var FldId=21;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''PrcsName'';
 var $formContainer=DcxForm.GetHtmlContainer(2078,''DefaultF_'');
 var $ddlContainer=null;
var strCode="{@NextNodeId&}" ;
var v_f1=null;
if(''NextNodeId''==curFieldName)
  v_f1=DcxForm.GetRadioListValue(obj,2078,''DefaultF_'',''NextNodeId'',$formContainer,false,true);
else 
  v_f1=DcxForm.GetRadioListValue(null,2078,''DefaultF_'',''NextNodeId'',$formContainer,false,true);
if(Dcx.IsNull(v_f1))
   v_f1='''';
strCode=strCode.replaceAll("{@NextNodeId&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d2078_PrcsName");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2078.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2078,''DefaultF_'',buildNew,closeDlg);

}','<$2078$>select [PrcsName],[UserName],[UserId],[DealIds],[NotifyType],[NotifyMode],[NotifyContent],[RunId],[FlowId],[NodeId],[PrcsId] from WF_FlowRunPrcs where [PrcsId]=''{$keyfieldvalue}''</$2078$>',10,'2078*PrcsId*2*PrcsId*2*WF_FlowRunPrcs*转交下一步','','','',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-31 3:46:10',3,'admin','2013-10-2 18:34:25',1)
      end
      else 
      begin 
           update [Dcx_DefaultForm_Run] set [FormId]='141f6ea3-579f-54f7-c6bb-167b3869a8c0',[FormName]='转交下一步',[ModuleId]=-1,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='',[DIYJsCss2]='<script type="text/javascript" src="/js/WorkFlow/FlowRun.js"></script>',[AutoPublicJs]='DcxRun.DefaultF_2078= {"MenuId":2915,"MEntId":2078,"EntName":"转交下一步","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2078":{"EntId":2078,"KeyFieldValue":"","DBTableName":"","KeyField":"PrcsId","KeydtId":2,"JoinKeyField":"PrcsId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
GetLinkCtrlData_DefaultF_2078_559(null,null);
GetLinkCtrlData_DefaultF_2078_561(null,null);
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":39,"Ent":[{"EntId":2078,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":4,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":2,"Vld":[{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,200}$","err":"限制0-200个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":3,"Vld":[{"Id":6,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":7,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":4,"Vld":[{"Id":8,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":9,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":10,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":5,"Vld":[{"Id":11,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":12,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":6,"Vld":[{"Id":13,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,500}$","err":"限制0-500个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":9,"Vld":[{"Id":17,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,80}$","err":"限制0-80个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":10,"Vld":[{"Id":18,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,80}$","err":"限制0-80个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":11,"Vld":[{"Id":19,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,300}$","err":"限制0-300个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":12,"Vld":[]},{"FldId":13,"Vld":[{"Id":20,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,100}$","err":"限制0-100个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":37,"vlId":1,"cdn":"{@NextNodeId}!=-1","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":14,"Vld":[{"Id":21,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":22,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":38,"vlId":1,"cdn":"{@NextNodeId}!=-1","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":15,"Vld":[{"Id":23,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":24,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":25,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":16,"Vld":[{"Id":26,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":27,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":17,"Vld":[]},{"FldId":18,"Vld":[{"Id":28,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":29,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":19,"Vld":[{"Id":30,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":31,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":32,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":20,"Vld":[{"Id":33,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":34,"vlId":5,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"此值已存在,请重新输入","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":35,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":36,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":21,"Vld":[{"Id":39,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,200}$","err":"限制0-200个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]}]}]};
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2078.EntMsg.E2078.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"WF_FlowRunPrcs","EntId":2078,"KeyField":"PrcsId","MKeyField":"PrcsId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"DealIds":{"DtId":2,"DB":1,"CId":1,"FL":500},"NotifyMode":{"DtId":2,"DB":1,"CId":1,"FL":80},"NotifyType":{"DtId":2,"DB":1,"CId":7,"FL":80},"NotifyContent":{"DtId":2,"DB":1,"CId":2,"FL":300},"DealUserNames":{"DtId":2,"DB":0,"CId":2,"FL":0},"UserName":{"DtId":2,"DB":1,"CId":1,"FL":100},"UserId":{"DtId":1,"DB":1,"CId":1,"FL":4},"RunId":{"DtId":1,"DB":1,"CId":1,"FL":4},"NextNodeId":{"DtId":2,"DB":0,"CId":7,"FL":0},"FlowId":{"DtId":1,"DB":1,"CId":1,"FL":4},"NodeId":{"DtId":1,"DB":1,"CId":1,"FL":4},"PrcsName":{"DtId":2,"DB":1,"CId":1,"FL":200}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2078.EntMsg.E2078.GetDataRowModel=function()
{
    return {"DealIds":"","NotifyMode":"{@NotifyType*}","NotifyType":"","NotifyContent":"工作流提醒:您有未办理的新工作.","DealUserNames":"","UserName":"","UserId":-1,"RunId":-1,"NextNodeId":"","FlowId":-1,"NodeId":-1,"PrcsName":"{@NextNodeId*}","Dcx_Keymsg":{"RowIx":-1,"KeyField":"PrcsId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_DefaultF_2078_559(obj,curFieldName){
 var EntId=2078;
 var FldId=9;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''NotifyMode'';
 var $formContainer=DcxForm.GetHtmlContainer(2078,''DefaultF_'');
 var $ddlContainer=null;
var strCode="{@NotifyType&}" ;
var v_f1=null;
if(''NotifyType''==curFieldName)
  v_f1=DcxForm.GetRadioListValue(obj,2078,''DefaultF_'',''NotifyType'',$formContainer,false,true);
else 
  v_f1=DcxForm.GetRadioListValue(null,2078,''DefaultF_'',''NotifyType'',$formContainer,false,true);
if(Dcx.IsNull(v_f1))
   v_f1='''';
strCode=strCode.replaceAll("{@NotifyType&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d2078_NotifyMode");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
function GetLinkCtrlData_DefaultF_2078_560(obj,curFieldName){
 var EntId=2078;
 var FldId=17;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''NextNodeId'';
 var $formContainer=DcxForm.GetHtmlContainer(2078,''DefaultF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(2078,''DefaultF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"NextNodeId\",FldId:"+FldId+",EntId:2078,CtrlPrex:\"DefaultF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"PrcsId\",CtrlTypeId:7,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''FlowId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2078,''DefaultF_'',''FlowId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@FlowId}<*>"+v_f1+"<**>";
var v_f1=null;
if(''NodeId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2078,''DefaultF_'',''NodeId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@NodeId}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d2078_NextNodeId");
$AcceptObj.html(myVal);
$AcceptObj.click();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_DefaultF_2078_561(obj,curFieldName){
 var EntId=2078;
 var FldId=21;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''PrcsName'';
 var $formContainer=DcxForm.GetHtmlContainer(2078,''DefaultF_'');
 var $ddlContainer=null;
var strCode="{@NextNodeId&}" ;
var v_f1=null;
if(''NextNodeId''==curFieldName)
  v_f1=DcxForm.GetRadioListValue(obj,2078,''DefaultF_'',''NextNodeId'',$formContainer,false,true);
else 
  v_f1=DcxForm.GetRadioListValue(null,2078,''DefaultF_'',''NextNodeId'',$formContainer,false,true);
if(Dcx.IsNull(v_f1))
   v_f1='''';
strCode=strCode.replaceAll("{@NextNodeId&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d2078_PrcsName");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2078.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2078,''DefaultF_'',buildNew,closeDlg);

}',[LoadingSql]='<$2078$>select [PrcsName],[UserName],[UserId],[DealIds],[NotifyType],[NotifyMode],[NotifyContent],[RunId],[FlowId],[NodeId],[PrcsId] from WF_FlowRunPrcs where [PrcsId]=''{$keyfieldvalue}''</$2078$>',[PageSize]=10,[OtherMsg]='2078*PrcsId*2*PrcsId*2*WF_FlowRunPrcs*转交下一步',[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-31 3:46:10',[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-2 18:34:25',[AccountId]=1 where  [EntId]=2078 
      end




--Dcx_DefaultFormField_Run
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='f666c341-4623-3308-5a34-79c7f904fc2a'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(17,'f666c341-4623-3308-5a34-79c7f904fc2a',2078,2078,'00000000-0000-0000-0000-000000000000',1,'NextNodeId',2,2,-1,'EXEC	[dbo].[DcxRun_WF_GetNextNodes]
		@FlowId = {@FlowId},
		@NodeId = {@NodeId}',2,7,1,0,7,3,1,-1,0,0,'','','FlowId,NodeId,','','<div class="defaultform ">
	<div class="div_top">
		<div class="title-div">
			<ul class="ul-title" groupid="5" isgroup="1" isrple="1">
				<li areaid="36" class="li-area-title" scroll="no" style="width: 93px; height: 44px; position: static;">
					<div class="form-title5" id="div_head1">
						<span class="title-name" id="h2_title">转交下一步</span></div>
				</li>
				<li areaid="37" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
				<li areaid="38" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.DefaultF_2078.SubmitForm(false);"><span class="op_bt_i">保存</span> </a></li>
				
			</ul>
		</div>
		<div class="frame-div">
			<ul class="ul-mform" groupid="1" isgroup="1" style="width: 650px;" isrple="1">
				
				<li areaid="40" class="li-area" scroll="no" style="min-height: 50px; width: 595px; position: static;"><label class="area-title pad4" fldid="4" istitle="1">下一步骤</label>
<div class="field-content pad4" style="margin-bottom:14px;">
	<span class="form-ctr" isfcontain="1">','','','','<div id="d2078_NextNodeId" class="form-radio" style="" EntId="2078" IsField=1 DBField=0 IsPost=1 FieldName="NextNodeId" dType="2" Vtp="2" RDT="2" Isc="1" RId="7" CId="7" FId="17" vlk=0    TFN="PrcsName"  CBack=1  Type="1"  onclick ="javascript:GetLinkCtrlData_DefaultF_2078_561(this,''NextNodeId'');">','</div>','',1,40,-1,-1,0,'2078,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=17,[Form_EntId]=2078,[EntId]=2078,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[FieldName]='NextNodeId',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='EXEC	[dbo].[DcxRun_WF_GetNextNodes]
		@FlowId = {@FlowId},
		@NodeId = {@NodeId}',[ValueType]=2,[RunValueType]=7,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=7,[FieldTypeId]=3,[RepeatColumns]=1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='FlowId,NodeId,',[SystemVariables]='',[BeforeHtml]='<div class="defaultform ">
	<div class="div_top">
		<div class="title-div">
			<ul class="ul-title" groupid="5" isgroup="1" isrple="1">
				<li areaid="36" class="li-area-title" scroll="no" style="width: 93px; height: 44px; position: static;">
					<div class="form-title5" id="div_head1">
						<span class="title-name" id="h2_title">转交下一步</span></div>
				</li>
				<li areaid="37" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
				<li areaid="38" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.DefaultF_2078.SubmitForm(false);"><span class="op_bt_i">保存</span> </a></li>
				
			</ul>
		</div>
		<div class="frame-div">
			<ul class="ul-mform" groupid="1" isgroup="1" style="width: 650px;" isrple="1">
				
				<li areaid="40" class="li-area" scroll="no" style="min-height: 50px; width: 595px; position: static;"><label class="area-title pad4" fldid="4" istitle="1">下一步骤</label>
<div class="field-content pad4" style="margin-bottom:14px;">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2078_NextNodeId" class="form-radio" style="" EntId="2078" IsField=1 DBField=0 IsPost=1 FieldName="NextNodeId" dType="2" Vtp="2" RDT="2" Isc="1" RId="7" CId="7" FId="17" vlk=0    TFN="PrcsName"  CBack=1  Type="1"  onclick ="javascript:GetLinkCtrlData_DefaultF_2078_561(this,''NextNodeId'');">',[CtrlbackHtml]='</div>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=40,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2078,' where  [FldUId]='f666c341-4623-3308-5a34-79c7f904fc2a' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='4e9d5472-aed2-ef6f-0ad5-64cc40f2bfa9'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(21,'4e9d5472-aed2-ef6f-0ad5-64cc40f2bfa9',2078,2078,'00000000-0000-0000-0000-000000000000',2,'PrcsName',2,2,7,'',5,1,1,0,1,1,-1,-1,1,0,'','','NextNodeId,','','</span>
 <span class="form-ctr" isfcontain="1">','','','','<input  id="d2078_PrcsName"   type="text" class="form-txt hide"  style="width:200px;display:none;" onblur ="javascript:if(!DcxVld.Validate(this,2078,''DefaultF_'',2078,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2078,''DefaultF_'',2078);" EntId="2078" IsField=1 DBField=1 IsPost=1 FieldName="PrcsName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="21" vlk=0    value="','"/>','',1,40,-1,-1,0,'2078,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=21,[Form_EntId]=2078,[EntId]=2078,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[FieldName]='PrcsName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=7,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='NextNodeId,',[SystemVariables]='',[BeforeHtml]='</span>
 <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2078_PrcsName"   type="text" class="form-txt hide"  style="width:200px;display:none;" onblur ="javascript:if(!DcxVld.Validate(this,2078,''DefaultF_'',2078,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2078,''DefaultF_'',2078);" EntId="2078" IsField=1 DBField=1 IsPost=1 FieldName="PrcsName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="21" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=40,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2078,' where  [FldUId]='4e9d5472-aed2-ef6f-0ad5-64cc40f2bfa9' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='139e59b1-143f-085b-734d-a9d28448dea5'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(13,'139e59b1-143f-085b-734d-a9d28448dea5',2078,2078,'00000000-0000-0000-0000-000000000000',3,'UserName',2,2,10,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
</div>
</li><li areaid="53" class="li-area" scroll="no" style="height: 110px; width: 158px; position: static; clear: left; float: left;"><label class="area-title pad4" fldid="-1" istitle="1" style="margin-top:24px;width:150px;">主办人/经办人 </label>
 
</li><li areaid="41" class="li-area" scroll="no" style="height: 100px; width: 478px; position: static; clear: none; float: left;"><div class="field-content pad4" style="float:left;clear:none;">
	<table>
		<tbody>
			<tr>
				<td>
					<label class="area-title pad4" fldid="7" istitle="1" style="width:70px;float:left;clear:none;padding-right: 10px;">主办人</label></td>
				<td>
					<span class="form-ctr" isfcontain="1">','','','','<input  id="d2078_UserName"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2078,''DefaultF_'',2078,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2078,''DefaultF_'',2078);" EntId="2078" IsField=1 DBField=1 IsPost=1 FieldName="UserName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="13" vlk=0    value="','"/>','',1,41,-1,-1,0,'2078,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=13,[Form_EntId]=2078,[EntId]=2078,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[FieldName]='UserName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=10,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li areaid="53" class="li-area" scroll="no" style="height: 110px; width: 158px; position: static; clear: left; float: left;"><label class="area-title pad4" fldid="-1" istitle="1" style="margin-top:24px;width:150px;">主办人/经办人 </label>
 
</li><li areaid="41" class="li-area" scroll="no" style="height: 100px; width: 478px; position: static; clear: none; float: left;"><div class="field-content pad4" style="float:left;clear:none;">
	<table>
		<tbody>
			<tr>
				<td>
					<label class="area-title pad4" fldid="7" istitle="1" style="width:70px;float:left;clear:none;padding-right: 10px;">主办人</label></td>
				<td>
					<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2078_UserName"   type="text" class="form-txt"  style="width:250px;" onblur ="javascript:if(!DcxVld.Validate(this,2078,''DefaultF_'',2078,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2078,''DefaultF_'',2078);" EntId="2078" IsField=1 DBField=1 IsPost=1 FieldName="UserName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="13" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=41,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2078,' where  [FldUId]='139e59b1-143f-085b-734d-a9d28448dea5' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='963fcbba-0db0-625d-3374-6d29fb221e30'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(14,'963fcbba-0db0-625d-3374-6d29fb221e30',2078,2078,'00000000-0000-0000-0000-000000000000',4,'UserId',1,1,9,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
 <span class="form-ctr" isfcontain="1">','','','','<input  id="d2078_UserId"   type="text" class="form-txt hide"  style="width:200px;display:none;" onblur ="javascript:if(!DcxVld.Validate(this,2078,''DefaultF_'',2078,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2078,''DefaultF_'',2078);" EntId="2078" IsField=1 DBField=1 IsPost=1 FieldName="UserId" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="14" vlk=0    value="','"/>','',1,41,-1,-1,0,'2078,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=14,[Form_EntId]=2078,[EntId]=2078,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=4,[FieldName]='UserId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=9,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
 <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2078_UserId"   type="text" class="form-txt hide"  style="width:200px;display:none;" onblur ="javascript:if(!DcxVld.Validate(this,2078,''DefaultF_'',2078,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2078,''DefaultF_'',2078);" EntId="2078" IsField=1 DBField=1 IsPost=1 FieldName="UserId" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="14" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=41,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2078,' where  [FldUId]='963fcbba-0db0-625d-3374-6d29fb221e30' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='39a4e7a9-31d2-9ae0-ce03-c092f4ef57b7'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(12,'39a4e7a9-31d2-9ae0-ce03-c092f4ef57b7',2078,2078,'00000000-0000-0000-0000-000000000000',5,'DealUserNames',2,2,-1,'',5,1,1,0,2,3,-1,-1,0,0,'','','','','</span>

					<div class="form-vld" iserr="1">
						&nbsp;</div>
				</td>
				<td rowspan="2">
					<a class="list-bt-add" href="javascript:void(0);" onclick="javascript:ShowDealManDialog(2078,''DefaultF_'',null,this);" style="z-index:10000;" title="选   择">选&nbsp;&nbsp;&nbsp;择</a> <a class="lform-bt-delete" href="javascript:void(0);" onclick="javascript:WF_ClearValue(2078,''DefaultF_'',''DealIds'',this);" style="width:45px;" title="清空">清&nbsp;&nbsp;&nbsp;空</a></td>
			</tr>
			<tr>
				<td>
					<label class="area-title pad4" fldid="6" istitle="1" style="width:70px;float:left;clear:none;padding-right: 8px;">经办人</label></td>
				<td>
					<span class="form-ctr" isfcontain="1">','','','','<textarea  id="d2078_DealUserNames" class="form-txts"  style="width:250px;height:45px;" EntId="2078" IsField=1 DBField=0 IsPost=1 FieldName="DealUserNames" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="12" vlk=0    >','</textarea>','',1,41,-1,-1,0,'2078,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=12,[Form_EntId]=2078,[EntId]=2078,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=5,[FieldName]='DealUserNames',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

					<div class="form-vld" iserr="1">
						&nbsp;</div>
				</td>
				<td rowspan="2">
					<a class="list-bt-add" href="javascript:void(0);" onclick="javascript:ShowDealManDialog(2078,''DefaultF_'',null,this);" style="z-index:10000;" title="选   择">选&nbsp;&nbsp;&nbsp;择</a> <a class="lform-bt-delete" href="javascript:void(0);" onclick="javascript:WF_ClearValue(2078,''DefaultF_'',''DealIds'',this);" style="width:45px;" title="清空">清&nbsp;&nbsp;&nbsp;空</a></td>
			</tr>
			<tr>
				<td>
					<label class="area-title pad4" fldid="6" istitle="1" style="width:70px;float:left;clear:none;padding-right: 8px;">经办人</label></td>
				<td>
					<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d2078_DealUserNames" class="form-txts"  style="width:250px;height:45px;" EntId="2078" IsField=1 DBField=0 IsPost=1 FieldName="DealUserNames" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="12" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=41,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2078,' where  [FldUId]='39a4e7a9-31d2-9ae0-ce03-c092f4ef57b7' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='307f8ad9-46e9-7c05-ff24-1165882f03fa'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'307f8ad9-46e9-7c05-ff24-1165882f03fa',2078,2078,'00000000-0000-0000-0000-000000000000',6,'DealIds',2,2,11,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
 <span class="form-ctr" isfcontain="1">','','','','<input  id="d2078_DealIds"   type="text" class="form-txt hide"  style="width:200px;display:none;" onblur ="javascript:if(!DcxVld.Validate(this,2078,''DefaultF_'',2078,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2078,''DefaultF_'',2078);" EntId="2078" IsField=1 DBField=1 IsPost=1 FieldName="DealIds" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="6" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2078,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=6,[Form_EntId]=2078,[EntId]=2078,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=6,[FieldName]='DealIds',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=11,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
 <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2078_DealIds"   type="text" class="form-txt hide"  style="width:200px;display:none;" onblur ="javascript:if(!DcxVld.Validate(this,2078,''DefaultF_'',2078,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2078,''DefaultF_'',2078);" EntId="2078" IsField=1 DBField=1 IsPost=1 FieldName="DealIds" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="6" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2078,' where  [FldUId]='307f8ad9-46e9-7c05-ff24-1165882f03fa' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='7053dfe1-1daa-ef64-83a3-ccd95bc95b98'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'7053dfe1-1daa-ef64-83a3-ccd95bc95b98',2078,2078,'00000000-0000-0000-0000-000000000000',7,'NotifyType',2,2,38,'内部短信|1',1,7,1,0,7,1,-1,-1,1,0,'','','','','</span>
</td>
			</tr>
		</tbody>
	</table>
</div>
<br>
</li><li areaid="43" class="li-area" scroll="no" style="height: 55px; width: 595px; position: static;"><label class="area-title pad4" fldid="9" istitle="1">短信提醒</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<div id="d2078_NotifyType" class="form-radio" style="" EntId="2078" IsField=1 DBField=1 IsPost=1 FieldName="NotifyType" dType="2" Vtp="1" RDT="2" Isc="1" RId="7" CId="7" FId="10" vlk=0    CBack=1  Type="1"  onclick ="javascript:GetLinkCtrlData_DefaultF_2078_559(this,''NotifyType'');DcxVld.Validate(this,2078,''DefaultF_'',2078);" onfocus ="javascript:DcxVld.ValidateFocus(this,2078,''DefaultF_'',2078);"><span class="form-radio-item"  >
<input id="ddcx_2078_NotifyType_0"  name="ddcx_2078_NotifyType" checked ="checked" type="radio"  text="内部短信"  value="1"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2078_NotifyType_0">内部短信</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2078_NotifyType_1"  name="ddcx_2078_NotifyType"  type="radio"  text="内部邮件"  value="2"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2078_NotifyType_1">内部邮件</label></span>
<span class="clearfix"></span>','</div>','',-1,-1,-1,-1,0,'2078,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=10,[Form_EntId]=2078,[EntId]=2078,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=7,[FieldName]='NotifyType',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=38,[DefaultValue]='内部短信|1',[ValueType]=1,[RunValueType]=7,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=7,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</td>
			</tr>
		</tbody>
	</table>
</div>
<br>
</li><li areaid="43" class="li-area" scroll="no" style="height: 55px; width: 595px; position: static;"><label class="area-title pad4" fldid="9" istitle="1">短信提醒</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2078_NotifyType" class="form-radio" style="" EntId="2078" IsField=1 DBField=1 IsPost=1 FieldName="NotifyType" dType="2" Vtp="1" RDT="2" Isc="1" RId="7" CId="7" FId="10" vlk=0    CBack=1  Type="1"  onclick ="javascript:GetLinkCtrlData_DefaultF_2078_559(this,''NotifyType'');DcxVld.Validate(this,2078,''DefaultF_'',2078);" onfocus ="javascript:DcxVld.ValidateFocus(this,2078,''DefaultF_'',2078);"><span class="form-radio-item"  >
<input id="ddcx_2078_NotifyType_0"  name="ddcx_2078_NotifyType" checked ="checked" type="radio"  text="内部短信"  value="1"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2078_NotifyType_0">内部短信</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2078_NotifyType_1"  name="ddcx_2078_NotifyType"  type="radio"  text="内部邮件"  value="2"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2078_NotifyType_1">内部邮件</label></span>
<span class="clearfix"></span>',[CtrlbackHtml]='</div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2078,' where  [FldUId]='7053dfe1-1daa-ef64-83a3-ccd95bc95b98' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='dcbc9917-1499-9184-6873-f61526b55de7'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'dcbc9917-1499-9184-6873-f61526b55de7',2078,2078,'00000000-0000-0000-0000-000000000000',8,'NotifyMode',2,2,37,'',5,1,1,0,1,1,-1,-1,1,0,'','','NotifyType,','','</span>

<span class="form-ctr" isfcontain="1">','','','','<input  id="d2078_NotifyMode"   type="text" class="form-txt hide"  style="width:200px;display:none;" onblur ="javascript:if(!DcxVld.Validate(this,2078,''DefaultF_'',2078,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2078,''DefaultF_'',2078);" EntId="2078" IsField=1 DBField=1 IsPost=1 FieldName="NotifyMode" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="9" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2078,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=9,[Form_EntId]=2078,[EntId]=2078,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=8,[FieldName]='NotifyMode',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=37,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='NotifyType,',[SystemVariables]='',[BeforeHtml]='</span>

<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2078_NotifyMode"   type="text" class="form-txt hide"  style="width:200px;display:none;" onblur ="javascript:if(!DcxVld.Validate(this,2078,''DefaultF_'',2078,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2078,''DefaultF_'',2078);" EntId="2078" IsField=1 DBField=1 IsPost=1 FieldName="NotifyMode" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="9" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2078,' where  [FldUId]='dcbc9917-1499-9184-6873-f61526b55de7' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='f1e660a0-1818-78f7-0b76-219be5cc60e7'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'f1e660a0-1818-78f7-0b76-219be5cc60e7',2078,2078,'00000000-0000-0000-0000-000000000000',9,'NotifyContent',2,2,39,'工作流提醒:您有未办理的新工作.',5,1,1,0,2,1,-1,-1,1,0,'','','','','</span>
</div></li><li areaid="44" class="li-area" scroll="no" style="height: 76px; width: 595px; position: static;"><label class="area-title pad4" fldid="11" istitle="1">短信内容</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<textarea  id="d2078_NotifyContent" class="form-txts"  style="width:300px;height:45px;" onblur ="javascript:if(!DcxVld.Validate(this,2078,''DefaultF_'',2078,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2078,''DefaultF_'',2078);" EntId="2078" IsField=1 DBField=1 IsPost=1 FieldName="NotifyContent" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="11" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'2078,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=11,[Form_EntId]=2078,[EntId]=2078,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=9,[FieldName]='NotifyContent',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=39,[DefaultValue]='工作流提醒:您有未办理的新工作.',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div></li><li areaid="44" class="li-area" scroll="no" style="height: 76px; width: 595px; position: static;"><label class="area-title pad4" fldid="11" istitle="1">短信内容</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d2078_NotifyContent" class="form-txts"  style="width:300px;height:45px;" onblur ="javascript:if(!DcxVld.Validate(this,2078,''DefaultF_'',2078,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2078,''DefaultF_'',2078);" EntId="2078" IsField=1 DBField=1 IsPost=1 FieldName="NotifyContent" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="11" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2078,' where  [FldUId]='f1e660a0-1818-78f7-0b76-219be5cc60e7' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='9f14cc70-ab6b-a719-b9be-d99a679be230'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(15,'9f14cc70-ab6b-a719-b9be-d99a679be230',2078,2078,'00000000-0000-0000-0000-000000000000',10,'RunId',1,1,2,'RunId',6,1,1,0,1,1,-1,-1,1,1,'','','','','</span>

</div>
</li><li areaid="52" class="li-area" scroll="no" style="height: 55px; width: 595px; display: none; position: static;"><label class="area-title pad4" fldid="15" istitle="1">RunId</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2078_RunId"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2078,''DefaultF_'',2078,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2078,''DefaultF_'',2078);" EntId="2078" IsField=1 DBField=1 IsPost=1 FieldName="RunId" dType="1" Vtp="6" RDT="1" Isc="1" RId="1" CId="1" FId="15" vlk=1   value="','"/>','',-1,-1,-1,-1,0,'2078,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=15,[Form_EntId]=2078,[EntId]=2078,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=10,[FieldName]='RunId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=2,[DefaultValue]='RunId',[ValueType]=6,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=1,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

</div>
</li><li areaid="52" class="li-area" scroll="no" style="height: 55px; width: 595px; display: none; position: static;"><label class="area-title pad4" fldid="15" istitle="1">RunId</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2078_RunId"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2078,''DefaultF_'',2078,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2078,''DefaultF_'',2078);" EntId="2078" IsField=1 DBField=1 IsPost=1 FieldName="RunId" dType="1" Vtp="6" RDT="1" Isc="1" RId="1" CId="1" FId="15" vlk=1   value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2078,' where  [FldUId]='9f14cc70-ab6b-a719-b9be-d99a679be230' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='8a08fc7b-b12d-0a3b-bc4f-c5c9dd4a6b1e'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(18,'8a08fc7b-b12d-0a3b-bc4f-c5c9dd4a6b1e',2078,2078,'00000000-0000-0000-0000-000000000000',11,'FlowId',1,1,4,'FlowId',6,1,1,0,1,1,-1,-1,1,1,'','','','','</span>

	<div class="form-vld" iserr="1">
		&nbsp;</div>
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2078_FlowId"   type="text" class="form-txt"  style="width:200px;" onchange ="javascript:GetLinkCtrlData_DefaultF_2078_560(this,''FlowId'');" onblur ="javascript:if(!DcxVld.Validate(this,2078,''DefaultF_'',2078,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2078,''DefaultF_'',2078);" EntId="2078" IsField=1 DBField=1 IsPost=1 FieldName="FlowId" dType="1" Vtp="6" RDT="1" Isc="1" RId="1" CId="1" FId="18" vlk=1   CBack=1  value="','"/>','',-1,-1,-1,-1,0,'2078,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=18,[Form_EntId]=2078,[EntId]=2078,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=11,[FieldName]='FlowId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=4,[DefaultValue]='FlowId',[ValueType]=6,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=1,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

	<div class="form-vld" iserr="1">
		&nbsp;</div>
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2078_FlowId"   type="text" class="form-txt"  style="width:200px;" onchange ="javascript:GetLinkCtrlData_DefaultF_2078_560(this,''FlowId'');" onblur ="javascript:if(!DcxVld.Validate(this,2078,''DefaultF_'',2078,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2078,''DefaultF_'',2078);" EntId="2078" IsField=1 DBField=1 IsPost=1 FieldName="FlowId" dType="1" Vtp="6" RDT="1" Isc="1" RId="1" CId="1" FId="18" vlk=1   CBack=1  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2078,' where  [FldUId]='8a08fc7b-b12d-0a3b-bc4f-c5c9dd4a6b1e' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='b0893968-0556-ddc0-2e07-701fbde56395'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(19,'b0893968-0556-ddc0-2e07-701fbde56395',2078,2078,'00000000-0000-0000-0000-000000000000',12,'NodeId',1,1,6,'NodeId',6,1,1,0,1,1,-1,-1,1,1,'','','','','</span>
 <span class="form-ctr" isfcontain="1">','','','','<input  id="d2078_NodeId"   type="text" class="form-txt"  style="width:200px;" onchange ="javascript:GetLinkCtrlData_DefaultF_2078_560(this,''NodeId'');" onblur ="javascript:if(!DcxVld.Validate(this,2078,''DefaultF_'',2078,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2078,''DefaultF_'',2078);" EntId="2078" IsField=1 DBField=1 IsPost=1 FieldName="NodeId" dType="1" Vtp="6" RDT="1" Isc="1" RId="1" CId="1" FId="19" vlk=1   CBack=1  value="','"/>','',1,52,-1,-1,0,'2078,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=19,[Form_EntId]=2078,[EntId]=2078,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=12,[FieldName]='NodeId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=6,[DefaultValue]='NodeId',[ValueType]=6,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=1,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
 <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2078_NodeId"   type="text" class="form-txt"  style="width:200px;" onchange ="javascript:GetLinkCtrlData_DefaultF_2078_560(this,''NodeId'');" onblur ="javascript:if(!DcxVld.Validate(this,2078,''DefaultF_'',2078,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2078,''DefaultF_'',2078);" EntId="2078" IsField=1 DBField=1 IsPost=1 FieldName="NodeId" dType="1" Vtp="6" RDT="1" Isc="1" RId="1" CId="1" FId="19" vlk=1   CBack=1  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=52,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2078,' where  [FldUId]='b0893968-0556-ddc0-2e07-701fbde56395' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='f191566b-03d7-21e4-f0c8-0369fa7c8243'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(20,'f191566b-03d7-21e4-f0c8-0369fa7c8243',2078,2078,'00000000-0000-0000-0000-000000000000',13,'PrcsId',1,1,1,'PrcsId',6,1,1,0,1,1,-1,-1,1,1,'','','','','</span>
 <span class="form-ctr" isfcontain="1">','</span>
</div>
</li><li areaid="51" class="li-area" scroll="no" style="height: 55px; width: 595px; display: none; position: static;">
					<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
					<div class="field-content pad4">
						请编辑..</div>
				</li>
			</ul>
		</div>
		<div class="div_tabs" style="display:none;">
			<ul class="tab_ul" groupid="2" isgroup="1" islonly="1" istab="1" style="" isrple="1">
				<li areaid="45" class="de-selected ui-droppable" istab="1" scroll="no" style="position: static; z-index: 3;" tabid="1">
					<a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
				<li areaid="46" class="ui-droppable li-tab" istab="1" scroll="no" style="position: static;" tabid="2">
					<a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
			</ul>
			<div class="tabs-content" style="" tabid="1">
				<ul class="ul-mform" groupid="3" isgroup="1" style="" isrple="1">
					<li areaid="47" class="li-area" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
					<li areaid="48" class="li-area" fldid="-1" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
				</ul>
			</div>
			<div class="tabs-content" style="" tabid="2">
				<ul class="ul-mform" groupid="4" isgroup="1" style="" isrple="1">
					<li areaid="49" class="li-area" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
					<li areaid="50" class="li-area" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
				</ul>
			</div>
		</div>
	</div>
</div>
<br>','','','<input  id="d2078_PrcsId"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2078,''DefaultF_'',2078,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2078,''DefaultF_'',2078);" EntId="2078" IsField=1 DBField=1 IsPost=0 FieldName="PrcsId" dType="1" Vtp="6" RDT="1" Isc="1" RId="1" CId="1" FId="20" vlk=1   value="','"/>','',1,52,-1,-1,0,'2078,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=20,[Form_EntId]=2078,[EntId]=2078,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=13,[FieldName]='PrcsId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=1,[DefaultValue]='PrcsId',[ValueType]=6,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=1,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
 <span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
</div>
</li><li areaid="51" class="li-area" scroll="no" style="height: 55px; width: 595px; display: none; position: static;">
					<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
					<div class="field-content pad4">
						请编辑..</div>
				</li>
			</ul>
		</div>
		<div class="div_tabs" style="display:none;">
			<ul class="tab_ul" groupid="2" isgroup="1" islonly="1" istab="1" style="" isrple="1">
				<li areaid="45" class="de-selected ui-droppable" istab="1" scroll="no" style="position: static; z-index: 3;" tabid="1">
					<a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
				<li areaid="46" class="ui-droppable li-tab" istab="1" scroll="no" style="position: static;" tabid="2">
					<a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
			</ul>
			<div class="tabs-content" style="" tabid="1">
				<ul class="ul-mform" groupid="3" isgroup="1" style="" isrple="1">
					<li areaid="47" class="li-area" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
					<li areaid="48" class="li-area" fldid="-1" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
				</ul>
			</div>
			<div class="tabs-content" style="" tabid="2">
				<ul class="ul-mform" groupid="4" isgroup="1" style="" isrple="1">
					<li areaid="49" class="li-area" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
					<li areaid="50" class="li-area" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
				</ul>
			</div>
		</div>
	</div>
</div>
<br>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2078_PrcsId"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2078,''DefaultF_'',2078,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2078,''DefaultF_'',2078);" EntId="2078" IsField=1 DBField=1 IsPost=0 FieldName="PrcsId" dType="1" Vtp="6" RDT="1" Isc="1" RId="1" CId="1" FId="20" vlk=1   value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=52,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2078,' where  [FldUId]='f191566b-03d7-21e4-f0c8-0369fa7c8243' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=663

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=663  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(663,null,'WF_FlowRunPrcs','WF_FlowRunPrcs',1,0,0,0,0,0,45,1,3,'admin','2013-12-15 17:32:36',3,'admin','2013-12-15 17:32:36',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='WF_FlowRunPrcs',[DBTableByName]='WF_FlowRunPrcs',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=45,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:36',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:36',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=663 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19153,1,45,663,'int',1,1,1,'WF_FlowRunPrcs','PrcsId','PrcsId','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='PrcsId',[FieldByname]='PrcsId',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19154,2,45,663,'int',1,1,1,'WF_FlowRunPrcs','RunId','RunId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='RunId',[FieldByname]='RunId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19155,3,45,663,'varchar',2,1,1,'WF_FlowRunPrcs','RunName','RunName','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='RunName',[FieldByname]='RunName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19156,4,45,663,'int',1,1,1,'WF_FlowRunPrcs','FlowId','FlowId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='FlowId',[FieldByname]='FlowId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19157,5,45,663,'varchar',2,1,1,'WF_FlowRunPrcs','FlowName','FlowName','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='FlowName',[FieldByname]='FlowName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19158,6,45,663,'int',1,1,1,'WF_FlowRunPrcs','NodeId','NodeId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='NodeId',[FieldByname]='NodeId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19159,7,45,663,'varchar',2,1,1,'WF_FlowRunPrcs','PrcsName','PrcsName','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='PrcsName',[FieldByname]='PrcsName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19160,8,45,663,'int',1,1,1,'WF_FlowRunPrcs','MainUserId','MainUserId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='MainUserId',[FieldByname]='MainUserId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19161,9,45,663,'int',1,1,1,'WF_FlowRunPrcs','UserId','UserId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='UserId',[FieldByname]='UserId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19162,10,45,663,'varchar',2,1,1,'WF_FlowRunPrcs','UserName','UserName','',0,0,1,30,30,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='UserName',[FieldByname]='UserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=30,[Precision]=30,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19163,11,45,663,'varchar',2,1,1,'WF_FlowRunPrcs','DealIds','DealIds','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='DealIds',[FieldByname]='DealIds',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19164,12,45,663,'datetime',3,1,1,'WF_FlowRunPrcs','AcceptTime','AcceptTime','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='AcceptTime',[FieldByname]='AcceptTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19165,13,45,663,'datetime',3,1,1,'WF_FlowRunPrcs','PrcsTime','PrcsTime','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='PrcsTime',[FieldByname]='PrcsTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19166,14,45,663,'datetime',3,1,1,'WF_FlowRunPrcs','DeliverTime','DeliverTime','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='DeliverTime',[FieldByname]='DeliverTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19167,15,45,663,'datetime',3,1,1,'WF_FlowRunPrcs','DeadTime','DeadTime','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='DeadTime',[FieldByname]='DeadTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19168,16,45,663,'tinyint',23,1,1,'WF_FlowRunPrcs','PrcsFlag','PrcsFlag','1',0,0,0,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='PrcsFlag',[FieldByname]='PrcsFlag',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19169,17,45,663,'int',1,1,1,'WF_FlowRunPrcs','NextPrcsId','NextPrcsId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='NextPrcsId',[FieldByname]='NextPrcsId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19170,18,45,663,'int',1,1,1,'WF_FlowRunPrcs','ParentId','ParentId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='ParentId',[FieldByname]='ParentId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19171,19,45,663,'bit',4,1,1,'WF_FlowRunPrcs','FirstManFlag','FirstManFlag','0',0,0,0,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='FirstManFlag',[FieldByname]='FirstManFlag',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19172,20,45,663,'int',1,1,1,'WF_FlowRunPrcs','Step','Step','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='Step',[FieldByname]='Step',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19173,21,45,663,'bit',4,1,1,'WF_FlowRunPrcs','FirstStepFlag','FirstStepFlag','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='FirstStepFlag',[FieldByname]='FirstStepFlag',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19174,22,45,663,'bit',4,1,1,'WF_FlowRunPrcs','IsRebut','IsRebut','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='IsRebut',[FieldByname]='IsRebut',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19175,23,45,663,'int',1,1,1,'WF_FlowRunPrcs','PrcsStep','PrcsStep','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='PrcsStep',[FieldByname]='PrcsStep',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19176,24,45,663,'varchar',2,1,1,'WF_FlowRunPrcs','PrcsUsers','PrcsUsers','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='PrcsUsers',[FieldByname]='PrcsUsers',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19177,25,45,663,'varchar',2,1,1,'WF_FlowRunPrcs','PrcsRoles','PrcsRoles','',0,0,1,1000,1000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='PrcsRoles',[FieldByname]='PrcsRoles',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1000,[Precision]=1000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19178,26,45,663,'varchar',2,1,1,'WF_FlowRunPrcs','CreatorName','CreatorName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='CreatorName',[FieldByname]='CreatorName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=26 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=27  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19179,27,45,663,'int',1,1,1,'WF_FlowRunPrcs','EntId','EntId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='EntId',[FieldByname]='EntId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=27 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=28  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19180,28,45,663,'varchar',2,1,1,'WF_FlowRunPrcs','EntName','EntName','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='EntName',[FieldByname]='EntName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=28 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=29  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19181,29,45,663,'varchar',2,1,1,'WF_FlowRunPrcs','TransactorS','TransactorS','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='TransactorS',[FieldByname]='TransactorS',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=29 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=30  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19182,30,45,663,'int',1,1,1,'WF_FlowRunPrcs','WorkCreatorId','WorkCreatorId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='WorkCreatorId',[FieldByname]='WorkCreatorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=30 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=31  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19183,31,45,663,'int',1,1,1,'WF_FlowRunPrcs','Pointx','Pointx','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='Pointx',[FieldByname]='Pointx',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=31 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=32  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19184,32,45,663,'int',1,1,1,'WF_FlowRunPrcs','Pointy','Pointy','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='Pointy',[FieldByname]='Pointy',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=32 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=33  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19185,33,45,663,'tinyint',23,1,1,'WF_FlowRunPrcs','NodeType','NodeType','',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='NodeType',[FieldByname]='NodeType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=33 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=34  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19186,34,45,663,'tinyint',23,1,1,'WF_FlowRunPrcs','ApproveType','ApproveType','',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='ApproveType',[FieldByname]='ApproveType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=34 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=35  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19187,35,45,663,'tinyint',23,1,1,'WF_FlowRunPrcs','ToNextType','ToNextType','',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='ToNextType',[FieldByname]='ToNextType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=35 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=36  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19188,36,45,663,'tinyint',23,1,1,'WF_FlowRunPrcs','ArriveType','ArriveType','',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='ArriveType',[FieldByname]='ArriveType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=36 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=37  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19189,37,45,663,'varchar',2,1,1,'WF_FlowRunPrcs','NotifyMode','NotifyMode','',0,0,1,80,80,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='NotifyMode',[FieldByname]='NotifyMode',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=80,[Precision]=80,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=37 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=38  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19190,38,45,663,'varchar',2,1,1,'WF_FlowRunPrcs','NotifyType','NotifyType','',0,0,1,80,80,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='NotifyType',[FieldByname]='NotifyType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=80,[Precision]=80,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=38 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=39  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19191,39,45,663,'varchar',2,1,1,'WF_FlowRunPrcs','NotifyContent','NotifyContent','',0,0,1,300,300,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='NotifyContent',[FieldByname]='NotifyContent',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=300,[Precision]=300,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=39 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=40  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19192,40,45,663,'int',1,1,1,'WF_FlowRunPrcs','TurnFlowId','TurnFlowId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='TurnFlowId',[FieldByname]='TurnFlowId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=40 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=41  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19193,41,45,663,'int',1,1,1,'WF_FlowRunPrcs','TurnFlowRunId','TurnFlowRunId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='TurnFlowRunId',[FieldByname]='TurnFlowRunId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=41 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=42  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19194,42,45,663,'varchar',2,1,1,'WF_FlowRunPrcs','Feedback','Feedback','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='Feedback',[FieldByname]='Feedback',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=42 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=43  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19195,43,45,663,'varchar',2,1,1,'WF_FlowRunPrcs','CreatorBoss','CreatorBoss','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='CreatorBoss',[FieldByname]='CreatorBoss',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=43 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=44  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19196,44,45,663,'varchar',2,1,1,'WF_FlowRunPrcs','PositionDept','PositionDept','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='PositionDept',[FieldByname]='PositionDept',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=44 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=45  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19197,45,45,663,'int',1,1,1,'WF_FlowRunPrcs','Creator','Creator','0',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='Creator',[FieldByname]='Creator',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=45 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=663  and  [FieldId]=46  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19198,46,45,663,'int',1,1,1,'WF_FlowRunPrcs','AccountId','AccountId','1',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRunPrcs',[FieldName]='AccountId',[FieldByname]='AccountId',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=663  and  [FieldId]=46 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 



Delete from [Dcx_EntityPrivilege]  where [EntId]=2079

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2079  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11113,-1,2079,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2079  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2079  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11459,-1,2079,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2079  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_DefaultForm_Run]  where [EntId]=2079

--Dcx_DefaultForm_Run
      if (select count(1) from [Dcx_DefaultForm_Run] where  [EntId]=2079  )<1 
      begin 
           Insert into [Dcx_DefaultForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[OtherMsg],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('85dbb7c2-8512-f95f-ac57-0fd119956843','选择经办人',2079,-1,'','',0,'<script src="/Js/control/LRList/LRList.js"></script>','<script type="text/javascript" src="/js/WorkFlow/FlowRun.js"></script>
<script type="text/javascript" src="/js/WorkFlow/SelectDealMan.js"></script>','DcxRun.DefaultF_2079= {"MenuId":2915,"MEntId":2079,"EntName":"选择经办人","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2079":{"EntId":2079,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"Id","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{
LrList.CreateHtml(2079,''DefaultF_'',''DealUsers'',200,430,null,entMsg.E2079.FieldMsg.DealUsers_Value,false);

}
GetLinkCtrlData_DefaultF_2079_492(null,null);
GetLinkCtrlData_DefaultF_2079_494(null,null);
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":6,"Ent":[{"EntId":2079,"Fld":[{"FldId":1,"Vld":[]},{"FldId":2,"Vld":[]},{"FldId":3,"Vld":[{"Id":6,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":4,"Vld":[]},{"FldId":5,"Vld":[]},{"FldId":6,"Vld":[]},{"FldId":7,"Vld":[]},{"FldId":8,"Vld":[]},{"FldId":9,"Vld":[]},{"FldId":10,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":11,"Vld":[{"Id":4,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":12,"Vld":[]},{"FldId":13,"Vld":[]},{"FldId":14,"Vld":[]},{"FldId":15,"Vld":[]},{"FldId":16,"Vld":[]},{"FldId":17,"Vld":[]},{"FldId":18,"Vld":[]},{"FldId":19,"Vld":[]},{"FldId":20,"Vld":[]},{"FldId":21,"Vld":[]},{"FldId":22,"Vld":[]},{"FldId":23,"Vld":[]}]}]};
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2079.EntMsg.E2079.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_Common","EntId":2079,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"DealUserType":{"DtId":2,"DB":0,"CId":7,"FL":0},"DealUsers":{"DtId":2,"DB":0,"CId":30,"FL":0},"MainUser":{"DtId":2,"DB":0,"CId":1,"FL":0},"MainUserId":{"DtId":2,"DB":0,"CId":34,"FL":0},"DealUserNames":{"DtId":2,"DB":0,"CId":1,"FL":0}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2079.EntMsg.E2079.GetDataRowModel=function()
{
    return {"DealUserType":"","DealUsers":"","MainUser":"{@MainUserId*}","MainUserId":"","DealUserNames":"{@DealUsers*}","Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_DefaultF_2079_491(obj,curFieldName){
 var EntId=2079;
 var FldId=4;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''DealUsers'';
 var $formContainer=DcxForm.GetHtmlContainer(2079,''DefaultF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(2079,''DefaultF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"DealUsers\",FldId:"+FldId+",EntId:2079,CtrlPrex:\"DefaultF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"{$UserId},\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"Id\",CtrlTypeId:30,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''FlowId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2079,''DefaultF_'',''FlowId'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@FlowId}<*>"+v_f1+"<**>";
var v_f1=null;
if(''RunId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2079,''DefaultF_'',''RunId'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@RunId}<*>"+v_f1+"<**>";
var v_f1=null;
if(''NodeId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2079,''DefaultF_'',''NodeId'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@NodeId}<*>"+v_f1+"<**>";
var v_f1=null;
if(''DealUserType''==curFieldName)
  v_f1=DcxForm.GetRadioListValue(obj,2079,''DefaultF_'',''DealUserType'',$formContainer,false,false);
else 
  v_f1=DcxForm.GetRadioListValue(null,2079,''DefaultF_'',''DealUserType'',$formContainer,false,false);
if(Dcx.IsNull(v_f1))
   v_f1='''';
 strData.data = strData.data + "{@DealUserType}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d2079_DealUsers");
LrList.Init2(2079,''DefaultF_'', ''DealUsers'', '''', myVal,  false,null, true);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_DefaultF_2079_492(obj,curFieldName){
 var EntId=2079;
 var FldId=10;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''MainUser'';
 var $formContainer=DcxForm.GetHtmlContainer(2079,''DefaultF_'');
 var $ddlContainer=null;
var strCode="{@MainUserId&}" ;
var v_f1=null;
if(''MainUserId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,2079,''DefaultF_'',''MainUserId'',34,$formContainer,false,true);
if(v_f1==null)
   v_f1='''';
strCode=strCode.replaceAll("{@MainUserId&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d2079_MainUser");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
function GetLinkCtrlData_DefaultF_2079_493(obj,curFieldName){
 var EntId=2079;
 var FldId=11;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''MainUserId'';
 var $formContainer=DcxForm.GetHtmlContainer(2079,''DefaultF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(2079,''DefaultF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"MainUserId\",FldId:"+FldId+",EntId:2079,CtrlPrex:\"DefaultF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"{$UserId},\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"Id\",CtrlTypeId:34,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''FlowId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2079,''DefaultF_'',''FlowId'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@FlowId}<*>"+v_f1+"<**>";
var v_f1=null;
if(''RunId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2079,''DefaultF_'',''RunId'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@RunId}<*>"+v_f1+"<**>";
var v_f1=null;
if(''NodeId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2079,''DefaultF_'',''NodeId'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@NodeId}<*>"+v_f1+"<**>";
var v_f1=null;
if(''DealUserType''==curFieldName)
  v_f1=DcxForm.GetRadioListValue(obj,2079,''DefaultF_'',''DealUserType'',$formContainer,false,false);
else 
  v_f1=DcxForm.GetRadioListValue(null,2079,''DefaultF_'',''DealUserType'',$formContainer,false,false);
if(Dcx.IsNull(v_f1))
   v_f1='''';
 strData.data = strData.data + "{@DealUserType}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d2079_MainUserId");
 var $ddlContainer=DcxForm.GetFormDdlContainer(2079,''DefaultF_'');
$ddlContainer.find("#dds_d2079_MainUserId_ul").html(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_DefaultF_2079_494(obj,curFieldName){
 var EntId=2079;
 var FldId=12;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''DealUserNames'';
 var $formContainer=DcxForm.GetHtmlContainer(2079,''DefaultF_'');
 var $ddlContainer=null;
var strCode="{@DealUsers&}" ;
var v_f1=null;
if(''DealUsers''==curFieldName)
  v_f1=DcxForm.GetLrListValue(obj,2079,''DefaultF_'',''DealUsers'',$formContainer, false,true);
else 
  v_f1=DcxForm.GetLrListValue(null,2079,''DefaultF_'',''DealUsers'',$formContainer, false,true);
if(Dcx.IsNull(v_f1))
   v_f1='''';
strCode=strCode.replaceAll("{@DealUsers&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d2079_DealUserNames");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2079.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2079,''DefaultF_'',buildNew,closeDlg);

}','<$2079$>select [Id] from Dcx_Common where [Id]=''{$keyfieldvalue}''</$2079$>',10,'2079*Id*2*Id*2*Dcx_Common*选择经办人','','','',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-31 3:55:40',3,'admin','2013-10-2 18:34:26',1)
      end
      else 
      begin 
           update [Dcx_DefaultForm_Run] set [FormId]='85dbb7c2-8512-f95f-ac57-0fd119956843',[FormName]='选择经办人',[ModuleId]=-1,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script src="/Js/control/LRList/LRList.js"></script>',[DIYJsCss2]='<script type="text/javascript" src="/js/WorkFlow/FlowRun.js"></script>
<script type="text/javascript" src="/js/WorkFlow/SelectDealMan.js"></script>',[AutoPublicJs]='DcxRun.DefaultF_2079= {"MenuId":2915,"MEntId":2079,"EntName":"选择经办人","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2079":{"EntId":2079,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"Id","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{
LrList.CreateHtml(2079,''DefaultF_'',''DealUsers'',200,430,null,entMsg.E2079.FieldMsg.DealUsers_Value,false);

}
GetLinkCtrlData_DefaultF_2079_492(null,null);
GetLinkCtrlData_DefaultF_2079_494(null,null);
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":6,"Ent":[{"EntId":2079,"Fld":[{"FldId":1,"Vld":[]},{"FldId":2,"Vld":[]},{"FldId":3,"Vld":[{"Id":6,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":4,"Vld":[]},{"FldId":5,"Vld":[]},{"FldId":6,"Vld":[]},{"FldId":7,"Vld":[]},{"FldId":8,"Vld":[]},{"FldId":9,"Vld":[]},{"FldId":10,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":11,"Vld":[{"Id":4,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":12,"Vld":[]},{"FldId":13,"Vld":[]},{"FldId":14,"Vld":[]},{"FldId":15,"Vld":[]},{"FldId":16,"Vld":[]},{"FldId":17,"Vld":[]},{"FldId":18,"Vld":[]},{"FldId":19,"Vld":[]},{"FldId":20,"Vld":[]},{"FldId":21,"Vld":[]},{"FldId":22,"Vld":[]},{"FldId":23,"Vld":[]}]}]};
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2079.EntMsg.E2079.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_Common","EntId":2079,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"DealUserType":{"DtId":2,"DB":0,"CId":7,"FL":0},"DealUsers":{"DtId":2,"DB":0,"CId":30,"FL":0},"MainUser":{"DtId":2,"DB":0,"CId":1,"FL":0},"MainUserId":{"DtId":2,"DB":0,"CId":34,"FL":0},"DealUserNames":{"DtId":2,"DB":0,"CId":1,"FL":0}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2079.EntMsg.E2079.GetDataRowModel=function()
{
    return {"DealUserType":"","DealUsers":"","MainUser":"{@MainUserId*}","MainUserId":"","DealUserNames":"{@DealUsers*}","Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_DefaultF_2079_491(obj,curFieldName){
 var EntId=2079;
 var FldId=4;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''DealUsers'';
 var $formContainer=DcxForm.GetHtmlContainer(2079,''DefaultF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(2079,''DefaultF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"DealUsers\",FldId:"+FldId+",EntId:2079,CtrlPrex:\"DefaultF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"{$UserId},\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"Id\",CtrlTypeId:30,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''FlowId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2079,''DefaultF_'',''FlowId'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@FlowId}<*>"+v_f1+"<**>";
var v_f1=null;
if(''RunId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2079,''DefaultF_'',''RunId'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@RunId}<*>"+v_f1+"<**>";
var v_f1=null;
if(''NodeId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2079,''DefaultF_'',''NodeId'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@NodeId}<*>"+v_f1+"<**>";
var v_f1=null;
if(''DealUserType''==curFieldName)
  v_f1=DcxForm.GetRadioListValue(obj,2079,''DefaultF_'',''DealUserType'',$formContainer,false,false);
else 
  v_f1=DcxForm.GetRadioListValue(null,2079,''DefaultF_'',''DealUserType'',$formContainer,false,false);
if(Dcx.IsNull(v_f1))
   v_f1='''';
 strData.data = strData.data + "{@DealUserType}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d2079_DealUsers");
LrList.Init2(2079,''DefaultF_'', ''DealUsers'', '''', myVal,  false,null, true);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_DefaultF_2079_492(obj,curFieldName){
 var EntId=2079;
 var FldId=10;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''MainUser'';
 var $formContainer=DcxForm.GetHtmlContainer(2079,''DefaultF_'');
 var $ddlContainer=null;
var strCode="{@MainUserId&}" ;
var v_f1=null;
if(''MainUserId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,2079,''DefaultF_'',''MainUserId'',34,$formContainer,false,true);
if(v_f1==null)
   v_f1='''';
strCode=strCode.replaceAll("{@MainUserId&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d2079_MainUser");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
function GetLinkCtrlData_DefaultF_2079_493(obj,curFieldName){
 var EntId=2079;
 var FldId=11;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''MainUserId'';
 var $formContainer=DcxForm.GetHtmlContainer(2079,''DefaultF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(2079,''DefaultF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"MainUserId\",FldId:"+FldId+",EntId:2079,CtrlPrex:\"DefaultF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"{$UserId},\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"Id\",CtrlTypeId:34,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''FlowId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2079,''DefaultF_'',''FlowId'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@FlowId}<*>"+v_f1+"<**>";
var v_f1=null;
if(''RunId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2079,''DefaultF_'',''RunId'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@RunId}<*>"+v_f1+"<**>";
var v_f1=null;
if(''NodeId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2079,''DefaultF_'',''NodeId'',$formContainer);
if(v_f1==null)
   return;
 strData.data = strData.data + "{@NodeId}<*>"+v_f1+"<**>";
var v_f1=null;
if(''DealUserType''==curFieldName)
  v_f1=DcxForm.GetRadioListValue(obj,2079,''DefaultF_'',''DealUserType'',$formContainer,false,false);
else 
  v_f1=DcxForm.GetRadioListValue(null,2079,''DefaultF_'',''DealUserType'',$formContainer,false,false);
if(Dcx.IsNull(v_f1))
   v_f1='''';
 strData.data = strData.data + "{@DealUserType}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d2079_MainUserId");
 var $ddlContainer=DcxForm.GetFormDdlContainer(2079,''DefaultF_'');
$ddlContainer.find("#dds_d2079_MainUserId_ul").html(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_DefaultF_2079_494(obj,curFieldName){
 var EntId=2079;
 var FldId=12;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''DealUserNames'';
 var $formContainer=DcxForm.GetHtmlContainer(2079,''DefaultF_'');
 var $ddlContainer=null;
var strCode="{@DealUsers&}" ;
var v_f1=null;
if(''DealUsers''==curFieldName)
  v_f1=DcxForm.GetLrListValue(obj,2079,''DefaultF_'',''DealUsers'',$formContainer, false,true);
else 
  v_f1=DcxForm.GetLrListValue(null,2079,''DefaultF_'',''DealUsers'',$formContainer, false,true);
if(Dcx.IsNull(v_f1))
   v_f1='''';
strCode=strCode.replaceAll("{@DealUsers&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d2079_DealUserNames");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2079.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2079,''DefaultF_'',buildNew,closeDlg);

}',[LoadingSql]='<$2079$>select [Id] from Dcx_Common where [Id]=''{$keyfieldvalue}''</$2079$>',[PageSize]=10,[OtherMsg]='2079*Id*2*Id*2*Dcx_Common*选择经办人',[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-31 3:55:40',[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-2 18:34:26',[AccountId]=1 where  [EntId]=2079 
      end




--Dcx_DefaultFormField_Run
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='cbae2b69-ad0f-35f3-1e5b-083c4e4a756c'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'cbae2b69-ad0f-35f3-1e5b-083c4e4a756c',2079,2079,'00000000-0000-0000-0000-000000000000',1,'AllDealUser',1,1,-1,'',1,6,1,0,13,3,-1,-1,0,0,'','','','','<div class="defaultform ">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" isgroup="1" groupid="5" isrple="1">
<li style="width: 93px; height: 44px; position: static;" class="li-area-title" scroll="no" areaid="20">
<div id="div_head1" class="form-title5"><span id="h2_title" class="title-name">选择经办人</span></div></li>
<li style="width: 90px; height: 36px; display: none; position: static;" class="li-area1" scroll="no" areaid="21"><a class="f_hot_op_bt f_hot_op_bt3 " onclick="javascript:DcxForm.Close();" href="javascript:void(0);"><span class="op_bt_i">关闭</span> </a></li>
<li style="position: static; width: 90px; height: 36px; display: none;" class="li-area1" scroll="no" areaid="22"><a class="f_hot_op_bt f_hot_op_bt1 " onclick="javascript:DcxRun.DefaultF_2079.SubmitForm(false);" href="javascript:void(0);"><span class="op_bt_i">保存</span> </a></li>
<li style="width: 90px; height: 36px; display: none; position: static;" class="li-area1" scroll="no" areaid="23"><a id="btn_NewBrotherMenu" class="f_hot_op_bt f_hot_op_bt2" onclick="javascript:DcxForm.BuildNew(2079,''DefaultF_'');" href="javascript:void(0);"><span class="op_bt_i">新建</span> </a></li></ul></div>
<div class="frame-div">
<ul style="WIDTH: 650px" class="ul-mform" isgroup="1" groupid="1" isrple="1">
<li style="position: static; width: 615px; float: left; height: 30px; clear: none; display: none;" class="li-area" scroll="no" areaid="24">
<div style="MARGIN-LEFT: 140px" class="field-content pad4"><span class="form-ctr" isfcontain="1">','','','','<div class="form-radio" ><span class="form-radio-item" ><input id="d2079_AllDealUser"  name="d2079_AllDealUser" type="checkbox" class="form-ckb" yesv=''1'' nov=''0''  EntId="2079" IsField=1 DBField=0 IsPost=0 FieldName="AllDealUser" dType="1" Vtp="1" RDT="1" Isc="1" RId="6" CId="13" FId="1" vlk=0','/><label for="d2079_AllDealUser">显示所有人</label></span></div>','',1,24,-1,-1,0,'2079,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=1,[Form_EntId]=2079,[EntId]=2079,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[FieldName]='AllDealUser',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=1,[RunValueType]=6,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=13,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="defaultform ">
<div class="div_top">
<div class="title-div">
<ul class="ul-title" isgroup="1" groupid="5" isrple="1">
<li style="width: 93px; height: 44px; position: static;" class="li-area-title" scroll="no" areaid="20">
<div id="div_head1" class="form-title5"><span id="h2_title" class="title-name">选择经办人</span></div></li>
<li style="width: 90px; height: 36px; display: none; position: static;" class="li-area1" scroll="no" areaid="21"><a class="f_hot_op_bt f_hot_op_bt3 " onclick="javascript:DcxForm.Close();" href="javascript:void(0);"><span class="op_bt_i">关闭</span> </a></li>
<li style="position: static; width: 90px; height: 36px; display: none;" class="li-area1" scroll="no" areaid="22"><a class="f_hot_op_bt f_hot_op_bt1 " onclick="javascript:DcxRun.DefaultF_2079.SubmitForm(false);" href="javascript:void(0);"><span class="op_bt_i">保存</span> </a></li>
<li style="width: 90px; height: 36px; display: none; position: static;" class="li-area1" scroll="no" areaid="23"><a id="btn_NewBrotherMenu" class="f_hot_op_bt f_hot_op_bt2" onclick="javascript:DcxForm.BuildNew(2079,''DefaultF_'');" href="javascript:void(0);"><span class="op_bt_i">新建</span> </a></li></ul></div>
<div class="frame-div">
<ul style="WIDTH: 650px" class="ul-mform" isgroup="1" groupid="1" isrple="1">
<li style="position: static; width: 615px; float: left; height: 30px; clear: none; display: none;" class="li-area" scroll="no" areaid="24">
<div style="MARGIN-LEFT: 140px" class="field-content pad4"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-radio" ><span class="form-radio-item" ><input id="d2079_AllDealUser"  name="d2079_AllDealUser" type="checkbox" class="form-ckb" yesv=''1'' nov=''0''  EntId="2079" IsField=1 DBField=0 IsPost=0 FieldName="AllDealUser" dType="1" Vtp="1" RDT="1" Isc="1" RId="6" CId="13" FId="1" vlk=0',[CtrlbackHtml]='/><label for="d2079_AllDealUser">显示所有人</label></span></div>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=24,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2079,' where  [FldUId]='cbae2b69-ad0f-35f3-1e5b-083c4e4a756c' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='0b9642d9-349e-33e8-ca34-c96d2f8d6f9d'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'0b9642d9-349e-33e8-ca34-c96d2f8d6f9d',2079,2079,'00000000-0000-0000-0000-000000000000',2,'DealUserType',2,2,-1,'按用户|1',1,7,1,0,7,3,-1,-1,0,0,'','','','','</span> </div></li>
<li style="position: static; width: 715px; float: left; height: 35px; clear: none;" class="li-area" scroll="no" areaid="25">
<div style="MARGIN-LEFT: 140px" class="field-content pad4"><span class="form-ctr" isfcontain="1">','','','','<div id="d2079_DealUserType" class="form-radio" style="" EntId="2079" IsField=1 DBField=0 IsPost=1 FieldName="DealUserType" dType="2" Vtp="1" RDT="2" Isc="1" RId="7" CId="7" FId="3" vlk=0    CBack=1  Type="1"  onclick ="javascript:GetLinkCtrlData_DefaultF_2079_491(this,''DealUserType'');GetLinkCtrlData_DefaultF_2079_493(this,''DealUserType'');DcxVld.Validate(this,2079,''DefaultF_'',2079);" onfocus ="javascript:DcxVld.ValidateFocus(this,2079,''DefaultF_'',2079);"><span class="form-radio-item"  >
<input id="ddcx_2079_DealUserType_0"  name="ddcx_2079_DealUserType" checked ="checked" type="radio"  text="按用户"  value="1"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2079_DealUserType_0">按用户</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2079_DealUserType_1"  name="ddcx_2079_DealUserType"  type="radio"  text="按角色"  value="2"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2079_DealUserType_1">按角色</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2079_DealUserType_2"  name="ddcx_2079_DealUserType"  type="radio"  text="按部门"  value="3"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2079_DealUserType_2">按部门</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2079_DealUserType_3"  name="ddcx_2079_DealUserType"  type="radio"  text="创建者"  value="4"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2079_DealUserType_3">创建者</label></span>
<span class="clearfix"></span>','</div>','',1,25,-1,-1,0,'2079,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=3,[Form_EntId]=2079,[EntId]=2079,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[FieldName]='DealUserType',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='按用户|1',[ValueType]=1,[RunValueType]=7,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=7,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span> </div></li>
<li style="position: static; width: 715px; float: left; height: 35px; clear: none;" class="li-area" scroll="no" areaid="25">
<div style="MARGIN-LEFT: 140px" class="field-content pad4"><span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2079_DealUserType" class="form-radio" style="" EntId="2079" IsField=1 DBField=0 IsPost=1 FieldName="DealUserType" dType="2" Vtp="1" RDT="2" Isc="1" RId="7" CId="7" FId="3" vlk=0    CBack=1  Type="1"  onclick ="javascript:GetLinkCtrlData_DefaultF_2079_491(this,''DealUserType'');GetLinkCtrlData_DefaultF_2079_493(this,''DealUserType'');DcxVld.Validate(this,2079,''DefaultF_'',2079);" onfocus ="javascript:DcxVld.ValidateFocus(this,2079,''DefaultF_'',2079);"><span class="form-radio-item"  >
<input id="ddcx_2079_DealUserType_0"  name="ddcx_2079_DealUserType" checked ="checked" type="radio"  text="按用户"  value="1"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2079_DealUserType_0">按用户</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2079_DealUserType_1"  name="ddcx_2079_DealUserType"  type="radio"  text="按角色"  value="2"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2079_DealUserType_1">按角色</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2079_DealUserType_2"  name="ddcx_2079_DealUserType"  type="radio"  text="按部门"  value="3"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2079_DealUserType_2">按部门</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2079_DealUserType_3"  name="ddcx_2079_DealUserType"  type="radio"  text="创建者"  value="4"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2079_DealUserType_3">创建者</label></span>
<span class="clearfix"></span>',[CtrlbackHtml]='</div>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=25,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2079,' where  [FldUId]='0b9642d9-349e-33e8-ca34-c96d2f8d6f9d' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='9dea2722-02db-06c2-16ec-254fcaf24e19'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'9dea2722-02db-06c2-16ec-254fcaf24e19',2079,2079,'00000000-0000-0000-0000-000000000000',3,'MainUserId',2,2,-1,'EXEC	[dbo].[DcxRun_WF_FlowNode_GetCanDealUser]
	@FlowId = {@FlowId},@RunId = {@RunId},@NodeId = {@NodeId},
	@IdType = {@DealUserType},@UserId = {$UserId}',2,2,1,0,34,3,-1,-1,0,0,'','','FlowId,RunId,NodeId,DealUserType,','{$UserId},','</span> 
<div class="form-vld" iserr="1">&nbsp;</div></div></li>
<li style="position: static; width: 595px; float: left; height: 50px; clear: none;" class="li-area" scroll="no" areaid="37"><label class="area-title pad4" fldid="11" istitle="1" style="WIDTH: 70px; MARGIN-LEFT: 20px">主办人</label>
<div class="field-content pad4" style="MARGIN-LEFT: 20px">
	<span class="form-ctr" isfcontain="1">','','','','<div id="d2079_MainUserId" class="form-ddl" style="" CBack=1  IsForField=1 EntId="2079" FId="11" Vtp="2" RId="2" Isc="1" CId="34" FieldName="MainUserId" ><input  id="d2079_MainUserId_Text" type="text" class="form-ddl-txt" readonly="readOnly"  CId="34" FId="11" Vtp="2"  RId="2" Isc="1"  style="width:200px;" onclick ="javascript:DcxDdl.ShowDialogAf(this,2079,''MainUserId'',false);" onchange ="javascript:GetLinkCtrlData_DefaultF_2079_492(this,''MainUserId'');if(!DcxVld.Validate(this,2079,''DefaultF_'',2079,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2079,''DefaultF_'',2079);" onkeyup ="javascript:DcxDdl.ShowDialogAf(this,2079,''MainUserId'',true);" CBack=1  value="','" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2079_MainUserId_hid" type="hidden"  EntId="2079" IsField=1 DBField=0 IsPost=1 FieldName="MainUserId" dType="2" Vtp="2" RDT="2" Isc="1" RId="2" CId="34" FId="11" vlk=0    TFN="MainUser"  value="','"/>',1,37,-1,-1,0,'2079,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=11,[Form_EntId]=2079,[EntId]=2079,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[FieldName]='MainUserId',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='EXEC	[dbo].[DcxRun_WF_FlowNode_GetCanDealUser]
	@FlowId = {@FlowId},@RunId = {@RunId},@NodeId = {@NodeId},
	@IdType = {@DealUserType},@UserId = {$UserId}',[ValueType]=2,[RunValueType]=2,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=34,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='FlowId,RunId,NodeId,DealUserType,',[SystemVariables]='{$UserId},',[BeforeHtml]='</span> 
<div class="form-vld" iserr="1">&nbsp;</div></div></li>
<li style="position: static; width: 595px; float: left; height: 50px; clear: none;" class="li-area" scroll="no" areaid="37"><label class="area-title pad4" fldid="11" istitle="1" style="WIDTH: 70px; MARGIN-LEFT: 20px">主办人</label>
<div class="field-content pad4" style="MARGIN-LEFT: 20px">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2079_MainUserId" class="form-ddl" style="" CBack=1  IsForField=1 EntId="2079" FId="11" Vtp="2" RId="2" Isc="1" CId="34" FieldName="MainUserId" ><input  id="d2079_MainUserId_Text" type="text" class="form-ddl-txt" readonly="readOnly"  CId="34" FId="11" Vtp="2"  RId="2" Isc="1"  style="width:200px;" onclick ="javascript:DcxDdl.ShowDialogAf(this,2079,''MainUserId'',false);" onchange ="javascript:GetLinkCtrlData_DefaultF_2079_492(this,''MainUserId'');if(!DcxVld.Validate(this,2079,''DefaultF_'',2079,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2079,''DefaultF_'',2079);" onkeyup ="javascript:DcxDdl.ShowDialogAf(this,2079,''MainUserId'',true);" CBack=1  value="',[CtrlbackHtml]='" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2079_MainUserId_hid" type="hidden"  EntId="2079" IsField=1 DBField=0 IsPost=1 FieldName="MainUserId" dType="2" Vtp="2" RDT="2" Isc="1" RId="2" CId="34" FId="11" vlk=0    TFN="MainUser"  value="',[CtrlLastHtml]='"/>',[TableIndex]=1,[RowIndex]=37,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2079,' where  [FldUId]='9dea2722-02db-06c2-16ec-254fcaf24e19' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='5d229226-78b4-de84-3029-184b38b8b65d'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'5d229226-78b4-de84-3029-184b38b8b65d',2079,2079,'00000000-0000-0000-0000-000000000000',4,'MainUser',2,2,-1,'',5,1,1,0,1,3,-1,-1,0,0,'','','MainUserId,','','</span>
 <span class="form-ctr" isfcontain="1">','','','','<input  id="d2079_MainUser"   type="text" class="form-txt hide"  style="width:200px;display:none;" onblur ="javascript:if(!DcxVld.Validate(this,2079,''DefaultF_'',2079,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2079,''DefaultF_'',2079);" EntId="2079" IsField=1 DBField=0 IsPost=1 FieldName="MainUser" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="10" vlk=0    value="','"/>','',1,37,-1,-1,0,'2079,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=10,[Form_EntId]=2079,[EntId]=2079,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=4,[FieldName]='MainUser',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='MainUserId,',[SystemVariables]='',[BeforeHtml]='</span>
 <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2079_MainUser"   type="text" class="form-txt hide"  style="width:200px;display:none;" onblur ="javascript:if(!DcxVld.Validate(this,2079,''DefaultF_'',2079,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2079,''DefaultF_'',2079);" EntId="2079" IsField=1 DBField=0 IsPost=1 FieldName="MainUser" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="10" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=37,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2079,' where  [FldUId]='5d229226-78b4-de84-3029-184b38b8b65d' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='f04c5c3a-b1c3-5727-b67f-c1e4bb3610c3'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'f04c5c3a-b1c3-5727-b67f-c1e4bb3610c3',2079,2079,'00000000-0000-0000-0000-000000000000',5,'DealUsers',2,2,-1,'EXEC	[dbo].[DcxRun_WF_FlowNode_GetCanDealUser]
	@FlowId = {@FlowId},@RunId = {@RunId},@NodeId = {@NodeId},
	@IdType = {@DealUserType},@UserId = {$UserId}',2,10,1,0,30,3,-1,-1,0,0,'','','FlowId,RunId,NodeId,DealUserType,','{$UserId},','</span>

	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li>
<li style="position: static; width: 595px; float: left; height: 520px; clear: none;" class="li-area" scroll="no" areaid="35"><label class="area-title pad4" fldid="4" istitle="1" style="WIDTH: 70px; MARGIN-LEFT: 20px">经办人员</label>
<div class="field-content pad4" style="MARGIN-LEFT: 20px">
	<span class="form-ctr" isfcontain="1">','','','','<div id="d2079_DealUsers" class="form-lrlist" style="" CBack=1  IsForField=1 EntId="2079" FId="4" Vtp="2" RId="10" Isc="1" CId="30" FieldName="DealUsers"  onclick ="javascript:GetLinkCtrlData_DefaultF_2079_494(this,''DealUsers'');DcxVld.Validate(this,2079,''DefaultF_'',2079);" onfocus ="javascript:DcxVld.ValidateFocus(this,2079,''DefaultF_'',2079);">','</div> <input id="d2079_DealUsers_hid" type="hidden"  EntId="2079" IsField=1 DBField=0 IsPost=1 FieldName="DealUsers" dType="2" Vtp="2" RDT="2" Isc="1" RId="10" CId="30" FId="4" vlk=0    TFN="DealUserNames" />','',1,35,-1,-1,0,'2079,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=4,[Form_EntId]=2079,[EntId]=2079,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=5,[FieldName]='DealUsers',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='EXEC	[dbo].[DcxRun_WF_FlowNode_GetCanDealUser]
	@FlowId = {@FlowId},@RunId = {@RunId},@NodeId = {@NodeId},
	@IdType = {@DealUserType},@UserId = {$UserId}',[ValueType]=2,[RunValueType]=10,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=30,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='FlowId,RunId,NodeId,DealUserType,',[SystemVariables]='{$UserId},',[BeforeHtml]='</span>

	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li>
<li style="position: static; width: 595px; float: left; height: 520px; clear: none;" class="li-area" scroll="no" areaid="35"><label class="area-title pad4" fldid="4" istitle="1" style="WIDTH: 70px; MARGIN-LEFT: 20px">经办人员</label>
<div class="field-content pad4" style="MARGIN-LEFT: 20px">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2079_DealUsers" class="form-lrlist" style="" CBack=1  IsForField=1 EntId="2079" FId="4" Vtp="2" RId="10" Isc="1" CId="30" FieldName="DealUsers"  onclick ="javascript:GetLinkCtrlData_DefaultF_2079_494(this,''DealUsers'');DcxVld.Validate(this,2079,''DefaultF_'',2079);" onfocus ="javascript:DcxVld.ValidateFocus(this,2079,''DefaultF_'',2079);">',[CtrlbackHtml]='</div> <input id="d2079_DealUsers_hid" type="hidden"  EntId="2079" IsField=1 DBField=0 IsPost=1 FieldName="DealUsers" dType="2" Vtp="2" RDT="2" Isc="1" RId="10" CId="30" FId="4" vlk=0    TFN="DealUserNames" />',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=35,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2079,' where  [FldUId]='f04c5c3a-b1c3-5727-b67f-c1e4bb3610c3' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='37ae5edc-c4e3-a217-be54-40e5150495dc'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(12,'37ae5edc-c4e3-a217-be54-40e5150495dc',2079,2079,'00000000-0000-0000-0000-000000000000',6,'DealUserNames',2,2,-1,'',5,1,1,0,1,3,-1,-1,0,0,'','','DealUsers,','','</span>

 <span class="form-ctr" isfcontain="1">','','','','<input  id="d2079_DealUserNames"   type="text" class="form-txt hide"  style="width:100px;display:none;" onblur ="javascript:if(!DcxVld.Validate(this,2079,''DefaultF_'',2079,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2079,''DefaultF_'',2079);" EntId="2079" IsField=1 DBField=0 IsPost=1 FieldName="DealUserNames" dType="2" Vtp="5" RDT="2" Isc="1" RId="-1" CId="1" FId="12" vlk=0    value="','"/>','',1,35,-1,-1,0,'2079,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=12,[Form_EntId]=2079,[EntId]=2079,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=6,[FieldName]='DealUserNames',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='DealUsers,',[SystemVariables]='',[BeforeHtml]='</span>

 <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2079_DealUserNames"   type="text" class="form-txt hide"  style="width:100px;display:none;" onblur ="javascript:if(!DcxVld.Validate(this,2079,''DefaultF_'',2079,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2079,''DefaultF_'',2079);" EntId="2079" IsField=1 DBField=0 IsPost=1 FieldName="DealUserNames" dType="2" Vtp="5" RDT="2" Isc="1" RId="-1" CId="1" FId="12" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=35,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2079,' where  [FldUId]='37ae5edc-c4e3-a217-be54-40e5150495dc' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='8df0f60f-e449-379a-30df-cc68b10e10b2'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(13,'8df0f60f-e449-379a-30df-cc68b10e10b2',2079,2079,'00000000-0000-0000-0000-000000000000',7,'NodeId',2,2,-1,'NodeId',6,1,1,0,1,3,-1,-1,0,0,'','','','','</span>

 <span class="form-ctr" isfcontain="1">','','','','<input  id="d2079_NodeId"   type="text" class="form-txt hide"  style="width:100px;display:none;" onchange ="javascript:GetLinkCtrlData_DefaultF_2079_491(this,''NodeId'');GetLinkCtrlData_DefaultF_2079_493(this,''NodeId'');" EntId="2079" IsField=1 DBField=0 IsPost=0 FieldName="NodeId" dType="2" Vtp="6" RDT="2" Isc="1" RId="-1" CId="1" FId="13" vlk=0    CBack=1  value="','"/>','',1,35,-1,-1,0,'2079,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=13,[Form_EntId]=2079,[EntId]=2079,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=7,[FieldName]='NodeId',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='NodeId',[ValueType]=6,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

 <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2079_NodeId"   type="text" class="form-txt hide"  style="width:100px;display:none;" onchange ="javascript:GetLinkCtrlData_DefaultF_2079_491(this,''NodeId'');GetLinkCtrlData_DefaultF_2079_493(this,''NodeId'');" EntId="2079" IsField=1 DBField=0 IsPost=0 FieldName="NodeId" dType="2" Vtp="6" RDT="2" Isc="1" RId="-1" CId="1" FId="13" vlk=0    CBack=1  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=35,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2079,' where  [FldUId]='8df0f60f-e449-379a-30df-cc68b10e10b2' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='77c1d5a8-17ea-6cf2-e4fb-be7ed3eba6c8'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(14,'77c1d5a8-17ea-6cf2-e4fb-be7ed3eba6c8',2079,2079,'00000000-0000-0000-0000-000000000000',8,'RunId',2,2,-1,'RunId',6,1,1,0,1,3,-1,-1,0,0,'','','','','</span>

 <span class="form-ctr" isfcontain="1">','','','','<input  id="d2079_RunId"   type="text" class="form-txt hide"  style="width:200px;display:none;" onchange ="javascript:GetLinkCtrlData_DefaultF_2079_491(this,''RunId'');GetLinkCtrlData_DefaultF_2079_493(this,''RunId'');" EntId="2079" IsField=1 DBField=0 IsPost=0 FieldName="RunId" dType="2" Vtp="6" RDT="2" Isc="1" RId="-1" CId="1" FId="14" vlk=0    CBack=1  value="','"/>','',1,35,-1,-1,0,'2079,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=14,[Form_EntId]=2079,[EntId]=2079,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=8,[FieldName]='RunId',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='RunId',[ValueType]=6,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

 <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2079_RunId"   type="text" class="form-txt hide"  style="width:200px;display:none;" onchange ="javascript:GetLinkCtrlData_DefaultF_2079_491(this,''RunId'');GetLinkCtrlData_DefaultF_2079_493(this,''RunId'');" EntId="2079" IsField=1 DBField=0 IsPost=0 FieldName="RunId" dType="2" Vtp="6" RDT="2" Isc="1" RId="-1" CId="1" FId="14" vlk=0    CBack=1  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=35,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2079,' where  [FldUId]='77c1d5a8-17ea-6cf2-e4fb-be7ed3eba6c8' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='b26c07e5-11ed-c3b6-b16c-aef5a7eca186'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(15,'b26c07e5-11ed-c3b6-b16c-aef5a7eca186',2079,2079,'00000000-0000-0000-0000-000000000000',9,'PrcsId',2,2,-1,'PrcsId',6,1,1,0,1,3,-1,-1,0,0,'','','','','</span>

 <span class="form-ctr" isfcontain="1">','','','','<input  id="d2079_PrcsId"   type="text" class="form-txt hide"  style="width:100px;display:none;" EntId="2079" IsField=1 DBField=0 IsPost=0 FieldName="PrcsId" dType="2" Vtp="6" RDT="2" Isc="1" RId="-1" CId="1" FId="15" vlk=0    value="','"/>','',1,35,-1,-1,0,'2079,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=15,[Form_EntId]=2079,[EntId]=2079,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=9,[FieldName]='PrcsId',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='PrcsId',[ValueType]=6,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

 <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2079_PrcsId"   type="text" class="form-txt hide"  style="width:100px;display:none;" EntId="2079" IsField=1 DBField=0 IsPost=0 FieldName="PrcsId" dType="2" Vtp="6" RDT="2" Isc="1" RId="-1" CId="1" FId="15" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=35,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2079,' where  [FldUId]='b26c07e5-11ed-c3b6-b16c-aef5a7eca186' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='2f31ccd2-bba9-4813-5300-5f1fec24c481'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(23,'2f31ccd2-bba9-4813-5300-5f1fec24c481',2079,2079,'00000000-0000-0000-0000-000000000000',10,'FlowId',2,2,-1,'FlowId',6,1,1,0,1,3,-1,-1,0,0,'','','','','</span>

 <span class="form-ctr" isfcontain="1">','','','','<input  id="d2079_FlowId"   type="text" class="form-txt hide"  style="width:100px;display:none;" onchange ="javascript:GetLinkCtrlData_DefaultF_2079_491(this,''FlowId'');GetLinkCtrlData_DefaultF_2079_493(this,''FlowId'');" EntId="2079" IsField=1 DBField=0 IsPost=0 FieldName="FlowId" dType="2" Vtp="6" RDT="2" Isc="1" RId="-1" CId="1" FId="23" vlk=0    CBack=1  value="','"/>','',1,35,-1,-1,0,'2079,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=23,[Form_EntId]=2079,[EntId]=2079,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=10,[FieldName]='FlowId',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='FlowId',[ValueType]=6,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

 <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2079_FlowId"   type="text" class="form-txt hide"  style="width:100px;display:none;" onchange ="javascript:GetLinkCtrlData_DefaultF_2079_491(this,''FlowId'');GetLinkCtrlData_DefaultF_2079_493(this,''FlowId'');" EntId="2079" IsField=1 DBField=0 IsPost=0 FieldName="FlowId" dType="2" Vtp="6" RDT="2" Isc="1" RId="-1" CId="1" FId="23" vlk=0    CBack=1  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=35,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2079,' where  [FldUId]='2f31ccd2-bba9-4813-5300-5f1fec24c481' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='361adfe0-b434-e35e-51a3-eda07902347e'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'361adfe0-b434-e35e-51a3-eda07902347e',2079,2079,'00000000-0000-0000-0000-000000000000',11,'OtherUser',2,2,-1,'加载中...',1,1,1,0,1,3,-1,-1,0,0,'','','','','</span>
	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li>
<li style="position: static; width: 285px; float: left; height: 115px; clear: none; display: none;" class="li-area" scroll="no" areaid="34"><div class="field-content pad4">
	<table style="MARGIN-TOP: 20px; MARGIN-LEFT: 0px">
		<tbody>
			<tr>
				<td>
					<a class="list-bt-add" href="javascript:void(0);" onclick="javascript:InsertSql_BuildCondition(1,this);" style="MARGIN-TOP: 20px" title="添  加">添&nbsp;加</a></td>
				<td rowspan="2">
					<label class="area-title pad4" fldid="5" istitle="1" style="WIDTH: 50px">主办人 </label></td>
			</tr>
			<tr>
				<td>
					<a class="lform-bt-delete" href="javascript:void(0);" onclick="javascript:InsertSql_Clear(this);" style="WIDTH: 40px" title="清空SQL编辑区">清&nbsp;空</a></td>
			</tr>
		</tbody>
	</table>
</div>
<br>
</li>
<li style="width: 285px; float: left; height: 455px; clear: none; display: none; position: static;" class="li-area" scroll="no" areaid="33"><div class="field-content pad4" style="CLEAR: both">
	<table style="MARGIN-TOP: 0px; MARGIN-LEFT: 0px">
		<tbody>
			<tr>
				<td rowspan="2">
					<a class="list-bt-other" href="javascript:void(0);" onclick="javascript:InsertSql_BuildCondition(1,this);" title="全  选">全&nbsp;选</a><br>
					<a class="list-bt-add" href="javascript:void(0);" onclick="javascript:InsertSql_BuildCondition(1,this);" title="添  加">添&nbsp;加</a><br>
					<a class="lform-bt-delete" href="javascript:void(0);" onclick="javascript:InsertSql_Clear(this);" style="WIDTH: 40px" title="清空SQL编辑区">清&nbsp;空</a></td>
				<td rowspan="2">
					<label class="area-title pad4" fldid="6" istitle="1" style="WIDTH: 50px; CLEAR: both">经办人</label> <span class="form-ctr" isfcontain="1">','</span>
</td>
			</tr>
		</tbody>
	</table>
</div>
<br>
</li>
<li style="position: static; width: 115px; float: left; height: 500px; clear: none; display: none;" class="li-area" scroll="no" areaid="32">
<table style="MARGIN-TOP: 100px; MARGIN-LEFT: 0px">
<tbody>
<tr>
<td><a class="list-bt-add" title="插入条件至Sql编辑区" onclick="javascript:InsertSql_BuildCondition(1,this);" href="javascript:void(0);">插入条件&gt;</a></td></tr>
<tr>
<td><a style="WIDTH: 70px" class="lform-bt-delete" title="清空SQL编辑区" onclick="javascript:InsertSql_Clear(this);" href="javascript:void(0);">清&nbsp;&nbsp;空</a></td></tr></tbody></table><br></li>
<li style="width: 595px; height: 55px; display: none; position: static;" class="li-area" scroll="no" areaid="36"><label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">请编辑..</div></li></ul></div>
<div style="DISPLAY: none" class="div_tabs">
<ul class="tab_ul" isgroup="1" groupid="2" istab="1" islonly="1" style="" isrple="1">
<li style="width: 70px; height: 29px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no" areaid="26" istab="1" tabid="1"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li style="position: static;" class="ui-droppable  li-tab" scroll="no" areaid="27" istab="1" tabid="2"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li></ul>
<div class="tabs-content" tabid="1">
<ul class="ul-mform" isgroup="1" groupid="3" style="" isrple="1">
<li style="width: 595px; height: 55px; position: static;" class="li-area" scroll="no" areaid="28"><label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">请编辑..</div></li>
<li style="width: 595px; height: 55px; position: static;" class="li-area" fldid="-1" scroll="no" areaid="29"><label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">请编辑..</div></li></ul></div>
<div style="DISPLAY: none" class="tabs-content" tabid="2">
<ul class="ul-mform" isgroup="1" groupid="4" style="" isrple="1">
<li style="width: 595px; height: 55px; position: static;" class="li-area" scroll="no" areaid="30"><label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">请编辑..</div></li>
<li style="width: 595px; height: 55px; position: static;" class="li-area" scroll="no" areaid="31"><label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">请编辑..</div></li></ul></div></div></div></div><br>','','','<input  id="d2079_OtherUser"   type="text" class="form-txt"  style="width:200px;height:300px;" EntId="2079" IsField=1 DBField=0 IsPost=0 FieldName="OtherUser" dType="2" Vtp="1" RDT="2" Isc="1" RId="1" CId="1" FId="6" vlk=0    value="','"/>','',1,33,-1,-1,0,'2079,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=6,[Form_EntId]=2079,[EntId]=2079,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=11,[FieldName]='OtherUser',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='加载中...',[ValueType]=1,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li>
<li style="position: static; width: 285px; float: left; height: 115px; clear: none; display: none;" class="li-area" scroll="no" areaid="34"><div class="field-content pad4">
	<table style="MARGIN-TOP: 20px; MARGIN-LEFT: 0px">
		<tbody>
			<tr>
				<td>
					<a class="list-bt-add" href="javascript:void(0);" onclick="javascript:InsertSql_BuildCondition(1,this);" style="MARGIN-TOP: 20px" title="添  加">添&nbsp;加</a></td>
				<td rowspan="2">
					<label class="area-title pad4" fldid="5" istitle="1" style="WIDTH: 50px">主办人 </label></td>
			</tr>
			<tr>
				<td>
					<a class="lform-bt-delete" href="javascript:void(0);" onclick="javascript:InsertSql_Clear(this);" style="WIDTH: 40px" title="清空SQL编辑区">清&nbsp;空</a></td>
			</tr>
		</tbody>
	</table>
</div>
<br>
</li>
<li style="width: 285px; float: left; height: 455px; clear: none; display: none; position: static;" class="li-area" scroll="no" areaid="33"><div class="field-content pad4" style="CLEAR: both">
	<table style="MARGIN-TOP: 0px; MARGIN-LEFT: 0px">
		<tbody>
			<tr>
				<td rowspan="2">
					<a class="list-bt-other" href="javascript:void(0);" onclick="javascript:InsertSql_BuildCondition(1,this);" title="全  选">全&nbsp;选</a><br>
					<a class="list-bt-add" href="javascript:void(0);" onclick="javascript:InsertSql_BuildCondition(1,this);" title="添  加">添&nbsp;加</a><br>
					<a class="lform-bt-delete" href="javascript:void(0);" onclick="javascript:InsertSql_Clear(this);" style="WIDTH: 40px" title="清空SQL编辑区">清&nbsp;空</a></td>
				<td rowspan="2">
					<label class="area-title pad4" fldid="6" istitle="1" style="WIDTH: 50px; CLEAR: both">经办人</label> <span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
</td>
			</tr>
		</tbody>
	</table>
</div>
<br>
</li>
<li style="position: static; width: 115px; float: left; height: 500px; clear: none; display: none;" class="li-area" scroll="no" areaid="32">
<table style="MARGIN-TOP: 100px; MARGIN-LEFT: 0px">
<tbody>
<tr>
<td><a class="list-bt-add" title="插入条件至Sql编辑区" onclick="javascript:InsertSql_BuildCondition(1,this);" href="javascript:void(0);">插入条件&gt;</a></td></tr>
<tr>
<td><a style="WIDTH: 70px" class="lform-bt-delete" title="清空SQL编辑区" onclick="javascript:InsertSql_Clear(this);" href="javascript:void(0);">清&nbsp;&nbsp;空</a></td></tr></tbody></table><br></li>
<li style="width: 595px; height: 55px; display: none; position: static;" class="li-area" scroll="no" areaid="36"><label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">请编辑..</div></li></ul></div>
<div style="DISPLAY: none" class="div_tabs">
<ul class="tab_ul" isgroup="1" groupid="2" istab="1" islonly="1" style="" isrple="1">
<li style="width: 70px; height: 29px; position: static;" class="ui-droppable  li-tab de-selected" scroll="no" areaid="26" istab="1" tabid="1"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
<li style="position: static;" class="ui-droppable  li-tab" scroll="no" areaid="27" istab="1" tabid="2"><a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li></ul>
<div class="tabs-content" tabid="1">
<ul class="ul-mform" isgroup="1" groupid="3" style="" isrple="1">
<li style="width: 595px; height: 55px; position: static;" class="li-area" scroll="no" areaid="28"><label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">请编辑..</div></li>
<li style="width: 595px; height: 55px; position: static;" class="li-area" fldid="-1" scroll="no" areaid="29"><label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">请编辑..</div></li></ul></div>
<div style="DISPLAY: none" class="tabs-content" tabid="2">
<ul class="ul-mform" isgroup="1" groupid="4" style="" isrple="1">
<li style="width: 595px; height: 55px; position: static;" class="li-area" scroll="no" areaid="30"><label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">请编辑..</div></li>
<li style="width: 595px; height: 55px; position: static;" class="li-area" scroll="no" areaid="31"><label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">请编辑..</div></li></ul></div></div></div></div><br>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2079_OtherUser"   type="text" class="form-txt"  style="width:200px;height:300px;" EntId="2079" IsField=1 DBField=0 IsPost=0 FieldName="OtherUser" dType="2" Vtp="1" RDT="2" Isc="1" RId="1" CId="1" FId="6" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=33,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2079,' where  [FldUId]='361adfe0-b434-e35e-51a3-eda07902347e' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=1208

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=1208  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(1208,null,'Dcx_Common','Dcx_Common',1,0,0,0,0,0,45,1,3,'admin','2013-12-15 17:32:10',3,'admin','2013-12-15 17:32:10',null,null,27,83,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='Dcx_Common',[DBTableByName]='Dcx_Common',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=45,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:10',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:10',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=27,[SDbTableId]=83,[IsChange]=null,[IsSystem]=null where  [DBTableId]=1208 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1208  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19505,5,45,1208,'bit',4,1,1,'Dcx_Common','ParentId1','ParentId1','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Common',[FieldName]='ParentId1',[FieldByname]='ParentId1',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1208  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1208  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19506,4,45,1208,'int',1,1,1,'Dcx_Common','ParentId','ParentId','2',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Common',[FieldName]='ParentId',[FieldByname]='ParentId',[DefaultValue]='2',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1208  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1208  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19507,3,45,1208,'varchar',2,1,1,'Dcx_Common','Name','Name','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Common',[FieldName]='Name',[FieldByname]='Name',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1208  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1208  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19508,2,45,1208,'varchar',2,1,1,'Dcx_Common','Value','Value','sss',0,0,1,30,30,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Common',[FieldName]='Value',[FieldByname]='Value',[DefaultValue]='sss',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=30,[Precision]=30,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1208  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1208  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19509,1,45,1208,'int',1,1,1,'Dcx_Common','Id','Id','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Common',[FieldName]='Id',[FieldByname]='Id',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1208  and  [FieldId]=1 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 



Delete from [Dcx_EntityPrivilege]  where [EntId]=2080

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2080  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11114,-1,2080,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2080  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2080  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11460,-1,2080,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2080  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_BrowseReport_Run]  where [EntId]=2080

--Dcx_BrowseReport_Run
      if (select count(1) from [Dcx_BrowseReport_Run] where  [EntId]=2080  )<1 
      begin 
           Insert into [Dcx_BrowseReport_Run] ([ReportId],[ReportName],[EntId],[ModuleId],[StaticHtml],[LoadingSql],[StartUsingJs],[AtServer],[PageSize],[DIYJsCss],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[OtherMsg],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('21d3e2d4-d239-c04e-fa2e-1b131a84eb46','流程痕迹',2080,-1,'','<$2080$>select [RunName],[FlowName],[FlowId],[KeyFieldValue],[RunId] from WF_FlowRun where [RunId]=''{$keyfieldvalue}''</$2080$><$2081$>select [PrcsId],[PrcsName],[UserName],[DeliverTime],[PrcsFlag],[RunId] from WF_FlowRunPrcs where [RunId]=''{$mkeyValue}''</$2081$>',1,1,10,'','DcxRun.MChildR_2080= {"MenuId":2915,"MEntId":2080,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"流程痕迹","EntMsg":{"E2080":{"EntId":2080,"EntName":"流程痕迹","KeyFieldValue":"","DBTableName":"WF_FlowRun","KeyField":"RunId","KeydtId":2,"JoinKeyField":"RunId","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null},"E2081":{"EntId":2081,"EntName":"节点痕迹","KeyFieldValue":"","DBTableName":"WF_FlowRunPrcs","KeyField":"PrcsId","KeydtId":2,"JoinKeyField":"RunId","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":false,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};','try{
   runObj.FielDeal={"MaxDealId":9,"Ent":[{"EntId":2081,"Fld":[{"FldId":10,"Deal":[{"cdn":[{"fid":10,"b":"","l":"==1"}],"typeId":6,"dlV":[{"fid":-1,"b":"<strong><span style=\"color:#ffa500;\">未接收</span></strong>","l":""}]},{"cdn":[{"fid":10,"b":"","l":"==2"}],"typeId":6,"dlV":[{"fid":-1,"b":"<strong><span style=\"color:#daa520;\">已接收</span></strong>","l":""}]},{"cdn":[{"fid":10,"b":"","l":"==3"}],"typeId":6,"dlV":[{"fid":-1,"b":"<strong><span style=\"color:#008000;\">已办理</span></strong>","l":""}]},{"cdn":[{"fid":10,"b":"","l":"==4"}],"typeId":6,"dlV":[{"fid":-1,"b":"<strong><span style=\"color:#006400;\">已结束</span></strong>","l":""}]}]}],"Deal":[]}]};
 DcxReport.DealField(2080,''MChildR_'',false);}
catch(err){}','','2080*RunId*2*RunId*2*WF_FlowRun*流程痕迹,2081*PrcsId*2*RunId*2*WF_FlowRunPrcs*节点痕迹',3,'','2012-12-31 3:14:31',3,'','2013-7-30 2:53:50',1)
      end
      else 
      begin 
           update [Dcx_BrowseReport_Run] set [ReportId]='21d3e2d4-d239-c04e-fa2e-1b131a84eb46',[ReportName]='流程痕迹',[ModuleId]=-1,[StaticHtml]='',[LoadingSql]='<$2080$>select [RunName],[FlowName],[FlowId],[KeyFieldValue],[RunId] from WF_FlowRun where [RunId]=''{$keyfieldvalue}''</$2080$><$2081$>select [PrcsId],[PrcsName],[UserName],[DeliverTime],[PrcsFlag],[RunId] from WF_FlowRunPrcs where [RunId]=''{$mkeyValue}''</$2081$>',[StartUsingJs]=1,[AtServer]=1,[PageSize]=10,[DIYJsCss]='',[AutoPublicJs]='DcxRun.MChildR_2080= {"MenuId":2915,"MEntId":2080,"CtrlPrex":"MChildR_","AtServer":true,"MKeyFieldValue":"","ReportName":"流程痕迹","EntMsg":{"E2080":{"EntId":2080,"EntName":"流程痕迹","KeyFieldValue":"","DBTableName":"WF_FlowRun","KeyField":"RunId","KeydtId":2,"JoinKeyField":"RunId","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":true,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null},"E2081":{"EntId":2081,"EntName":"节点痕迹","KeyFieldValue":"","DBTableName":"WF_FlowRunPrcs","KeyField":"PrcsId","KeydtId":2,"JoinKeyField":"RunId","JKeydtId":2,"PageSize":10,"CurPageIndex":1,"RecortCount":0,"IsMEnt":false,"IsFlow":false,"FlowId":0,"Power":null,"ReportData":null,"ReportContainer":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"Deleted_kFVS":"","CtrlArea":null,"TrArea":null}}
};',[AutoInitJs]='try{
   runObj.FielDeal={"MaxDealId":9,"Ent":[{"EntId":2081,"Fld":[{"FldId":10,"Deal":[{"cdn":[{"fid":10,"b":"","l":"==1"}],"typeId":6,"dlV":[{"fid":-1,"b":"<strong><span style=\"color:#ffa500;\">未接收</span></strong>","l":""}]},{"cdn":[{"fid":10,"b":"","l":"==2"}],"typeId":6,"dlV":[{"fid":-1,"b":"<strong><span style=\"color:#daa520;\">已接收</span></strong>","l":""}]},{"cdn":[{"fid":10,"b":"","l":"==3"}],"typeId":6,"dlV":[{"fid":-1,"b":"<strong><span style=\"color:#008000;\">已办理</span></strong>","l":""}]},{"cdn":[{"fid":10,"b":"","l":"==4"}],"typeId":6,"dlV":[{"fid":-1,"b":"<strong><span style=\"color:#006400;\">已结束</span></strong>","l":""}]}]}],"Deal":[]}]};
 DcxReport.DealField(2080,''MChildR_'',false);}
catch(err){}',[AutoOtherJS]='',[OtherMsg]='2080*RunId*2*RunId*2*WF_FlowRun*流程痕迹,2081*PrcsId*2*RunId*2*WF_FlowRunPrcs*节点痕迹',[CreatorId]=3,[Creator]='',[CreateTime]='2012-12-31 3:14:31',[EditorId]=3,[Editor]='',[EditTime]='2013-7-30 2:53:50',[AccountId]=1 where  [EntId]=2080 
      end




--Dcx_BrowseReportField_Run
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='a16298d2-8b33-941c-420b-9166acaf6a50'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'a16298d2-8b33-941c-420b-9166acaf6a50',2080,2080,'00000000-0000-0000-0000-000000000000',2,'RunName',1,1,'varchar',2,1,0,'','','','<div class="browse ">
	<div class="div_top">
		<div class="title-div">
			<ul class="ul-title" groupid="5" isgroup="1" style="wIdth: 794px;" isrple="1">
				<li areaid="63" class="li-area-title" scroll="no" style="width: 76px; height: 34px; position: static;">
					<div class="form-title5" id="div_head1">
						<span class="title-name" id="h2_title">流程痕迹</span></div>
				</li>
				<li areaid="64" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;">
					<a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
				
			 			</ul>
		</div>
		<div class="frame-div">
			<ul class="ul-mform" groupid="1" isgroup="1" style="wIdth: 794px;" isrple="1">
				<li areaid="66" class="li-area" scroll="no" style="height: 38px; width: 395px; position: static;"><label class="area-title pad7" fldid="1" istitle="1">工作名称</label>
<div class="field-content pad7">
	<span isfield="1" entid="2080" fieldname="RunName" fldid="1" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'2080,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=1,[Report_EntId]=2080,[EntId]=2080,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='RunName',[FieldNO]=1,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='<div class="browse ">
	<div class="div_top">
		<div class="title-div">
			<ul class="ul-title" groupid="5" isgroup="1" style="wIdth: 794px;" isrple="1">
				<li areaid="63" class="li-area-title" scroll="no" style="width: 76px; height: 34px; position: static;">
					<div class="form-title5" id="div_head1">
						<span class="title-name" id="h2_title">流程痕迹</span></div>
				</li>
				<li areaid="64" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;">
					<a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
				
			 			</ul>
		</div>
		<div class="frame-div">
			<ul class="ul-mform" groupid="1" isgroup="1" style="wIdth: 794px;" isrple="1">
				<li areaid="66" class="li-area" scroll="no" style="height: 38px; width: 395px; position: static;"><label class="area-title pad7" fldid="1" istitle="1">工作名称</label>
<div class="field-content pad7">
	<span isfield="1" entid="2080" fieldname="RunName" fldid="1" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2080,' where  [FldUId]='a16298d2-8b33-941c-420b-9166acaf6a50' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='52204ced-ac0a-9169-8e87-e52c89711f0c'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'52204ced-ac0a-9169-8e87-e52c89711f0c',2080,2080,'00000000-0000-0000-0000-000000000000',4,'FlowName',2,1,'varchar',2,1,0,'','','','</span>

</div>
</li>
				<li areaid="75" class="li-area" scroll="no" style="height: 38px; width: 395px; position: static;"><label class="area-title pad7" fldid="3" istitle="1">流程类别</label>
<div class="field-content pad7">
	<span isfield="1" entid="2080" fieldname="FlowName" fldid="3" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'2080,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=3,[Report_EntId]=2080,[EntId]=2080,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=4,[FieldName]='FlowName',[FieldNO]=2,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>

</div>
</li>
				<li areaid="75" class="li-area" scroll="no" style="height: 38px; width: 395px; position: static;"><label class="area-title pad7" fldid="3" istitle="1">流程类别</label>
<div class="field-content pad7">
	<span isfield="1" entid="2080" fieldname="FlowName" fldid="3" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2080,' where  [FldUId]='52204ced-ac0a-9169-8e87-e52c89711f0c' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='d2c5c794-bac7-3124-3ff7-603af2c0e323'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(58,'d2c5c794-bac7-3124-3ff7-603af2c0e323',2080,2081,'00000000-0000-0000-0000-000000000000',-1,'CEntBegin',3,-1,'varchar',2,10,0,'','','','</span>

</div>
</li><li entname="节点痕迹" class="li-area w958" areaid="77" style="position: static; width: 792px;"><div class="field-content pad7" entid="2081" ischildentity="1">
	<!-- 开始 -->
	<div class="child-title">
		<span class="group-title pad7" istitle="1">痕迹明细 </span></div>
	<div class="browse listarea">
		<div class="lf-head">
			<ul class="ul-listtitle" groupid="27" isgroup="1" islisthead="1" islonly="1" style="wIdth: 750px;" isrple="1">
				<li areaid="78" class="li-head-item" style="width: 70px; height: 30px; clear: none; float: left; position: static;">
					<label class="head-label" istitle="1">序号 </label></li>
				<li areaid="80" class="li-head-item" style="width: 250px; height: 30px; clear: none; float: left; position: static;">
					<label class="head-label" istitle="1">步骤 </label></li>
				<li areaid="87" class="li-head-item" style="width: 110px; height: 30px; clear: none; float: left; position: static;">
					<label class="head-label" istitle="1">办理人</label></li>
				<li areaid="86" class="li-head-item" style="width: 190px; height: 30px; clear: none; float: left; position: static;">
					<label class="head-label" istitle="1">办理时间</label></li>
				<li areaid="85" class="li-head-item" style="width: 120px; height: 30px; clear: right; float: left; position: static;">
					<label class="head-label" istitle="1">状态</label></li>
				
			</ul>
		</div>
		<div class="lf-body">','',-1,28,-1,-1,1,'2081,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=58,[Report_EntId]=2080,[EntId]=2081,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='CEntBegin',[FieldNO]=3,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=10,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>

</div>
</li><li entname="节点痕迹" class="li-area w958" areaid="77" style="position: static; width: 792px;"><div class="field-content pad7" entid="2081" ischildentity="1">
	<!-- 开始 -->
	<div class="child-title">
		<span class="group-title pad7" istitle="1">痕迹明细 </span></div>
	<div class="browse listarea">
		<div class="lf-head">
			<ul class="ul-listtitle" groupid="27" isgroup="1" islisthead="1" islonly="1" style="wIdth: 750px;" isrple="1">
				<li areaid="78" class="li-head-item" style="width: 70px; height: 30px; clear: none; float: left; position: static;">
					<label class="head-label" istitle="1">序号 </label></li>
				<li areaid="80" class="li-head-item" style="width: 250px; height: 30px; clear: none; float: left; position: static;">
					<label class="head-label" istitle="1">步骤 </label></li>
				<li areaid="87" class="li-head-item" style="width: 110px; height: 30px; clear: none; float: left; position: static;">
					<label class="head-label" istitle="1">办理人</label></li>
				<li areaid="86" class="li-head-item" style="width: 190px; height: 30px; clear: none; float: left; position: static;">
					<label class="head-label" istitle="1">办理时间</label></li>
				<li areaid="85" class="li-head-item" style="width: 120px; height: 30px; clear: right; float: left; position: static;">
					<label class="head-label" istitle="1">状态</label></li>
				
			</ul>
		</div>
		<div class="lf-body">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=28,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2081,' where  [FldUId]='d2c5c794-bac7-3124-3ff7-603af2c0e323' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='dd6ef8bd-e728-27d8-6b29-6b6d2c95c6a7'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'dd6ef8bd-e728-27d8-6b29-6b6d2c95c6a7',2080,2081,'00000000-0000-0000-0000-000000000000',1,'PrcsId',4,1,'int',1,1,0,'','','','class="ul-listfield" groupid="28" isgroup="1" islonly="1" style="wIdth: 750px;" isrple="1">
				<li areaid="79" class="li-listfield" style="width: 70px; height: 30px; clear: none; float: left; position: static;"><div class="list-field" style="margin-left:5px;">
	<span isfield="1" entid="2081" fieldname="PrcsId" fldid="6" columntypeid="1" class="form-ctr">','',-1,28,-1,-1,1,'2081,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=6,[Report_EntId]=2080,[EntId]=2081,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=1,[FieldName]='PrcsId',[FieldNO]=4,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='class="ul-listfield" groupid="28" isgroup="1" islonly="1" style="wIdth: 750px;" isrple="1">
				<li areaid="79" class="li-listfield" style="width: 70px; height: 30px; clear: none; float: left; position: static;"><div class="list-field" style="margin-left:5px;">
	<span isfield="1" entid="2081" fieldname="PrcsId" fldid="6" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=28,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2081,' where  [FldUId]='dd6ef8bd-e728-27d8-6b29-6b6d2c95c6a7' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='ad2d5386-c011-224b-18ff-88bf5685df12'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'ad2d5386-c011-224b-18ff-88bf5685df12',2080,2081,'00000000-0000-0000-0000-000000000000',7,'PrcsName',5,1,'varchar',2,1,0,'','','','</span>

</div>
</li>
				<li areaid="81" class="li-listfield" style="width: 250px; height: 30px; clear: none; float: left; position: static;">
					<div class="list-field">
						<span isfield="1" entid="2081" fieldname="PrcsName" fldid="7" columntypeid="1" class="form-ctr">','',-1,28,-1,-1,1,'2081,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=7,[Report_EntId]=2080,[EntId]=2081,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=7,[FieldName]='PrcsName',[FieldNO]=5,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>

</div>
</li>
				<li areaid="81" class="li-listfield" style="width: 250px; height: 30px; clear: none; float: left; position: static;">
					<div class="list-field">
						<span isfield="1" entid="2081" fieldname="PrcsName" fldid="7" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=28,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2081,' where  [FldUId]='ad2d5386-c011-224b-18ff-88bf5685df12' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='dbf475fd-070e-55fc-abb4-bd09e1248ffd'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'dbf475fd-070e-55fc-abb4-bd09e1248ffd',2080,2081,'00000000-0000-0000-0000-000000000000',10,'UserName',6,1,'varchar',2,1,0,'','','','</span>

</div>
				</li>
				<li areaid="84" class="li-listfield" style="width: 110px; height: 30px; clear: none; float: left; position: static;">
					<div class="list-field">
						<span isfield="1" entid="2081" fieldname="UserName" fldid="8" columntypeid="1" class="form-ctr">','',-1,28,-1,-1,1,'2081,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=8,[Report_EntId]=2080,[EntId]=2081,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=10,[FieldName]='UserName',[FieldNO]=6,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>

</div>
				</li>
				<li areaid="84" class="li-listfield" style="width: 110px; height: 30px; clear: none; float: left; position: static;">
					<div class="list-field">
						<span isfield="1" entid="2081" fieldname="UserName" fldid="8" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=28,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2081,' where  [FldUId]='dbf475fd-070e-55fc-abb4-bd09e1248ffd' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='431b43a2-6747-bdc6-6ed0-b3951560a411'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'431b43a2-6747-bdc6-6ed0-b3951560a411',2080,2081,'00000000-0000-0000-0000-000000000000',14,'DeliverTime',7,1,'datetime',3,1,0,'','','','</span>
</div>
				</li>
				<li areaid="83" class="li-listfield" style="width: 190px; height: 30px; clear: none; float: left; position: static;">
					<div class="list-field">
						<span isfield="1" entid="2081" fieldname="DeliverTime" fldid="9" columntypeid="1" class="form-ctr">','',-1,28,-1,-1,1,'2081,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=9,[Report_EntId]=2080,[EntId]=2081,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=14,[FieldName]='DeliverTime',[FieldNO]=7,[ColumnTypeId]=1,[FieldDataType]='datetime',[FieldDataTypeId]=3,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
</div>
				</li>
				<li areaid="83" class="li-listfield" style="width: 190px; height: 30px; clear: none; float: left; position: static;">
					<div class="list-field">
						<span isfield="1" entid="2081" fieldname="DeliverTime" fldid="9" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=28,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2081,' where  [FldUId]='431b43a2-6747-bdc6-6ed0-b3951560a411' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='43b6ec05-dc68-d18d-28c0-0332fb9e4613'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'43b6ec05-dc68-d18d-28c0-0332fb9e4613',2080,2081,'00000000-0000-0000-0000-000000000000',16,'PrcsFlag',8,1,'varchar',2,1,0,'','','','</span>

</div>
				</li>
				<li areaid="82" class="li-listfield" style="width: 120px; height: 30px; clear: right; float: left; position: static;"><div class="list-field" style="margin-left:8px;">
	<span isfield="1" entid="2081" fieldname="PrcsFlag" fldid="10" columntypeid="1" class="form-ctr">','',82,28,-1,-1,1,'2081,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=10,[Report_EntId]=2080,[EntId]=2081,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=16,[FieldName]='PrcsFlag',[FieldNO]=8,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>

</div>
				</li>
				<li areaid="82" class="li-listfield" style="width: 120px; height: 30px; clear: right; float: left; position: static;"><div class="list-field" style="margin-left:8px;">
	<span isfield="1" entid="2081" fieldname="PrcsFlag" fldid="10" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=82,[TableIndex]=28,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2081,' where  [FldUId]='43b6ec05-dc68-d18d-28c0-0332fb9e4613' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='6b313153-0f0d-aa3b-3ddf-80258c22e33d'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(46,'6b313153-0f0d-aa3b-3ddf-80258c22e33d',2080,2081,'00000000-0000-0000-0000-000000000000',2,'RunId',9,1,'int',1,1,0,'','','','</span>
<a style="display:none;" href="javascript:void();" onclick="javascript:ShowFormData(','',82,28,-1,-1,1,'2081,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=46,[Report_EntId]=2080,[EntId]=2081,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=2,[FieldName]='RunId',[FieldNO]=9,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>
<a style="display:none;" href="javascript:void();" onclick="javascript:ShowFormData(',[LastHtml]='',[RowIndex]=82,[TableIndex]=28,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2081,' where  [FldUId]='6b313153-0f0d-aa3b-3ddf-80258c22e33d' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='b9be4399-5f2a-0adc-4212-70a285d391f8'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(47,'b9be4399-5f2a-0adc-4212-70a285d391f8',2080,2081,'00000000-0000-0000-0000-000000000000',1,'PrcsId',10,1,'int',1,1,0,'','','',',','',82,28,-1,-1,1,'2081,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=47,[Report_EntId]=2080,[EntId]=2081,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=1,[FieldName]='PrcsId',[FieldNO]=10,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=',',[LastHtml]='',[RowIndex]=82,[TableIndex]=28,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2081,' where  [FldUId]='b9be4399-5f2a-0adc-4212-70a285d391f8' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='a859859c-1626-e44a-5e10-4f6ce628df05'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(59,'a859859c-1626-e44a-5e10-4f6ce628df05',2080,2081,'00000000-0000-0000-0000-000000000000',-1,'CEntEnd',11,-1,'varchar',2,11,0,'','','',',2080,''BrowseR_'',this);">查看表单</a>
</div></li>
				
			</ul>','',-1,28,-1,-1,1,'2081,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=59,[Report_EntId]=2080,[EntId]=2081,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=-1,[FieldName]='CEntEnd',[FieldNO]=11,[ColumnTypeId]=-1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=11,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]=',2080,''BrowseR_'',this);">查看表单</a>
</div></li>
				
			</ul>',[LastHtml]='',[RowIndex]=-1,[TableIndex]=28,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=1,[SameRowChildEntId]='2081,' where  [FldUId]='a859859c-1626-e44a-5e10-4f6ce628df05' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='56a04bfc-d433-f988-30f3-074d32fee9f6'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'56a04bfc-d433-f988-30f3-074d32fee9f6',2080,2080,'00000000-0000-0000-0000-000000000000',3,'FlowId',12,1,'int',1,1,0,'','','','</div>
	</div>
	<!-- 结束 --></div>
</li><li areaid="67" class="li-area" scroll="no" style="height: 38px; width: 395px; position: static; display: none;"><label class="area-title pad7" fldid="2" istitle="1">FlowId</label>
<div class="field-content pad7">
	<span isfield="1" entid="2080" fieldname="FlowId" fldid="2" columntypeid="1" class="form-ctr">','',-1,-1,-1,-1,0,'2080,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=2,[Report_EntId]=2080,[EntId]=2080,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=3,[FieldName]='FlowId',[FieldNO]=12,[ColumnTypeId]=1,[FieldDataType]='int',[FieldDataTypeId]=1,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</div>
	</div>
	<!-- 结束 --></div>
</li><li areaid="67" class="li-area" scroll="no" style="height: 38px; width: 395px; position: static; display: none;"><label class="area-title pad7" fldid="2" istitle="1">FlowId</label>
<div class="field-content pad7">
	<span isfield="1" entid="2080" fieldname="FlowId" fldid="2" columntypeid="1" class="form-ctr">',[LastHtml]='',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2080,' where  [FldUId]='56a04bfc-d433-f988-30f3-074d32fee9f6' 
      end
      if (select count(1) from [Dcx_BrowseReportField_Run] where  [FldUId]='091d5eab-a346-2f7b-6029-901a3523059d'  )<1 
      begin 
           Insert into [Dcx_BrowseReportField_Run] ([FldId],[FldUId],[Report_EntId],[EntId],[EntUId],[DBFieldId],[FieldName],[FieldNO],[ColumnTypeId],[FieldDataType],[FieldDataTypeId],[FieldTypeId],[TotalUp],[SystemVariable],[CalculateFormula],[FrontHtml],[BeforeHtml],[LastHtml],[RowIndex],[TableIndex],[Parent_RowIndex],[Parent_TableIndex],[HaveChildEntity],[SameRowChildEntId])values(15,'091d5eab-a346-2f7b-6029-901a3523059d',2080,2080,'00000000-0000-0000-0000-000000000000',16,'KeyFieldValue',13,1,'varchar',2,1,0,'','','','</span>





</div>
</li><li areaid="74" class="li-area" scroll="no" style="height: 38px; width: 792px; position: static; display: none;"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad7">
	请编辑..</div>
</li><li areaid="90" class="li-area" scroll="no" style="height: 38px; width: 395px; position: static; display: none;"><label class="area-title pad7" fldid="14" istitle="1">Field9090</label>
<div class="field-content pad7">
	 

<span isfield="1" entid="2080" fieldname="KeyFieldValue" fldid="15" columntypeid="1" class="form-ctr">','</span>



</div>
</li>
			</ul>
		</div>
		<div class="div_tabs" style="display:none;">
			<ul class="tab_ul" groupid="2" isgroup="1" islonly="1" istab="1" style="" isrple="1">
				<li areaid="68" class="ui-droppable  li-tab de-selected" istab="1" scroll="no" style="height: 29px; width: 70px; position: static;" tabid="1"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
				<li areaid="69" class="ui-droppable  li-tab" istab="1" scroll="no" style="position: static;" tabid="2">
					<a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
			</ul>
			<div class="tabs-content" style="" tabid="1">
				<ul class="ul-mform" groupid="3" isgroup="1" style="" isrple="1">
					<li areaid="70" class="li-area" scroll="no" style="width: 395px; height: 38px; position: static;">
						<label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad7">
							请编辑..</div>
					</li>
					<li areaid="71" class="li-area" fldid="-1" scroll="no" style="width: 395px; height: 38px; position: static;">
						<label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad7">
							请编辑..</div>
					</li>
				</ul>
			</div>
			<div class="tabs-content" style="display: none;" tabid="2">
				<ul class="ul-mform" groupid="4" isgroup="1" style="" isrple="1">
					<li areaid="72" class="li-area" scroll="no" style="width: 395px; height: 38px; position: static;">
						<label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
					<li areaid="73" class="li-area" scroll="no" style="width: 395px; height: 38px; position: static;">
						<label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
				</ul>
			</div>
		</div>
	</div>
</div>  
<br>',-1,-1,-1,-1,0,'2080,')
      end
      else 
      begin 
           update [Dcx_BrowseReportField_Run] set [FldId]=15,[Report_EntId]=2080,[EntId]=2080,[EntUId]='00000000-0000-0000-0000-000000000000',[DBFieldId]=16,[FieldName]='KeyFieldValue',[FieldNO]=13,[ColumnTypeId]=1,[FieldDataType]='varchar',[FieldDataTypeId]=2,[FieldTypeId]=1,[TotalUp]=0,[SystemVariable]='',[CalculateFormula]='',[FrontHtml]='',[BeforeHtml]='</span>





</div>
</li><li areaid="74" class="li-area" scroll="no" style="height: 38px; width: 792px; position: static; display: none;"><label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad7">
	请编辑..</div>
</li><li areaid="90" class="li-area" scroll="no" style="height: 38px; width: 395px; position: static; display: none;"><label class="area-title pad7" fldid="14" istitle="1">Field9090</label>
<div class="field-content pad7">
	 

<span isfield="1" entid="2080" fieldname="KeyFieldValue" fldid="15" columntypeid="1" class="form-ctr">',[LastHtml]='</span>



</div>
</li>
			</ul>
		</div>
		<div class="div_tabs" style="display:none;">
			<ul class="tab_ul" groupid="2" isgroup="1" islonly="1" istab="1" style="" isrple="1">
				<li areaid="68" class="ui-droppable  li-tab de-selected" istab="1" scroll="no" style="height: 29px; width: 70px; position: static;" tabid="1"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
				<li areaid="69" class="ui-droppable  li-tab" istab="1" scroll="no" style="position: static;" tabid="2">
					<a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
			</ul>
			<div class="tabs-content" style="" tabid="1">
				<ul class="ul-mform" groupid="3" isgroup="1" style="" isrple="1">
					<li areaid="70" class="li-area" scroll="no" style="width: 395px; height: 38px; position: static;">
						<label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad7">
							请编辑..</div>
					</li>
					<li areaid="71" class="li-area" fldid="-1" scroll="no" style="width: 395px; height: 38px; position: static;">
						<label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad7">
							请编辑..</div>
					</li>
				</ul>
			</div>
			<div class="tabs-content" style="display: none;" tabid="2">
				<ul class="ul-mform" groupid="4" isgroup="1" style="" isrple="1">
					<li areaid="72" class="li-area" scroll="no" style="width: 395px; height: 38px; position: static;">
						<label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
					<li areaid="73" class="li-area" scroll="no" style="width: 395px; height: 38px; position: static;">
						<label class="area-title pad7" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
				</ul>
			</div>
		</div>
	</div>
</div>  
<br>',[RowIndex]=-1,[TableIndex]=-1,[Parent_RowIndex]=-1,[Parent_TableIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2080,' where  [FldUId]='091d5eab-a346-2f7b-6029-901a3523059d' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=657

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=657  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(657,null,'WF_FlowRun','WF_FlowRun',1,0,0,0,0,0,45,1,3,'admin','2013-12-15 17:32:36',3,'admin','2013-12-15 17:32:36',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='WF_FlowRun',[DBTableByName]='WF_FlowRun',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=45,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:36',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:36',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=657 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19062,1,45,657,'int',1,1,1,'WF_FlowRun','RunId','RunId','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='RunId',[FieldByname]='RunId',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19063,2,45,657,'varchar',2,1,1,'WF_FlowRun','RunName','RunName','',0,0,0,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='RunName',[FieldByname]='RunName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19064,3,45,657,'int',1,1,1,'WF_FlowRun','FlowId','FlowId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='FlowId',[FieldByname]='FlowId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19065,4,45,657,'varchar',2,1,1,'WF_FlowRun','FlowName','FlowName','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='FlowName',[FieldByname]='FlowName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19066,5,45,657,'varchar',2,1,1,'WF_FlowRun','AttachmentId','AttachmentId','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='AttachmentId',[FieldByname]='AttachmentId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19067,6,45,657,'varchar',2,1,1,'WF_FlowRun','AttachmentName','AttachmentName','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='AttachmentName',[FieldByname]='AttachmentName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19068,7,45,657,'varchar',2,1,1,'WF_FlowRun','HtmlStr','HtmlStr','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='HtmlStr',[FieldByname]='HtmlStr',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19069,8,45,657,'varchar',2,1,1,'WF_FlowRun','FlowLsh','FlowLsh','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='FlowLsh',[FieldByname]='FlowLsh',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19070,9,45,657,'varchar',2,1,1,'WF_FlowRun','CreatorName','CreatorName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='CreatorName',[FieldByname]='CreatorName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19071,10,45,657,'tinyint',23,1,1,'WF_FlowRun','FinishFlag','FinishFlag','1',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='FinishFlag',[FieldByname]='FinishFlag',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19072,11,45,657,'varchar',2,1,1,'WF_FlowRun','FormItems','FormItems','',0,0,1,8000,8000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='FormItems',[FieldByname]='FormItems',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8000,[Precision]=8000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19073,12,45,657,'int',1,1,1,'WF_FlowRun','EntId','EntId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='EntId',[FieldByname]='EntId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19074,13,45,657,'varchar',2,1,1,'WF_FlowRun','EntName','EntName','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='EntName',[FieldByname]='EntName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19075,14,45,657,'varchar',2,1,1,'WF_FlowRun','DbTableName','DbTableName','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='DbTableName',[FieldByname]='DbTableName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19076,15,45,657,'varchar',2,1,1,'WF_FlowRun','KeyField','KeyField','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='KeyField',[FieldByname]='KeyField',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19077,16,45,657,'varchar',2,1,1,'WF_FlowRun','KeyFieldValue','KeyFieldValue','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='KeyFieldValue',[FieldByname]='KeyFieldValue',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19078,17,45,657,'varchar',2,1,1,'WF_FlowRun','Feedback','Feedback','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='Feedback',[FieldByname]='Feedback',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19079,18,45,657,'varchar',2,1,1,'WF_FlowRun','Feedback2','Feedback2','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='Feedback2',[FieldByname]='Feedback2',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19080,19,45,657,'bit',4,1,1,'WF_FlowRun','IsFreeFlow','IsFreeFlow','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='IsFreeFlow',[FieldByname]='IsFreeFlow',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19081,20,45,657,'bit',4,1,1,'WF_FlowRun','IsPause','IsPause','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='IsPause',[FieldByname]='IsPause',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19082,21,45,657,'bit',4,1,1,'WF_FlowRun','IsClose','IsClose','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='IsClose',[FieldByname]='IsClose',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19083,22,45,657,'int',1,1,1,'WF_FlowRun','CreatorId','CreatorId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='CreatorId',[FieldByname]='CreatorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19084,23,45,657,'datetime',3,1,1,'WF_FlowRun','CreateTime','CreateTime','',0,0,0,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='CreateTime',[FieldByname]='CreateTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19085,24,45,657,'int',1,1,1,'WF_FlowRun','EditorId','EditorId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='EditorId',[FieldByname]='EditorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19086,25,45,657,'datetime',3,1,1,'WF_FlowRun','EditTime','EditTime','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='EditTime',[FieldByname]='EditTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19087,26,45,657,'varchar',2,1,1,'WF_FlowRun','CreatorBoss','CreatorBoss','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='CreatorBoss',[FieldByname]='CreatorBoss',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=26 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=27  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19088,27,45,657,'int',1,1,1,'WF_FlowRun','PauseUserId','PauseUserId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='PauseUserId',[FieldByname]='PauseUserId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=27 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=28  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19089,28,45,657,'varchar',2,1,1,'WF_FlowRun','PauseUserName','PauseUserName','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='PauseUserName',[FieldByname]='PauseUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=28 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=29  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19090,29,45,657,'datetime',3,1,1,'WF_FlowRun','PauseDate','PauseDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='PauseDate',[FieldByname]='PauseDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=29 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=30  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19091,30,45,657,'datetime',3,1,1,'WF_FlowRun','CancelPauseDate','CancelPauseDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='CancelPauseDate',[FieldByname]='CancelPauseDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=30 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=31  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19092,31,45,657,'int',1,1,1,'WF_FlowRun','RecoverUserId','RecoverUserId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='RecoverUserId',[FieldByname]='RecoverUserId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=31 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=32  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19093,32,45,657,'varchar',2,1,1,'WF_FlowRun','RecoverUserName','RecoverUserName','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='RecoverUserName',[FieldByname]='RecoverUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=32 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=33  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19094,33,45,657,'datetime',3,1,1,'WF_FlowRun','RecoverDate','RecoverDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='RecoverDate',[FieldByname]='RecoverDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=33 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=34  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19095,34,45,657,'int',1,1,1,'WF_FlowRun','DeleteUserId','DeleteUserId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='DeleteUserId',[FieldByname]='DeleteUserId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=34 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=35  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19096,35,45,657,'varchar',2,1,1,'WF_FlowRun','DeleteUserName','DeleteUserName','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='DeleteUserName',[FieldByname]='DeleteUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=35 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=36  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19097,36,45,657,'datetime',3,1,1,'WF_FlowRun','DeleteDate','DeleteDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='DeleteDate',[FieldByname]='DeleteDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=36 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=37  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19098,37,45,657,'int',1,1,1,'WF_FlowRun','AccountId','AccountId','1',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='AccountId',[FieldByname]='AccountId',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=37 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 



Delete from [Dcx_EntityPrivilege]  where [EntId]=2081

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2081  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11115,-1,2081,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2081  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2081  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11461,-1,2081,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2081  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_EntityPrivilege]  where [EntId]=2082

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2082  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11116,-1,2082,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2082  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2082  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11462,-1,2082,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2082  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_DefaultForm_Run]  where [EntId]=2082

--Dcx_DefaultForm_Run
      if (select count(1) from [Dcx_DefaultForm_Run] where  [EntId]=2082  )<1 
      begin 
           Insert into [Dcx_DefaultForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[OtherMsg],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('96dc4109-9091-ef7c-6cc6-001c70070000','驳回流程',2082,-1,'','',0,'','','DcxRun.DefaultF_2082= {"MenuId":2915,"MEntId":2082,"EntName":"驳回（作废）","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2082":{"EntId":2082,"KeyFieldValue":"","DBTableName":"","KeyField":"RunId","KeydtId":2,"JoinKeyField":"RunId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":6,"Ent":[{"EntId":2082,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":4,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":2,"Vld":[{"Id":5,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":6,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,200}$","err":"限制0-200个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":3,"Vld":[]},{"FldId":4,"Vld":[]},{"FldId":5,"Vld":[]}]}]};
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2082.EntMsg.E2082.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"WF_FlowRun","EntId":2082,"KeyField":"RunId","MKeyField":"RunId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"FlowId":{"DtId":1,"DB":1,"CId":1,"FL":4},"RunName":{"DtId":2,"DB":1,"CId":1,"FL":200}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2082.EntMsg.E2082.GetDataRowModel=function()
{
    return {"FlowId":-1,"RunName":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"RunId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2082.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2082,''DefaultF_'',buildNew,closeDlg);

}','<$2082$>select [FlowId],[RunName],[RunId] from WF_FlowRun where [RunId]=''{$keyfieldvalue}''</$2082$>',10,'2082*RunId*2*RunId*2*WF_FlowRun*驳回（作废）','','','',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-31 3:59:12',3,'admin','2013-10-2 18:34:27',1)
      end
      else 
      begin 
           update [Dcx_DefaultForm_Run] set [FormId]='96dc4109-9091-ef7c-6cc6-001c70070000',[FormName]='驳回流程',[ModuleId]=-1,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.DefaultF_2082= {"MenuId":2915,"MEntId":2082,"EntName":"驳回（作废）","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2082":{"EntId":2082,"KeyFieldValue":"","DBTableName":"","KeyField":"RunId","KeydtId":2,"JoinKeyField":"RunId","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":6,"Ent":[{"EntId":2082,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":4,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,4}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":2,"Vld":[{"Id":5,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""},{"Id":6,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,200}$","err":"限制0-200个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":3,"Vld":[]},{"FldId":4,"Vld":[]},{"FldId":5,"Vld":[]}]}]};
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2082.EntMsg.E2082.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"WF_FlowRun","EntId":2082,"KeyField":"RunId","MKeyField":"RunId","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"FlowId":{"DtId":1,"DB":1,"CId":1,"FL":4},"RunName":{"DtId":2,"DB":1,"CId":1,"FL":200}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2082.EntMsg.E2082.GetDataRowModel=function()
{
    return {"FlowId":-1,"RunName":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"RunId","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2082.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2082,''DefaultF_'',buildNew,closeDlg);

}',[LoadingSql]='<$2082$>select [FlowId],[RunName],[RunId] from WF_FlowRun where [RunId]=''{$keyfieldvalue}''</$2082$>',[PageSize]=10,[OtherMsg]='2082*RunId*2*RunId*2*WF_FlowRun*驳回（作废）',[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-31 3:59:12',[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-2 18:34:27',[AccountId]=1 where  [EntId]=2082 
      end




--Dcx_DefaultFormField_Run
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='accaecb3-128e-646f-b443-9668404960ec'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'accaecb3-128e-646f-b443-9668404960ec',2082,2082,'00000000-0000-0000-0000-000000000000',1,'FlowId',1,1,3,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','<div class="defaultform ">
	<div class="div_top">
		<div class="title-div">
			<ul class="ul-title" groupid="5" isgroup="1" isrple="1">
				<li areaid="20" class="li-area-title" scroll="no" style="width: 76px; height: 44px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">驳回流程</span></div>
</li>
				<li areaid="21" class="li-area1" scroll="no" style="position: static; width: 90px; height: 36px; display: none;"><a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
				<li areaid="22" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.DefaultF_2082.SubmitForm(false);"><span class="op_bt_i">驳回</span> </a></li>
				
			</ul>
		</div>
		<div class="frame-div">
			<ul class="ul-mform" groupid="1" isgroup="1" isrple="1">
				<li areaid="24" class="li-area" scroll="no" style="height: 55px; width: 595px; display: none; position: static;"><label class="area-title pad4" fldid="1" istitle="1">FlowId</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2082_FlowId"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2082,''DefaultF_'',2082,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2082,''DefaultF_'',2082);" EntId="2082" IsField=1 DBField=1 IsPost=1 FieldName="FlowId" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="1" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2082,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=1,[Form_EntId]=2082,[EntId]=2082,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[FieldName]='FlowId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=3,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="defaultform ">
	<div class="div_top">
		<div class="title-div">
			<ul class="ul-title" groupid="5" isgroup="1" isrple="1">
				<li areaid="20" class="li-area-title" scroll="no" style="width: 76px; height: 44px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">驳回流程</span></div>
</li>
				<li areaid="21" class="li-area1" scroll="no" style="position: static; width: 90px; height: 36px; display: none;"><a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
				<li areaid="22" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.DefaultF_2082.SubmitForm(false);"><span class="op_bt_i">驳回</span> </a></li>
				
			</ul>
		</div>
		<div class="frame-div">
			<ul class="ul-mform" groupid="1" isgroup="1" isrple="1">
				<li areaid="24" class="li-area" scroll="no" style="height: 55px; width: 595px; display: none; position: static;"><label class="area-title pad4" fldid="1" istitle="1">FlowId</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2082_FlowId"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2082,''DefaultF_'',2082,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2082,''DefaultF_'',2082);" EntId="2082" IsField=1 DBField=1 IsPost=1 FieldName="FlowId" dType="1" Vtp="5" RDT="1" Isc="1" RId="1" CId="1" FId="1" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2082,' where  [FldUId]='accaecb3-128e-646f-b443-9668404960ec' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='e1d7ca33-8ed9-8ab1-bd23-e23f18dbb49f'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'e1d7ca33-8ed9-8ab1-bd23-e23f18dbb49f',2082,2082,'00000000-0000-0000-0000-000000000000',2,'RunName',2,2,2,'',5,1,1,0,1,1,-1,-1,1,0,'','','','','</span>



</div>
</li>
				<li areaid="25" class="li-area" scroll="no" style="height: 55px; width: 595px; display: none; position: static;"><label class="area-title pad4" fldid="2" istitle="1">工作名称</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2082_RunName"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2082,''DefaultF_'',2082,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2082,''DefaultF_'',2082);" EntId="2082" IsField=1 DBField=1 IsPost=1 FieldName="RunName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2082,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=2,[Form_EntId]=2082,[EntId]=2082,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[FieldName]='RunName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=2,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>



</div>
</li>
				<li areaid="25" class="li-area" scroll="no" style="height: 55px; width: 595px; display: none; position: static;"><label class="area-title pad4" fldid="2" istitle="1">工作名称</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2082_RunName"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2082,''DefaultF_'',2082,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2082,''DefaultF_'',2082);" EntId="2082" IsField=1 DBField=1 IsPost=1 FieldName="RunName" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2082,' where  [FldUId]='e1d7ca33-8ed9-8ab1-bd23-e23f18dbb49f' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='72d22ff0-80bc-e9da-9f5e-3c002426ac89'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'72d22ff0-80bc-e9da-9f5e-3c002426ac89',2082,2082,'00000000-0000-0000-0000-000000000000',3,'PrcsNodes',2,2,-1,'',1,7,1,0,7,3,1,-1,0,0,'','','','','</span>
</div>
</li><li areaid="33" class="li-area" scroll="no" style="width: 595px; min-height: 100px; position: static;"><label class="area-title pad4" fldid="-1" istitle="1">驳回节点 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<div id="d2082_PrcsNodes" class="form-radio" style="" EntId="2082" IsField=1 DBField=0 IsPost=0 FieldName="PrcsNodes" dType="2" Vtp="1" RDT="2" Isc="1" RId="7" CId="7" FId="4" vlk=0    Type="1" ><span class="form-radio-item"  >
<input id="ddcx_2082_PrcsNodes_0"  name="ddcx_2082_PrcsNodes"  type="radio"  text="未知"  value="-1"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2082_PrcsNodes_0">未知</label></span>
<span class="clearfix"></span>
<span class="clearfix"></span>','</div>','',1,33,-1,-1,0,'2082,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=4,[Form_EntId]=2082,[EntId]=2082,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[FieldName]='PrcsNodes',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=1,[RunValueType]=7,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=7,[FieldTypeId]=3,[RepeatColumns]=1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li areaid="33" class="li-area" scroll="no" style="width: 595px; min-height: 100px; position: static;"><label class="area-title pad4" fldid="-1" istitle="1">驳回节点 </label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2082_PrcsNodes" class="form-radio" style="" EntId="2082" IsField=1 DBField=0 IsPost=0 FieldName="PrcsNodes" dType="2" Vtp="1" RDT="2" Isc="1" RId="7" CId="7" FId="4" vlk=0    Type="1" ><span class="form-radio-item"  >
<input id="ddcx_2082_PrcsNodes_0"  name="ddcx_2082_PrcsNodes"  type="radio"  text="未知"  value="-1"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2082_PrcsNodes_0">未知</label></span>
<span class="clearfix"></span>
<span class="clearfix"></span>',[CtrlbackHtml]='</div>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=33,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2082,' where  [FldUId]='72d22ff0-80bc-e9da-9f5e-3c002426ac89' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='3453d055-bff5-c851-af88-1c424bf92350'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'3453d055-bff5-c851-af88-1c424bf92350',2082,2082,'00000000-0000-0000-0000-000000000000',4,'Remark',2,2,-1,'',5,1,1,0,2,3,-1,-1,0,0,'','','','','</span>
</div>
</li><li areaid="32" class="li-area" scroll="no" style="height: 91px; width: 595px; position: static;"><label class="area-title pad4" fldid="5" istitle="1">驳回的理由</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','</span>
</div></li>
			</ul>
		</div>
		<div class="div_tabs" style="display:none;">
			<ul class="tab_ul" groupid="2" isgroup="1" islonly="1" istab="1" style="" isrple="1">
				<li areaid="26" class="ui-droppable  li-tab de-selected" istab="1" scroll="no" style="height: 29px; width: 70px; position: static;" tabid="1">
					<a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
				<li areaid="27" class="ui-droppable  li-tab" istab="1" scroll="no" style="position: static;" tabid="2">
					<a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
			</ul>
			<div class="tabs-content" style="" tabid="1">
				<ul class="ul-mform" groupid="3" isgroup="1" style="" isrple="1">
					<li areaid="28" class="li-area" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
					<li areaid="29" class="li-area" fldid="-1" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
				</ul>
			</div>
			<div class="tabs-content" style="display: none;" tabid="2">
				<ul class="ul-mform" groupid="4" isgroup="1" style="" isrple="1">
					<li areaid="30" class="li-area" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
					<li areaid="31" class="li-area" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
				</ul>
			</div>
		</div>
	</div>
</div>
<br>','','','<textarea  id="d2082_Remark" class="form-txts"  style="width:320px;height:60px;" EntId="2082" IsField=1 DBField=0 IsPost=0 FieldName="Remark" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="5" vlk=0    >','</textarea>','',1,32,-1,-1,0,'2082,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=5,[Form_EntId]=2082,[EntId]=2082,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=4,[FieldName]='Remark',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li areaid="32" class="li-area" scroll="no" style="height: 91px; width: 595px; position: static;"><label class="area-title pad4" fldid="5" istitle="1">驳回的理由</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
</div></li>
			</ul>
		</div>
		<div class="div_tabs" style="display:none;">
			<ul class="tab_ul" groupid="2" isgroup="1" islonly="1" istab="1" style="" isrple="1">
				<li areaid="26" class="ui-droppable  li-tab de-selected" istab="1" scroll="no" style="height: 29px; width: 70px; position: static;" tabid="1">
					<a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
				<li areaid="27" class="ui-droppable  li-tab" istab="1" scroll="no" style="position: static;" tabid="2">
					<a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
			</ul>
			<div class="tabs-content" style="" tabid="1">
				<ul class="ul-mform" groupid="3" isgroup="1" style="" isrple="1">
					<li areaid="28" class="li-area" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
					<li areaid="29" class="li-area" fldid="-1" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
				</ul>
			</div>
			<div class="tabs-content" style="display: none;" tabid="2">
				<ul class="ul-mform" groupid="4" isgroup="1" style="" isrple="1">
					<li areaid="30" class="li-area" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
					<li areaid="31" class="li-area" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
				</ul>
			</div>
		</div>
	</div>
</div>
<br>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d2082_Remark" class="form-txts"  style="width:320px;height:60px;" EntId="2082" IsField=1 DBField=0 IsPost=0 FieldName="Remark" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="5" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=32,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2082,' where  [FldUId]='3453d055-bff5-c851-af88-1c424bf92350' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=657

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=657  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(657,null,'WF_FlowRun','WF_FlowRun',1,0,0,0,0,0,45,1,3,'admin','2013-12-15 17:32:36',3,'admin','2013-12-15 17:32:36',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='WF_FlowRun',[DBTableByName]='WF_FlowRun',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=45,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:36',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:36',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=657 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19062,1,45,657,'int',1,1,1,'WF_FlowRun','RunId','RunId','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='RunId',[FieldByname]='RunId',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19063,2,45,657,'varchar',2,1,1,'WF_FlowRun','RunName','RunName','',0,0,0,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='RunName',[FieldByname]='RunName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19064,3,45,657,'int',1,1,1,'WF_FlowRun','FlowId','FlowId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='FlowId',[FieldByname]='FlowId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19065,4,45,657,'varchar',2,1,1,'WF_FlowRun','FlowName','FlowName','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='FlowName',[FieldByname]='FlowName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19066,5,45,657,'varchar',2,1,1,'WF_FlowRun','AttachmentId','AttachmentId','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='AttachmentId',[FieldByname]='AttachmentId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19067,6,45,657,'varchar',2,1,1,'WF_FlowRun','AttachmentName','AttachmentName','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='AttachmentName',[FieldByname]='AttachmentName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19068,7,45,657,'varchar',2,1,1,'WF_FlowRun','HtmlStr','HtmlStr','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='HtmlStr',[FieldByname]='HtmlStr',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19069,8,45,657,'varchar',2,1,1,'WF_FlowRun','FlowLsh','FlowLsh','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='FlowLsh',[FieldByname]='FlowLsh',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19070,9,45,657,'varchar',2,1,1,'WF_FlowRun','CreatorName','CreatorName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='CreatorName',[FieldByname]='CreatorName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19071,10,45,657,'tinyint',23,1,1,'WF_FlowRun','FinishFlag','FinishFlag','1',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='FinishFlag',[FieldByname]='FinishFlag',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19072,11,45,657,'varchar',2,1,1,'WF_FlowRun','FormItems','FormItems','',0,0,1,8000,8000,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='FormItems',[FieldByname]='FormItems',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8000,[Precision]=8000,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19073,12,45,657,'int',1,1,1,'WF_FlowRun','EntId','EntId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='EntId',[FieldByname]='EntId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19074,13,45,657,'varchar',2,1,1,'WF_FlowRun','EntName','EntName','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='EntName',[FieldByname]='EntName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19075,14,45,657,'varchar',2,1,1,'WF_FlowRun','DbTableName','DbTableName','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='DbTableName',[FieldByname]='DbTableName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19076,15,45,657,'varchar',2,1,1,'WF_FlowRun','KeyField','KeyField','',0,0,1,500,500,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='KeyField',[FieldByname]='KeyField',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=500,[Precision]=500,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=15 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=16  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19077,16,45,657,'varchar',2,1,1,'WF_FlowRun','KeyFieldValue','KeyFieldValue','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='KeyFieldValue',[FieldByname]='KeyFieldValue',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=16 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=17  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19078,17,45,657,'varchar',2,1,1,'WF_FlowRun','Feedback','Feedback','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='Feedback',[FieldByname]='Feedback',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=17 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=18  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19079,18,45,657,'varchar',2,1,1,'WF_FlowRun','Feedback2','Feedback2','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='Feedback2',[FieldByname]='Feedback2',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=18 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=19  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19080,19,45,657,'bit',4,1,1,'WF_FlowRun','IsFreeFlow','IsFreeFlow','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='IsFreeFlow',[FieldByname]='IsFreeFlow',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=19 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=20  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19081,20,45,657,'bit',4,1,1,'WF_FlowRun','IsPause','IsPause','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='IsPause',[FieldByname]='IsPause',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=20 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=21  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19082,21,45,657,'bit',4,1,1,'WF_FlowRun','IsClose','IsClose','',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='IsClose',[FieldByname]='IsClose',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=21 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=22  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19083,22,45,657,'int',1,1,1,'WF_FlowRun','CreatorId','CreatorId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='CreatorId',[FieldByname]='CreatorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=22 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=23  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19084,23,45,657,'datetime',3,1,1,'WF_FlowRun','CreateTime','CreateTime','',0,0,0,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='CreateTime',[FieldByname]='CreateTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=23 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=24  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19085,24,45,657,'int',1,1,1,'WF_FlowRun','EditorId','EditorId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='EditorId',[FieldByname]='EditorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=24 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=25  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19086,25,45,657,'datetime',3,1,1,'WF_FlowRun','EditTime','EditTime','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='EditTime',[FieldByname]='EditTime',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=25 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=26  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19087,26,45,657,'varchar',2,1,1,'WF_FlowRun','CreatorBoss','CreatorBoss','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='CreatorBoss',[FieldByname]='CreatorBoss',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=26 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=27  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19088,27,45,657,'int',1,1,1,'WF_FlowRun','PauseUserId','PauseUserId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='PauseUserId',[FieldByname]='PauseUserId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=27 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=28  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19089,28,45,657,'varchar',2,1,1,'WF_FlowRun','PauseUserName','PauseUserName','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='PauseUserName',[FieldByname]='PauseUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=28 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=29  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19090,29,45,657,'datetime',3,1,1,'WF_FlowRun','PauseDate','PauseDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='PauseDate',[FieldByname]='PauseDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=29 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=30  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19091,30,45,657,'datetime',3,1,1,'WF_FlowRun','CancelPauseDate','CancelPauseDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='CancelPauseDate',[FieldByname]='CancelPauseDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=30 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=31  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19092,31,45,657,'int',1,1,1,'WF_FlowRun','RecoverUserId','RecoverUserId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='RecoverUserId',[FieldByname]='RecoverUserId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=31 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=32  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19093,32,45,657,'varchar',2,1,1,'WF_FlowRun','RecoverUserName','RecoverUserName','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='RecoverUserName',[FieldByname]='RecoverUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=32 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=33  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19094,33,45,657,'datetime',3,1,1,'WF_FlowRun','RecoverDate','RecoverDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='RecoverDate',[FieldByname]='RecoverDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=33 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=34  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19095,34,45,657,'int',1,1,1,'WF_FlowRun','DeleteUserId','DeleteUserId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='DeleteUserId',[FieldByname]='DeleteUserId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=34 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=35  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19096,35,45,657,'varchar',2,1,1,'WF_FlowRun','DeleteUserName','DeleteUserName','',0,0,1,100,100,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='DeleteUserName',[FieldByname]='DeleteUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=100,[Precision]=100,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=35 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=36  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19097,36,45,657,'datetime',3,1,1,'WF_FlowRun','DeleteDate','DeleteDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='DeleteDate',[FieldByname]='DeleteDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=36 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=657  and  [FieldId]=37  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19098,37,45,657,'int',1,1,1,'WF_FlowRun','AccountId','AccountId','1',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_FlowRun',[FieldName]='AccountId',[FieldByname]='AccountId',[DefaultValue]='1',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=657  and  [FieldId]=37 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 



Delete from [Dcx_EntityPrivilege]  where [EntId]=2083

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2083  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11117,-1,2083,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2083  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2083  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11463,-1,2083,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2083  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_DefaultForm_Run]  where [EntId]=2083

--Dcx_DefaultForm_Run
      if (select count(1) from [Dcx_DefaultForm_Run] where  [EntId]=2083  )<1 
      begin 
           Insert into [Dcx_DefaultForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[OtherMsg],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('568b84a3-fd0c-5329-ee46-456e91e9461c','委托办理',2083,-1,'','',0,'<script src="/Js/control/LRList/LRList.js"></script>','','DcxRun.DefaultF_2083= {"MenuId":2915,"MEntId":2083,"EntName":"委托（作废）","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2083":{"EntId":2083,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"Id","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{
entMsg.E2083.FieldMsg.MainUser_Value="结束\/-1,其他\/-1";
LrList.CreateLeftHtml(2083,''DefaultF_'',''MainUser'',200,250,null,entMsg.E2083.FieldMsg.MainUser_Value,false);

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":1,"Ent":[{"EntId":2083,"Fld":[{"FldId":1,"Vld":[]},{"FldId":2,"Vld":[]},{"FldId":3,"Vld":[]},{"FldId":4,"Vld":[]},{"FldId":5,"Vld":[]},{"FldId":6,"Vld":[]},{"FldId":7,"Vld":[]},{"FldId":8,"Vld":[]},{"FldId":9,"Vld":[]}]}]};
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2083.EntMsg.E2083.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_Common","EntId":2083,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2083.EntMsg.E2083.GetDataRowModel=function()
{
    return {"Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2083.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2083,''DefaultF_'',buildNew,closeDlg);

}','<$2083$>select [Id] from Dcx_Common where [Id]=''{$keyfieldvalue}''</$2083$>',10,'2083*Id*2*Id*2*Dcx_Common*委托（作废）','','','',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2012-12-31 4:01:47',3,'admin','2013-10-2 18:34:28',1)
      end
      else 
      begin 
           update [Dcx_DefaultForm_Run] set [FormId]='568b84a3-fd0c-5329-ee46-456e91e9461c',[FormName]='委托办理',[ModuleId]=-1,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script src="/Js/control/LRList/LRList.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.DefaultF_2083= {"MenuId":2915,"MEntId":2083,"EntName":"委托（作废）","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2083":{"EntId":2083,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"Id","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{
entMsg.E2083.FieldMsg.MainUser_Value="结束\/-1,其他\/-1";
LrList.CreateLeftHtml(2083,''DefaultF_'',''MainUser'',200,250,null,entMsg.E2083.FieldMsg.MainUser_Value,false);

}
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":1,"Ent":[{"EntId":2083,"Fld":[{"FldId":1,"Vld":[]},{"FldId":2,"Vld":[]},{"FldId":3,"Vld":[]},{"FldId":4,"Vld":[]},{"FldId":5,"Vld":[]},{"FldId":6,"Vld":[]},{"FldId":7,"Vld":[]},{"FldId":8,"Vld":[]},{"FldId":9,"Vld":[]}]}]};
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2083.EntMsg.E2083.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"Dcx_Common","EntId":2083,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2083.EntMsg.E2083.GetDataRowModel=function()
{
    return {"Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2083.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2083,''DefaultF_'',buildNew,closeDlg);

}',[LoadingSql]='<$2083$>select [Id] from Dcx_Common where [Id]=''{$keyfieldvalue}''</$2083$>',[PageSize]=10,[OtherMsg]='2083*Id*2*Id*2*Dcx_Common*委托（作废）',[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2012-12-31 4:01:47',[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-2 18:34:28',[AccountId]=1 where  [EntId]=2083 
      end




--Dcx_DefaultFormField_Run
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='d23bca27-201c-50d9-b233-a042b8b29b11'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'d23bca27-201c-50d9-b233-a042b8b29b11',2083,2083,'00000000-0000-0000-0000-000000000000',1,'AllDealUser',2,2,-1,'',1,6,1,0,13,3,-1,-1,0,0,'','','','','<div class="defaultform ">
	<div class="div_top">
		<div class="title-div">
			<ul class="ul-title" groupid="5" isgroup="1" isrple="1">
				<li areaid="20" class="li-area-title" scroll="no" style="position: static; width: 76px; height: 45px;">
					<div class="form-title5" id="div_head1">
						<span class="title-name" id="h2_title">委托办理</span></div>
				</li>
				<li areaid="21" class="li-area1" scroll="no" style="width: 90px; height: 45px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
				<li areaid="22" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.DefaultF_2083.SubmitForm(false);"><span class="op_bt_i">委托</span> </a></li>
				
			</ul>
		</div>
		<div class="frame-div">
			<ul class="ul-mform" groupid="1" isgroup="1" isrple="1">
				<li areaid="24" class="li-area" scroll="no" style="height: 45px; width: 595px; position: static; clear: both; display: none;"><div class="field-content pad4" style="margin-left:80px;">
	<span class="form-ctr" isfcontain="1">','','','','<div class="form-radio" ><span class="form-radio-item" ><input id="d2083_AllDealUser"  name="d2083_AllDealUser" type="checkbox" class="form-ckb" yesv=''true'' nov=''false''  EntId="2083" IsField=1 DBField=0 IsPost=0 FieldName="AllDealUser" dType="2" Vtp="1" RDT="2" Isc="1" RId="6" CId="13" FId="1" vlk=0','/><label for="d2083_AllDealUser">显示所有人</label></span></div>','',1,24,-1,-1,0,'2083,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=1,[Form_EntId]=2083,[EntId]=2083,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[FieldName]='AllDealUser',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=1,[RunValueType]=6,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=13,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="defaultform ">
	<div class="div_top">
		<div class="title-div">
			<ul class="ul-title" groupid="5" isgroup="1" isrple="1">
				<li areaid="20" class="li-area-title" scroll="no" style="position: static; width: 76px; height: 45px;">
					<div class="form-title5" id="div_head1">
						<span class="title-name" id="h2_title">委托办理</span></div>
				</li>
				<li areaid="21" class="li-area1" scroll="no" style="width: 90px; height: 45px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
				<li areaid="22" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.DefaultF_2083.SubmitForm(false);"><span class="op_bt_i">委托</span> </a></li>
				
			</ul>
		</div>
		<div class="frame-div">
			<ul class="ul-mform" groupid="1" isgroup="1" isrple="1">
				<li areaid="24" class="li-area" scroll="no" style="height: 45px; width: 595px; position: static; clear: both; display: none;"><div class="field-content pad4" style="margin-left:80px;">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div class="form-radio" ><span class="form-radio-item" ><input id="d2083_AllDealUser"  name="d2083_AllDealUser" type="checkbox" class="form-ckb" yesv=''true'' nov=''false''  EntId="2083" IsField=1 DBField=0 IsPost=0 FieldName="AllDealUser" dType="2" Vtp="1" RDT="2" Isc="1" RId="6" CId="13" FId="1" vlk=0',[CtrlbackHtml]='/><label for="d2083_AllDealUser">显示所有人</label></span></div>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=24,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2083,' where  [FldUId]='d23bca27-201c-50d9-b233-a042b8b29b11' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='9d2fd7f9-502d-6d34-6d85-648b9c3b9ca4'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'9d2fd7f9-502d-6d34-6d85-648b9c3b9ca4',2083,2083,'00000000-0000-0000-0000-000000000000',2,'DealUserType',2,2,-1,'按经办人|1',1,7,1,0,7,3,1,-1,0,0,'','','','','</span>
</div>
</li>
				<li areaid="25" class="li-area" scroll="no" style="height: 280px; width: 240px; clear: none; float: left; position: static; display: none;"><div class="field-content pad4" style="margin-left:80px;">
	<span class="form-ctr" isfcontain="1">','','','','<div id="d2083_DealUserType" class="form-radio" style="" EntId="2083" IsField=1 DBField=0 IsPost=0 FieldName="DealUserType" dType="2" Vtp="1" RDT="2" Isc="1" RId="7" CId="7" FId="2" vlk=0    Type="1" ><span class="form-radio-item"  >
<input id="ddcx_2083_DealUserType_0"  name="ddcx_2083_DealUserType" checked ="checked" type="radio"  text="按经办人"  value="1"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2083_DealUserType_0">按经办人</label></span>
<span class="clearfix"></span>
<span class="form-radio-item" style="clear: left;" >
<input id="ddcx_2083_DealUserType_1"  name="ddcx_2083_DealUserType"  type="radio"  text="按创建者"  value="2"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2083_DealUserType_1">按创建者</label></span>
<span class="clearfix"></span>
<span class="form-radio-item" style="clear: left;" >
<input id="ddcx_2083_DealUserType_2"  name="ddcx_2083_DealUserType"  type="radio"  text="按创建者上级"  value="3"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2083_DealUserType_2">按创建者上级</label></span>
<span class="clearfix"></span>
<span class="form-radio-item" style="clear: left;" >
<input id="ddcx_2083_DealUserType_3"  name="ddcx_2083_DealUserType"  type="radio"  text="按角色"  value="4"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2083_DealUserType_3">按角色</label></span>
<span class="clearfix"></span>
<span class="form-radio-item" style="clear: left;" >
<input id="ddcx_2083_DealUserType_4"  name="ddcx_2083_DealUserType"  type="radio"  text="按职位与部门"  value="5"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2083_DealUserType_4">按职位与部门</label></span>
<span class="clearfix"></span>','</div>','',1,25,-1,-1,0,'2083,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=2,[Form_EntId]=2083,[EntId]=2083,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[FieldName]='DealUserType',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='按经办人|1',[ValueType]=1,[RunValueType]=7,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=7,[FieldTypeId]=3,[RepeatColumns]=1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
				<li areaid="25" class="li-area" scroll="no" style="height: 280px; width: 240px; clear: none; float: left; position: static; display: none;"><div class="field-content pad4" style="margin-left:80px;">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2083_DealUserType" class="form-radio" style="" EntId="2083" IsField=1 DBField=0 IsPost=0 FieldName="DealUserType" dType="2" Vtp="1" RDT="2" Isc="1" RId="7" CId="7" FId="2" vlk=0    Type="1" ><span class="form-radio-item"  >
<input id="ddcx_2083_DealUserType_0"  name="ddcx_2083_DealUserType" checked ="checked" type="radio"  text="按经办人"  value="1"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2083_DealUserType_0">按经办人</label></span>
<span class="clearfix"></span>
<span class="form-radio-item" style="clear: left;" >
<input id="ddcx_2083_DealUserType_1"  name="ddcx_2083_DealUserType"  type="radio"  text="按创建者"  value="2"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2083_DealUserType_1">按创建者</label></span>
<span class="clearfix"></span>
<span class="form-radio-item" style="clear: left;" >
<input id="ddcx_2083_DealUserType_2"  name="ddcx_2083_DealUserType"  type="radio"  text="按创建者上级"  value="3"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2083_DealUserType_2">按创建者上级</label></span>
<span class="clearfix"></span>
<span class="form-radio-item" style="clear: left;" >
<input id="ddcx_2083_DealUserType_3"  name="ddcx_2083_DealUserType"  type="radio"  text="按角色"  value="4"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2083_DealUserType_3">按角色</label></span>
<span class="clearfix"></span>
<span class="form-radio-item" style="clear: left;" >
<input id="ddcx_2083_DealUserType_4"  name="ddcx_2083_DealUserType"  type="radio"  text="按职位与部门"  value="5"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2083_DealUserType_4">按职位与部门</label></span>
<span class="clearfix"></span>',[CtrlbackHtml]='</div>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=25,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2083,' where  [FldUId]='9d2fd7f9-502d-6d34-6d85-648b9c3b9ca4' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='760a837b-59fe-7613-db4b-c86d85c3b77d'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'760a837b-59fe-7613-db4b-c86d85c3b77d',2083,2083,'00000000-0000-0000-0000-000000000000',3,'MainUser',2,2,-1,'',1,10,1,0,50,3,-1,-1,0,0,'','','','','</span>
</div>
</li><li areaid="33" class="li-area" scroll="no" style="height: 280px; width: 250px; clear: none; float: left; display: none; position: static;"><div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<div id="d2083_MainUser" class="form-lrlist" style="" IsForField=1 EntId="2083" FId="3" Vtp="1" RId="10" Isc="1" CId="50" FieldName="MainUser" >','</div> <input id="d2083_MainUser_hid" type="hidden"  EntId="2083" IsField=1 DBField=0 IsPost=0 FieldName="MainUser" dType="2" Vtp="1" RDT="2" Isc="1" RId="10" CId="50" FId="3" vlk=0   />','',1,33,-1,-1,0,'2083,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=3,[Form_EntId]=2083,[EntId]=2083,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[FieldName]='MainUser',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=1,[RunValueType]=10,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=50,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li areaid="33" class="li-area" scroll="no" style="height: 280px; width: 250px; clear: none; float: left; display: none; position: static;"><div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2083_MainUser" class="form-lrlist" style="" IsForField=1 EntId="2083" FId="3" Vtp="1" RId="10" Isc="1" CId="50" FieldName="MainUser" >',[CtrlbackHtml]='</div> <input id="d2083_MainUser_hid" type="hidden"  EntId="2083" IsField=1 DBField=0 IsPost=0 FieldName="MainUser" dType="2" Vtp="1" RDT="2" Isc="1" RId="10" CId="50" FId="3" vlk=0   />',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=33,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2083,' where  [FldUId]='760a837b-59fe-7613-db4b-c86d85c3b77d' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='b333beb1-ec83-441e-948f-2cf69680a7fa'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'b333beb1-ec83-441e-948f-2cf69680a7fa',2083,2083,'00000000-0000-0000-0000-000000000000',4,'NoteType',2,2,-1,'无通知|-1',1,7,1,0,7,3,-1,-1,0,0,'','','','','</span>
</div>
</li><li areaid="34" class="li-area" scroll="no" style="height: 55px; width: 595px; position: static;"><label class="area-title pad4" fldid="9" istitle="1">通知方式</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<div id="d2083_NoteType" class="form-radio" style="" EntId="2083" IsField=1 DBField=0 IsPost=0 FieldName="NoteType" dType="2" Vtp="1" RDT="2" Isc="1" RId="7" CId="7" FId="9" vlk=0    Type="1" ><span class="form-radio-item"  >
<input id="ddcx_2083_NoteType_0"  name="ddcx_2083_NoteType" checked ="checked" type="radio"  text="无通知"  value="-1"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2083_NoteType_0">无通知</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2083_NoteType_1"  name="ddcx_2083_NoteType"  type="radio"  text="内部短信"  value="1"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2083_NoteType_1">内部短信</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2083_NoteType_2"  name="ddcx_2083_NoteType"  type="radio"  text="内部邮件"  value="2"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2083_NoteType_2">内部邮件</label></span>
<span class="clearfix"></span>','</div>','',1,34,-1,-1,0,'2083,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=9,[Form_EntId]=2083,[EntId]=2083,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=4,[FieldName]='NoteType',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='无通知|-1',[ValueType]=1,[RunValueType]=7,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=7,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li areaid="34" class="li-area" scroll="no" style="height: 55px; width: 595px; position: static;"><label class="area-title pad4" fldid="9" istitle="1">通知方式</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2083_NoteType" class="form-radio" style="" EntId="2083" IsField=1 DBField=0 IsPost=0 FieldName="NoteType" dType="2" Vtp="1" RDT="2" Isc="1" RId="7" CId="7" FId="9" vlk=0    Type="1" ><span class="form-radio-item"  >
<input id="ddcx_2083_NoteType_0"  name="ddcx_2083_NoteType" checked ="checked" type="radio"  text="无通知"  value="-1"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2083_NoteType_0">无通知</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2083_NoteType_1"  name="ddcx_2083_NoteType"  type="radio"  text="内部短信"  value="1"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2083_NoteType_1">内部短信</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2083_NoteType_2"  name="ddcx_2083_NoteType"  type="radio"  text="内部邮件"  value="2"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2083_NoteType_2">内部邮件</label></span>
<span class="clearfix"></span>',[CtrlbackHtml]='</div>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=34,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2083,' where  [FldUId]='b333beb1-ec83-441e-948f-2cf69680a7fa' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='8efe6ad6-b14a-b03a-fea7-d45a1cf9a3f6'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'8efe6ad6-b14a-b03a-fea7-d45a1cf9a3f6',2083,2083,'00000000-0000-0000-0000-000000000000',5,'NoteContent',2,2,-1,'',5,1,1,0,2,3,-1,-1,0,0,'','','','','</span>

 </div></li><li areaid="32" class="li-area" scroll="no" style="height: 76px; width: 595px; position: static;"><label class="area-title pad4" fldid="4" istitle="1">通知内容</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','</span>
</div>
</li>
			</ul>
		</div>
		<div class="div_tabs" style="display:none;">
			<ul class="tab_ul" groupid="2" isgroup="1" islonly="1" istab="1" style="" isrple="1">
				<li areaid="26" class="de-selected ui-droppable" istab="1" scroll="no" style="position: static;" tabid="1">
					<a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
				<li areaid="27" class="ui-droppable li-tab" istab="1" scroll="no" style="position: static;" tabid="2">
					<a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
			</ul>
			<div class="tabs-content" style="" tabid="1">
				<ul class="ul-mform" groupid="3" isgroup="1" style="" isrple="1">
					<li areaid="28" class="li-area" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
					<li areaid="29" class="li-area" fldid="-1" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
				</ul>
			</div>
			<div class="tabs-content" style="" tabid="2">
				<ul class="ul-mform" groupid="4" isgroup="1" style="" isrple="1">
					<li areaid="30" class="li-area" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
					<li areaid="31" class="li-area" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
				</ul>
			</div>
		</div>
	</div>
</div>
<br>','','','<textarea  id="d2083_NoteContent" class="form-txts"  style="width:320px;height:60px;" EntId="2083" IsField=1 DBField=0 IsPost=0 FieldName="NoteContent" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="4" vlk=0    >','</textarea>','',1,32,-1,-1,0,'2083,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=4,[Form_EntId]=2083,[EntId]=2083,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=5,[FieldName]='NoteContent',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=-1,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=3,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=0,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

 </div></li><li areaid="32" class="li-area" scroll="no" style="height: 76px; width: 595px; position: static;"><label class="area-title pad4" fldid="4" istitle="1">通知内容</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
</div>
</li>
			</ul>
		</div>
		<div class="div_tabs" style="display:none;">
			<ul class="tab_ul" groupid="2" isgroup="1" islonly="1" istab="1" style="" isrple="1">
				<li areaid="26" class="de-selected ui-droppable" istab="1" scroll="no" style="position: static;" tabid="1">
					<a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
				<li areaid="27" class="ui-droppable li-tab" istab="1" scroll="no" style="position: static;" tabid="2">
					<a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
			</ul>
			<div class="tabs-content" style="" tabid="1">
				<ul class="ul-mform" groupid="3" isgroup="1" style="" isrple="1">
					<li areaid="28" class="li-area" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
					<li areaid="29" class="li-area" fldid="-1" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
				</ul>
			</div>
			<div class="tabs-content" style="" tabid="2">
				<ul class="ul-mform" groupid="4" isgroup="1" style="" isrple="1">
					<li areaid="30" class="li-area" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
					<li areaid="31" class="li-area" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
				</ul>
			</div>
		</div>
	</div>
</div>
<br>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d2083_NoteContent" class="form-txts"  style="width:320px;height:60px;" EntId="2083" IsField=1 DBField=0 IsPost=0 FieldName="NoteContent" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="4" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=1,[RowIndex]=32,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2083,' where  [FldUId]='8efe6ad6-b14a-b03a-fea7-d45a1cf9a3f6' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=1208

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=1208  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(1208,null,'Dcx_Common','Dcx_Common',1,0,0,0,0,0,45,1,3,'admin','2013-12-15 17:32:10',3,'admin','2013-12-15 17:32:10',null,null,27,83,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='Dcx_Common',[DBTableByName]='Dcx_Common',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=45,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:10',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:10',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=27,[SDbTableId]=83,[IsChange]=null,[IsSystem]=null where  [DBTableId]=1208 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1208  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19505,5,45,1208,'bit',4,1,1,'Dcx_Common','ParentId1','ParentId1','0',0,0,1,1,1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='bit',[FieldDataTypeId]=4,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Common',[FieldName]='ParentId1',[FieldByname]='ParentId1',[DefaultValue]='0',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1208  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1208  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19506,4,45,1208,'int',1,1,1,'Dcx_Common','ParentId','ParentId','2',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Common',[FieldName]='ParentId',[FieldByname]='ParentId',[DefaultValue]='2',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1208  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1208  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19507,3,45,1208,'varchar',2,1,1,'Dcx_Common','Name','Name','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Common',[FieldName]='Name',[FieldByname]='Name',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1208  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1208  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19508,2,45,1208,'varchar',2,1,1,'Dcx_Common','Value','Value','sss',0,0,1,30,30,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Common',[FieldName]='Value',[FieldByname]='Value',[DefaultValue]='sss',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=30,[Precision]=30,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1208  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=1208  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19509,1,45,1208,'int',1,1,1,'Dcx_Common','Id','Id','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='Dcx_Common',[FieldName]='Id',[FieldByname]='Id',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=1208  and  [FieldId]=1 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 



Delete from [Dcx_EntityPrivilege]  where [EntId]=2090

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2090  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11124,-1,2090,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2090  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2090  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11464,-1,2090,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2090  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_DefaultForm_Run]  where [EntId]=2090

--Dcx_DefaultForm_Run
      if (select count(1) from [Dcx_DefaultForm_Run] where  [EntId]=2090  )<1 
      begin 
           Insert into [Dcx_DefaultForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[OtherMsg],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('8afc7977-4d3e-db73-f60e-6b239f6e7ce4','委托',2090,0,'','',0,'<script src="/Js/Control/LTreeRList/LTreeRList.js"></script>','','DcxRun.DefaultF_2090= {"MenuId":2915,"MEntId":2090,"EntName":"委托","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2090":{"EntId":2090,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"Id","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{"supportMsg":false},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
GetLinkCtrlData_DefaultF_2090_274(null,null);
GetLinkCtrlData_DefaultF_2090_275(null,null);
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":21,"Ent":[{"EntId":2090,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":4,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":2,"Vld":[{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":3,"Vld":[{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":4,"Vld":[]},{"FldId":5,"Vld":[{"Id":6,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":6,"Vld":[{"Id":7,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":7,"Vld":[{"Id":8,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,200}$","err":"限制0-200个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":8,"Vld":[{"Id":9,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":9,"Vld":[{"Id":10,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,200}$","err":"限制0-200个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":11,"Vld":[{"Id":12,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,200}$","err":"限制0-200个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":12,"Vld":[{"Id":13,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":13,"Vld":[{"Id":14,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":14,"Vld":[{"Id":15,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,200}$","err":"限制0-200个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":15,"Vld":[{"Id":16,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":16,"Vld":[{"Id":19,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":17,"Vld":[{"Id":17,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,40}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":20,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":18,"Vld":[{"Id":18,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":21,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]}]}]};
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2090.EntMsg.E2090.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"WF_Depute","EntId":2090,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"UserId":{"DtId":1,"DB":1,"CId":40,"FL":4},"UserName":{"DtId":2,"DB":1,"CId":1,"FL":50},"NoteType":{"DtId":23,"DB":1,"CId":10,"FL":1},"NoteContent":{"DtId":2,"DB":1,"CId":2,"FL":0},"FlowId":{"DtId":1,"DB":1,"CId":1,"FL":4},"RunId":{"DtId":1,"DB":1,"CId":1,"FL":4},"FlowName":{"DtId":2,"DB":1,"CId":1,"FL":200},"RunName":{"DtId":2,"DB":1,"CId":4,"FL":200},"PrcsName":{"DtId":2,"DB":1,"CId":4,"FL":200},"PrcsId":{"DtId":1,"DB":1,"CId":1,"FL":4},"CreatorId":{"DtId":2,"DB":1,"CId":4,"FL":4},"CreatorUserName":{"DtId":2,"DB":1,"CId":4,"FL":50},"CreateDate":{"DtId":2,"DB":1,"CId":4,"FL":50}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2090.EntMsg.E2090.GetDataRowModel=function()
{
    return {"UserId":-1,"UserName":"","NoteType":-1,"NoteContent":"","FlowId":-1,"RunId":-1,"FlowName":"","RunName":"","PrcsName":"","PrcsId":-1,"CreatorId":"","CreatorUserName":"","CreateDate":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_DefaultF_2090_274(obj,curFieldName){
 var EntId=2090;
 var FldId=2;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''UserName'';
 var $formContainer=DcxForm.GetHtmlContainer(2090,''DefaultF_'');
 var $ddlContainer=null;
var strCode="{@UserId&}" ;
var v_f1=null;
if(''UserId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,2090,''DefaultF_'',''UserId'',40,$formContainer,false,true);
if(v_f1==null)
   v_f1='''';
strCode=strCode.replaceAll("{@UserId&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d2090_UserName");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
function GetLinkCtrlData_DefaultF_2090_275(obj,curFieldName){
 var EntId=2090;
 var FldId=4;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''NoteContent'';
 var $formContainer=DcxForm.GetHtmlContainer(2090,''DefaultF_'');
 var $ddlContainer=null;
var strCode="''工作流委托提醒：''+''{@RunName}''" ;
var v_f1=null;
if(''RunName''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,2090,''DefaultF_'',''RunName'',$formContainer);
if(v_f1==null)
   return;
strCode=strCode.replaceAll("{@RunName}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d2090_NoteContent");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
function GetLinkCtrlData_DefaultF_2090_276(obj,curFieldName){
 var EntId=2090;
 var FldId=7;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''FlowName'';
 var $formContainer=DcxForm.GetHtmlContainer(2090,''DefaultF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(2090,''DefaultF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"FlowName\",FldId:"+FldId+",EntId:2090,CtrlPrex:\"DefaultF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"Id\",CtrlTypeId:1,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''FlowId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2090,''DefaultF_'',''FlowId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@FlowId}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d2090_FlowName");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_DefaultF_2090_277(obj,curFieldName){
 var EntId=2090;
 var FldId=11;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''RunName'';
 var $formContainer=DcxForm.GetHtmlContainer(2090,''DefaultF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(2090,''DefaultF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"RunName\",FldId:"+FldId+",EntId:2090,CtrlPrex:\"DefaultF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''FlowId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2090,''DefaultF_'',''FlowId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@FlowId}<*>"+v_f1+"<**>";
var v_f1=null;
if(''RunId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2090,''DefaultF_'',''RunId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@RunId}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d2090_RunName");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_DefaultF_2090_278(obj,curFieldName){
 var EntId=2090;
 var FldId=14;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''PrcsName'';
 var $formContainer=DcxForm.GetHtmlContainer(2090,''DefaultF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(2090,''DefaultF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"PrcsName\",FldId:"+FldId+",EntId:2090,CtrlPrex:\"DefaultF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''RunId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2090,''DefaultF_'',''RunId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@RunId}<*>"+v_f1+"<**>";
var v_f1=null;
if(''PrcsId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2090,''DefaultF_'',''PrcsId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@PrcsId}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d2090_PrcsName");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2090.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2090,''DefaultF_'',buildNew,closeDlg);

}','<$2090$>select [UserId],[UserName],[NoteContent],[NoteType],[RunName],[PrcsName],[FlowId],[RunId],[FlowName],[PrcsId],[CreatorId],[CreatorUserName],[CreateDate],[Id] from WF_Depute where [Id]=''{$keyfieldvalue}''</$2090$>',10,'2090*Id*2*Id*2*WF_Depute*委托','','','',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2013-2-23 11:10:09',3,'admin','2013-10-2 18:34:28',1)
      end
      else 
      begin 
           update [Dcx_DefaultForm_Run] set [FormId]='8afc7977-4d3e-db73-f60e-6b239f6e7ce4',[FormName]='委托',[ModuleId]=0,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='<script src="/Js/Control/LTreeRList/LTreeRList.js"></script>',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.DefaultF_2090= {"MenuId":2915,"MEntId":2090,"EntName":"委托","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2090":{"EntId":2090,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"Id","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{"supportMsg":false},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
GetLinkCtrlData_DefaultF_2090_274(null,null);
GetLinkCtrlData_DefaultF_2090_275(null,null);
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":21,"Ent":[{"EntId":2090,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":4,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":2,"Vld":[{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":3,"Vld":[{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":4,"Vld":[]},{"FldId":5,"Vld":[{"Id":6,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":6,"Vld":[{"Id":7,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":7,"Vld":[{"Id":8,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,200}$","err":"限制0-200个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":8,"Vld":[{"Id":9,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":9,"Vld":[{"Id":10,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,200}$","err":"限制0-200个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":11,"Vld":[{"Id":12,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,200}$","err":"限制0-200个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":12,"Vld":[{"Id":13,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":13,"Vld":[{"Id":14,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":14,"Vld":[{"Id":15,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,200}$","err":"限制0-200个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":15,"Vld":[{"Id":16,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":16,"Vld":[{"Id":19,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":17,"Vld":[{"Id":17,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,40}$","err":"限制0-4个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":20,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":18,"Vld":[{"Id":18,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":21,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]}]}]};
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2090.EntMsg.E2090.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"WF_Depute","EntId":2090,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"UserId":{"DtId":1,"DB":1,"CId":40,"FL":4},"UserName":{"DtId":2,"DB":1,"CId":1,"FL":50},"NoteType":{"DtId":23,"DB":1,"CId":10,"FL":1},"NoteContent":{"DtId":2,"DB":1,"CId":2,"FL":0},"FlowId":{"DtId":1,"DB":1,"CId":1,"FL":4},"RunId":{"DtId":1,"DB":1,"CId":1,"FL":4},"FlowName":{"DtId":2,"DB":1,"CId":1,"FL":200},"RunName":{"DtId":2,"DB":1,"CId":4,"FL":200},"PrcsName":{"DtId":2,"DB":1,"CId":4,"FL":200},"PrcsId":{"DtId":1,"DB":1,"CId":1,"FL":4},"CreatorId":{"DtId":2,"DB":1,"CId":4,"FL":4},"CreatorUserName":{"DtId":2,"DB":1,"CId":4,"FL":50},"CreateDate":{"DtId":2,"DB":1,"CId":4,"FL":50}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2090.EntMsg.E2090.GetDataRowModel=function()
{
    return {"UserId":-1,"UserName":"","NoteType":-1,"NoteContent":"","FlowId":-1,"RunId":-1,"FlowName":"","RunName":"","PrcsName":"","PrcsId":-1,"CreatorId":"","CreatorUserName":"","CreateDate":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_DefaultF_2090_274(obj,curFieldName){
 var EntId=2090;
 var FldId=2;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''UserName'';
 var $formContainer=DcxForm.GetHtmlContainer(2090,''DefaultF_'');
 var $ddlContainer=null;
var strCode="{@UserId&}" ;
var v_f1=null;
if(''UserId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetDdlValue(null,2090,''DefaultF_'',''UserId'',40,$formContainer,false,true);
if(v_f1==null)
   v_f1='''';
strCode=strCode.replaceAll("{@UserId&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d2090_UserName");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
function GetLinkCtrlData_DefaultF_2090_275(obj,curFieldName){
 var EntId=2090;
 var FldId=4;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''NoteContent'';
 var $formContainer=DcxForm.GetHtmlContainer(2090,''DefaultF_'');
 var $ddlContainer=null;
var strCode="''工作流委托提醒：''+''{@RunName}''" ;
var v_f1=null;
if(''RunName''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,2090,''DefaultF_'',''RunName'',$formContainer);
if(v_f1==null)
   return;
strCode=strCode.replaceAll("{@RunName}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d2090_NoteContent");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
function GetLinkCtrlData_DefaultF_2090_276(obj,curFieldName){
 var EntId=2090;
 var FldId=7;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''FlowName'';
 var $formContainer=DcxForm.GetHtmlContainer(2090,''DefaultF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(2090,''DefaultF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"FlowName\",FldId:"+FldId+",EntId:2090,CtrlPrex:\"DefaultF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"Id\",CtrlTypeId:1,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''FlowId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2090,''DefaultF_'',''FlowId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@FlowId}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d2090_FlowName");
$AcceptObj.val(myVal);
$AcceptObj.change();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_DefaultF_2090_277(obj,curFieldName){
 var EntId=2090;
 var FldId=11;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''RunName'';
 var $formContainer=DcxForm.GetHtmlContainer(2090,''DefaultF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(2090,''DefaultF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"RunName\",FldId:"+FldId+",EntId:2090,CtrlPrex:\"DefaultF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''FlowId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2090,''DefaultF_'',''FlowId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@FlowId}<*>"+v_f1+"<**>";
var v_f1=null;
if(''RunId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2090,''DefaultF_'',''RunId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@RunId}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d2090_RunName");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_DefaultF_2090_278(obj,curFieldName){
 var EntId=2090;
 var FldId=14;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''PrcsName'';
 var $formContainer=DcxForm.GetHtmlContainer(2090,''DefaultF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(2090,''DefaultF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"PrcsName\",FldId:"+FldId+",EntId:2090,CtrlPrex:\"DefaultF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''RunId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2090,''DefaultF_'',''RunId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@RunId}<*>"+v_f1+"<**>";
var v_f1=null;
if(''PrcsId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2090,''DefaultF_'',''PrcsId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@PrcsId}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d2090_PrcsName");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2090.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2090,''DefaultF_'',buildNew,closeDlg);

}',[LoadingSql]='<$2090$>select [UserId],[UserName],[NoteContent],[NoteType],[RunName],[PrcsName],[FlowId],[RunId],[FlowName],[PrcsId],[CreatorId],[CreatorUserName],[CreateDate],[Id] from WF_Depute where [Id]=''{$keyfieldvalue}''</$2090$>',[PageSize]=10,[OtherMsg]='2090*Id*2*Id*2*WF_Depute*委托',[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-2-23 11:10:09',[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-2 18:34:28',[AccountId]=1 where  [EntId]=2090 
      end




--Dcx_DefaultFormField_Run
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='810359f4-b745-1b63-79db-8cf09f1af6ca'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'810359f4-b745-1b63-79db-8cf09f1af6ca',2090,2090,'00000000-0000-0000-0000-000000000000',1,'UserId',1,1,8,'',5,2,1,0,40,1,-1,61,1,0,'','','','','<div class="defaultform ">
	<div class="div_top">
		<div class="title-div">
			<ul class="ul-title" groupid="5" isgroup="1" isrple="1">
				<li areaid="20" class="li-area-title" scroll="no" style="width: 238px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">委托工作</span></div>
</li>
				<li areaid="21" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;">
					<a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
				<li areaid="22" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;">
					<a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.DefaultF_2090.SubmitForm(false);"><span class="op_bt_i">保存</span> </a></li>
				<li areaid="23" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;">
					<a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(2090,''DefaultF_'');"><span class="op_bt_i">新建</span> </a></li>
			</ul>
		</div>
		<div class="frame-div">
			<ul class="ul-mform" groupid="1" isgroup="1" isrple="1">
				<li areaid="24" class="li-area" scroll="no" style="height: 55px; width: 595px; position: static;"><label class="area-title pad4" fldid="1" istitle="1" style="width:100px;font-size: 13px;color: #A8A8A8!important;">受委托人</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<div id="d2090_UserId" class="form-ddl" style="" CBack=1  IsForField=1 EntId="2090" FId="1" Vtp="5" RId="2" Isc="1" CId="40" FieldName="UserId" ><input  id="d2090_UserId_Text" type="text" class="form-ddl-txt" readonly="readOnly"  CId="40" FId="1" Vtp="5"  RId="2" Isc="1"  style="width:380px;" onclick ="javascript:DcxTree.ShowDialogAf(this,61,2090,''UserId'',false);" onchange ="javascript:GetLinkCtrlData_DefaultF_2090_274(this,''UserId'');if(!DcxVld.Validate(this,2090,''DefaultF_'',2090,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2090,''DefaultF_'',2090);" onkeyup ="javascript:DcxTree.ShowDialogAf(this,61,2090,''UserId'',true);" CBack=1  value="','" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2090_UserId_hid" type="hidden"  EntId="2090" IsField=1 DBField=1 IsPost=1 FieldName="UserId" dType="1" Vtp="5" RDT="1" Isc="1" RId="2" CId="40" FId="1" vlk=0   TId=61  TFN="UserName"  value="','" />',-1,-1,-1,-1,0,'2090,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=1,[Form_EntId]=2090,[EntId]=2090,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[FieldName]='UserId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=8,[DefaultValue]='',[ValueType]=5,[RunValueType]=2,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=40,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=61,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='<div class="defaultform ">
	<div class="div_top">
		<div class="title-div">
			<ul class="ul-title" groupid="5" isgroup="1" isrple="1">
				<li areaid="20" class="li-area-title" scroll="no" style="width: 238px; height: 34px; position: static;"><div class="form-title5" id="div_head1">
	<span class="title-name" id="h2_title">委托工作</span></div>
</li>
				<li areaid="21" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;">
					<a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
				<li areaid="22" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;">
					<a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.DefaultF_2090.SubmitForm(false);"><span class="op_bt_i">保存</span> </a></li>
				<li areaid="23" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;">
					<a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(2090,''DefaultF_'');"><span class="op_bt_i">新建</span> </a></li>
			</ul>
		</div>
		<div class="frame-div">
			<ul class="ul-mform" groupid="1" isgroup="1" isrple="1">
				<li areaid="24" class="li-area" scroll="no" style="height: 55px; width: 595px; position: static;"><label class="area-title pad4" fldid="1" istitle="1" style="width:100px;font-size: 13px;color: #A8A8A8!important;">受委托人</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2090_UserId" class="form-ddl" style="" CBack=1  IsForField=1 EntId="2090" FId="1" Vtp="5" RId="2" Isc="1" CId="40" FieldName="UserId" ><input  id="d2090_UserId_Text" type="text" class="form-ddl-txt" readonly="readOnly"  CId="40" FId="1" Vtp="5"  RId="2" Isc="1"  style="width:380px;" onclick ="javascript:DcxTree.ShowDialogAf(this,61,2090,''UserId'',false);" onchange ="javascript:GetLinkCtrlData_DefaultF_2090_274(this,''UserId'');if(!DcxVld.Validate(this,2090,''DefaultF_'',2090,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2090,''DefaultF_'',2090);" onkeyup ="javascript:DcxTree.ShowDialogAf(this,61,2090,''UserId'',true);" CBack=1  value="',[CtrlbackHtml]='" /><span class="form-ddl-bt" onclick="javascript:$(this).prev().click();"></span></div> <input id="d2090_UserId_hid" type="hidden"  EntId="2090" IsField=1 DBField=1 IsPost=1 FieldName="UserId" dType="1" Vtp="5" RDT="1" Isc="1" RId="2" CId="40" FId="1" vlk=0   TId=61  TFN="UserName"  value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2090,' where  [FldUId]='810359f4-b745-1b63-79db-8cf09f1af6ca' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='77fc0612-4898-caaf-97b4-d8582b0a1b96'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'77fc0612-4898-caaf-97b4-d8582b0a1b96',2090,2090,'00000000-0000-0000-0000-000000000000',2,'UserName',2,2,9,'',3,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
 <span class="form-ctr" isfcontain="1">','','','','<input  id="d2090_UserName"   type="text" class="form-txt hide"  style="width:100px;display:none;" onblur ="javascript:if(!DcxVld.Validate(this,2090,''DefaultF_'',2090,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2090,''DefaultF_'',2090);" EntId="2090" IsField=1 DBField=1 IsPost=1 FieldName="UserName" dType="2" Vtp="3" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2090,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=2,[Form_EntId]=2090,[EntId]=2090,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[FieldName]='UserName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=9,[DefaultValue]='',[ValueType]=3,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
 <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2090_UserName"   type="text" class="form-txt hide"  style="width:100px;display:none;" onblur ="javascript:if(!DcxVld.Validate(this,2090,''DefaultF_'',2090,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2090,''DefaultF_'',2090);" EntId="2090" IsField=1 DBField=1 IsPost=1 FieldName="UserName" dType="2" Vtp="3" RDT="2" Isc="1" RId="1" CId="1" FId="2" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2090,' where  [FldUId]='77fc0612-4898-caaf-97b4-d8582b0a1b96' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='3adc760d-bb46-9561-4cfd-0afa825c95ca'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'3adc760d-bb46-9561-4cfd-0afa825c95ca',2090,2090,'00000000-0000-0000-0000-000000000000',3,'NoteContent',2,2,14,'',3,1,1,0,2,1,-1,-1,1,0,'','','','','</span>

	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li><li areaid="32" class="li-area" scroll="no" style="height: 120px; width: 595px; position: static;"><label class="area-title pad4" fldid="4" istitle="1" style="width:100px;font-size: 13px;color: #A8A8A8!important;">通知内容</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<textarea  id="d2090_NoteContent" class="form-txts"  style="width:400px;height:100px;" EntId="2090" IsField=1 DBField=1 IsPost=1 FieldName="NoteContent" dType="2" Vtp="3" RDT="2" Isc="1" RId="1" CId="2" FId="4" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'2090,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=4,[Form_EntId]=2090,[EntId]=2090,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[FieldName]='NoteContent',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=14,[DefaultValue]='',[ValueType]=3,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li><li areaid="32" class="li-area" scroll="no" style="height: 120px; width: 595px; position: static;"><label class="area-title pad4" fldid="4" istitle="1" style="width:100px;font-size: 13px;color: #A8A8A8!important;">通知内容</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d2090_NoteContent" class="form-txts"  style="width:400px;height:100px;" EntId="2090" IsField=1 DBField=1 IsPost=1 FieldName="NoteContent" dType="2" Vtp="3" RDT="2" Isc="1" RId="1" CId="2" FId="4" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2090,' where  [FldUId]='3adc760d-bb46-9561-4cfd-0afa825c95ca' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='43b31383-cc86-29ee-59ec-7bfde16c4394'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'43b31383-cc86-29ee-59ec-7bfde16c4394',2090,2090,'00000000-0000-0000-0000-000000000000',4,'NoteType',23,1,13,'',1,8,1,0,10,1,-1,-1,1,0,'','','','','</span>

	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div></li><li areaid="25" class="li-area" scroll="no" style="height: 55px; width: 595px; position: static; clear: none; float: left; display: none;"><label class="area-title pad4" fldid="3" istitle="1" style="width:100px;font-size: 13px;color: #A8A8A8!important;">同时发送</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<div id="d2090_NoteType" class="form-radio" style="" EntId="2090" IsField=1 DBField=1 IsPost=1 FieldName="NoteType" dType="23" Vtp="1" RDT="1" Isc="1" RId="8" CId="10" FId="3" vlk=0    Type="2"  onclick ="javascript:DcxVld.Validate(this,2090,''DefaultF_'',2090);" onfocus ="javascript:DcxVld.ValidateFocus(this,2090,''DefaultF_'',2090);"><span class="form-radio-item"  >
<input id="ddcx_2090_NoteType_0"  name="ddcx_2090_NoteType"  type="checkbox"  text="手机短信"  value="1"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2090_NoteType_0">手机短信</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2090_NoteType_1"  name="ddcx_2090_NoteType"  type="checkbox"  text="外部邮件"  value="2"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2090_NoteType_1">外部邮件</label></span>
<span class="clearfix"></span>','</div>','',-1,-1,-1,-1,0,'2090,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=3,[Form_EntId]=2090,[EntId]=2090,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=4,[FieldName]='NoteType',[FieldDataTypeId]=23,[RunDataTypeId]=1,[DBFieldId]=13,[DefaultValue]='',[ValueType]=1,[RunValueType]=8,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=10,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div></li><li areaid="25" class="li-area" scroll="no" style="height: 55px; width: 595px; position: static; clear: none; float: left; display: none;"><label class="area-title pad4" fldid="3" istitle="1" style="width:100px;font-size: 13px;color: #A8A8A8!important;">同时发送</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2090_NoteType" class="form-radio" style="" EntId="2090" IsField=1 DBField=1 IsPost=1 FieldName="NoteType" dType="23" Vtp="1" RDT="1" Isc="1" RId="8" CId="10" FId="3" vlk=0    Type="2"  onclick ="javascript:DcxVld.Validate(this,2090,''DefaultF_'',2090);" onfocus ="javascript:DcxVld.ValidateFocus(this,2090,''DefaultF_'',2090);"><span class="form-radio-item"  >
<input id="ddcx_2090_NoteType_0"  name="ddcx_2090_NoteType"  type="checkbox"  text="手机短信"  value="1"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2090_NoteType_0">手机短信</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2090_NoteType_1"  name="ddcx_2090_NoteType"  type="checkbox"  text="外部邮件"  value="2"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2090_NoteType_1">外部邮件</label></span>
<span class="clearfix"></span>',[CtrlbackHtml]='</div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2090,' where  [FldUId]='43b31383-cc86-29ee-59ec-7bfde16c4394' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='7c89de75-0e36-531c-f3bd-34d020a34843'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'7c89de75-0e36-531c-f3bd-34d020a34843',2090,2090,'00000000-0000-0000-0000-000000000000',5,'RunName',2,2,5,'SELECT [RunName] FROM [WF_FlowRun] where [FlowId]={@FlowId} and [RunId]={@RunId}',2,9,1,0,4,1,-1,-1,1,0,'','','FlowId,RunId,','','</span>
</div>
</li><li areaid="29" class="li-area" fldid="-1" scroll="no" style="width: 595px; height: 55px; position: static; display: none;"><label class="area-title pad4" fldid="11" istitle="1">工作名称</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d2090_RunName" class="form-lbl" style="width:200px;" IsForField=1 EntId="2090" CId="4" FId="11" Vtp="2"  CBack=1  >','</span><input id="d2090_RunName_hid" type="hidden"  EntId="2090" IsField=1 DBField=1 IsPost=1 FieldName="RunName" dType="2" Vtp="2" RDT="2" Isc="1" RId="9" CId="4" FId="11" vlk=0    value="','" />',1,29,-1,-1,0,'2090,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=11,[Form_EntId]=2090,[EntId]=2090,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=5,[FieldName]='RunName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=5,[DefaultValue]='SELECT [RunName] FROM [WF_FlowRun] where [FlowId]={@FlowId} and [RunId]={@RunId}',[ValueType]=2,[RunValueType]=9,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='FlowId,RunId,',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li areaid="29" class="li-area" fldid="-1" scroll="no" style="width: 595px; height: 55px; position: static; display: none;"><label class="area-title pad4" fldid="11" istitle="1">工作名称</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d2090_RunName" class="form-lbl" style="width:200px;" IsForField=1 EntId="2090" CId="4" FId="11" Vtp="2"  CBack=1  >',[CtrlbackHtml]='</span><input id="d2090_RunName_hid" type="hidden"  EntId="2090" IsField=1 DBField=1 IsPost=1 FieldName="RunName" dType="2" Vtp="2" RDT="2" Isc="1" RId="9" CId="4" FId="11" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=1,[RowIndex]=29,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2090,' where  [FldUId]='7c89de75-0e36-531c-f3bd-34d020a34843' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='cfe40783-4a16-dc97-2a47-1d473419cca7'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(14,'cfe40783-4a16-dc97-2a47-1d473419cca7',2090,2090,'00000000-0000-0000-0000-000000000000',6,'PrcsName',2,2,7,'SELECT [PrcsName] FROM [WF_FlowRunPrcs] where [RunId]={@RunId} and [PrcsId]={@PrcsId}',2,9,1,0,4,1,-1,-1,1,0,'','','RunId,PrcsId,','','</span>

</div>
</li><li areaid="30" class="li-area" scroll="no" style="width: 595px; height: 55px; position: static; display: none;"><label class="area-title pad4" fldid="14" istitle="1">当前步骤</label> <span class="form-ctr" isfcontain="1">','','','','<span id="d2090_PrcsName" class="form-lbl" style="width:200px;" IsForField=1 EntId="2090" CId="4" FId="14" Vtp="2"  >','</span><input id="d2090_PrcsName_hid" type="hidden"  EntId="2090" IsField=1 DBField=1 IsPost=1 FieldName="PrcsName" dType="2" Vtp="2" RDT="2" Isc="1" RId="9" CId="4" FId="14" vlk=0    value="','" />',1,30,-1,-1,0,'2090,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=14,[Form_EntId]=2090,[EntId]=2090,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=6,[FieldName]='PrcsName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=7,[DefaultValue]='SELECT [PrcsName] FROM [WF_FlowRunPrcs] where [RunId]={@RunId} and [PrcsId]={@PrcsId}',[ValueType]=2,[RunValueType]=9,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='RunId,PrcsId,',[SystemVariables]='',[BeforeHtml]='</span>

</div>
</li><li areaid="30" class="li-area" scroll="no" style="width: 595px; height: 55px; position: static; display: none;"><label class="area-title pad4" fldid="14" istitle="1">当前步骤</label> <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d2090_PrcsName" class="form-lbl" style="width:200px;" IsForField=1 EntId="2090" CId="4" FId="14" Vtp="2"  >',[CtrlbackHtml]='</span><input id="d2090_PrcsName_hid" type="hidden"  EntId="2090" IsField=1 DBField=1 IsPost=1 FieldName="PrcsName" dType="2" Vtp="2" RDT="2" Isc="1" RId="9" CId="4" FId="14" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=1,[RowIndex]=30,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2090,' where  [FldUId]='cfe40783-4a16-dc97-2a47-1d473419cca7' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='dd22ef35-fd9a-f6d3-2699-8f816a427906'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'dd22ef35-fd9a-f6d3-2699-8f816a427906',2090,2090,'00000000-0000-0000-0000-000000000000',7,'FlowId',1,1,2,'FlowId',6,1,1,0,1,1,-1,-1,1,0,'','','','','</span>

<div class="field-content pad4">
	&nbsp;</div>
</li>
				<li areaid="28" class="li-area" scroll="no" style="width: 595px; height: 250px; position: static; display: none;"><label class="area-title pad4" fldid="5" istitle="1">FlowId</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2090_FlowId"   type="text" class="form-txt"  style="width:200px;" onchange ="javascript:GetLinkCtrlData_DefaultF_2090_276(this,''FlowId'');GetLinkCtrlData_DefaultF_2090_277(this,''FlowId'');" onblur ="javascript:if(!DcxVld.Validate(this,2090,''DefaultF_'',2090,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2090,''DefaultF_'',2090);" EntId="2090" IsField=1 DBField=1 IsPost=1 FieldName="FlowId" dType="1" Vtp="6" RDT="1" Isc="1" RId="1" CId="1" FId="5" vlk=0    CBack=1  value="','"/>','',-1,-1,-1,-1,0,'2090,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=5,[Form_EntId]=2090,[EntId]=2090,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=7,[FieldName]='FlowId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=2,[DefaultValue]='FlowId',[ValueType]=6,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

<div class="field-content pad4">
	&nbsp;</div>
</li>
				<li areaid="28" class="li-area" scroll="no" style="width: 595px; height: 250px; position: static; display: none;"><label class="area-title pad4" fldid="5" istitle="1">FlowId</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2090_FlowId"   type="text" class="form-txt"  style="width:200px;" onchange ="javascript:GetLinkCtrlData_DefaultF_2090_276(this,''FlowId'');GetLinkCtrlData_DefaultF_2090_277(this,''FlowId'');" onblur ="javascript:if(!DcxVld.Validate(this,2090,''DefaultF_'',2090,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2090,''DefaultF_'',2090);" EntId="2090" IsField=1 DBField=1 IsPost=1 FieldName="FlowId" dType="1" Vtp="6" RDT="1" Isc="1" RId="1" CId="1" FId="5" vlk=0    CBack=1  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2090,' where  [FldUId]='dd22ef35-fd9a-f6d3-2699-8f816a427906' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='f7d54a9d-ff77-39e9-9023-89329a27aa81'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'f7d54a9d-ff77-39e9-9023-89329a27aa81',2090,2090,'00000000-0000-0000-0000-000000000000',8,'RunId',1,1,4,'RunId',6,1,1,0,1,1,-1,-1,1,0,'','','','','</span>

 <span class="form-ctr" isfcontain="1">','','','','<input  id="d2090_RunId"   type="text" class="form-txt"  style="width:200px;" onchange ="javascript:GetLinkCtrlData_DefaultF_2090_277(this,''RunId'');GetLinkCtrlData_DefaultF_2090_278(this,''RunId'');" onblur ="javascript:if(!DcxVld.Validate(this,2090,''DefaultF_'',2090,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2090,''DefaultF_'',2090);" EntId="2090" IsField=1 DBField=1 IsPost=1 FieldName="RunId" dType="1" Vtp="6" RDT="1" Isc="1" RId="1" CId="1" FId="6" vlk=0    CBack=1  value="','"/>','',-1,-1,-1,-1,0,'2090,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=6,[Form_EntId]=2090,[EntId]=2090,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=8,[FieldName]='RunId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=4,[DefaultValue]='RunId',[ValueType]=6,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

 <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2090_RunId"   type="text" class="form-txt"  style="width:200px;" onchange ="javascript:GetLinkCtrlData_DefaultF_2090_277(this,''RunId'');GetLinkCtrlData_DefaultF_2090_278(this,''RunId'');" onblur ="javascript:if(!DcxVld.Validate(this,2090,''DefaultF_'',2090,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2090,''DefaultF_'',2090);" EntId="2090" IsField=1 DBField=1 IsPost=1 FieldName="RunId" dType="1" Vtp="6" RDT="1" Isc="1" RId="1" CId="1" FId="6" vlk=0    CBack=1  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2090,' where  [FldUId]='f7d54a9d-ff77-39e9-9023-89329a27aa81' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='24e35a44-3975-6987-670a-1f73fe26fb7c'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'24e35a44-3975-6987-670a-1f73fe26fb7c',2090,2090,'00000000-0000-0000-0000-000000000000',9,'FlowName',2,2,3,'SELECT  [FlowName]  FROM [WF_FlowType] where [FlowId]={@FlowId}',2,1,1,0,1,1,-1,-1,1,0,'','','FlowId,','','</span>

 <span class="form-ctr" isfcontain="1">','','','','<input  id="d2090_FlowName"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2090,''DefaultF_'',2090,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2090,''DefaultF_'',2090);" EntId="2090" IsField=1 DBField=1 IsPost=1 FieldName="FlowName" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="1" FId="7" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2090,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=7,[Form_EntId]=2090,[EntId]=2090,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=9,[FieldName]='FlowName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=3,[DefaultValue]='SELECT  [FlowName]  FROM [WF_FlowType] where [FlowId]={@FlowId}',[ValueType]=2,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='FlowId,',[SystemVariables]='',[BeforeHtml]='</span>

 <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2090_FlowName"   type="text" class="form-txt"  style="width:200px;" onblur ="javascript:if(!DcxVld.Validate(this,2090,''DefaultF_'',2090,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2090,''DefaultF_'',2090);" EntId="2090" IsField=1 DBField=1 IsPost=1 FieldName="FlowName" dType="2" Vtp="2" RDT="2" Isc="1" RId="1" CId="1" FId="7" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2090,' where  [FldUId]='24e35a44-3975-6987-670a-1f73fe26fb7c' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='18f447ad-7f73-511f-5150-b869a74c0789'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(15,'18f447ad-7f73-511f-5150-b869a74c0789',2090,2090,'00000000-0000-0000-0000-000000000000',10,'PrcsId',1,1,6,'PrcsId',6,1,1,0,1,1,-1,-1,1,0,'','','','','</span>

 
	<div class="form-vld" iserr="1">
		&nbsp;</div>
<span class="form-ctr" isfcontain="1">','','','','<input  id="d2090_PrcsId"   type="text" class="form-txt"  style="width:200px;" onchange ="javascript:GetLinkCtrlData_DefaultF_2090_278(this,''PrcsId'');" onblur ="javascript:if(!DcxVld.Validate(this,2090,''DefaultF_'',2090,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2090,''DefaultF_'',2090);" EntId="2090" IsField=1 DBField=1 IsPost=1 FieldName="PrcsId" dType="1" Vtp="6" RDT="1" Isc="1" RId="1" CId="1" FId="15" vlk=0    CBack=1  value="','"/>','',-1,-1,-1,-1,0,'2090,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=15,[Form_EntId]=2090,[EntId]=2090,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=10,[FieldName]='PrcsId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=6,[DefaultValue]='PrcsId',[ValueType]=6,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>

 
	<div class="form-vld" iserr="1">
		&nbsp;</div>
<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2090_PrcsId"   type="text" class="form-txt"  style="width:200px;" onchange ="javascript:GetLinkCtrlData_DefaultF_2090_278(this,''PrcsId'');" onblur ="javascript:if(!DcxVld.Validate(this,2090,''DefaultF_'',2090,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2090,''DefaultF_'',2090);" EntId="2090" IsField=1 DBField=1 IsPost=1 FieldName="PrcsId" dType="1" Vtp="6" RDT="1" Isc="1" RId="1" CId="1" FId="15" vlk=0    CBack=1  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2090,' where  [FldUId]='18f447ad-7f73-511f-5150-b869a74c0789' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='d13f4ff5-157c-68c2-4bae-19b28ef1877e'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(16,'d13f4ff5-157c-68c2-4bae-19b28ef1877e',2090,2090,'00000000-0000-0000-0000-000000000000',11,'CreatorId',2,2,10,'{$UserId}',0,9,1,0,4,1,-1,-1,1,0,'','','','{$UserId},','</span>
</div>
</li><li areaid="34" class="li-area" scroll="no" style="height: 76px; width: 595px; position: static; display: none;"><label class="area-title pad4" fldid="16" istitle="1">委托人</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d2090_CreatorId" class="form-lbl" style="width:240px;" IsForField=1 EntId="2090" CId="4" FId="16" Vtp="0"  >','</span><input id="d2090_CreatorId_hid" type="hidden"  EntId="2090" IsField=1 DBField=1 IsPost=1 FieldName="CreatorId" dType="2" Vtp="0" RDT="2" Isc="1" RId="9" CId="4" FId="16" vlk=0    value="','" />',-1,-1,-1,-1,0,'2090,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=16,[Form_EntId]=2090,[EntId]=2090,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=11,[FieldName]='CreatorId',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=10,[DefaultValue]='{$UserId}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$UserId},',[BeforeHtml]='</span>
</div>
</li><li areaid="34" class="li-area" scroll="no" style="height: 76px; width: 595px; position: static; display: none;"><label class="area-title pad4" fldid="16" istitle="1">委托人</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d2090_CreatorId" class="form-lbl" style="width:240px;" IsForField=1 EntId="2090" CId="4" FId="16" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d2090_CreatorId_hid" type="hidden"  EntId="2090" IsField=1 DBField=1 IsPost=1 FieldName="CreatorId" dType="2" Vtp="0" RDT="2" Isc="1" RId="9" CId="4" FId="16" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2090,' where  [FldUId]='d13f4ff5-157c-68c2-4bae-19b28ef1877e' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='100d14a7-8827-9450-af0e-62bffaf62fd6'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(17,'100d14a7-8827-9450-af0e-62bffaf62fd6',2090,2090,'00000000-0000-0000-0000-000000000000',12,'CreatorUserName',2,2,11,'{$UserName}',0,9,1,0,4,1,-1,-1,1,0,'','','','{$UserName},','</span>

	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li><li areaid="35" class="li-area" scroll="no" style="height: 76px; width: 595px; position: static; display: none;"><label class="area-title pad4" fldid="17" istitle="1">委托人的名称</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d2090_CreatorUserName" class="form-lbl" style="width:240px;" IsForField=1 EntId="2090" CId="4" FId="17" Vtp="0"  >','</span><input id="d2090_CreatorUserName_hid" type="hidden"  EntId="2090" IsField=1 DBField=1 IsPost=1 FieldName="CreatorUserName" dType="2" Vtp="0" RDT="2" Isc="1" RId="9" CId="4" FId="17" vlk=0    value="','" />',-1,-1,-1,-1,0,'2090,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=17,[Form_EntId]=2090,[EntId]=2090,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=12,[FieldName]='CreatorUserName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=11,[DefaultValue]='{$UserName}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$UserName},',[BeforeHtml]='</span>

	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li><li areaid="35" class="li-area" scroll="no" style="height: 76px; width: 595px; position: static; display: none;"><label class="area-title pad4" fldid="17" istitle="1">委托人的名称</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d2090_CreatorUserName" class="form-lbl" style="width:240px;" IsForField=1 EntId="2090" CId="4" FId="17" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d2090_CreatorUserName_hid" type="hidden"  EntId="2090" IsField=1 DBField=1 IsPost=1 FieldName="CreatorUserName" dType="2" Vtp="0" RDT="2" Isc="1" RId="9" CId="4" FId="17" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2090,' where  [FldUId]='100d14a7-8827-9450-af0e-62bffaf62fd6' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='8b4ae2af-573c-57b7-b1f9-04f605766207'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(18,'8b4ae2af-573c-57b7-b1f9-04f605766207',2090,2090,'00000000-0000-0000-0000-000000000000',13,'CreateDate',2,2,12,'{$DateTime}',0,9,1,0,4,1,-1,-1,1,0,'','','','{$DateTime},','</span>

	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li><li areaid="36" class="li-area" scroll="no" style="height: 76px; width: 595px; position: static; display: none;"><label class="area-title pad4" fldid="18" istitle="1">委托时间</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','</span>

	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li>
			</ul>
		</div>
		<div class="div_tabs" style="display:none;">
			<ul class="tab_ul" groupid="2" isgroup="1" islonly="1" istab="1" style="" isrple="1">
				<li areaid="26" class="ui-droppable  li-tab de-selected" istab="1" scroll="no" style="height: 29px; width: 70px; position: static;" tabid="1">
					<a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
				<li areaid="27" class="ui-droppable  li-tab" istab="1" scroll="no" style="position: static;" tabid="2">
					<a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
			</ul>
			<div class="tabs-content" style="" tabid="1">
				<ul class="ul-mform" groupid="3" isgroup="1" style="" isrple="1">
					
					
				</ul>
			</div>
			<div class="tabs-content" style="display: none;" tabid="2">
				<ul class="ul-mform" groupid="4" isgroup="1" style="" isrple="1">
					<li areaid="33" class="li-area" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
					<li areaid="31" class="li-area" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
				</ul>
			</div>
		</div>
	</div>
</div>
<br>','','','<span id="d2090_CreateDate" class="form-lbl" style="width:240px;" IsForField=1 EntId="2090" CId="4" FId="18" Vtp="0"  >','</span><input id="d2090_CreateDate_hid" type="hidden"  EntId="2090" IsField=1 DBField=1 IsPost=1 FieldName="CreateDate" dType="2" Vtp="0" RDT="2" Isc="1" RId="9" CId="4" FId="18" vlk=0    value="','" />',-1,-1,-1,-1,0,'2090,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=18,[Form_EntId]=2090,[EntId]=2090,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=13,[FieldName]='CreateDate',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=12,[DefaultValue]='{$DateTime}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$DateTime},',[BeforeHtml]='</span>

	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li><li areaid="36" class="li-area" scroll="no" style="height: 76px; width: 595px; position: static; display: none;"><label class="area-title pad4" fldid="18" istitle="1">委托时间</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='</span>

	<div class="form-vld" iserr="1">
		&nbsp;</div>
</div>
</li>
			</ul>
		</div>
		<div class="div_tabs" style="display:none;">
			<ul class="tab_ul" groupid="2" isgroup="1" islonly="1" istab="1" style="" isrple="1">
				<li areaid="26" class="ui-droppable  li-tab de-selected" istab="1" scroll="no" style="height: 29px; width: 70px; position: static;" tabid="1">
					<a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
				<li areaid="27" class="ui-droppable  li-tab" istab="1" scroll="no" style="position: static;" tabid="2">
					<a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
			</ul>
			<div class="tabs-content" style="" tabid="1">
				<ul class="ul-mform" groupid="3" isgroup="1" style="" isrple="1">
					
					
				</ul>
			</div>
			<div class="tabs-content" style="display: none;" tabid="2">
				<ul class="ul-mform" groupid="4" isgroup="1" style="" isrple="1">
					<li areaid="33" class="li-area" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
					<li areaid="31" class="li-area" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
				</ul>
			</div>
		</div>
	</div>
</div>
<br>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d2090_CreateDate" class="form-lbl" style="width:240px;" IsForField=1 EntId="2090" CId="4" FId="18" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d2090_CreateDate_hid" type="hidden"  EntId="2090" IsField=1 DBField=1 IsPost=1 FieldName="CreateDate" dType="2" Vtp="0" RDT="2" Isc="1" RId="9" CId="4" FId="18" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2090,' where  [FldUId]='8b4ae2af-573c-57b7-b1f9-04f605766207' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=651

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=651  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(651,null,'WF_Depute','WF_Depute',1,0,0,0,0,0,45,1,3,'admin','2013-12-15 17:32:35',3,'admin','2013-12-15 17:32:35',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='WF_Depute',[DBTableByName]='WF_Depute',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=45,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:35',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:35',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=651 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=651  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19033,1,45,651,'int',1,1,1,'WF_Depute','Id','Id','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_Depute',[FieldName]='Id',[FieldByname]='Id',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=651  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=651  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19034,2,45,651,'int',1,1,1,'WF_Depute','FlowId','FlowId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_Depute',[FieldName]='FlowId',[FieldByname]='FlowId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=651  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=651  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19035,3,45,651,'varchar',2,1,1,'WF_Depute','FlowName','FlowName','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_Depute',[FieldName]='FlowName',[FieldByname]='FlowName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=651  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=651  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19036,4,45,651,'int',1,1,1,'WF_Depute','RunId','RunId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_Depute',[FieldName]='RunId',[FieldByname]='RunId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=651  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=651  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19037,5,45,651,'varchar',2,1,1,'WF_Depute','RunName','RunName','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_Depute',[FieldName]='RunName',[FieldByname]='RunName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=651  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=651  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19038,6,45,651,'int',1,1,1,'WF_Depute','PrcsId','PrcsId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_Depute',[FieldName]='PrcsId',[FieldByname]='PrcsId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=651  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=651  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19039,7,45,651,'varchar',2,1,1,'WF_Depute','PrcsName','PrcsName','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_Depute',[FieldName]='PrcsName',[FieldByname]='PrcsName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=651  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=651  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19040,8,45,651,'int',1,1,1,'WF_Depute','UserId','UserId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_Depute',[FieldName]='UserId',[FieldByname]='UserId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=651  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=651  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19041,9,45,651,'varchar',2,1,1,'WF_Depute','UserName','UserName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_Depute',[FieldName]='UserName',[FieldByname]='UserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=651  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=651  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19042,10,45,651,'int',1,1,1,'WF_Depute','CreatorId','CreatorId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_Depute',[FieldName]='CreatorId',[FieldByname]='CreatorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=651  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=651  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19043,11,45,651,'varchar',2,1,1,'WF_Depute','CreatorUserName','CreatorUserName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_Depute',[FieldName]='CreatorUserName',[FieldByname]='CreatorUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=651  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=651  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19044,12,45,651,'datetime',3,1,1,'WF_Depute','CreateDate','CreateDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_Depute',[FieldName]='CreateDate',[FieldByname]='CreateDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=651  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=651  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19045,13,45,651,'varchar',2,1,1,'WF_Depute','NoteType','NoteType','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_Depute',[FieldName]='NoteType',[FieldByname]='NoteType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=651  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=651  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19046,14,45,651,'varchar',2,1,1,'WF_Depute','NoteContent','NoteContent','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_Depute',[FieldName]='NoteContent',[FieldByname]='NoteContent',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=651  and  [FieldId]=14 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 



Delete from [Dcx_EntityPrivilege]  where [EntId]=2091

--Dcx_EntityPrivilege

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] ON 
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2091  and  [RoleId]=1  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11125,-1,2091,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2091  and  [RoleId]=1 
      end
      if (select count(1) from [Dcx_EntityPrivilege] where  [EntId]=2091  and  [RoleId]=3  )<1 
      begin 
           Insert into [Dcx_EntityPrivilege] ([EntityPrivilegeId],[MenuId],[EntId],[RoleId],[CanViewList],[CanBrowse],[CanInsert],[CanDelete],[CanUpdate],[CanOutPut],[CanInput],[CanCopy],[CanPrint],[CanCheck],[CanClean],[CanRecycle],[CanExecute],[CanDesign],[Remark],[RoleName],[AccountId])values(11465,-1,2091,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,1)
      end
      else 
      begin 
           update [Dcx_EntityPrivilege] set [MenuId]=-1,[CanViewList]=1,[CanBrowse]=1,[CanInsert]=1,[CanDelete]=1,[CanUpdate]=1,[CanOutPut]=1,[CanInput]=1,[CanCopy]=1,[CanPrint]=1,[CanCheck]=1,[CanClean]=1,[CanRecycle]=1,[CanExecute]=1,[CanDesign]=1,[Remark]=null,[RoleName]=null,[AccountId]=1 where  [EntId]=2091  and  [RoleId]=3 
      end

     SET IDENTITY_INSERT [Dcx_EntityPrivilege] OFF 



Delete from [Dcx_DefaultForm_Run]  where [EntId]=2091

--Dcx_DefaultForm_Run
      if (select count(1) from [Dcx_DefaultForm_Run] where  [EntId]=2091  )<1 
      begin 
           Insert into [Dcx_DefaultForm_Run] ([FormId],[FormName],[EntId],[ModuleId],[StaticHtml],[DropDownHtml],[NoInit],[DIYJsCss],[DIYJsCss2],[AutoPublicJs],[AutoInitJs],[AutoOtherJS],[LoadingSql],[PageSize],[OtherMsg],[InsertTrigger],[UpdateTrigger],[DeleteTrigger],[AtServer],[IsIPLimit],[IsSchedule],[IsSupportMsg],[BeginTime],[EndTime],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[AccountId])values('1d8ef9f2-0918-bf30-d8a8-b9e667ceca48','驳回流程',2091,0,'','',0,'','','DcxRun.DefaultF_2091= {"MenuId":2915,"MEntId":2091,"EntName":"驳回流程","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2091":{"EntId":2091,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"Id","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};','runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
GetLinkCtrlData_DefaultF_2091_546(null,null);
GetLinkCtrlData_DefaultF_2091_548(null,null);
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":15,"Ent":[{"EntId":2091,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,200}$","err":"限制0-200个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":2,"Vld":[{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,200}$","err":"限制0-200个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":3,"Vld":[{"Id":4,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":14,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":4,"Vld":[{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,200}$","err":"限制0-200个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":5,"Vld":[{"Id":6,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,200}$","err":"限制0-200个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":6,"Vld":[{"Id":7,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":7,"Vld":[{"Id":8,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":8,"Vld":[{"Id":9,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":9,"Vld":[{"Id":10,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":10,"Vld":[{"Id":11,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":11,"Vld":[{"Id":12,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-)) (20|21|22|23|[0-1]?\\d):[0-5]?\\d:[0-5]?\\d|((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))","err":"格式要求为日期时间格式：yyyy-mm-dd  hh:mm:ss","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":12,"Vld":[{"Id":13,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":13,"Vld":[{"Id":15,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":14,"Vld":[]}]}]};
 }
 catch(err){}','/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2091.EntMsg.E2091.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"WF_Rebut","EntId":2091,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"RunName":{"DtId":2,"DB":1,"CId":4,"FL":200},"PrcsName":{"DtId":2,"DB":1,"CId":4,"FL":200},"RebutToPrcsId":{"DtId":1,"DB":1,"CId":7,"FL":4},"RebutToPrcsName":{"DtId":2,"DB":1,"CId":1,"FL":200},"FlowName":{"DtId":2,"DB":1,"CId":4,"FL":200},"FlowId":{"DtId":1,"DB":1,"CId":1,"FL":4},"RunId":{"DtId":1,"DB":1,"CId":1,"FL":4},"PrcsId":{"DtId":1,"DB":1,"CId":1,"FL":4},"CreatorId":{"DtId":1,"DB":1,"CId":4,"FL":4},"CreatorUserName":{"DtId":2,"DB":1,"CId":4,"FL":50},"CreateDate":{"DtId":3,"DB":1,"CId":4,"FL":8},"NoteType":{"DtId":23,"DB":1,"CId":7,"FL":1},"Remark":{"DtId":2,"DB":1,"CId":2,"FL":0},"NoteContent":{"DtId":2,"DB":1,"CId":2,"FL":0}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2091.EntMsg.E2091.GetDataRowModel=function()
{
    return {"RunName":"","PrcsName":"","RebutToPrcsId":-1,"RebutToPrcsName":"","FlowName":"","FlowId":-1,"RunId":-1,"PrcsId":-1,"CreatorId":-1,"CreatorUserName":"","CreateDate":new Date(),"NoteType":-1,"Remark":"","NoteContent":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_DefaultF_2091_543(obj,curFieldName){
 var EntId=2091;
 var FldId=1;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''RunName'';
 var $formContainer=DcxForm.GetHtmlContainer(2091,''DefaultF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(2091,''DefaultF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"RunName\",FldId:"+FldId+",EntId:2091,CtrlPrex:\"DefaultF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''FlowId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2091,''DefaultF_'',''FlowId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@FlowId}<*>"+v_f1+"<**>";
var v_f1=null;
if(''RunId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2091,''DefaultF_'',''RunId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@RunId}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d2091_RunName");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_DefaultF_2091_544(obj,curFieldName){
 var EntId=2091;
 var FldId=2;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''PrcsName'';
 var $formContainer=DcxForm.GetHtmlContainer(2091,''DefaultF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(2091,''DefaultF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"PrcsName\",FldId:"+FldId+",EntId:2091,CtrlPrex:\"DefaultF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''RunId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2091,''DefaultF_'',''RunId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@RunId}<*>"+v_f1+"<**>";
var v_f1=null;
if(''PrcsId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2091,''DefaultF_'',''PrcsId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@PrcsId}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d2091_PrcsName");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_DefaultF_2091_545(obj,curFieldName){
 var EntId=2091;
 var FldId=3;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''RebutToPrcsId'';
 var $formContainer=DcxForm.GetHtmlContainer(2091,''DefaultF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(2091,''DefaultF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"RebutToPrcsId\",FldId:"+FldId+",EntId:2091,CtrlPrex:\"DefaultF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"Id\",CtrlTypeId:7,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''RunId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2091,''DefaultF_'',''RunId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@RunId}<*>"+v_f1+"<**>";
var v_f1=null;
if(''PrcsId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2091,''DefaultF_'',''PrcsId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@PrcsId}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d2091_RebutToPrcsId");
$AcceptObj.html(myVal);
$AcceptObj.click();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_DefaultF_2091_546(obj,curFieldName){
 var EntId=2091;
 var FldId=4;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''RebutToPrcsName'';
 var $formContainer=DcxForm.GetHtmlContainer(2091,''DefaultF_'');
 var $ddlContainer=null;
var strCode="{@RebutToPrcsId&}" ;
var v_f1=null;
if(''RebutToPrcsId''==curFieldName)
  v_f1=DcxForm.GetRadioListValue(obj,2091,''DefaultF_'',''RebutToPrcsId'',$formContainer,false,true);
else 
  v_f1=DcxForm.GetRadioListValue(null,2091,''DefaultF_'',''RebutToPrcsId'',$formContainer,false,true);
if(Dcx.IsNull(v_f1))
   v_f1=0;
strCode=strCode.replaceAll("{@RebutToPrcsId&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d2091_RebutToPrcsName");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
function GetLinkCtrlData_DefaultF_2091_547(obj,curFieldName){
 var EntId=2091;
 var FldId=5;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''FlowName'';
 var $formContainer=DcxForm.GetHtmlContainer(2091,''DefaultF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(2091,''DefaultF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"FlowName\",FldId:"+FldId+",EntId:2091,CtrlPrex:\"DefaultF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''FlowId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2091,''DefaultF_'',''FlowId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@FlowId}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d2091_FlowName");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_DefaultF_2091_548(obj,curFieldName){
 var EntId=2091;
 var FldId=14;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''NoteContent'';
 var $formContainer=DcxForm.GetHtmlContainer(2091,''DefaultF_'');
 var $ddlContainer=null;
var strCode="''工作流驳回提醒：''+''{@RunName}''" ;
var v_f1=null;
if(''RunName''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,2091,''DefaultF_'',''RunName'',$formContainer);
if(v_f1==null)
   return;
strCode=strCode.replaceAll("{@RunName}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d2091_NoteContent");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2091.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2091,''DefaultF_'',buildNew,closeDlg);

}','<$2091$>select [FlowName],[RunName],[PrcsName],[RebutToPrcsId],[RebutToPrcsName],[Remark],[NoteType],[NoteContent],[CreatorId],[CreatorUserName],[CreateDate],[FlowId],[RunId],[PrcsId],[Id] from WF_Rebut where [Id]=''{$keyfieldvalue}''</$2091$>',10,'2091*Id*2*Id*2*WF_Rebut*驳回流程','','','',1,0,0,0,'1970-1-1 8:00:01','1970-1-1 8:00:01',3,'admin','2013-2-23 23:19:39',3,'admin','2013-10-2 18:34:29',1)
      end
      else 
      begin 
           update [Dcx_DefaultForm_Run] set [FormId]='1d8ef9f2-0918-bf30-d8a8-b9e667ceca48',[FormName]='驳回流程',[ModuleId]=0,[StaticHtml]='',[DropDownHtml]='',[NoInit]=0,[DIYJsCss]='',[DIYJsCss2]='',[AutoPublicJs]='DcxRun.DefaultF_2091= {"MenuId":2915,"MEntId":2091,"EntName":"驳回流程","CtrlPrex":"DefaultF_","NoInit":false,"OperateType":1,"MKeyFieldValue":"","IsFlow":false,"EntMsg":{"E2091":{"EntId":2091,"KeyFieldValue":"","DBTableName":"","KeyField":"Id","KeydtId":2,"JoinKeyField":"Id","JKeydtId":2,"IsMEnt":true,"FieldMsg":{},"Power":null,"FormData":null ,"DefaultFormData":null ,"FormContainer":null,"DropDownContainer":null,"CtrlArea":null,"TrArea":null,"HiddenMsg":null,"LoadingSql":null,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"RowCount":1,"CurRowIndex":-1,"AutoAdd":"","Deleted_kFVS":""}}
};',[AutoInitJs]='runObj.NoInit=false;
try{
runObj.OtherMsg={"msg":{},"showToolbar":false};
 }
 catch(err){}

/****************下：初始化******************/
try
{

if(!runObj.NoInit)
{

}
GetLinkCtrlData_DefaultF_2091_546(null,null);
GetLinkCtrlData_DefaultF_2091_548(null,null);
}
catch(err)
{
}
/****************上：初始化******************/
try{
   runObj.Validate={"MaxVlId":15,"Ent":[{"EntId":2091,"Fld":[{"FldId":1,"Vld":[{"Id":2,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,200}$","err":"限制0-200个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":2,"Vld":[{"Id":3,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,200}$","err":"限制0-200个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":3,"Vld":[{"Id":4,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""},{"Id":14,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":4,"Vld":[{"Id":5,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,200}$","err":"限制0-200个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":5,"Vld":[{"Id":6,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,200}$","err":"限制0-200个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":6,"Vld":[{"Id":7,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":7,"Vld":[{"Id":8,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":8,"Vld":[{"Id":9,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":9,"Vld":[{"Id":10,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":10,"Vld":[{"Id":11,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[\\s\\S]{0,50}$","err":"限制0-50个字符。","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":11,"Vld":[{"Id":12,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-)) (20|21|22|23|[0-1]?\\d):[0-5]?\\d:[0-5]?\\d|((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))","err":"格式要求为日期时间格式：yyyy-mm-dd  hh:mm:ss","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":12,"Vld":[{"Id":13,"vlId":4,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"^[+-]?\\d+$","err":"格式要求为整数","ok":"","warn":"","ovt":1,"jsFun":""}]},{"FldId":13,"Vld":[{"Id":15,"vlId":1,"cdn":"","compT":1,"compV":"","minV":"","maxV":"","rExp":"","err":"不能为空","ok":"","warn":"必填","ovt":1,"jsFun":""}]},{"FldId":14,"Vld":[]}]}]};
 }
 catch(err){}',[AutoOtherJS]='/****************下：AJAX回调函数******************/
/***************************下：JSON 函数*********************/
DcxRun.DefaultF_2091.EntMsg.E2091.GetSubmitModel=function()
{
    return {"Header":{"TotalRows":-1,"TableName":"WF_Rebut","EntId":2091,"KeyField":"Id","MKeyField":"Id","MKeyValue":-1,"DataTypeId":2,"OpType":1,"IsMEnt":true,"InsertTrigger":null,"UpdateTrigger":null,"DeleteTrigger":null,"DeletedKeyVS":null,"ChildCount":0},"FieldDefine":{"RunName":{"DtId":2,"DB":1,"CId":4,"FL":200},"PrcsName":{"DtId":2,"DB":1,"CId":4,"FL":200},"RebutToPrcsId":{"DtId":1,"DB":1,"CId":7,"FL":4},"RebutToPrcsName":{"DtId":2,"DB":1,"CId":1,"FL":200},"FlowName":{"DtId":2,"DB":1,"CId":4,"FL":200},"FlowId":{"DtId":1,"DB":1,"CId":1,"FL":4},"RunId":{"DtId":1,"DB":1,"CId":1,"FL":4},"PrcsId":{"DtId":1,"DB":1,"CId":1,"FL":4},"CreatorId":{"DtId":1,"DB":1,"CId":4,"FL":4},"CreatorUserName":{"DtId":2,"DB":1,"CId":4,"FL":50},"CreateDate":{"DtId":3,"DB":1,"CId":4,"FL":8},"NoteType":{"DtId":23,"DB":1,"CId":7,"FL":1},"Remark":{"DtId":2,"DB":1,"CId":2,"FL":0},"NoteContent":{"DtId":2,"DB":1,"CId":2,"FL":0}},"Data":{"Row":[]}};
}
DcxRun.DefaultF_2091.EntMsg.E2091.GetDataRowModel=function()
{
    return {"RunName":"","PrcsName":"","RebutToPrcsId":-1,"RebutToPrcsName":"","FlowName":"","FlowId":-1,"RunId":-1,"PrcsId":-1,"CreatorId":-1,"CreatorUserName":"","CreateDate":new Date(),"NoteType":-1,"Remark":"","NoteContent":"","Dcx_Keymsg":{"RowIx":-1,"KeyField":"Id","KeyFieldValue":-1,"DataTypeId":2,"OpType":1},"Dcx_Childmsg":{"Child":[]}};
}
/***************************上：JSON 函数*********************/
function GetLinkCtrlData_DefaultF_2091_543(obj,curFieldName){
 var EntId=2091;
 var FldId=1;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''RunName'';
 var $formContainer=DcxForm.GetHtmlContainer(2091,''DefaultF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(2091,''DefaultF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"RunName\",FldId:"+FldId+",EntId:2091,CtrlPrex:\"DefaultF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''FlowId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2091,''DefaultF_'',''FlowId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@FlowId}<*>"+v_f1+"<**>";
var v_f1=null;
if(''RunId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2091,''DefaultF_'',''RunId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@RunId}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d2091_RunName");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_DefaultF_2091_544(obj,curFieldName){
 var EntId=2091;
 var FldId=2;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''PrcsName'';
 var $formContainer=DcxForm.GetHtmlContainer(2091,''DefaultF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(2091,''DefaultF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"PrcsName\",FldId:"+FldId+",EntId:2091,CtrlPrex:\"DefaultF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''RunId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2091,''DefaultF_'',''RunId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@RunId}<*>"+v_f1+"<**>";
var v_f1=null;
if(''PrcsId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2091,''DefaultF_'',''PrcsId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@PrcsId}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d2091_PrcsName");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_DefaultF_2091_545(obj,curFieldName){
 var EntId=2091;
 var FldId=3;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''RebutToPrcsId'';
 var $formContainer=DcxForm.GetHtmlContainer(2091,''DefaultF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(2091,''DefaultF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"RebutToPrcsId\",FldId:"+FldId+",EntId:2091,CtrlPrex:\"DefaultF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"Id\",CtrlTypeId:7,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''RunId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2091,''DefaultF_'',''RunId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@RunId}<*>"+v_f1+"<**>";
var v_f1=null;
if(''PrcsId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2091,''DefaultF_'',''PrcsId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@PrcsId}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d2091_RebutToPrcsId");
$AcceptObj.html(myVal);
$AcceptObj.click();
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_DefaultF_2091_546(obj,curFieldName){
 var EntId=2091;
 var FldId=4;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''RebutToPrcsName'';
 var $formContainer=DcxForm.GetHtmlContainer(2091,''DefaultF_'');
 var $ddlContainer=null;
var strCode="{@RebutToPrcsId&}" ;
var v_f1=null;
if(''RebutToPrcsId''==curFieldName)
  v_f1=DcxForm.GetRadioListValue(obj,2091,''DefaultF_'',''RebutToPrcsId'',$formContainer,false,true);
else 
  v_f1=DcxForm.GetRadioListValue(null,2091,''DefaultF_'',''RebutToPrcsId'',$formContainer,false,true);
if(Dcx.IsNull(v_f1))
   v_f1=0;
strCode=strCode.replaceAll("{@RebutToPrcsId&}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d2091_RebutToPrcsName");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
function GetLinkCtrlData_DefaultF_2091_547(obj,curFieldName){
 var EntId=2091;
 var FldId=5;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''FlowName'';
 var $formContainer=DcxForm.GetHtmlContainer(2091,''DefaultF_'');
 var $ddlContainer=null;
 var keyMsg=DcxForm.GetKeyMainMsg(2091,''DefaultF_'');
 var KeyFieldValue=keyMsg.KeyFieldValue;
 var MKeyFieldValue=keyMsg.MKeyFieldValue;
 var OpTypeId=keyMsg.OpTypeId;
 var strData={data:""};
 strData.data=strData.data+"FieldName:\"FlowName\",FldId:"+FldId+",EntId:2091,CtrlPrex:\"DefaultF_\",OpTypeId:"+OpTypeId +",SystemVariables:\"\",KeyFieldValue:\""+KeyFieldValue +"\",MKeyFieldValue:\""+MKeyFieldValue +"\",KeyFieldName:\"Id\",CtrlTypeId:4,strSQL:\"\",FieldAndValues:\"";
var v_f1=null;
if(''FlowId''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetTxtValue(null,2091,''DefaultF_'',''FlowId'',$formContainer);
if(v_f1==null)
   return;
if(Dcx.IsNull(v_f1)||isNaN(v_f1))
v_f1 = "0";
 strData.data = strData.data + "{@FlowId}<*>"+v_f1+"<**>";
var dbConnectId = Dcx.GetUPCId();
 
 strData.data = "{"+strData.data + "\",IsChild:false,\"dbConnectId\":"+dbConnectId+"}";
DcxAjax.Go({
url:"/WebServices/Form/Form_Run.asmx/GetCtrlBindValue",data:strData.data+"",
success:function(myVal)
{
var $AcceptObj=$formContainer.find("#d2091_FlowName");
$AcceptObj.next().val(myVal);
$AcceptObj.html(myVal);
},
error:function(e)
{
//错误处理
var b = JSON2.stringify(e);
if (b.length > 600) 
    b = b.substr(0, 600);
art.VLdialog.alert("获取控件的数据失败，请检查SQL语句是否正常。详情：" + JSON2.stringify(b), function () { }, 668, "提示");
return false;
}
});
}
function GetLinkCtrlData_DefaultF_2091_548(obj,curFieldName){
 var EntId=2091;
 var FldId=14;
 var CtrlPrex=''DefaultF_'';
 var FieldName=''NoteContent'';
 var $formContainer=DcxForm.GetHtmlContainer(2091,''DefaultF_'');
 var $ddlContainer=null;
var strCode="''工作流驳回提醒：''+''{@RunName}''" ;
var v_f1=null;
if(''RunName''==curFieldName)
  v_f1=$(obj).val();
else 
  v_f1=DcxForm.GetLabelValue(null,2091,''DefaultF_'',''RunName'',$formContainer);
if(v_f1==null)
   return;
strCode=strCode.replaceAll("{@RunName}",v_f1);
var myVal =null;
 try{
 myVal=eval(strCode);
}
 catch(e)
{myVal=strCode;}
if(Dcx.IsNull(myVal))
  myVal='''';
var $AcceptObj=$formContainer.find("#d2091_NoteContent");
$AcceptObj.val(myVal);
$AcceptObj.change();
}
/****************上：AJAX回调函数******************/


DcxRun.DefaultF_2091.SubmitForm=function(buildNew,closeDlg){
return DcxForm.SumbitAf(2091,''DefaultF_'',buildNew,closeDlg);

}',[LoadingSql]='<$2091$>select [FlowName],[RunName],[PrcsName],[RebutToPrcsId],[RebutToPrcsName],[Remark],[NoteType],[NoteContent],[CreatorId],[CreatorUserName],[CreateDate],[FlowId],[RunId],[PrcsId],[Id] from WF_Rebut where [Id]=''{$keyfieldvalue}''</$2091$>',[PageSize]=10,[OtherMsg]='2091*Id*2*Id*2*WF_Rebut*驳回流程',[InsertTrigger]='',[UpdateTrigger]='',[DeleteTrigger]='',[AtServer]=1,[IsIPLimit]=0,[IsSchedule]=0,[IsSupportMsg]=0,[BeginTime]='1970-1-1 8:00:01',[EndTime]='1970-1-1 8:00:01',[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-2-23 23:19:39',[EditorId]=3,[Editor]='admin',[EditTime]='2013-10-2 18:34:29',[AccountId]=1 where  [EntId]=2091 
      end




--Dcx_DefaultFormField_Run
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='aea2a7db-c04e-f489-8dc6-c59bd932124a'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(5,'aea2a7db-c04e-f489-8dc6-c59bd932124a',2091,2091,'00000000-0000-0000-0000-000000000000',1,'FlowName',2,2,3,'SELECT  [FlowName]  FROM [WF_FlowType] where [FlowId]={@FlowId}',2,9,1,0,4,1,-1,-1,1,0,'','','FlowId,','','<div class="defaultform ">
	<div class="div_top">
		<div class="title-div">
			<ul class="ul-title" groupid="5" isgroup="1" isrple="1">
				<li areaid="20" class="li-area-title" scroll="no" style="position: static;">
					<div class="form-title5" id="div_head1">
						<span class="title-name" id="h2_title">驳回流程</span></div>
				</li>
				<li areaid="21" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
				<li areaid="22" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.DefaultF_2091.SubmitForm(false);"><span class="op_bt_i">保存</span> </a></li>
				<li areaid="23" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(2091,''DefaultF_'');"><span class="op_bt_i">新建</span> </a></li>
			</ul>
		</div>
		<div class="frame-div">
			<ul class="ul-mform" groupid="1" isgroup="1" isrple="1">
				<li areaid="35" class="li-area" scroll="no" style="height: 45px; width: 595px; position: static; display: none;"><label class="area-title pad4" fldid="5" istitle="1">流程名称</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d2091_FlowName" class="form-lbl" style="width:200px;" IsForField=1 EntId="2091" CId="4" FId="5" Vtp="2"  >','</span><input id="d2091_FlowName_hid" type="hidden"  EntId="2091" IsField=1 DBField=1 IsPost=1 FieldName="FlowName" dType="2" Vtp="2" RDT="2" Isc="1" RId="9" CId="4" FId="5" vlk=0    value="','" />',-1,-1,-1,-1,0,'2091,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=5,[Form_EntId]=2091,[EntId]=2091,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=1,[FieldName]='FlowName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=3,[DefaultValue]='SELECT  [FlowName]  FROM [WF_FlowType] where [FlowId]={@FlowId}',[ValueType]=2,[RunValueType]=9,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='FlowId,',[SystemVariables]='',[BeforeHtml]='<div class="defaultform ">
	<div class="div_top">
		<div class="title-div">
			<ul class="ul-title" groupid="5" isgroup="1" isrple="1">
				<li areaid="20" class="li-area-title" scroll="no" style="position: static;">
					<div class="form-title5" id="div_head1">
						<span class="title-name" id="h2_title">驳回流程</span></div>
				</li>
				<li areaid="21" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt3 " href="javascript:void(0);" onclick="javascript:DcxForm.Close();"><span class="op_bt_i">关闭</span> </a></li>
				<li areaid="22" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt1 " href="javascript:void(0);" onclick="javascript:DcxRun.DefaultF_2091.SubmitForm(false);"><span class="op_bt_i">保存</span> </a></li>
				<li areaid="23" class="li-area1" scroll="no" style="width: 90px; height: 36px; display: none; position: static;"><a class="f_hot_op_bt f_hot_op_bt2" href="javascript:void(0);" id="btn_NewBrotherMenu" onclick="javascript:DcxForm.BuildNew(2091,''DefaultF_'');"><span class="op_bt_i">新建</span> </a></li>
			</ul>
		</div>
		<div class="frame-div">
			<ul class="ul-mform" groupid="1" isgroup="1" isrple="1">
				<li areaid="35" class="li-area" scroll="no" style="height: 45px; width: 595px; position: static; display: none;"><label class="area-title pad4" fldid="5" istitle="1">流程名称</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d2091_FlowName" class="form-lbl" style="width:200px;" IsForField=1 EntId="2091" CId="4" FId="5" Vtp="2"  >',[CtrlbackHtml]='</span><input id="d2091_FlowName_hid" type="hidden"  EntId="2091" IsField=1 DBField=1 IsPost=1 FieldName="FlowName" dType="2" Vtp="2" RDT="2" Isc="1" RId="9" CId="4" FId="5" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2091,' where  [FldUId]='aea2a7db-c04e-f489-8dc6-c59bd932124a' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='0c145e2a-52fe-4196-dfe9-6f5996c89839'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(1,'0c145e2a-52fe-4196-dfe9-6f5996c89839',2091,2091,'00000000-0000-0000-0000-000000000000',2,'RunName',2,2,5,'SELECT [RunName] FROM [WF_FlowRun] where [FlowId]={@FlowId} and [RunId]={@RunId}',2,9,1,0,4,1,-1,-1,1,0,'','','FlowId,RunId,','','</span>
</div>
</li><li areaid="24" class="li-area" scroll="no" style="height: 45px; width: 595px; position: static;"><label class="area-title pad4" fldid="1" istitle="1">工作名称</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d2091_RunName" class="form-lbl" style="width:200px;" IsForField=1 EntId="2091" CId="4" FId="1" Vtp="2"  CBack=1  >','</span><input id="d2091_RunName_hid" type="hidden"  EntId="2091" IsField=1 DBField=1 IsPost=1 FieldName="RunName" dType="2" Vtp="2" RDT="2" Isc="1" RId="9" CId="4" FId="1" vlk=0    value="','" />',-1,-1,-1,-1,0,'2091,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=1,[Form_EntId]=2091,[EntId]=2091,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=2,[FieldName]='RunName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=5,[DefaultValue]='SELECT [RunName] FROM [WF_FlowRun] where [FlowId]={@FlowId} and [RunId]={@RunId}',[ValueType]=2,[RunValueType]=9,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='FlowId,RunId,',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li areaid="24" class="li-area" scroll="no" style="height: 45px; width: 595px; position: static;"><label class="area-title pad4" fldid="1" istitle="1">工作名称</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d2091_RunName" class="form-lbl" style="width:200px;" IsForField=1 EntId="2091" CId="4" FId="1" Vtp="2"  CBack=1  >',[CtrlbackHtml]='</span><input id="d2091_RunName_hid" type="hidden"  EntId="2091" IsField=1 DBField=1 IsPost=1 FieldName="RunName" dType="2" Vtp="2" RDT="2" Isc="1" RId="9" CId="4" FId="1" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2091,' where  [FldUId]='0c145e2a-52fe-4196-dfe9-6f5996c89839' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='26a5df87-97ca-007e-6418-90f1e1528caa'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(2,'26a5df87-97ca-007e-6418-90f1e1528caa',2091,2091,'00000000-0000-0000-0000-000000000000',3,'PrcsName',2,2,7,'SELECT [PrcsName] FROM [WF_FlowRunPrcs] where [RunId]={@RunId} and [PrcsId]={@PrcsId}',2,9,1,0,4,1,-1,-1,1,0,'','','RunId,PrcsId,','','</span>
</div>
</li>
				<li areaid="25" class="li-area" scroll="no" style="height: 45px; width: 595px; position: static;"><label class="area-title pad4" fldid="2" istitle="1">当前步骤</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d2091_PrcsName" class="form-lbl" style="width:200px;" IsForField=1 EntId="2091" CId="4" FId="2" Vtp="2"  >','</span><input id="d2091_PrcsName_hid" type="hidden"  EntId="2091" IsField=1 DBField=1 IsPost=1 FieldName="PrcsName" dType="2" Vtp="2" RDT="2" Isc="1" RId="9" CId="4" FId="2" vlk=0    value="','" />',-1,-1,-1,-1,0,'2091,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=2,[Form_EntId]=2091,[EntId]=2091,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=3,[FieldName]='PrcsName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=7,[DefaultValue]='SELECT [PrcsName] FROM [WF_FlowRunPrcs] where [RunId]={@RunId} and [PrcsId]={@PrcsId}',[ValueType]=2,[RunValueType]=9,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='RunId,PrcsId,',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li>
				<li areaid="25" class="li-area" scroll="no" style="height: 45px; width: 595px; position: static;"><label class="area-title pad4" fldid="2" istitle="1">当前步骤</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d2091_PrcsName" class="form-lbl" style="width:200px;" IsForField=1 EntId="2091" CId="4" FId="2" Vtp="2"  >',[CtrlbackHtml]='</span><input id="d2091_PrcsName_hid" type="hidden"  EntId="2091" IsField=1 DBField=1 IsPost=1 FieldName="PrcsName" dType="2" Vtp="2" RDT="2" Isc="1" RId="9" CId="4" FId="2" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2091,' where  [FldUId]='26a5df87-97ca-007e-6418-90f1e1528caa' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='5b1c48d9-6d18-6758-ce29-91f99aed415e'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(3,'5b1c48d9-6d18-6758-ce29-91f99aed415e',2091,2091,'00000000-0000-0000-0000-000000000000',4,'RebutToPrcsId',1,1,8,'SELECT ''第''+cast([PrcsStep] as varchar(20))+''步：''+isnull([PrcsName],''未命名'') as [PrcsName],[PrcsId] FROM  [WF_FlowRunPrcs]  where [RunId]={@RunId} and [PrcsId]!={@PrcsId} and [IsRebut]!=1 order by [PrcsId]',2,7,1,0,7,1,1,-1,1,0,'','','RunId,PrcsId,','','</span>
</div>
</li><li areaid="36" class="li-area" scroll="no" style="height: 55px; width: 595px; position: static;"><label class="area-title pad4" fldid="3" istitle="1">驳回到步骤</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<div id="d2091_RebutToPrcsId" class="form-radio" style="" EntId="2091" IsField=1 DBField=1 IsPost=1 FieldName="RebutToPrcsId" dType="1" Vtp="2" RDT="1" Isc="1" RId="7" CId="7" FId="3" vlk=0    TFN="RebutToPrcsName"  CBack=1  Type="1"  onclick ="javascript:GetLinkCtrlData_DefaultF_2091_546(this,''RebutToPrcsId'');DcxVld.Validate(this,2091,''DefaultF_'',2091);" onfocus ="javascript:DcxVld.ValidateFocus(this,2091,''DefaultF_'',2091);">','</div>','',-1,-1,-1,-1,0,'2091,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=3,[Form_EntId]=2091,[EntId]=2091,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=4,[FieldName]='RebutToPrcsId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=8,[DefaultValue]='SELECT ''第''+cast([PrcsStep] as varchar(20))+''步：''+isnull([PrcsName],''未命名'') as [PrcsName],[PrcsId] FROM  [WF_FlowRunPrcs]  where [RunId]={@RunId} and [PrcsId]!={@PrcsId} and [IsRebut]!=1 order by [PrcsId]',[ValueType]=2,[RunValueType]=7,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=7,[FieldTypeId]=1,[RepeatColumns]=1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='RunId,PrcsId,',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li areaid="36" class="li-area" scroll="no" style="height: 55px; width: 595px; position: static;"><label class="area-title pad4" fldid="3" istitle="1">驳回到步骤</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2091_RebutToPrcsId" class="form-radio" style="" EntId="2091" IsField=1 DBField=1 IsPost=1 FieldName="RebutToPrcsId" dType="1" Vtp="2" RDT="1" Isc="1" RId="7" CId="7" FId="3" vlk=0    TFN="RebutToPrcsName"  CBack=1  Type="1"  onclick ="javascript:GetLinkCtrlData_DefaultF_2091_546(this,''RebutToPrcsId'');DcxVld.Validate(this,2091,''DefaultF_'',2091);" onfocus ="javascript:DcxVld.ValidateFocus(this,2091,''DefaultF_'',2091);">',[CtrlbackHtml]='</div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2091,' where  [FldUId]='5b1c48d9-6d18-6758-ce29-91f99aed415e' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='56c0623b-61e2-a634-1904-361b51c273ea'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(4,'56c0623b-61e2-a634-1904-361b51c273ea',2091,2091,'00000000-0000-0000-0000-000000000000',5,'RebutToPrcsName',2,2,9,'',3,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
 <span class="form-ctr" isfcontain="1">','','','','<input  id="d2091_RebutToPrcsName"   type="text" class="form-txt hide"  style="width:60px;display:none;" onblur ="javascript:if(!DcxVld.Validate(this,2091,''DefaultF_'',2091,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2091,''DefaultF_'',2091);" EntId="2091" IsField=1 DBField=1 IsPost=1 FieldName="RebutToPrcsName" dType="2" Vtp="3" RDT="2" Isc="1" RId="1" CId="1" FId="4" vlk=0    value="','"/>','',-1,-1,-1,-1,0,'2091,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=4,[Form_EntId]=2091,[EntId]=2091,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=5,[FieldName]='RebutToPrcsName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=9,[DefaultValue]='',[ValueType]=3,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
 <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2091_RebutToPrcsName"   type="text" class="form-txt hide"  style="width:60px;display:none;" onblur ="javascript:if(!DcxVld.Validate(this,2091,''DefaultF_'',2091,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2091,''DefaultF_'',2091);" EntId="2091" IsField=1 DBField=1 IsPost=1 FieldName="RebutToPrcsName" dType="2" Vtp="3" RDT="2" Isc="1" RId="1" CId="1" FId="4" vlk=0    value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2091,' where  [FldUId]='56c0623b-61e2-a634-1904-361b51c273ea' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='7d71be0c-c3fe-bf2c-8431-7ae5345777a2'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(13,'7d71be0c-c3fe-bf2c-8431-7ae5345777a2',2091,2091,'00000000-0000-0000-0000-000000000000',6,'Remark',2,2,13,'',5,1,1,0,2,1,-1,-1,1,0,'','','','','</span><div iserr="1" class="form-vld"></div>
</div>
</li><li areaid="41" class="li-area" scroll="no" style="height: 76px; width: 595px; position: static;"><label class="area-title pad4" fldid="13" istitle="1">备注</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<textarea  id="d2091_Remark" class="form-txts"  style="width:320px;height:45px;" onblur ="javascript:if(!DcxVld.Validate(this,2091,''DefaultF_'',2091,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2091,''DefaultF_'',2091);" EntId="2091" IsField=1 DBField=1 IsPost=1 FieldName="Remark" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="13" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'2091,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=13,[Form_EntId]=2091,[EntId]=2091,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=6,[FieldName]='Remark',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=13,[DefaultValue]='',[ValueType]=5,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span><div iserr="1" class="form-vld"></div>
</div>
</li><li areaid="41" class="li-area" scroll="no" style="height: 76px; width: 595px; position: static;"><label class="area-title pad4" fldid="13" istitle="1">备注</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d2091_Remark" class="form-txts"  style="width:320px;height:45px;" onblur ="javascript:if(!DcxVld.Validate(this,2091,''DefaultF_'',2091,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2091,''DefaultF_'',2091);" EntId="2091" IsField=1 DBField=1 IsPost=1 FieldName="Remark" dType="2" Vtp="5" RDT="2" Isc="1" RId="1" CId="2" FId="13" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2091,' where  [FldUId]='7d71be0c-c3fe-bf2c-8431-7ae5345777a2' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='33b846df-cf78-148b-eeea-8eb455c17001'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(12,'33b846df-cf78-148b-eeea-8eb455c17001',2091,2091,'00000000-0000-0000-0000-000000000000',7,'NoteType',23,1,14,'内部短信|1',1,7,1,0,7,1,-1,-1,1,0,'','','','','</span><div iserr="1" class="form-vld"></div>
</div>
</li><li areaid="37" class="li-area" scroll="no" style="height: 55px; width: 595px; position: static;"><label class="area-title pad4" fldid="12" istitle="1">通知方式</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<div id="d2091_NoteType" class="form-radio" style="" EntId="2091" IsField=1 DBField=1 IsPost=1 FieldName="NoteType" dType="23" Vtp="1" RDT="1" Isc="1" RId="7" CId="7" FId="12" vlk=0    Type="1"  onclick ="javascript:DcxVld.Validate(this,2091,''DefaultF_'',2091);" onfocus ="javascript:DcxVld.ValidateFocus(this,2091,''DefaultF_'',2091);"><span class="form-radio-item"  >
<input id="ddcx_2091_NoteType_0"  name="ddcx_2091_NoteType"  type="radio"  text="无通知"  value="-1"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2091_NoteType_0">无通知</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2091_NoteType_1"  name="ddcx_2091_NoteType" checked ="checked" type="radio"  text="内部短信"  value="1"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2091_NoteType_1">内部短信</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2091_NoteType_2"  name="ddcx_2091_NoteType"  type="radio"  text="内部邮件"  value="2"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2091_NoteType_2">内部邮件</label></span>
<span class="clearfix"></span>','</div>','',-1,-1,-1,-1,0,'2091,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=12,[Form_EntId]=2091,[EntId]=2091,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=7,[FieldName]='NoteType',[FieldDataTypeId]=23,[RunDataTypeId]=1,[DBFieldId]=14,[DefaultValue]='内部短信|1',[ValueType]=1,[RunValueType]=7,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=7,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span><div iserr="1" class="form-vld"></div>
</div>
</li><li areaid="37" class="li-area" scroll="no" style="height: 55px; width: 595px; position: static;"><label class="area-title pad4" fldid="12" istitle="1">通知方式</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<div id="d2091_NoteType" class="form-radio" style="" EntId="2091" IsField=1 DBField=1 IsPost=1 FieldName="NoteType" dType="23" Vtp="1" RDT="1" Isc="1" RId="7" CId="7" FId="12" vlk=0    Type="1"  onclick ="javascript:DcxVld.Validate(this,2091,''DefaultF_'',2091);" onfocus ="javascript:DcxVld.ValidateFocus(this,2091,''DefaultF_'',2091);"><span class="form-radio-item"  >
<input id="ddcx_2091_NoteType_0"  name="ddcx_2091_NoteType"  type="radio"  text="无通知"  value="-1"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2091_NoteType_0">无通知</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2091_NoteType_1"  name="ddcx_2091_NoteType" checked ="checked" type="radio"  text="内部短信"  value="1"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2091_NoteType_1">内部短信</label></span>
<span class="form-radio-item"  >
<input id="ddcx_2091_NoteType_2"  name="ddcx_2091_NoteType"  type="radio"  text="内部邮件"  value="2"  /><label onclick ="javascript:event.cancelBubble=true;" for="ddcx_2091_NoteType_2">内部邮件</label></span>
<span class="clearfix"></span>',[CtrlbackHtml]='</div>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2091,' where  [FldUId]='33b846df-cf78-148b-eeea-8eb455c17001' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='823b3933-78b8-83d2-c064-77e533f71d7e'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(14,'823b3933-78b8-83d2-c064-77e533f71d7e',2091,2091,'00000000-0000-0000-0000-000000000000',8,'NoteContent',2,2,15,'',3,1,1,0,2,1,-1,-1,1,0,'','','','','</span>
</div>
</li><li areaid="40" class="li-area" scroll="no" style="height: 76px; width: 595px; position: static;"><label class="area-title pad4" fldid="14" istitle="1">通知内容</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<textarea  id="d2091_NoteContent" class="form-txts"  style="width:320px;height:45px;" EntId="2091" IsField=1 DBField=1 IsPost=1 FieldName="NoteContent" dType="2" Vtp="3" RDT="2" Isc="1" RId="1" CId="2" FId="14" vlk=0    >','</textarea>','',-1,-1,-1,-1,0,'2091,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=14,[Form_EntId]=2091,[EntId]=2091,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=8,[FieldName]='NoteContent',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=15,[DefaultValue]='',[ValueType]=3,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=2,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li areaid="40" class="li-area" scroll="no" style="height: 76px; width: 595px; position: static;"><label class="area-title pad4" fldid="14" istitle="1">通知内容</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<textarea  id="d2091_NoteContent" class="form-txts"  style="width:320px;height:45px;" EntId="2091" IsField=1 DBField=1 IsPost=1 FieldName="NoteContent" dType="2" Vtp="3" RDT="2" Isc="1" RId="1" CId="2" FId="14" vlk=0    >',[CtrlbackHtml]='</textarea>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2091,' where  [FldUId]='823b3933-78b8-83d2-c064-77e533f71d7e' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='7075a0f0-ad64-21f2-54e9-e24f4e2aa26a'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(9,'7075a0f0-ad64-21f2-54e9-e24f4e2aa26a',2091,2091,'00000000-0000-0000-0000-000000000000',9,'CreatorId',1,1,10,'{$UserId}',0,9,1,0,4,1,-1,-1,1,0,'','','','{$UserId},','</span>
</div>
</li><li areaid="33" class="li-area" scroll="no" style="height: 55px; width: 595px; display: none; position: static;"><label class="area-title pad4" fldid="9" istitle="1">驳回人</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d2091_CreatorId" class="form-lbl" style="width:200px;" IsForField=1 EntId="2091" CId="4" FId="9" Vtp="0"  >','</span><input id="d2091_CreatorId_hid" type="hidden"  EntId="2091" IsField=1 DBField=1 IsPost=1 FieldName="CreatorId" dType="1" Vtp="0" RDT="1" Isc="1" RId="9" CId="4" FId="9" vlk=0    value="','" />',-1,-1,-1,-1,0,'2091,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=9,[Form_EntId]=2091,[EntId]=2091,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=9,[FieldName]='CreatorId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=10,[DefaultValue]='{$UserId}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$UserId},',[BeforeHtml]='</span>
</div>
</li><li areaid="33" class="li-area" scroll="no" style="height: 55px; width: 595px; display: none; position: static;"><label class="area-title pad4" fldid="9" istitle="1">驳回人</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d2091_CreatorId" class="form-lbl" style="width:200px;" IsForField=1 EntId="2091" CId="4" FId="9" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d2091_CreatorId_hid" type="hidden"  EntId="2091" IsField=1 DBField=1 IsPost=1 FieldName="CreatorId" dType="1" Vtp="0" RDT="1" Isc="1" RId="9" CId="4" FId="9" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2091,' where  [FldUId]='7075a0f0-ad64-21f2-54e9-e24f4e2aa26a' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='1ae64077-29eb-eb7a-7e9d-8c5456d80485'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(10,'1ae64077-29eb-eb7a-7e9d-8c5456d80485',2091,2091,'00000000-0000-0000-0000-000000000000',10,'CreatorUserName',2,2,11,'{$UserName}',0,9,1,0,4,1,-1,-1,1,0,'','','','{$UserName},','</span>
</div>
</li><li areaid="39" class="li-area" scroll="no" style="height: 55px; width: 595px; display: none; position: static;"><label class="area-title pad4" fldid="10" istitle="1">驳回人的名称</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d2091_CreatorUserName" class="form-lbl" style="width:200px;" IsForField=1 EntId="2091" CId="4" FId="10" Vtp="0"  >','</span><input id="d2091_CreatorUserName_hid" type="hidden"  EntId="2091" IsField=1 DBField=1 IsPost=1 FieldName="CreatorUserName" dType="2" Vtp="0" RDT="2" Isc="1" RId="9" CId="4" FId="10" vlk=0    value="','" />',-1,-1,-1,-1,0,'2091,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=10,[Form_EntId]=2091,[EntId]=2091,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=10,[FieldName]='CreatorUserName',[FieldDataTypeId]=2,[RunDataTypeId]=2,[DBFieldId]=11,[DefaultValue]='{$UserName}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$UserName},',[BeforeHtml]='</span>
</div>
</li><li areaid="39" class="li-area" scroll="no" style="height: 55px; width: 595px; display: none; position: static;"><label class="area-title pad4" fldid="10" istitle="1">驳回人的名称</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d2091_CreatorUserName" class="form-lbl" style="width:200px;" IsForField=1 EntId="2091" CId="4" FId="10" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d2091_CreatorUserName_hid" type="hidden"  EntId="2091" IsField=1 DBField=1 IsPost=1 FieldName="CreatorUserName" dType="2" Vtp="0" RDT="2" Isc="1" RId="9" CId="4" FId="10" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2091,' where  [FldUId]='1ae64077-29eb-eb7a-7e9d-8c5456d80485' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='b19cdbd7-e212-1245-2a7f-db4fd0dffdbc'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(11,'b19cdbd7-e212-1245-2a7f-db4fd0dffdbc',2091,2091,'00000000-0000-0000-0000-000000000000',11,'CreateDate',3,3,12,'{$DateTime}',0,9,1,0,4,1,-1,-1,1,0,'','','','{$DateTime},','</span>
</div>
</li><li areaid="38" class="li-area" scroll="no" style="height: 55px; width: 595px; display: none; position: static;"><label class="area-title pad4" fldid="11" istitle="1">驳回时间</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<span id="d2091_CreateDate" class="form-lbl" style="width:200px;" IsForField=1 EntId="2091" CId="4" FId="11" Vtp="0"  >','</span><input id="d2091_CreateDate_hid" type="hidden"  EntId="2091" IsField=1 DBField=1 IsPost=1 FieldName="CreateDate" dType="3" Vtp="0" RDT="3" Isc="1" RId="9" CId="4" FId="11" vlk=0    value="','" />',-1,-1,-1,-1,0,'2091,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=11,[Form_EntId]=2091,[EntId]=2091,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=11,[FieldName]='CreateDate',[FieldDataTypeId]=3,[RunDataTypeId]=3,[DBFieldId]=12,[DefaultValue]='{$DateTime}',[ValueType]=0,[RunValueType]=9,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=4,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='{$DateTime},',[BeforeHtml]='</span>
</div>
</li><li areaid="38" class="li-area" scroll="no" style="height: 55px; width: 595px; display: none; position: static;"><label class="area-title pad4" fldid="11" istitle="1">驳回时间</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<span id="d2091_CreateDate" class="form-lbl" style="width:200px;" IsForField=1 EntId="2091" CId="4" FId="11" Vtp="0"  >',[CtrlbackHtml]='</span><input id="d2091_CreateDate_hid" type="hidden"  EntId="2091" IsField=1 DBField=1 IsPost=1 FieldName="CreateDate" dType="3" Vtp="0" RDT="3" Isc="1" RId="9" CId="4" FId="11" vlk=0    value="',[CtrlLastHtml]='" />',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2091,' where  [FldUId]='b19cdbd7-e212-1245-2a7f-db4fd0dffdbc' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='0ffeaa09-05cd-1968-a3e4-95198c6ad8ab'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(6,'0ffeaa09-05cd-1968-a3e4-95198c6ad8ab',2091,2091,'00000000-0000-0000-0000-000000000000',12,'FlowId',1,1,2,'FlowId',6,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
</div>
</li><li areaid="34" class="li-area" scroll="no" style="height: 55px; width: 595px; position: static; display: none;"><label class="area-title pad4" fldid="6" istitle="1">FlowId</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">','','','','<input  id="d2091_FlowId"   type="text" class="form-txt"  style="width:200px;" onchange ="javascript:GetLinkCtrlData_DefaultF_2091_543(this,''FlowId'');GetLinkCtrlData_DefaultF_2091_547(this,''FlowId'');" onblur ="javascript:if(!DcxVld.Validate(this,2091,''DefaultF_'',2091,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2091,''DefaultF_'',2091);" EntId="2091" IsField=1 DBField=1 IsPost=1 FieldName="FlowId" dType="1" Vtp="6" RDT="1" Isc="1" RId="1" CId="1" FId="6" vlk=0    CBack=1  value="','"/>','',-1,-1,-1,-1,0,'2091,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=6,[Form_EntId]=2091,[EntId]=2091,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=12,[FieldName]='FlowId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=2,[DefaultValue]='FlowId',[ValueType]=6,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
</div>
</li><li areaid="34" class="li-area" scroll="no" style="height: 55px; width: 595px; position: static; display: none;"><label class="area-title pad4" fldid="6" istitle="1">FlowId</label>
<div class="field-content pad4">
	<span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2091_FlowId"   type="text" class="form-txt"  style="width:200px;" onchange ="javascript:GetLinkCtrlData_DefaultF_2091_543(this,''FlowId'');GetLinkCtrlData_DefaultF_2091_547(this,''FlowId'');" onblur ="javascript:if(!DcxVld.Validate(this,2091,''DefaultF_'',2091,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2091,''DefaultF_'',2091);" EntId="2091" IsField=1 DBField=1 IsPost=1 FieldName="FlowId" dType="1" Vtp="6" RDT="1" Isc="1" RId="1" CId="1" FId="6" vlk=0    CBack=1  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2091,' where  [FldUId]='0ffeaa09-05cd-1968-a3e4-95198c6ad8ab' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='a5914449-d74b-5a3c-8962-c37312819551'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(7,'a5914449-d74b-5a3c-8962-c37312819551',2091,2091,'00000000-0000-0000-0000-000000000000',13,'RunId',1,1,4,'RunId',6,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
 <span class="form-ctr" isfcontain="1">','','','','<input  id="d2091_RunId"   type="text" class="form-txt"  style="width:200px;" onchange ="javascript:GetLinkCtrlData_DefaultF_2091_543(this,''RunId'');GetLinkCtrlData_DefaultF_2091_544(this,''RunId'');GetLinkCtrlData_DefaultF_2091_545(this,''RunId'');" onblur ="javascript:if(!DcxVld.Validate(this,2091,''DefaultF_'',2091,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2091,''DefaultF_'',2091);" EntId="2091" IsField=1 DBField=1 IsPost=1 FieldName="RunId" dType="1" Vtp="6" RDT="1" Isc="1" RId="1" CId="1" FId="7" vlk=0    CBack=1  value="','"/>','',-1,-1,-1,-1,0,'2091,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=7,[Form_EntId]=2091,[EntId]=2091,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=13,[FieldName]='RunId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=4,[DefaultValue]='RunId',[ValueType]=6,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
 <span class="form-ctr" isfcontain="1">',[LastHtml]='',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2091_RunId"   type="text" class="form-txt"  style="width:200px;" onchange ="javascript:GetLinkCtrlData_DefaultF_2091_543(this,''RunId'');GetLinkCtrlData_DefaultF_2091_544(this,''RunId'');GetLinkCtrlData_DefaultF_2091_545(this,''RunId'');" onblur ="javascript:if(!DcxVld.Validate(this,2091,''DefaultF_'',2091,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2091,''DefaultF_'',2091);" EntId="2091" IsField=1 DBField=1 IsPost=1 FieldName="RunId" dType="1" Vtp="6" RDT="1" Isc="1" RId="1" CId="1" FId="7" vlk=0    CBack=1  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2091,' where  [FldUId]='a5914449-d74b-5a3c-8962-c37312819551' 
      end
      if (select count(1) from [Dcx_DefaultFormField_Run] where  [FldUId]='cb8ffe48-70d3-5209-6831-0c218355d997'  )<1 
      begin 
           Insert into [Dcx_DefaultFormField_Run] ([FldId],[FldUId],[Form_EntId],[EntId],[EntUId],[FieldNO],[FieldName],[FieldDataTypeId],[RunDataTypeId],[DBFieldId],[DefaultValue],[ValueType],[RunValueType],[IsSingleChoice],[CtrlStyleId],[CtrlTypeId],[FieldTypeId],[RepeatColumns],[TreeId],[Reflash],[ValueLock],[UploadPath],[UploadFileType],[ParentFields],[SystemVariables],[BeforeHtml],[LastHtml],[Div_DropDownHtml],[CtrlBeforeHtml],[CtrlfrontHtml],[CtrlbackHtml],[CtrlLastHtml],[TableIndex],[RowIndex],[Parent_TableIndex],[Parent_RowIndex],[HaveChildEntity],[SameRowChildEntId])values(8,'cb8ffe48-70d3-5209-6831-0c218355d997',2091,2091,'00000000-0000-0000-0000-000000000000',14,'PrcsId',1,1,6,'PrcsId',6,1,1,0,1,1,-1,-1,1,0,'','','','','</span>
 <span class="form-ctr" isfcontain="1">','</span>
</div>
</li><li areaid="32" class="li-area" scroll="no" style="height: 55px; width: 595px; display: none; position: static;"><label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
			</ul>
		</div>
		<div class="div_tabs" style="display:none;">
			<ul class="tab_ul" groupid="2" isgroup="1" islonly="1" istab="1" style="" isrple="1">
				<li areaid="26" class="ui-droppable  li-tab de-selected" istab="1" scroll="no" style="height: 29px; width: 70px; position: static;" tabid="1"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
				<li areaid="27" class="ui-droppable  li-tab" istab="1" scroll="no" style="position: static;" tabid="2">
					<a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
			</ul>
			<div class="tabs-content" style="" tabid="1">
				<ul class="ul-mform" groupid="3" isgroup="1" style="" isrple="1">
					<li areaid="28" class="li-area" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
					<li areaid="29" class="li-area" fldid="-1" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
				</ul>
			</div>
			<div class="tabs-content" style="display: none;" tabid="2">
				<ul class="ul-mform" groupid="4" isgroup="1" style="" isrple="1">
					<li areaid="30" class="li-area" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
					<li areaid="31" class="li-area" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
				</ul>
			</div>
		</div>
	</div>
</div>
<br>','','','<input  id="d2091_PrcsId"   type="text" class="form-txt"  style="width:200px;" onchange ="javascript:GetLinkCtrlData_DefaultF_2091_544(this,''PrcsId'');GetLinkCtrlData_DefaultF_2091_545(this,''PrcsId'');" onblur ="javascript:if(!DcxVld.Validate(this,2091,''DefaultF_'',2091,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2091,''DefaultF_'',2091);" EntId="2091" IsField=1 DBField=1 IsPost=1 FieldName="PrcsId" dType="1" Vtp="6" RDT="1" Isc="1" RId="1" CId="1" FId="8" vlk=0    CBack=1  value="','"/>','',-1,-1,-1,-1,0,'2091,')
      end
      else 
      begin 
           update [Dcx_DefaultFormField_Run] set [FldId]=8,[Form_EntId]=2091,[EntId]=2091,[EntUId]='00000000-0000-0000-0000-000000000000',[FieldNO]=14,[FieldName]='PrcsId',[FieldDataTypeId]=1,[RunDataTypeId]=1,[DBFieldId]=6,[DefaultValue]='PrcsId',[ValueType]=6,[RunValueType]=1,[IsSingleChoice]=1,[CtrlStyleId]=0,[CtrlTypeId]=1,[FieldTypeId]=1,[RepeatColumns]=-1,[TreeId]=-1,[Reflash]=1,[ValueLock]=0,[UploadPath]='',[UploadFileType]='',[ParentFields]='',[SystemVariables]='',[BeforeHtml]='</span>
 <span class="form-ctr" isfcontain="1">',[LastHtml]='</span>
</div>
</li><li areaid="32" class="li-area" scroll="no" style="height: 55px; width: 595px; display: none; position: static;"><label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
<div class="field-content pad4">
	请编辑..</div>
</li>
			</ul>
		</div>
		<div class="div_tabs" style="display:none;">
			<ul class="tab_ul" groupid="2" isgroup="1" islonly="1" istab="1" style="" isrple="1">
				<li areaid="26" class="ui-droppable  li-tab de-selected" istab="1" scroll="no" style="height: 29px; width: 70px; position: static;" tabid="1"><a class="tab_a" href="javascript:void(0);" tabid="1">选项卡1</a></li>
				<li areaid="27" class="ui-droppable  li-tab" istab="1" scroll="no" style="position: static;" tabid="2">
					<a class="tab_a" href="javascript:void(0);" tabid="2">选项卡2</a></li>
			</ul>
			<div class="tabs-content" style="" tabid="1">
				<ul class="ul-mform" groupid="3" isgroup="1" style="" isrple="1">
					<li areaid="28" class="li-area" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
					<li areaid="29" class="li-area" fldid="-1" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
				</ul>
			</div>
			<div class="tabs-content" style="display: none;" tabid="2">
				<ul class="ul-mform" groupid="4" isgroup="1" style="" isrple="1">
					<li areaid="30" class="li-area" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
					<li areaid="31" class="li-area" scroll="no" style="width: 595px; height: 55px; position: static;">
						<label class="area-title pad4" fldid="-1" istitle="1">请编辑.. </label>
						<div class="field-content pad4">
							请编辑..</div>
					</li>
				</ul>
			</div>
		</div>
	</div>
</div>
<br>',[Div_DropDownHtml]='',[CtrlBeforeHtml]='',[CtrlfrontHtml]='<input  id="d2091_PrcsId"   type="text" class="form-txt"  style="width:200px;" onchange ="javascript:GetLinkCtrlData_DefaultF_2091_544(this,''PrcsId'');GetLinkCtrlData_DefaultF_2091_545(this,''PrcsId'');" onblur ="javascript:if(!DcxVld.Validate(this,2091,''DefaultF_'',2091,false,$(this).val()))return false;" onfocus ="javascript:DcxVld.ValidateFocus(this,2091,''DefaultF_'',2091);" EntId="2091" IsField=1 DBField=1 IsPost=1 FieldName="PrcsId" dType="1" Vtp="6" RDT="1" Isc="1" RId="1" CId="1" FId="8" vlk=0    CBack=1  value="',[CtrlbackHtml]='"/>',[CtrlLastHtml]='',[TableIndex]=-1,[RowIndex]=-1,[Parent_TableIndex]=-1,[Parent_RowIndex]=-1,[HaveChildEntity]=0,[SameRowChildEntId]='2091,' where  [FldUId]='cb8ffe48-70d3-5209-6831-0c218355d997' 
      end



Delete from [Dcx_DBTable_Run]  where [DBTableId]=672

--Dcx_DBTable_Run
      if (select count(1) from [Dcx_DBTable_Run] where  [DBTableId]=672  )<1 
      begin 
           Insert into [Dcx_DBTable_Run] ([DBTableId],[DBConnectId],[DBTableName],[DBTableByName],[IsForbid],[IsPublic],[IsView],[IsDesigning],[BuildTable],[IsSuportWorkFlow],[SystemId],[CreatorAccountId],[CreatorId],[Creator],[CreateTime],[EditorId],[Editor],[EditTime],[SQL_CreateTable],[Remark],[SSystemId],[SDbTableId],[IsChange],[IsSystem])values(672,null,'WF_Rebut','WF_Rebut',1,0,0,0,0,0,45,1,3,'admin','2013-12-15 17:32:36',3,'admin','2013-12-15 17:32:36',null,null,null,null,null,null)
      end
      else 
      begin 
           update [Dcx_DBTable_Run] set [DBConnectId]=null,[DBTableName]='WF_Rebut',[DBTableByName]='WF_Rebut',[IsForbid]=1,[IsPublic]=0,[IsView]=0,[IsDesigning]=0,[BuildTable]=0,[IsSuportWorkFlow]=0,[SystemId]=45,[CreatorAccountId]=1,[CreatorId]=3,[Creator]='admin',[CreateTime]='2013-12-15 17:32:36',[EditorId]=3,[Editor]='admin',[EditTime]='2013-12-15 17:32:36',[SQL_CreateTable]=null,[Remark]=null,[SSystemId]=null,[SDbTableId]=null,[IsChange]=null,[IsSystem]=null where  [DBTableId]=672 
      end




--Dcx_DBTableField_Run

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] ON 
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=672  and  [FieldId]=1  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19253,1,45,672,'int',1,1,1,'WF_Rebut','Id','Id','',1,1,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_Rebut',[FieldName]='Id',[FieldByname]='Id',[DefaultValue]='',[IsIdentity]=1,[IsKey]=1,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=672  and  [FieldId]=1 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=672  and  [FieldId]=2  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19254,2,45,672,'int',1,1,1,'WF_Rebut','FlowId','FlowId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_Rebut',[FieldName]='FlowId',[FieldByname]='FlowId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=672  and  [FieldId]=2 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=672  and  [FieldId]=3  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19255,3,45,672,'varchar',2,1,1,'WF_Rebut','FlowName','FlowName','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_Rebut',[FieldName]='FlowName',[FieldByname]='FlowName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=672  and  [FieldId]=3 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=672  and  [FieldId]=4  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19256,4,45,672,'int',1,1,1,'WF_Rebut','RunId','RunId','',0,0,0,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_Rebut',[FieldName]='RunId',[FieldByname]='RunId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=0,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=672  and  [FieldId]=4 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=672  and  [FieldId]=5  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19257,5,45,672,'varchar',2,1,1,'WF_Rebut','RunName','RunName','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_Rebut',[FieldName]='RunName',[FieldByname]='RunName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=672  and  [FieldId]=5 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=672  and  [FieldId]=6  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19258,6,45,672,'int',1,1,1,'WF_Rebut','PrcsId','PrcsId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_Rebut',[FieldName]='PrcsId',[FieldByname]='PrcsId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=672  and  [FieldId]=6 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=672  and  [FieldId]=7  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19259,7,45,672,'varchar',2,1,1,'WF_Rebut','PrcsName','PrcsName','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_Rebut',[FieldName]='PrcsName',[FieldByname]='PrcsName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=672  and  [FieldId]=7 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=672  and  [FieldId]=8  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19260,8,45,672,'int',1,1,1,'WF_Rebut','RebutToPrcsId','RebutToPrcsId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_Rebut',[FieldName]='RebutToPrcsId',[FieldByname]='RebutToPrcsId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=672  and  [FieldId]=8 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=672  and  [FieldId]=9  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19261,9,45,672,'varchar',2,1,1,'WF_Rebut','RebutToPrcsName','RebutToPrcsName','',0,0,1,200,200,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_Rebut',[FieldName]='RebutToPrcsName',[FieldByname]='RebutToPrcsName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=200,[Precision]=200,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=672  and  [FieldId]=9 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=672  and  [FieldId]=10  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19262,10,45,672,'int',1,1,1,'WF_Rebut','CreatorId','CreatorId','',0,0,1,4,10,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='int',[FieldDataTypeId]=1,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_Rebut',[FieldName]='CreatorId',[FieldByname]='CreatorId',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=4,[Precision]=10,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=672  and  [FieldId]=10 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=672  and  [FieldId]=11  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19263,11,45,672,'varchar',2,1,1,'WF_Rebut','CreatorUserName','CreatorUserName','',0,0,1,50,50,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_Rebut',[FieldName]='CreatorUserName',[FieldByname]='CreatorUserName',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=50,[Precision]=50,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=672  and  [FieldId]=11 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=672  and  [FieldId]=12  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19264,12,45,672,'datetime',3,1,1,'WF_Rebut','CreateDate','CreateDate','',0,0,1,8,23,3,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='datetime',[FieldDataTypeId]=3,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_Rebut',[FieldName]='CreateDate',[FieldByname]='CreateDate',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=8,[Precision]=23,[Scale]=3,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=672  and  [FieldId]=12 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=672  and  [FieldId]=13  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19265,13,45,672,'varchar',2,1,1,'WF_Rebut','Remark','Remark','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_Rebut',[FieldName]='Remark',[FieldByname]='Remark',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=672  and  [FieldId]=13 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=672  and  [FieldId]=14  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19266,14,45,672,'tinyint',23,1,1,'WF_Rebut','NoteType','NoteType','',0,0,1,1,3,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='tinyint',[FieldDataTypeId]=23,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_Rebut',[FieldName]='NoteType',[FieldByname]='NoteType',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=1,[Precision]=3,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=672  and  [FieldId]=14 
      end
      if (select count(1) from [Dcx_DBTableField_Run] where  [DBTableId]=672  and  [FieldId]=15  )<1 
      begin 
           Insert into [Dcx_DBTableField_Run] ([Id],[FieldId],[SystemId],[DBTableId],[FieldDataType],[FieldDataTypeId],[CtrlTypeId],[ColumnTypeId],[DBTableName],[FieldName],[FieldByname],[DefaultValue],[IsIdentity],[IsKey],[IsNullAble],[Length],[Precision],[Scale],[ShowAtForm],[ShowAtListReport],[ShowAtSeach],[CreatorAccountId],[CreatorId])values(19267,15,45,672,'varchar',2,1,1,'WF_Rebut','NoteContent','NoteContent','',0,0,1,-1,-1,0,0,0,0,1,3)
      end
      else 
      begin 
           update [Dcx_DBTableField_Run] set [SystemId]=45,[FieldDataType]='varchar',[FieldDataTypeId]=2,[CtrlTypeId]=1,[ColumnTypeId]=1,[DBTableName]='WF_Rebut',[FieldName]='NoteContent',[FieldByname]='NoteContent',[DefaultValue]='',[IsIdentity]=0,[IsKey]=0,[IsNullAble]=1,[Length]=-1,[Precision]=-1,[Scale]=0,[ShowAtForm]=0,[ShowAtListReport]=0,[ShowAtSeach]=0,[CreatorAccountId]=1,[CreatorId]=3 where  [DBTableId]=672  and  [FieldId]=15 
      end

     SET IDENTITY_INSERT [Dcx_DBTableField_Run] OFF 




 GO--mygofuck 

 update Dcx_Menu_Run set [ParentId]=3417 where [MenuId]=2631
UPDATE [WF_FlowType]
   SET [ManageUsers] ='admin'
      ,[ManageNames] = 'admin'
      ,[QueryUsers] ='admin'
      ,[QueryNames] ='admin'
      ,[CanQueryRoles] ='系统管理员'
      ,[CanQueryRolesId] = '3'
      ,[CanManageRoles] ='系统管理员'
      ,[CanManageRolesId] ='3'
      ,[CanStartUsers] =null
      ,[CanStartNames] = null
      ,[CanStartRoles] ='Public'
      ,[CanStartRolesId] = '1'
      ,[Creator] = 'admin'
      ,[CreateTime] =  getdate() 



 GO--mygofuck 

            declare @FlowId   int
--创建游标
declare myCursor cursor for SELECT [FlowId]   FROM WF_FlowType  
--打开游标 任务
open myCursor 
fetch next  from myCursor into  @FlowId
while (@@fetch_status=0)
begin 
--------------------------------------开始  循环-----------------------------------------
update WF_FlowType set FlowName=isnull(FlowName,'')+'' where [FlowId]=@FlowId
--下一条记录
fetch next  from myCursor into  @FlowId
--------------------------------------结束  循环-----------------------------------------
end
close myCursor --关闭 任务
deallocate myCursor 
GO--mygofuck
